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

Statement Overview<br />

Example Two<br />

.define_testbench overshoot (tmax=1000n)<br />

.connect inn out<br />

.tran 0 tmax<br />

Vinp inp 0 pulse ...<br />

.plot tran vout_wave=v(out)<br />

.end_define_testbench<br />

.define_task opamp_max_overshoot<br />

/*<br />

* This example shows how to retrieve a simple TRAN waveform,<br />

* and use it to extract its maximum value<br />

* (a simple way using the predefined waveform function library).<br />

*/<br />

set vout=0<br />

set max_v=-1000 fmax=0<br />

simulation(<br />

+ powersupply(pvdd = 2.0),<br />

+ overshoot(tmax=100e-9),<br />

+ vout = @vout_wave)<br />

max_v = max(vout)<br />

t_max = xval(vout, max_v)[1]<br />

fprint (stdout, "Maximum overshoot : %.5g at time = %.5g.\n", max_v,<br />

t_max)<br />

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

See Library of Functions for Tasks for the complete list of functions operating on waveforms.<br />

Related Topics<br />

Variables<br />

Defining and Running Simulations<br />

Library of Functions for Tasks<br />

Files<br />

File type variables are used to hold the logical names of files.<br />

For example:<br />

Eldo® User's Manual, 15.3 833

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

Saved successfully!

Ooh no, something went wrong!