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

Tasks<br />

Tasks<br />

This section details the scripting constructs available within the Eldo Control Language.<br />

In this section:<br />

Task Definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814<br />

Task Instantiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817<br />

Statement Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820<br />

Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839<br />

Defining and Running Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841<br />

Library of Functions for Tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854<br />

Simulation Dynamic Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014<br />

Extended Simulation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024<br />

Parallel Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1039<br />

Statistical Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058<br />

Advanced Simulation Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114<br />

Task Definition<br />

Tasks are defined as a sequence of statements, and are similar to functions in C. As opposed to<br />

simulator commands in a regular Eldo netlist (for example, .TRAN, .AC, .OPTION, and so on)<br />

which are executed more-or-less in parallel, statements inside a task are executed sequentially,<br />

much like in most sequential programming languages.<br />

A task may return nothing, in which case it is similar to a “void” C function. A task that returns<br />

a value is a function.<br />

A task definition starts with the .define_task keyword, and finishes with a .end_define_task<br />

command. A task can accept input and output arguments (except when called from the netlist, in<br />

which case the concept of an output argument is meaningless). The number of arguments is not<br />

limited; a task may have no arguments at all. The names of output arguments must be prefixed<br />

with a “@”. See Example Two.<br />

Tip<br />

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

The statements inside a task are executed sequentially whenever the task is called, using the<br />

. command. A task can be considered a <strong>user</strong>-defined (sequential)<br />

simulation command.<br />

814<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!