HDL & Verification
Which describes a testbench used in HDL verification?
- AFactory equipment for manufacturing circuits
- BA simulation-only description that drives inputs to the circuit under test and checks whether outputs are correct; it is not synthesized
- CAn instrument for measuring circuit power
Show answer and explanation
Answer: B. A simulation-only description that drives inputs to the circuit under test and checks whether outputs are correct; it is not synthesized
A testbench is HDL code that instantiates the design under test (DUT), generates clocks, resets and input signals, and observes outputs. Because it is never synthesized, it can freely use simulation-only features such as delays, file I/O and display statements. It sometimes takes as much effort as the design itself, or more.
- A. It is not factory equipment.
- B. Correct. It is a test environment wrapped around the design.
- C. It is a simulation description, not a physical instrument.