Lesson 04: Testbench

The function of a testbench is to apply stimulus (inputs) to the Design Under Test (DUT), sometimes called the Unit Under Test (UUT), and report the outputs in a readable and user-friendly format. In this section, we discuss how an efficient testbench can be written. Procedure steps requiring you to write the testbench for the design directly refer to elements of the testbench discussed in this section. Note: Many of the coding techniques used in testbenches (such as file I/O, the initial block, etc) are not suitable for synthesis.