Complete the code to declare a testbench module named 'tb'.
module [1]();
endmoduleThe testbench module is usually named 'tb' for simplicity.
Complete the code to instantiate a device under test (DUT) named 'dut_inst' inside the testbench.
module tb();
[1] dut_inst();
endmoduleThe DUT is instantiated by its module name, often 'dut'.
Fix the error in the initial block to start the simulation with a delay of 10 time units.
module tb();
initial begin
#[1];
$finish;
end
endmoduleThe delay '#10;' waits for 10 time units before executing the next statement.
Fill both blanks to declare a clock signal 'clk' and toggle it every 5 time units.
module tb(); reg [1] = 0; always #[2] [1] = ~[1]; endmodule
The clock signal 'clk' is declared as a reg and toggled every 5 time units.
Fill all three blanks to declare a reset signal 'rst', initialize it to 1, and de-assert it after 15 time units.
module tb(); reg [1] = 1; initial begin #[2] [1] = [3]; end endmodule
The reset signal 'rst' is initialized to 1 and set to 0 after 15 time units to release reset.
