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 12—Overshoot Extraction of an Opamp<br />

Netlist Explanation<br />

.PARAM pCX=0.2P<br />

CX M8D OUT pCX ! COMPENSATION CAP.<br />

CL OUT 0 1p ! LOAD CAP.<br />

The above lines specifies the circuit has a capacitive load, and a compensation capacitor is set<br />

so that phase margin is approx. 45°.<br />

.CONNECT INN OUT<br />

The above line specifies the opamp is connected in follower configuration.<br />

.OPTION tuning=vhigh<br />

The above line sets the simulator accuracy to very high.<br />

.tran 1n 1000n<br />

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

1000ns with a plotting increment of 1ns.<br />

VDD VDD 0 1.65V<br />

VSS VSS 0 -1.65V<br />

VB BIAS 0 0.95V<br />

VINP INP 0 PULSE -0.9 0.9 10n 1n 1n 500n 1000n<br />

The above lines specify the power supplies, bias, and transient input (a step function on the<br />

positive input).<br />

.PLOT TRAN V(INP) V(OUT)<br />

The above lines request voltage plots of the input and output signals.<br />

.EXTRACT TRAN LABEL=povershoot abs((MAX(V(OUT)) - 0.9)/0.9)*100<br />

.EXTRACT TRAN LABEL=novershoot abs((MIN(V(OUT)) + 0.9)/0.9)*100<br />

The above lines extract the overshoot in as a percentage.<br />

.OPTION numdgt=3<br />

.PRINTFILE TRAN extract(povershoot) extract(novershoot)<br />

+ file=opamp_overshoot.txt<br />

The .PRINTFILE statement is used to print results in tabular format to an ASCII file,<br />

opamp_overshoot.txt. The measurements from the .EXTRACT statements are printed to the<br />

file. The NUMDGT option is specified to limit the number of decimals used when printing<br />

numbers.<br />

1302<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!