System Verilog
System Verilog
coverage
Connecting the Testbench and
Design
• There are several steps needed to verify a design: generate stimulus,
capture responses, determine correctness, and measure progress.
• Testbench wraps around the design, sending in stimulus and capturing
the design’s response.
• The key concept is that the testbench simulates everything not in the
design under test.
• Your testbench needs a higher-level way to communicate with the
design than Verilog’s ports and the error-prone pages of connections.
Communication between the
testbench and DUT
• Here is a diagram of the top level design including a testbench,
arbiter, clock generator, and the signals that connect them.
• This is a trivial design, so you can concentrate on the SystemVerilog
concepts and not get bogged down in the design.
Communication with ports