HDL Manual
HDL Manual
HDL Manual
Page 1 of 11
Laboratory Goals
Pre-lab reading
Equipment needed
Parts needed
1. Pre-Lab Introduction
SPICE is an acronym for Simulation Program with Integrated Circuit Emphasis. The
original SPICE program was developed at the University of California Berkley in the
1970s. Computer aided simulation is common practice in industry and is a very
useful tool. SPICE is useful way of verifying your lab test results, and experimenting
with changes to your own circuit designs. It is also widely used in industry for
simulating designs prior to production Internal numerical accuracy of programs such
as SPICE is very high with errors that seldom exceeding 1%.
While PSPICE makes extensive use of part libraries, Aim Spice uses text entries.
Circuits may contain passive components such as resistors, capacitors, and inductors,
and active devices such as transistors and diodes as well as independent voltage and
current sources. To write code describing a circuit, nodes must be defined in the
code. With nodes clearly defined, various elements are then connected between
nodes to specified values. SPICE allows the user to perform various analysis of the
circuit such as nonlinear dc, large-signal time domain (transient), small-signal
frequency domain, nonlinear transient, and linear ac analyses. The dc and transient
analysis capabilities are of greatest interest for digital circuit studies. In addition to
performing the differing analysis types, SPICE also generates graphical outputs for
which the various nodes and inputs can be graphed individually or together. SPICE
software is based on the same logic core in which the code is either manually
generated as with Aim Spice, or converted from a graphical representation by the
software as PSPICE does. A netlist file is manually written when using Aim Spice,
whereas PSPICE generates the netlist file containing the circuit elements and their
interconnections for you based on the graphical representation.
Despite the accuracy of computer simulation, hand analysis is still necessary. SPICE
simulation is a tool to enhance circuit analysis not replaces hand computations. For
instance, hand calculations are the best method for developing appropriate simulation
time intervals or rise times for a given circuit.
You will be following along with your teaching assistant’s presentation during this lab
This is the parameters for .tran. You will need to figure out what the values for the
parameters are, and the default units is seconds for these parameters.
After using this line, a blank screen graph plot will pop up on the screen. To graph
your plots, you must press the add trace button on the menu. Once you press
this button, the screen below will pop up:
On the box to the left, each voltage you click on will represent one item being
plotted on the previous graph. The result should look something like this:
EECE 321 Lab 1: Circuit Simulation with PSPICE
Page 8 of 11
This is, of course, is just an example graph but your circuit inputs and outputs should
look something like a square wave. To print this graph you can simply use print,
or if you like you may use the Microsoft paint program to capture a screenshot by
pressing print screen, then cut and paste it into your report.
Print the circuit code as well as simulation results to be included with your lab
report
In order to print the plots, they first must be saved by choosing the save plots
option from the file drop down menu
The saved plots may then be opened and printed or screenshots may also be taken
and saved in a Word document
For this portion of the lab, you will be directed to watch the teaching assistant present a
curve tracer tutorial introducing you to the features and functionality of a curve tracer.
Using a sample transistor you will be shown how to generate an I-V curve for the
transistor so that you will be able to use the curve tracer in future labs to verify your
results.
EECE 321 Lab 1: Circuit Simulation with PSPICE
Page 9 of 11
7. PSPICE Design and Simulation for Circuit 4
10. Analysis
Write a brief summary report for this lab. Be sure to also include the following
topics:
Compare the results from your pre-lab computations to the PSPICE models you
created. Record your findings in your lab notebook
Include print outs of the code, circuit diagrams with nodes labeled and simulation
results.
Explain any difficulties you had with this lab. (Please include suggestions to improve
the lab, if you have them).