ECE 322

Cadence Tools Lab Manual


How to Simulate Your Schematic With NC-Verilog

1) Bring up your design with the schematic editor. Check and Save your design. (figure 1)

2) Under the Tools menu, select Simulation, then NC-Verilog. (figure 2)

3) Create a directory /tmp/<user id> on the  machine you are using. This is where your design will be simulated. Be sure to remove this directory when you are done.

4) Change the Run Directory to /tmp/<user id>/<schematic name> (figure 3)

5) Under the Commands Menu, run the Initialize Design command, or press the top button on the left of the window.

6) Now run the Generate Netlist command, also under the Commands Menu, or press the second button on the left of the window

7) Now run the Edit Test Fixture command (figure 4). Choose Edit. The file that will appear is a verilog stimulus file. You should edit the file so that it changes the values of the inputs to your design so you can observe how your design works. You should use # delays in between test cases. Be sure to test your designs thoroughly. If you get a Syntax Check Failed, view the errors to determine where they are and how to fix them. The most common error is forgetting semicolons at the end of each line (even delay statements). Be sure to fix your code before moving on. Here is an example stimulus file.

8) Now run the Simulate Command from the Command Menu, or use the third button on the left side of the window. This will launch SimVision.

9) This tutorial will show you how to use the Navigator and the Waveform Viewer to view results. First, the Navigator. From the Tools Menu, select Navigator.

10) You should see a list of the inputs and outputs of your design in the Navigator. If you do not see your signals, then click on the word test on the left of the window.

11) Now, from the SimVision window, under the control menu, select the step command. This will step through your design, one time increment at a time. The values of your inputs and outputs should change as you do this, allowing you to check your design.

11) To use the Waveform Viewer, select all the signals that you would like to monitor by holding the shift button and clicking on the name of each signal. After you have selected all of them, use the right mouse button and select the Wave Trace Option. The WaveForm Viewer will appear with the signals you selected.

12) Again, using the step command from the SimVision window, you can watch the signals change on your design. You can also use the Run command and the simulation will run until the end of your test, and the waveforms will appear.

 

 

 

 


© 2001 Carnegie Mellon University