← ProblemsVerification: Writing Testbenches

Testbench 1

36%testbench

Create a testbench that generates the following waveform on its two output signals A and B:

time (ps)event
0A = 0, B = 0
10A = 1
20B = 1
30A = 0
40B = 0

Both signals hold their value between events. Use an initial block with # delays — remember that delays are cumulative: each #10 waits 10 ps after the previous statement finished.

Note: This problem requires a behavioral testbench, which isn't graded in-browser — write and run it in an external Verilog simulator, then mark your result here.

This problem can't be auto-graded here yet — it needs a full behavioral Verilog simulator. Solve it in an external simulator, then record your result so your learning path stays accurate.