Next: .param Line
Up: Parameters and Expressions
Previous: Parameters and Expressions
Contents
Index
Single-Quoted Expressions
Text enclosed in single quotes (') will be evaluated as an expression
as the file is read and the string will be replaced by the result.
Single-quoted expressions outside of .subckt blocks are expanded
before variable substitution and subcircuit expansion. In this case,
since evaluation is performed before shell substitution, the
expression can not contain shell variables or other `$'
references, but it can contain vectors (which must be defined before
the circuit is read). Single-quoted expressions that appear within
.subckt blocks are evaluated after variable substitution during
subcircuit expansion. Thus, these expressions can contain shell '$' constructs.
If the single-quoted expression appears to the left of an '=' sign, as
an assignment, no substitution is done. In this case, the quotes are
ignored.
Stephen R. Whiteley
2006-10-23