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

Task Definition<br />

A task (in other words, the sequence of statements inside the task) is never executed until it is<br />

called. There is no such thing as a predefined automatically-executed “main” task as in C.<br />

A task may be called in either of the following ways:<br />

• From within another task (in which case the calling syntax uses parenthesis and commaseparated<br />

arguments – similar to classical programming).<br />

• From the netlist using a . command, which then appears as an<br />

additional Eldo command in a regular Eldo netlist (a sequence of .<br />

calls from the .cir netlist is supported).<br />

A task may call another task defined in the same netlist/file as itself, or in another netlist/file (as<br />

long as it is included in the main netlist with a .INCLUDE or a .LIB command).<br />

Note<br />

The Eldo Control Language is case-sensitive.<br />

Examples<br />

Example One<br />

• Definition of a task printing “Hello world.” on the standard output:<br />

.define_task hello_world<br />

fprint (stdout, "Hello world.\n")<br />

.end_define_task<br />

See the fprint function for more information.<br />

Example Two<br />

• Definition of a task running some simulations:<br />

Eldo® User's Manual, 15.3 815

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

Saved successfully!

Ooh no, something went wrong!