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 9—Transient and AC Analysis of a Switched Capacitor Low Pass Filter<br />

• .PLOT—Plot simulator results.<br />

Netlist Explanation<br />

.param ts = 1.000000e-05<br />

The above line specifies the sampling period used in the integrator instances.<br />

.subckt sc_int inp inm out<br />

y1 sc_ideal inp inm out<br />

y2 sc_u inm out param: c=c tp=tp<br />

.ends sc_int<br />

The above lines indicate the switched capacitor integrator subcircuit definition. The subcircuit<br />

is called sc_int and is connected between the nodes inp, inm and out.<br />

* INTEGRATOR 1<br />

xi01 0 501 1 SC_INT c=5.173415p tp=ts<br />

y002 sc_n pin: 2 0 501 0 param: c=1.347451p tp=ts<br />

y003 sc_n pin: INPUT 0 501 0 param: c=1.623277p tp=ts<br />

y004 sc_n pin: 1 0 501 0 param: c=1.000000p tp=ts<br />

* INTEGRATOR 2<br />

xi05 0 502 2 sc_int c=5.839726p tp=ts<br />

y006 sc_i pin: 1 0 502 0 param: c=1.232076p tp=ts ldi=2<br />

y007 sc_i pin: 3 0 502 0 param: c=1.000000p tp=ts ldi=2<br />

* INTEGRATOR 3<br />

xi08 0 503 3 sc_int c=4.117249p tp=ts<br />

y009 sc_n pin: 2 0 503 0 param: c=1.660161p tp=ts<br />

y010 sc_n pin: 3 0 503 0 param: c=1.000000p tp=ts<br />

.tran 1u 500u<br />

.ac dec 500 100 1meg<br />

The above lines specify that a transient analysis should be performed on the circuit lasting<br />

500μs with a plotting increment of 1μs; and an AC analysis within the frequency range 100Hz<br />

to 1MHz with 500 steps per decade.<br />

.plot tran v(input)<br />

.plot tran v(1)<br />

.plot tran v(2)<br />

.plot tran v(3)<br />

The above lines specify that voltage/time plots should be performed on separate graphs of the<br />

voltage at nodes input, 1, 2, and 3.<br />

.plot ac vdb(1)<br />

.plot ac vdb(2)<br />

.plot ac vdb(3)<br />

The above lines specify that dB/frequency plots of the nodes 1, 2 and 3 are requested on<br />

separate graphs.<br />

1296<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!