User`s guide
5
-
20 Creatin
g
Symbols for Models
TEMPLATE
The TEMPLATE attribute defines the PSpice A/D syntax for
the symbol’s netlist entry. When netlisting, the schematic editor
substitutes actual values from the circuit into the appropriate
places in the TEMPLATE syntax, then writes the translated
statement to the netlist file.
Any symbol that you want to simulate must have a defined
TEMPLATE attribute. These rules apply:
• The pin names specified in the TEMPLATE attribute must
match the pin names on the symbol.
• The number and order of the pins listed in the TEMPLATE
attribute must match those for the associated .MODEL or
.SUBCKT definition referenced for simulation.
• The first character in a TEMPLATE must be a PSpice A/D
device letter appropriate for the symbol (such as Q for a
bipolar transistor).
TEMPLATE s
y
ntax
The TEMPLATE contains:
• regular characters that the schematic editor interprets
verbatim, and
• attribute names and control characters that the schematic
editor translates.
Re
g
ular characters in templates
Regular characters include the following:
• alphanumerics
• any keyboard symbol except the special syntactical symbols
used with attributes (@ & ? ~ #).
• white space
An identifier is a collection of regular characters of the form:
alphabetic character [any other regular character]*.
When in the schematic editor,
you cannot edit the TEMPLATE
attribute. You must run the
symbol editor to chan
g
e this
attribute.
Creatin
g
s
y
mbols not
destined for simulation
Some symbol libraries contain parts
desi
g
ned only for board layout;
PSpice A/D cannot simulate these
parts. This means they do not have
TEMPLATE attributes or that the
TEMPLATE attribute value is blank.
If you create a symbol that you don’t
want used for simulation, be sure to
delete the TEMPLATE attribute that
the symbol editor provides
automatically.
Example: Connectors are used for
board layout, but don’t take part in
simulation except to provide one or
more pins where you can place Probe
markers. Connectors have a
PKGREF attribute but no TEMPLATE
attribute.