← ProblemsVerification: Writing Testbenches
Testbench 1
36%testbenchCreate a testbench that generates the following waveform on its two output signals A and B:
| time (ps) | event |
|---|---|
| 0 | A = 0, B = 0 |
| 10 | A = 1 |
| 20 | B = 1 |
| 30 | A = 0 |
| 40 | B = 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.