Difference between revisions of "Simulation Tutorial"
(New page: <toc> ---- == # Select Analog Environment == With the schematic file open, Ultrasim can be invoked from within icfb. :Select <b>Tools → Analog Environment</b>. (See [http://bacon.c...) |
|||
Line 1: | Line 1: | ||
− | + | == Select Analog Environment == | |
− | + | ||
− | + | ||
− | + | ||
− | == | + | |
With the schematic file open, Ultrasim can be invoked from within icfb. | With the schematic file open, Ultrasim can be invoked from within icfb. | ||
:Select <b>Tools → Analog Environment</b>. (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig1 figure 1])<br> | :Select <b>Tools → Analog Environment</b>. (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig1 figure 1])<br> | ||
At this stage, it is assumed that there is a schematic open with power sources and signal inputs defined. Otherwise Ultrasim is going to simulate a non powered circuit which is pointless. | At this stage, it is assumed that there is a schematic open with power sources and signal inputs defined. Otherwise Ultrasim is going to simulate a non powered circuit which is pointless. | ||
− | + | ||
− | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup1.jpg | |
− | + | ||
This is the window that pops up once Analog Environment is chosen. | This is the window that pops up once Analog Environment is chosen. | ||
− | + | ||
− | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup2.gif | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup2.gif |
− | + | ||
---- | ---- | ||
− | == | + | == Select Simulator (<nowiki>UltraSim</nowiki>) == |
Virtuoso Analog Design Environment supports various simulators such is hSpice, Spectre, and Ultrasim. Ultrasim will have to be chosen before simulations can be run. | Virtuoso Analog Design Environment supports various simulators such is hSpice, Spectre, and Ultrasim. Ultrasim will have to be chosen before simulations can be run. | ||
:Select<b> <nowiki> Setup → Simulator/Directory/Host. </nowiki> </b> (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig2 figure 2]) | :Select<b> <nowiki> Setup → Simulator/Directory/Host. </nowiki> </b> (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig2 figure 2]) | ||
A follow up window will pop up giving your simulator options. | A follow up window will pop up giving your simulator options. | ||
− | + | ||
− | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup3.jpg | |
− | + | ||
With current settings, <tt>hspiceD is chosen by default every time Analog Environment is launched.</tt> | With current settings, <tt>hspiceD is chosen by default every time Analog Environment is launched.</tt> | ||
Line 39: | Line 34: | ||
---- | ---- | ||
− | == | + | == Choosing Analysis Length == |
From the Analog Environment window | From the Analog Environment window | ||
:Select <b>Analysis → Choose </b> (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig2 figure 2]) | :Select <b>Analysis → Choose </b> (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig2 figure 2]) | ||
This will bring up a smaller window prompting you for the duration of the simulation. | This will bring up a smaller window prompting you for the duration of the simulation. | ||
− | + | ||
− | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup4.gif | |
− | + | ||
Make sure <b>tran</b> is selected. The other option <b>envlp</b> is for fast envelope analysis for use on RF circuits. | Make sure <b>tran</b> is selected. The other option <b>envlp</b> is for fast envelope analysis for use on RF circuits. | ||
Line 54: | Line 49: | ||
---- | ---- | ||
− | == | + | == Adding Model Library Files == |
The next step is to add the spice data for the simulator. | The next step is to add the spice data for the simulator. | ||
:Select <b> Setup → Model Libraries </b>. (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig2 figure 2]) | :Select <b> Setup → Model Libraries </b>. (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig2 figure 2]) | ||
We will be adding the data for the Nmos and Pmos transistor using the TSMC 180nm process. | We will be adding the data for the Nmos and Pmos transistor using the TSMC 180nm process. | ||
− | + | ||
− | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup5.gif | |
− | + | ||
:Click on <i>browse</i> and go to: <b>/mada/software/techfiles/NCSU_CDK_1.5.1/models/hspice/public</b><br> \ | :Click on <i>browse</i> and go to: <b>/mada/software/techfiles/NCSU_CDK_1.5.1/models/hspice/public</b><br> \ | ||
Line 85: | Line 80: | ||
This will generate the netlist file, run the simulation, and feed the results to the waveform viewer. (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig6 figure 6]) | This will generate the netlist file, run the simulation, and feed the results to the waveform viewer. (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig6 figure 6]) | ||
− | + | ||
− | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/output_waveform.png | |
− | + | ||
---- | ---- | ||
− | == | + | == Waveform - Zooming and Trace == |
With the waveform window open, you can zoom in and find exact values. | With the waveform window open, you can zoom in and find exact values. | ||
− | === | + | === Zoom === |
:Select <b> Zoom → X Zoom </b> (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig6 figure 6]). | :Select <b> Zoom → X Zoom </b> (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig6 figure 6]). | ||
:Now click and drag in the waveform window to select the x-range you want to zoom to. | :Now click and drag in the waveform window to select the x-range you want to zoom to. | ||
− | === | + | === Tracing === |
:Select <b> Marker → Place → Trace Marker </b> | :Select <b> Marker → Place → Trace Marker </b> | ||
− | + | ||
− | + | http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/zoom_waveform.png | |
− | + | ||
:Click on one of the waveforms in the window. This places a small label on the waveform. You can drag this marker anywhere on the waveform (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig7 figure 7]). | :Click on one of the waveforms in the window. This places a small label on the waveform. You can drag this marker anywhere on the waveform (See [http://bacon.cse.ucsc.edu/cgi-bin/wiki.pl?Basic_GUI_Usage#fig7 figure 7]). | ||
---- | ---- |
Revision as of 03:54, 28 September 2007
Contents
Select Analog Environment
With the schematic file open, Ultrasim can be invoked from within icfb.
- Select Tools → Analog Environment. (See figure 1)
At this stage, it is assumed that there is a schematic open with power sources and signal inputs defined. Otherwise Ultrasim is going to simulate a non powered circuit which is pointless.
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup1.jpg
This is the window that pops up once Analog Environment is chosen.
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup2.gif
Select Simulator (UltraSim)
Virtuoso Analog Design Environment supports various simulators such is hSpice, Spectre, and Ultrasim. Ultrasim will have to be chosen before simulations can be run.
- Select Setup → Simulator/Directory/Host. (See figure 2)
A follow up window will pop up giving your simulator options.
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup3.jpg
With current settings, hspiceD is chosen by default every time Analog Environment is launched.
- Click on the Simulator button and choose Ultrasim .
Project Library indicates where your simulation files will be stored. The generated netlist file will be stored within ~/cadence/simulation/YOUR SCHEMATIC/simulation/netlist/netlist .
*It is important to note that once the simulation has been ran, it can be initiated again via the console command
~/cadence/simulation/YOUR SCHEMATIC/simulation/netlist/RUNSIMULATION .
This way the netlist can be manually edited, saved, and simulated again without having to edit schematic and reinitiating ultrasim.
Choosing Analysis Length
From the Analog Environment window
- Select Analysis → Choose (See figure 2)
This will bring up a smaller window prompting you for the duration of the simulation.
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup4.gif
Make sure tran is selected. The other option envlp is for fast envelope analysis for use on RF circuits.
Be sure to choose a stop time that is greater than the period of the input signal.
Ultrasim supports the SI prefixes so 500u would be 500 micro seconds.
Adding Model Library Files
The next step is to add the spice data for the simulator.
- Select Setup → Model Libraries . (See figure 2)
We will be adding the data for the Nmos and Pmos transistor using the TSMC 180nm process.
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/setup5.gif
- Click on browse and go to: /mada/software/techfiles/NCSU_CDK_1.5.1/models/hspice/public
\
(See figure 5)
- Select files
- /mada/software/techfiles/NCSU_CDK_1.5.1/models/hspice/public/public/tsmc18dN.m
- /mada/software/techfiles/NCSU_CDK_1.5.1/models/hspice/public/public/tsmc18dP.m
Be sure to click on add after selecting each file. Select OK when finished.
# Selecting Outputs to be Plotted
From the Analog Environment window
- Select Outputs → To Be Plotted → Select on Schematic (See figure 2)
Now refer back to your schematic that is open on a different window, click on various parts to add it to the output section of the Analog Design Environment Window. (for example, the output pin Z) in your schematic that you want to be plotted. Repeat this as necessary for all nets you want to see (for example, the input pin IN).
# Running Simulation and Ouput Window
- Select Simulation → Netlist and Run
This will generate the netlist file, run the simulation, and feed the results to the waveform viewer. (See figure 6)
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/output_waveform.png
Waveform - Zooming and Trace
With the waveform window open, you can zoom in and find exact values.
Zoom
- Select Zoom → X Zoom (See figure 6).
- Now click and drag in the waveform window to select the x-range you want to zoom to.
Tracing
- Select Marker → Place → Trace Marker
http://bacon.cse.ucsc.edu/vlsi/ultrasim_tutorial/zoom_waveform.png
- Click on one of the waveforms in the window. This places a small label on the waveform. You can drag this marker anywhere on the waveform (See figure 7).