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

defineVec<br />

proc MY_EXPRESSION { wv_in } {<br />

# puts "hello 1"<br />

defineVec vector "2*$wv_in"<br />

# puts "hello 2"<br />

return vector<br />

}<br />

proc my_xwave { wv_in } {<br />

# puts "hello 3"<br />

defineVec vector [xwave $wv_in]<br />

# puts "hello 4"<br />

return vector<br />

}<br />

proc MY_INTEG { wv_in } {<br />

puts "hello 5"<br />

defineVec vector [integ $wv_in]<br />

puts "hello 6"<br />

return vector<br />

}<br />

proc my_exp { wv_in } {<br />

puts "hello 7"<br />

defineVec vector [exp $wv_in]<br />

puts "hello 8"<br />

return vector<br />

}<br />

Then calls to these from an Eldo netlist must match in case, as shown below:<br />

v1 1 0 sin(1 2 1e9)<br />

r1 1 2 1k<br />

r2 2 0 1k<br />

.tran 1p 1n<br />

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

.use_tcl my_func.tcl mode=ppl<br />

.call_tcl tran where=end_of_run plot=yes label=f1 MY_INTEG(v(1))<br />

.call_tcl tran where=end_of_run plot=yes label=f2 MY_EXPRESSION(v(1))<br />

.call_tcl tran where=end_of_run plot=yes label=f3 my_xwave(v(1))<br />

.call_tcl tran where=end_of_run plot=yes label=f4 my_exp(v(1))<br />

.probe tran v(1) v(2)<br />

.end<br />

Related Topics<br />

evalExpr<br />

Making Specific Calls to User Defined Functions<br />

1148<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!