HDLBits Solusion : D flip-flop

This quiz, I had to create a D flipflop. This is one of the easiest quizzes. I used “<=” instead of “=” as this is a sequential circuit.

module top_module (
input clk,
input d,
output reg q );

always@(posedge clk)begin
q = d;

end

endmodule

Reference: https://hdlbits.01xz.net/wiki/Dff

Leave a Reply

Your email address will not be published. Required fields are marked *