User`s guide
4
-
4 Creatin
g
and Editin
g
Models
Example:
* FIRST ORDER RC STAGE
.SUBCKT LIN/STG IN OUT AGND
+ PARAMS: C1VAL=1 C2VAL=1 R1VAL=1 R2VAL=1
+ GAIN=10000
C1 IN N1 {C1VAL}
C2 N1 OUT {C2VAL}
R1 IN N1 {R1VAL}
R2 N1 OUT {R2VAL}
EAMP1 OUT AGND VALUE={V(AGND,N1)*GAIN}
.ENDS
How Are Models
Or
g
anized?
The key concepts behind model organization are as follows:
• Model definitions are saved in files called libraries.
• Model libraries must be configured so PSpice A/D searches
them for definitions.
• Depending on the configuration, model libraries are
available either to a specific design or to all designs.
Model Libraries
Device model and subcircuit definitions are organized into
model libraries. Model libraries are text files that contain one or
more model definitions. Typically, model library names have a
.lib extension.
Most model libraries contain parts of similar type. For vendor-
supplied parts, libraries are also partitioned by manufacturer. To
find out more about the parts contained in a library, read the
comments in the file header.
You can use the MicroSim Text
Editor, or any other standard text
editor, to view model definitions
in the libraries.
Example: motor_rf.lib
contains models for Motorola-
made RF bipolar transistors.