User Guide
Defining part properties needed for simulation
141
Property names in templates
Property names are preceded by a special character as
follows:
[ @ | ? | ~ | # | & ]<identifier>
The schematic page editor processes the property
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
property clauses.
Table 4
This syntax...*
*
s is a separator character
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.
Examp
l
e: T
h
e temp
l
ate
f
ragment
?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 fragment
translates to
G=<G property value>
.
Otherwise, this fragment translates to
G=1000
.
Pspug.book Page 141 Wednesday, November 11, 1998 1:14 PM