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