(TBench) 3.11 Generate the Test Bench and Simulate |
|||
(TBench) 3.11 Generate the Test Bench and Simulate |
Once the simulator is setup you are ready to generate the test bench and simulate the design.
To generate the test bench:
•Press the Make TB button. This will expand the macros in the template file and pop up a dialog that says "Finished generating test bench. Please check waveperl.log for errors." Close this dialog by clicking the OK button. |
|
•In the Report window, check the waveperl.log tab to see if TestBencher encountered any errors during the test bench generation. If it did, fix the error and regenerate the test bench. (If you can not see the Report window, choose the Window > Report menu to bring it to the front.) |
To simulate the design:
•Click the yellow Compile Model and Test Bench button. This builds (parses) the project using the tools specified in the Project Settings and Simulator and Compiler Settings dialogs. |
|
•In the bottom right corner, a yellow Simulation Built status message indicates the build was successful and that you are ready to simulate. If the status indicates an error, the Report window Errors tab displays the compile errors. If there are errors then fix them, regenerate the test bench, and recompile. |
•Click the green run button on the simulation button bar. This will simulate the design and display the results in the StimulusAndResults diagram and the Report window simulation.log tab. |
|
•In the bottom right corner, a Simulation Good status message indicates that the simulation has reached a successful end. |