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 />

Related Topics<br />

Flow Control Statements<br />

Step Loops<br />

The step loop implements a loop with different stepping mechanisms, specified with the type<br />

argument. The step loop syntax is taken from the Eldo/SPICE .STEP command syntax.<br />

Note<br />

The type argument is optional, as the type of step loop to execute is actually defined by<br />

another parameter, but it may be used to increase readability.<br />

There are a number of variant forms of this loop:<br />

• Incremental Loop<br />

• Linear Type Loop<br />

• Log Type Loop<br />

• List Type Loop<br />

Incremental Loop<br />

The simplest variant is the incremental loop:<br />

set i = 0<br />

set tmp = 0<br />

step (type=step, param=i, start=i1, stop=i2, step=1)<br />

tmp = tmp + a[i]<br />

endstep<br />

The parameter being swept is specified with param. The start, stop, and step (or the equivalent<br />

incr or decr) define the loop structure. With this type of loop, the step is explicitly stated. The<br />

loop ends with the endstep command.<br />

Linear Type Loop<br />

This variant on the incremental loop uses the lin or linear type. In this case, the progression is<br />

still linear, but the total number of iterations is provided as an integer. The step is computed<br />

from the start, stop, and n parameters. If the n number is negative or null, or if stop is lower than<br />

or equal to start, no iteration is performed, and execution resumes after the endstep command.<br />

836<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!