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

Eldo Control Language<br />

Eldo Control Language Examples<br />

A number of example files are provided to illustrate the Eldo Control Language.<br />

See Table 18-1 for directory names and descriptions of the example files provided in your<br />

installed directory: $MGC_AMS_HOME/examples/ecl/<br />

Table 18-1. Eldo Control Language Example Files<br />

Example Dir Description<br />

01-open_loop_gain Typical example of what can be done with the Control Language:<br />

- the netlist first contains the circuit of an operational amplifier;<br />

- then, some parametrized testbenches have been defined;<br />

- and last, the task specifies which simulations to perform with which<br />

testbenches to instantiate.<br />

02-hello_world Most basic example: a task printing “Hello world.”<br />

03-facto<br />

Basic example of a recursive task to compute factorial(10) to show how to<br />

use task input and output parameters.<br />

04-complex<br />

Example of a task using complex numbers. First, the task runs an AC<br />

simulation and then processes a complex result (gain and phase at 1Hz) of<br />

this simulation to display its value.<br />

05-max_gain Example of a task processing waveforms. First, the task runs an AC<br />

simulation and gets a waveform (gain of amplifier) result from this<br />

simulation and then iterates through this waveform to find its maximum<br />

value.<br />

06-max_overshoot Example of a task processing waveforms using some pre-defined<br />

functions. First the task runs a transient simulation and gets a waveform<br />

(output of the amplifier) result from this simulation and then calls the max<br />

function to find its maximum value to compute the overshoot.<br />

07-write_hello_world Basic example of a task writing “Hello world” in a file.<br />

08-rc<br />

Short example to show how to get simulation results from a task. First the<br />

task runs the simulation of a RC circuit, and then some results (parameter<br />

values, extract values, waveforms) are retrieved back in the task so that<br />

they can be processed and so that some specific values can be printed on<br />

the standard output.<br />

09-rc_pulse<br />

Short example to show how to get vector simulation results from a task.<br />

First the task runs the simulation of a RC circuit with a pulse input, and<br />

then some vector results are retrieved back in the task so that they can be<br />

processed and printed on the standard output.<br />

10-rc_step<br />

Another short example to show how to get vector simulation results from a<br />

task. First the task runs the simulation of a RC circuit for different values<br />

of the resistance, and then some vector results are retrieved back in the<br />

task so that they can be processed and printed on the standard output.<br />

Eldo® User's Manual, 15.3 803

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

Saved successfully!

Ooh no, something went wrong!