User Guide
Using the Create Subcircuit command
115
Saving the edits and updating the schematic
When you choose Save from the File menu, two things
happen:
• The Model Editor saves the model definition to the
model library.
• The schematic page editor updates the
Implementation property value to Q2N2222-MC for
the Q6 part instance.
In this example, the default model library is MY.LIB. If
MY.LIB does not already exist, the Model Editor creates
and saves it in the current working directory. The
schematic page editor then automatically configures it as
a design model library for use with the current design
only.
Now you are ready to set up and run the Monte Carlo
analysis.
Using the Create Subcircuit
command
The Create Subcircuit command creates a subcircuit
netlist definition for the displayed level of hierarchy and
all lower levels in your design.
The schematic page editor does the following things for
you:
•
Maps any named interface ports at the active level of
hierarchy to terminal nodes in the PSpice .SUBCKT
statement.
•
Saves the subcircuit definition to a file named
DESIGN_NAME.SUB.
Before you can use the subcircuit definition in your
design, you need to:
•
Create a part for the subcircuit.
I
f
you veri
f
y t
h
e mo
d
e
l
l
i
b
rary
configuration (in the Simulation Settings
dialog box, click the Libraries tab), you see
entries for NOM.LIB* (for global use, as
denoted by the asterisk) and MY.LIB (for
design use, no asterisk) in the Library files
list.
You can change the model reference for
this part back to the original Q2N2222 by
following the procedure To change
model references for part
instances on your design on
page 4-117.
T
h
e Create Su
b
circuit comman
d
d
oes not
help you create a hierarchical design. You
need to do this yourself before using the
Create Subcircuit command. For
information on hierarchical designs and
how to create them, refer to the OrCAD
Capture User’s Guide.
Pspug.book Page 115 Wednesday, November 11, 1998 1:14 PM