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

Rules for Testbench Location Resolution<br />

Rules for Testbench Location Resolution<br />

When a testbench is instantiated in a netlist or in a task simulation command, the location of its<br />

definition must be resolved; in other words, Eldo must be able to locate the definition of the<br />

testbenches. The standard Eldo .LIB or .INCLUDE commands can be used so that the testbench<br />

definition can be indirectly found if it was not directly added in the base netlist.<br />

Example<br />

• File util_dev.cir<br />

This file contains a testbench defining a voltage amplifier:<br />

.define_testbench amp (in=1, out=0, vdd=10)<br />

* .MODEL definition<br />

.model q2n2222 npn is=1.9e-14 bf=150 vaf=100 ikf=.175<br />

+ ise=5e-11 ne=2.5 br=7.5 var=6.38 ikr=.012 isc=1.9e-13<br />

+ nc=1.2 rc=.4 cje=26p tf=.5e-9 cjc=11p tr=30e-9 xtb=1.5<br />

+ kf=3.2e-16 af=1.0<br />

* Circuit definition<br />

c30 in 31 47u<br />

r30 31 33 390<br />

r31 vdd 33 50k<br />

r32 33 0 15k<br />

q30 out 33 0 q2n2222<br />

r33 vdd out 750<br />

.end_define_testbench<br />

• File netlist.cir<br />

The main netlist: a low-pass filter incorporating a voltage amplifier:<br />

.include util_dev.cir<br />

r1 1 2 10<br />

l1 2 3 1.3m<br />

c1 3 0 100n<br />

r2 4 0 50k<br />

* Testbench instantiation<br />

.amp in=3 out=4 vdd=9<br />

vb 9 0 5<br />

v1 1 0 ac 1<br />

* Commands<br />

.ac dec 10 1 1g<br />

.plot ac vdb(3) vdb(4) (-250,50)<br />

.plot ac vp(3) vp(4) (-200,200)<br />

.end<br />

Related Topics<br />

Defining and Running Simulations<br />

Eldo® User's Manual, 15.3 813

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

Saved successfully!

Ooh no, something went wrong!