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

Monte Carlo Analysis<br />

Tolerance Setting Using DEV, DEVX or LOT<br />

• This example specifies five Monte Carlo runs of the transient analysis at the output node<br />

n5. All devices with the model name rmod have a dev tolerance attached to their<br />

nominal value:<br />

.model rmod res dev=2%<br />

...<br />

.mc 5 v(n5)<br />

.tran 1n 100n<br />

.plot tran v(n5)<br />

• This example specifies five Monte Carlo runs of the transient analysis at the output node<br />

n5. All devices with the model name cmod have a lot tolerance with a Gaussian<br />

distribution, where the standard deviation is two percent of the nominal value:<br />

.model cmod cap lot/gauss=2%<br />

...<br />

.mc 5 v(n5)<br />

.tran 1n 50n<br />

.plot tran v(n5)<br />

Tip<br />

An example of this type of analysis can also be found in “Example 7—Monte Carlo<br />

Analysis Basic” on page 1290.<br />

• This example illustrates a case of LOT/DEVX equivalence. Replacing LOT by DEVX<br />

will generate the same Monte Carlo results.<br />

* test LOT/DEVX equivalence<br />

.subckt res2 a b param: rval=1k<br />

.param rvalstat='2*rval' lot=10%<br />

r1 a b rvalstat<br />

r2 a b rvalstat<br />

.ends<br />

va a 0 dc 2<br />

vb b 0 dc 0<br />

x1 a b res2 rval=1k<br />

x2 a b res2 rval=1k<br />

.dc<br />

.mc 100 seed=1<br />

.extract dc label=i1_1 i(x1.r1)<br />

.extract dc label=i1_2 i(x1.r2)<br />

.extract dc label=i2_1 i(x2.r1)<br />

.extract dc label=i2_2 i(x2.r2)<br />

.option aex dump_mcinfo<br />

.end<br />

Eldo® User's Manual, 15.3 449

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

Saved successfully!

Ooh no, something went wrong!