Saturday 4 July 2015

Flipflops and Latches- D Flipflop

D FLIP FLOP

module dff(q,d,clk,reset);
input d,clk,reset;
output q;
reg q;
always @(posedge clk)
begin
if(~reset) q<=1'b0;
else q<=d;
end
endmodule

No comments:

Post a Comment