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.

Post-Processing Library<br />

EZwave Waveform Calculator Functions Usage<br />

EZwave Waveform Calculator Functions Usage<br />

The EZwave Waveform Calculator library can be used from Eldo through Tcl scripts. The wfc<br />

function enables full access to all the calculation operations of the EZwave Waveform<br />

Calculator.<br />

Tip<br />

See “Waveform Calculator” and the “wfc command” in the EZwave User’s and Reference<br />

Manual.<br />

Syntax<br />

wfc expression<br />

Arguments<br />

• expression<br />

Waveform Calculator expression.<br />

Examples<br />

This example shows how to pass parameters from the Eldo Tcl procedure to an EZwave wfc<br />

expression.<br />

* Passing Tcl proc parameters to a wfc expression<br />

r1 net50 0 1<br />

v1 net50 0 am(1 1 100meg 1G)<br />

.tran 20n 20n<br />

.option eps=1e-8<br />

.probe tran all<br />

.extract tran label=initial_rise tcross(v(net50), vth=1.25, occur=1)<br />

.use_tcl <strong>eldo</strong>_syntax_ko.tcl mode=ezwave<br />

.call_tcl tran where=end_of_run<br />

+ ezwave_p2p_ex(v(net50), meas(initial_rise))<br />

.end<br />

proc ezwave_p2p_ex {wave xstart} {<br />

set pk_to_pk \<br />

[wfc "peaktopeak($wave, x_start=$xstart, x_end=\"20e-9\")"]<br />

puts "The proc computed value is... $pk_to_pk"<br />

}<br />

The expression passed to wfc needs to be enclosed in double quotes if it contains Tcl variables,<br />

otherwise parentheses { } can be used. If arguments of wfc functions are strings, they need to be<br />

enclosed in single quotes (‘) or escaped double quotes (\”).<br />

Related Topics<br />

General Usage<br />

Eldo® User's Manual, 15.3 1149

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

Saved successfully!

Ooh no, something went wrong!