Complete the code to declare a testbench module.
module [1]();The testbench module is usually named tb as a short form.
Complete the code to instantiate the design under test (DUT) inside the testbench.
dut uut([1]);In Verilog, ports are connected by name using dot notation like .clk(clk).
Fix the error in the clock generation code.
always begin #5 [1]; end
= can cause simulation issues.Non-blocking assignment <= is preferred in clock toggling inside always blocks.
Fill both blanks to create a stimulus that applies reset for 10 time units.
initial begin rst = [1]; #10 rst = [2]; end
Reset is usually active high, so set it to 1'b1 then back to 1'b0.
Fill all three blanks to create a simple testbench that initializes clock, reset, and runs for 100 time units.
module tb(); reg clk = [1]; reg rst = [2]; initial begin #100 $finish; end always #5 clk = [3]; endmodule
Clock starts at 0, reset starts at 1, and clock toggles by inverting its value.
