D LATCH
module dlatch(q,d,r); input d,r; output q; reg q; always @(d or r) begin if(r) q<=d; else q<=~d; end endmodule
No comments:
Post a Comment