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

Simulation Dynamic Control<br />

.t_osc<br />

* Remove temporary simulation files<br />

.option remove_<strong>eldo</strong>_cl_temp_files=3<br />

* Netlist<br />

.define_testbench tb_osc<br />

.model ts2 npn<br />

+ bf=10 br=1 xtb=3 is=10f eg=1.11 rb=100<br />

+ rc=10 vaf=50 tr=6n mjc=0.75 mje=0.33 vje=0.75<br />

*Colpitts Oscillator<br />

l1 1 3 5u<br />

c1 1 2 2n<br />

c2 2 3 100p<br />

r3 2 4 2200<br />

q1 3 0 2 ts2<br />

v1 1 0 5<br />

v2 4 0 -5<br />

i1 2 4 pulse(0 10u 0 5n 5n 25n 50n)<br />

.option eps=1.0e-6<br />

.tran 1u 12u<br />

.plot tran w_osc=v(1,3) (10,-10)<br />

.extract tran label=max_v_osc max(v(1,3))<br />

/* The extract to calculate the period of the waveform.<br />

* 'vect' must be specified so that all periods are<br />

* computed, and not only the first one.<br />

*/<br />

.extract tran vect label=period_osc tperiod(v(1,3), vth=0)<br />

.end_define_testbench<br />

The output is:<br />

Evolution of the frequency of the waveform from 0 s to 2.32e-06 s:<br />

frequency[ 1] = 6.964e+06 Hz<br />

frequency[ 2] = 7.563e+06 Hz<br />

frequency[ 3] = 7.677e+06 Hz<br />

frequency[ 4] = 7.676e+06 Hz<br />

frequency[ 5] = 7.689e+06 Hz<br />

frequency[ 6] = 7.702e+06 Hz<br />

frequency[ 7] = 7.687e+06 Hz<br />

frequency[ 8] = 7.624e+06 Hz<br />

1020<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!