User Guide
Chapter 4 Creating and editing models
110
Editing model text
For any model, you can edit model text in the Model
Editor instead of using the Spec Entry and Parameter
frames. However, there are two cases where you must edit
the model text:
• When you want to edit models of device types not
supported by the Model Editor. The model text is
displayed automatically when you load one of these
models.
• When you want to add DEV and LOT tolerances to a
model for Monte Carlo or sensitivity/worst-case
analysis.
By typing PSpice commands and netlist entries, you can
do the following:
• change definitions, and
• create new definitions
When you are finished, the Model Editor automatically
configures the model definitions into the model libraries.
To display the model text
1 From the View menu, choose Model Text.
The Model Editor displays the PSpice syntax for
model definitions:
• .MODEL syntax for models defined as parameter
sets
•
.SUBCKT syntax for models defined as netlist
subcircuits
You can edit the definition just as you would in any
standard text editor.
Editing .MODEL definitions
For definitions implemented as model parameter sets
using PSpice .MODEL syntax, the Model Editor lists one
parameter per line. This makes it easier to add DEV/LOT
Caution—I
f
you e
d
it t
h
e text o
f
a
model that was created by entering data
sheet values, you may not be able to edit
the model in Normal view again.
To
f
in
d
out more a
b
out PSpice comman
d
and netlist syntax, refer to the online
OrCAD PSpice A/D Reference
M
anual.
Pspug.book Page 110 Wednesday, November 11, 1998 1:14 PM