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 Control Language<br />

Statement Overview<br />

Tip<br />

See “.STEP” in the Eldo Reference Manual.<br />

Related Topics<br />

Flow Control Statements<br />

While Loops<br />

The while construct is very simple; the sequence of statements between while and endwhile is<br />

repeatedly executed as long as the condition specified on the while command is true. If the<br />

condition is false from the beginning (when the while command is first encountered) no<br />

iteration is performed at all.<br />

The break and continue keywords can be used inside these loops.<br />

set i = 0<br />

set wstr = ""<br />

while (i != n && passfail == 1)<br />

endif<br />

cload[i] = cloadstart + i*(cloadstop-cloadstart)/(n-1)<br />

simulation(\<br />

tran_options( ),\<br />

measure_trop(cload=cload[i], trise=1n,\<br />

signal="v(out)"), tprop[i]=@tp , passfail = @passfail)<br />

if (passfail != 1)<br />

sprint (wstr, "Cannot complete measure_tprop() task for\<br />

cload=%.5g\n",\cload[i])<br />

fprint (stdout, wstr)<br />

i = i + 1<br />

endwhile<br />

See “Variables” on page 821, “Flow Control Statements” on page 835, “Defining and Running<br />

Simulations” on page 841, and the fprint and sprint functions for more information on the<br />

concepts used in the example.<br />

Related Topics<br />

Flow Control Statements<br />

838<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!