next up previous contents index
Next: The !check Command: Database Up: Electrical Previous: Electrical   Contents   Index


The !calc Command: Calculate Parameter Expression

Syntax: !calc expression
This command started out as a debugging aid for the parameter handling code, but is actually pretty useful.

The expression is a math expression involving constants, parameter names, and the usual math operations and functions as provided for WRspice expressions. This is separate from the script expression parser, but rather similar in operation (the two may merge some day). The new expression handler accepts the a ? b : c construct, which is one difference.

Before evaluation, all parameter definitions in the electrical current cell are tabulated. This includes the param properties of the cell, and any .param lines found in labels on the SPTX layer. Parameters found can be used by name in the expression.



Stephen R. Whiteley 2022-05-28