User`s guide

5
-
24 Creatin
g
Symbols for Models
Parameterized subcircuit call (X) template
Suppose you have a subcircuit Z that has:
two pins: a and b
a subcircuit parameter: G, where G defaults to 1000 when
no value is supplied
To allow the parameter to be changed on the schematic, treat G
as an attribute in the template.
Template
X^@REFDES %a %b Z PARAMS: ?G|G=@G|
~G|G=1000|
Equivalent template (using the if...else form)
X^@REFDES %a %b Z PARAMS: ?G|G=@G||G=1000|
Sample translation
X_U33 101 102 Z PARAMS: G=1024
where REFDES equals U33, G is set to 1024, and the
subcircuit connects to nets 101 and 102.Sample translation:
X_U33 101 102 Z PARAMS: G=1000
where the settings of the previous translation apply except
that G is undefined.
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).