10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Netlist Setup<br />

Expressions<br />

Expressions<br />

Expressions can be used in a netlist with the following restrictions.<br />

• Numerical expressions must be contained within braces, { and }, single quotes, ' and ', or<br />

parentheses, ( and ).<br />

• String expressions should be contained in double quotes, " and ".<br />

• Mathematical grouping within expressions must be done using normal parentheses, (<br />

and ).<br />

• Constants and parameters may be used in expressions, together with the built-in<br />

functions (see “Arithmetic Functions” on page 109) and operators (see “Operators” on<br />

page 115).<br />

Expressions may be used in the following situations:<br />

• Parameters in the calculation of MOS geometries and R, C and L values.<br />

• Parameter values in the .MODEL command.<br />

• Time point values in the signal descriptions PULSE, PWL, SFFM, SIN and EXP.<br />

• Parameters values in the .SIGBUS command.<br />

• Voltage and current source values.<br />

• S and Z transform (FNS and FNZ) devices.<br />

• .PARAM, .EXTRACT and .DEFWAVE commands.<br />

• E and G sources described by functions or tables.<br />

• R, C and L devices described by functions.<br />

Examples:<br />

Tip<br />

Some parameters may appear in expressions but will cause an error if used in a<br />

.PARAM command. For more information on these see “.PARAM” in the Eldo<br />

Reference Manual.<br />

r1 1 2 {3.0*p1-4k}<br />

.model nn nmos vt0={p2-p2/2.0}<br />

e1 1 2 value={15v*sqrt(v(3,2))}<br />

.defwave pow=v(a)*i(b)<br />

.param x1={2*sqrt(a)}<br />

Note<br />

By default, double quotes are used to specify a parameter string. However, in -compat<br />

mode, double quotes are interpreted as single quotes.<br />

118<br />

Eldo® User's Manual, 15.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!