Complete the code to declare a module named 'flipflop'.
module [1] (input clk, input d, output reg q);The module name should be 'flipflop' to match the design pattern example.
Complete the always block sensitivity list to trigger on the positive edge of clk.
always @([1]) begin
q <= d;
endThe flip-flop updates its output on the positive edge of the clock signal.
Fix the error in the code by completing the assignment statement correctly.
q [1] d;Non-blocking assignment '<=' is used inside always blocks for sequential logic.
Fill the blank to complete the module end statement and the module declaration.
endmodule
module [1] (input clk, input d, output reg q);The module must be properly declared and ended to ensure reliable design.
Fill both blanks to complete the always block with sensitivity list and assignment.
always @([1]) begin q [2] d; end
The always block triggers on the positive edge of clk and uses non-blocking assignment '<=' for q.
