Complete the code to wait for 10 time units before executing the next statement.
initial begin #[1]; $display("Hello after delay"); end
The #10 statement delays the execution by 10 time units.
Complete the code to toggle the signal 'clk' every 5 time units.
always begin #[1] clk = ~clk; end
The clock toggles every 5 time units using #5 delay.
Fix the error in the code to delay the signal assignment by 20 time units.
initial begin signal = 0; [1] 20 signal = 1; end
The correct syntax to delay is using the # symbol before the delay value.
Fill both blanks to create a delay of 15 time units before setting 'ready' to 1.
initial begin ready = 0; #[1]; ready = [2]; end
The delay is 15 time units and then 'ready' is set to 1.
Fill all three blanks to delay 8 time units, assign 1 to 'start', and then delay 12 time units.
initial begin #[1]; start = [2]; #[3]; end
The code delays 8 units, sets 'start' to 1, then delays 12 units.
