Simulation Examples: Chapter Overview
Simulation Examples: Chapter Overview
2
Chapter overview
The examples in this chapter provide an introduction to the
methods and tools for creating circuit designs, running
simulations, and analyzing simulation results. All analyses are
performed on the same example circuit to clearly illustrate
analysis setup, simulation, and result-analysis procedures for
each analysis type.
To move the text associated with the diodes (or any other
object)
1 Click the text to select it, then drag the text to a new
location.
❑ capacitor (C)
4 To place the off-page connector parts
(OFFPAGELEFT-R), click the Place Off-Page Connector
button on the tool palette.
5 Add the library for the parts you need to place:
Important
You must use the 0 (zero) ground part from the
SOURCE.OLB part library. You can use any other
ground part only if you change its name to 0 (zero).
Tip
A more efficient way to change the names, values
and other properties of several parts in your design
is to use the Property Editor, as follows:
a. Select all of the parts to be modified by pressing Ctrl
and clicking each part.
b. From the Edit menu, choose Properties.
The Parts Spreadsheet appears.
Change the entries in as many of the cells as needed,
and then click Apply to update all of the changes at once.
Running PSpice
When you perform a simulation, PSpice generates an output
file (*.OUT).
DC sweep analysis
You can visually verify the DC response of the clipper by
performing a DC sweep of the input voltage source and
displaying the waveform results in the Probe window in
PSpice. This example sets up DC sweep analysis parameters
to sweep Vin from -10 to 15 volts in 1 volt increments.
Transient analysis
This example shows how to run a transient analysis on the
clipper circuit. This requires adding a time-domain voltage
stimulus as shown in Figure 2-13.
4 Scroll down (or from the View menu, point to Zoom, then
choose Out).
5 Place a VSTIM part (from the PSpice library
SOURCSTM.OLB) as shown in Figure 2-13.
6 From the Edit menu, choose Paste.
7 Place the ground part under the VSTIM part as shown in
Figure 2-13.
8 From the View menu, point to Zoom, then choose All.
9 From the File menu, choose Save to save the design.
7 Click OK.
8 From the File menu, choose Save to save the stimulus
information. Click Yes to update the schematic.
9 From the File menu, choose Exit to exit the Stimulus
Editor.
TSTOP = 2ms
Start saving data after = 20ns
6 Click OK to close the Simulation Settings dialog box.
7 From the PSpice menu, choose Run to perform the
analysis.
PSpice uses its own internal time steps for computation.
The internal time step is adjusted according to the
requirements of the transient analysis as it proceeds.
PSpice saves data to the waveform data file for each
internal time step.
Note: The internal time step is different from the Print
Step value. Print Step controls how often optional text
format data is written to the simulation output file (*.OUT).
AC sweep analysis
The AC sweep analysis in PSpice is a linear (or small signal)
frequency domain analysis that can be used to observe the
frequency response of any circuit at its bias point.
Parametric analysis
Note: Parametric analysis is not included in PSpice A/D
Basics.
Tip
You can avoid some of the typing for the Trace
Expression text box by selecting V(OUT) twice in the
trace list and inserting text where appropriate in the
resulting Trace Expression.
3 Click OK.
Note: The difference in gain is apparent. You can also plot the
difference of the waveforms for runs 21 and 1, then use
the search commands to find certain characteristics of
the difference.
4 Plot the new trace by specifying a waveform expression:
c. Click OK.
5 Use the search commands to find the value of the
difference trace at its maximum and at a specific
frequency:
a. From the Trace menu, point to Cursor and choose
Display.
b. Right-click then left-click the trace part (triangle) for
Vdb(Out)@1 - Vdb(Out)@21. Make sure that you
left-click last to make cursor 1 the active cursor.
c. From the Trace menu, point to Cursor and choose
Max.
Performance analysis
Note: Performance analysis is not available in
PSpice A/D Basics.
d. Click OK.