Professional Documents
Culture Documents
Input Output
generator DUT Monitor
Verification
Logic
Testbenches
• Testbenches can be written using HDL languages
(Verilog, VHDL) or high-level languages (C/C++) or
specialized languages for verification (e/Vera)
• We will write our testbenches in Verilog itself
• Keep in mind that testbench codes are used only for
simulation
• They will not be implemented on real hardware
• Hence we have more flexibility in coding style and
more constructs are available compared to the code
targeted for hardware implementation
Testbenches
• Hence we will divide the Verilog code that we write
into two categories
– Synthesizable which can be finally implemented
on FPGA/ASIC
– Non-synthesizable which cannot be implemented
on real hardware but can be used for simulation
• Now a days the term RTL code is used
synonymously for synthesizable code (although
original meaning was different)
• Testbenches will be commonly referred as TB