User`s guide

Definin
g
Symbol Attributes Needed for Simulation 5
-25
Di
g
ital stimulus s
y
mbols with variable width pins
template
For a digital stimulus device template (such as that for a
DIGSTIM symbol), a pin name can be preceded by a *
character. This signifies the pin can be connected to a bus and
the width of the pin is set equal to the width of the bus.
Template:
U^@REFDES STIM(%#PIN, 0) %*PIN
\n+ STIMULUS=@STIMULUS
where #PIN refers to a variable width pin.
Sample translation:
U_U1 STIM(4,0) 5PIN1 %PIN2 %PIN3 %PIN4
+ STIMULUS=mystim
where the stimulus is connected to a four-input bus,
a[0-
3]
.
Pin callout in subcircuit templates
The number and sequence of pins named in a template for a
subcircuit must agree with the definition of the subcircuit
itself—that is, the node names listed in the .SUBCKT statement,
which heads the definition of a subcircuit. These are the pinouts
of the subcircuit.
Example: Consider the following first line of a (hypothetical)
subcircuit definition:
.SUBCKT SAMPLE 10 3 27 2
The four numbers following the name
SAMPLE
—10, 3, 27, and
2—are the node names for this subcircuit’s pinouts.
Now suppose that the symbol definition shows four pins:
IN+ OUT+ IN- OUT-
The number of pins on the symbol equals the number of nodes
in the subcircuit definition.
Note
For clarity, the
TEMPLATE attribute value is
shown here in multiple lines;
in a symbol definition, it is
specified in one line (no line
breaks).
To find out how to define
subcircuits, refer to the
.SUBCKT command in the online
M
icroSim PSpice A/D Reference
M
anual.