10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simulator Compatibility<br />

Arithmetic Functions and Operators in Compat Mode<br />

Warning 1484: AC analysis will not be performed during transient<br />

because of the commands ordering.<br />

• .tran followed by .ac followed by another .tran<br />

The first transient is performed, then AC + transient as in the first case<br />

Related Topics<br />

HSPICE Compatibility<br />

Arithmetic Functions and Operators in Compat<br />

Mode<br />

Some arithmetic functions/operators have different behavior in HSPICE compatibility mode.<br />

The following rules apply:<br />

log(x) = sign(x) * log(abs(x))<br />

log10(x) = sign(x) * log10(abs(x))<br />

db(x) = sign(x) * 20.0*log10*abs(x))<br />

sqrt(x) is -sqrt(abs(x)) if x is negative.<br />

x**n is computed as x**n if x is positive, x**(INT(n)) if x is negative, and 0 if x is 0.<br />

The power operator (^) has highest precedence (same as standard Eldo).<br />

Note<br />

In Eldo standard mode:<br />

sqrt(x) returns an error if x is negative.<br />

x**n is computed as exp(n*log(x)) if x is strictly positive, 0 otherwise.<br />

EVAL Keyword<br />

When the -compat argument is active, the function keyword EVAL is not required in<br />

conditional expressions. For example:<br />

r1 1 2 '(p1 > p2 ? p2: p1)'<br />

Will be the equivalent of:<br />

r1 1 2 'eval(p1 > p2 ? p2: p1)'<br />

Related Topics<br />

Arithmetic Functions<br />

Eldo® User's Manual, 15.3 177

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

Saved successfully!

Ooh no, something went wrong!