User`s guide

Definin
g
Symbol Attributes Needed for Simulation 5
-21
Attribute names in templates
Attribute names are preceded by a special character as follows:
[ @ | ? | ~ | # | & ]<identifier>
The schematic editor processes the attribute according to the
special character as shown in the following table.
Separator characters include commas (,), periods (.), semi-
colons (;), forward slashes (/), and vertical
bars ( | ). You must always use the same character to specify an
opening-closing pair of separators.
Note
You can use different separator characters to nest
conditional attribute clauses.
*.
s
is a separator character
This syntax...
*
Is replaced with this...
@<
id
> Value of <
id
>. Error if no <
id
> attribute or if
no value assigned.
&<
id
> Value of <
id
> if <
id
> is defined.
?<
id
>
s...s
Text between
s...s
separators
if <
id
> is defined.
?<
id
>
s...ss...s
Text between the first
s...s
separators if <
id
> is
defined, else the second
s...s
clause.
~<
id
>
s...s
Text between
s...s
separators if <
id
> is
undefined.
~<
id
> s...ss...s Text between the first
s...s
separators if <
id
> is
undefined, else the second
s...s
clause.
#<
id
>
s...s
Text between
s...s
separators if <
id
> is defined,
but delete rest of template if <
id
> is undefined.
Example: The template fra
g
ment
?G|G=@G||G=1000| uses the
vertical bar as the separator
between the if-then-else parts of
this conditional clause. If G has a
value, then this fra
g
ment
translates to
G=<G attribute
value>. Otherwise, this
fra
g
ment translates to G=1000.