What is Testbench?

Simulation-only code that drives inputs to the design under test and checks its outputs. Since it is never synthesized, delays, display statements and similar can be used freely.

Field: HDL & Verification

Testbench in the explanations

Questions that mention Testbench (6)

  1. Which describes a testbench used in HDL verification?
  2. What is the period of the clock generated by the testbench code above (time unit 1 ns)?
  3. In a testbench, changing a design input with a blocking assignment at the same instant as the rising clock edge can cause problems. Which pairs the reason with a fix correctly?
  4. What characterizes a self-checking testbench?
  5. Which Verilog construct is ignored by logic synthesis and does not become hardware (a simulation-only construct)?
  6. What is the difference between Verilog's equality operators "==" and "==="?

Related terms

Verilog Hardware description language (HDL) Blocking assignment SystemVerilog Slip Logic synthesis RTL (register-transfer level) Comparator Asynchronous reset Combinational loop

Back to the glossary