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.

Eldo Netlist Setup<br />

Arithmetic Functions<br />

Function<br />

STRNCMP(str1,str2,n)<br />

STRCASECMP(str1,str2)<br />

STRNCASECMP(str1,str2,n)<br />

TAN(val)<br />

TANH(val)<br />

TRUNC(val)<br />

Table 4-2. Arithmetic Functions and Operators (cont.)<br />

Returns<br />

Compare the first n characters of two strings. Returns logical true<br />

(1) if the first n characters of the strings str1 and str2 are the same,<br />

and returns logical false (0) otherwise. Case sensitive.<br />

Compare the strings str1 and str2, ignoring case, and returns<br />

logical true (1) if the two are identical, and logical false (0)<br />

otherwise.<br />

Compare the first n characters of two strings, ignoring case.<br />

Returns logical true (1) if the first n characters of the strings str1<br />

and str2 are the same, and returns logical false (0) otherwise.<br />

Tangent of val, where val is defined in radians<br />

Hyperbolic tangent of val<br />

Truncated value of val (integer part of real value)<br />

WINTEG(wave [, t]) Returns the time or frequency integral of waveform wave at time t.<br />

Value returned depends on the current x-axis value.<br />

Table 4-3. Arithmetic Functions Used Only in .EXTRACT, .DEFWAVE,<br />

.SETSOA<br />

Function<br />

Returns<br />

COMPLEX(a, b) Returns a complex number using “a” as the real part and “b” as the<br />

imaginary part<br />

CONJ()<br />

IMAG()<br />

MAGNITUDE()<br />

REAL()<br />

STOSMITH(val)<br />

YTOSMITH(val)<br />

ZTOSMITH(val)<br />

VALUEOF()<br />

Returns the conjugate of a complex number<br />

Returns the imaginary part of a complex number<br />

Returns the magnitude of a complex number<br />

Returns the real part of a complex number<br />

Returns a normalized value of a complex quantity. These functions<br />

can be used to convert complex functions (S/Y/Z parameters<br />

generated by a .STEP analysis) so they can be correctly plotted in a<br />

Smith chart; an “example” is given in the .PLOT command in the<br />

Eldo Reference Manual.<br />

Returns the current value of an extract. For example:.tcl_wave bar<br />

= TEST("value_of_meas",valueof(meas(foo)))<br />

112<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!