Saturday 4 July 2015

Flipflops and Latches- D Latch


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