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

.define_task my_vector_sum (a[]=0, b[]=0, @sum[]=0)<br />

set tmp=0 i=0<br />

if ((a.imin != b.imin)) || (a.imax != b.imax))<br />

printf (stdout, "error")<br />

return<br />

endif<br />

step (type=linear, param=i, start=a.imin, stop=a.imax, step=1)<br />

sum[i] = a[i] + b[i]<br />

endstep<br />

.end_define_task<br />

The corresponding call from another task would be:<br />

set tprop1[0,99]=0.1 tprop2[0,99]=10.7 total[0,99]=0<br />

my_vector_sum (a=tprop1, b=tprop2, total=@sum)<br />

Related Topics<br />

Variables<br />

Library of Functions for Tasks<br />

Waveforms<br />

Waveforms are represented using a specific type of variable. They enable easy communication<br />

with the simulator, which creates this type of object through .PLOT commands for example.<br />

The normal usage of waveforms is to retrieve a waveform from a simulation, and possibly use it<br />

within some calculations as part of a task.<br />

Tip<br />

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

The waveform object is created and filled by the simulator, under normal usage. A library of<br />

functions operating directly on waveforms is available. It is possible to read the size of the<br />

waveforms (its number of points, its full name, and so on, from within a task or function.<br />

Complex and compound waveforms are also supported.<br />

The following operators are supported on waveforms: +, -, *, /, %, ==, !=, >=, ?, >,

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

Saved successfully!

Ooh no, something went wrong!