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.

Examples<br />

Example 4—AC Analysis of a Low Pass Filter<br />

Note<br />

All nodes used within the subcircuit are local nodes, in that they are only referenced within<br />

the subcircuit itself and that they do not have to correspond with the names of the nodes<br />

outside the subcircuit.<br />

r1 1 2 10<br />

l1 2 3 1.3m<br />

c1 3 0 100n<br />

r2 4 0 50k<br />

x1 3 4 9 amp<br />

The above line instantiates the subcircuit x1 of type amp connected between the nodes 3, 4, and<br />

9. As explained earlier, these nodes correspond to the nodes in, out and vdd within the<br />

subcircuit.<br />

vb 9 0 5<br />

v1 1 0 ac 1<br />

The above lines define the voltage sources in the circuit. A DC voltage source vb between the<br />

nodes 9 and 0 of value 5V, and an AC voltage source v1 connected between the nodes 1 and 0<br />

of value 1V.<br />

.ac dec 10 1 1g<br />

.plot ac vdb(3) vdb(4)<br />

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

.end<br />

The above lines indicate that an AC analysis should be performed on the circuit within the<br />

frequency range 1Hz to 1GHz with 10 steps per decade. A dB/frequency plot of the voltage at<br />

nodes 3 and 4 is requested, together with a phase/frequency plot at the same nodes.<br />

1282<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!