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 27—Monte Carlo Analysis Autostop<br />

• .AC—AC analysis.<br />

• .MC—Monte Carlo analysis.<br />

• .EXTRACT—Extract characteristics from the simulator results.<br />

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

Netlist Explanation<br />

.ac dec 1000 1e6 100e6<br />

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

frequency range 1MHz to 100MHz with 1000 steps per decade.<br />

.mc 2000 all nbbins=50 autostop=std_max_conv<br />

The Monte Carlo command specifies 2000 runs as a hard stop. Eldo will add samples until the<br />

autostop condition std_max_conv is met or the 2000 samples limit is reached. Parameter<br />

nbbins=50 is used to obtain better histograms.<br />

.extract ac label=bandwidth 'crossing(vdb(out), -3) / 10e6'<br />

.extract ac label=max_gain max(vm(out))<br />

.extract dc label=ivdd i(vdd)<br />

The above lines extraction the metrics of interest: maximum gain (at overshoot) and 3dB<br />

bandwidth.<br />

.param stdev_confidence=0.95<br />

.param stdev_abs_accuracy=0.00<br />

.param stdev_rel_accuracy=0.05<br />

The above parameters are passed to the mcconv function. The requirement is 5% relative<br />

accuracy, with 95% confidence level.<br />

.extract MC label=std_max_conv<br />

+ mcconv(bandwidth, STD, CONFIDENCE, 50,<br />

+ stdev_confidence, stdev_abs_accuracy, stdev_rel_accuracy)<br />

+ visible=no<br />

This extract is referenced as the austop condition in the .MC command. We look for 5% relative<br />

accuracy on the standard deviation of bandwidth, with 95% confidence level. 50 pilot runs are<br />

used to feed the CONFIDENCE algorithm.<br />

.extract MC label=meanv_bandwidth_MEAN_VALUE<br />

.extract MC label=stdev_bandwidth_CI_95p_INF<br />

+ '(1-stdev_rel_accuracy) * mcstd(bandwidth)'<br />

.extract MC label=stdev_bandwidth_ESTIMATION<br />

.extract MC label=stdev_bandwidth_CI_95p_SUP<br />

+ '(1+stdev_rel_accuracy) * mcstd(bandwidth)'<br />

'mcavg(bandwidth)'<br />

'mcstd(bandwidth)'<br />

Eldo® User's Manual, 15.3 1341

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

Saved successfully!

Ooh no, something went wrong!