verilog xl tutorial by greg edmiston scott mcclure august 2004

19
Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Upload: melvin-ebbs

Post on 02-Apr-2015

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Verilog XL Tutorial

By Greg EdmistonScott McClureAugust 2004

Page 2: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Tutorial Disclaimer

This tutorial includes one way of simulating in Verilog XL. This is not necessarily the best way of simulating, depending on your requirements. This tutorial is a simple step-through designed to familiarize the user with Verilog XL, and thus is basic in nature. More advance simulations are not found in this tutorial.

Page 3: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Create Verilog File Create a text file

with the text shown here

This code represents a basic circuit with delay and test stimulus

Save as “example.v”

Verilog code files often have a “.v” file extension

Page 4: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Enter ICFB

Type “who am i” Gives xhost address

setenv DISPLAY {xhost} Type “icfb &” to start Cadence

Page 5: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Import Verilog File in ICFB Import the

“example.v” Verilog file by choosing File >> Import >> Verilog in ICFB CIW

Page 6: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Importing Verilog File

“Verilog In” window pops up Set Target Library Name to

“new” Highlight “example.v” in file

selection box at the top of the window

Press the Add button on the “Verilog Files to Import” line

Click OK at the top of the “Verilog In” window

Page 7: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Verify File Import

Open up the Library Manger from the CIW and inspect to ensure the “new” library includes a cell named “circuit_with_delay”

Page 8: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Verify File Import

Open the Schematic view of the “circuit_with_delay” from the Library Manager and verify that it resembles the screenshot to the left

Page 9: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Running Verilog XL Close all windows

except a terminal From your home

directory type“verilog +gui example.v” Verilog should open

with your example loaded

Note: “example.v” has to be saved in your home directory for this command to function

Page 10: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog XL Verilog should open

the SimVision Design Browser and Console

The stimcrct module should be displayed under the simulator icon

Page 11: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog XL Click on the

stimcrct icon The circuit

inputs and outputs should now be visible under Signal/Variable

Page 12: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog With the

stimcrct highlighted choose Select>>Signals

Page 13: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog XL Now that the

signals are highlighted, send them to the logic display by clicking on the indicated button

Click Here

Page 14: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog XL

Click the Play button to run the simulation

Run Button

Page 15: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog XL Since the

simulation has no initial stop point the output will appear similar to the window to the left

Page 16: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulating with Verilog XL To rerun the

simulation it must first be reset

Reset the simulation by choosing “Reinvoke Simulator” from the simulation menu

Page 17: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulation with Verilog XL

Run the simulation by pressing the Run button

Run Button

Page 18: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Simulation with Verilog XL

Simulation output should look like this

Page 19: Verilog XL Tutorial By Greg Edmiston Scott McClure August 2004

Conclusion

This concludes the Verilog XL Tutorial This tutorial was derived from the SMU

Cadence Verilog XL Tutorial http://engr.smu.edu/~mitch/class/3381/veri

log_intro.pdf