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

Simulation Dynamic Control<br />

Return Value<br />

The result returned by the callback function indicates if the simulation can go on after the<br />

callback has been executed. It must be 0 to continue the simulation. Any other number will stop<br />

the simulation.<br />

Note<br />

Tasks can be used as callback functions. If a task does not explicitly end with a 'return'<br />

statement, then 0 is returned by default.<br />

Example:<br />

Here is an example of how to stop the simulation once a condition has been met (when the<br />

specific frequency of an oscillator has been reached).<br />

See “Testbenches” on page 809, “Tasks” on page 814, “Variables” on page 821, “Flow Control<br />

Statements” on page 835, “Defining and Running Simulations” on page 841, and the fprint<br />

function for more information on the concepts used in the example.<br />

1018<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!