Pspice Tutorial
Pspice Tutorial
Nelson 1
Phyllis R. Nelson
Electrical and Computer Engineering Department
California State Polytechnic University, Pomona
Winter 2013
This tutorial provides a basic introduction to the use of netlists in pspice for students in
the Electrical and Computer Engineering Department at Cal Poly Pomona.
Log onto a computer in one of the College of Engineering computer labs. Click the windows
icon at the lower left corner of the screen, then
All Programs -> Cadence (the folder) -> AMS Simulator (the folder)
-> AMS Simulator
In pspice the script file that includes the netlist, analysis commands, and output commands
has the extension .cir.
You will now be able to use the text editor window to write your spice script. Save it as
<filename>.cir where the “filename” is something that will help you to remember what
the script does. Note that most of the icons are still grey. You must close the file and
open it again as described below in order to run your script!
A directory window will open, but when you display the directory in which you saved your
script it will not be listed. You must change the line “Files of type:” to “Circuit Files
(*.cir)” to select the file. Then click the “Open” button. The result will give color syntax
highlighting and, most importantly, a green circle containing a right arrow as shown below.
2
3 Running a simulation
Click on the green circle containing the right-pointing arrow. This simulate icon is located
just below the word “cādence”. The progress of your simulation will be displayed in a small
text area at the lower left corner of the window. If your script contains errors, the .out
file will display in a new tab where the editor window was. If your script contained the
.probe command and there are no errors, the editor will be replaced by a graph with a
black background and the independent variable of your analysis displayed on the horizontal
scale.
This file contains much useful information about the models and model parameters used in
simulating semiconductor devices. It can be opened at any time using the icon at the
left of the main window. If you have already opened this file, you can switch between it
and the original script file using the tabs at the lower left of the main window.
Using .probe as the output command will open a new dialog in place of the text windows
after your simulation has completed, and the icons on the menu bar will change. The AMS
Simulator will now appear as shown below.
3
Use the “Add Trace” icon to select the variable or variables to be displayed on the
vertical scale. Use Window -> Copy to Clipboard... to get a copy of the graph that can
be pasted into a document. The graph without the script that generated it is useless!
Useful tools such as the position of the cursor, log x and y scales, the ability to find minima,
maxima, and local slope are also available using the menu icons.