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.

Defining and Running Simulations<br />

Eldo Control Language<br />

Defining and Running Simulations<br />

The simulation command is used to launch a simulation. It is used to assemble the different<br />

pieces of netlist and testbench necessary to create the desired simulation, and to run it. Upon<br />

completion of the simulation, any .EXTRACT, .MEAS, or waveform results having a label are<br />

available for further processing, except if the simulation failed (they can be assigned to task<br />

variables as if they were output arguments of the simulation command).<br />

There are essentially two use models.<br />

• Create a simulation from the local netlist (the netlist from where the task is launched)<br />

and parameterized testbenches.<br />

• Create a simulation from external files and parameterized testbenches.<br />

Each testbench used in the simulation optionally receives parameters, which override the<br />

default values. All parameters are optional; if a parameter is not passed to a testbench, it takes<br />

its default value. If a testbench has no parameter, the action of listing the testbench in the<br />

simulation is similar to including the content of the testbench, as-is, in the assembled netlist.<br />

Simulations launched in this way can only be “child” simulations—in other words, they cannot<br />

include task executions. They must be plain, simple, classical simulations. Specifically, any task<br />

execution statements present in the submitted assembled netlist are ignored.<br />

The simulation command takes three different types of optional argument:<br />

• Arguments related to the launch of the simulation; name and log to specify the name of<br />

the generated netlist and of the log file of the simulation (it may be beneficial to specify<br />

the name of a directory so that all generated temporary files can be easily removed) and<br />

args to set specific Eldo command-line options. To change the default behavior of<br />

passing arguments, see the option in the Arguments section in “Simulation” on<br />

page 1114.<br />

• Testbench instantiations (testbench names but not prefixed with a “.” here).<br />

• Expressions to get return simulation results.<br />

Below shows an example of a simulation command:<br />

Eldo® User's Manual, 15.3 841

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

Saved successfully!

Ooh no, something went wrong!