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.

Eldo Control Language<br />

Statistical Processing<br />

.define_testbench tb_mc()<br />

.param pv=2 lot/uni=2.5%<br />

.subckt s<br />

.model resistor r level=3 w=3u l=3u rsh=100 dw=0u lot=0.05u dlr=0u<br />

dev=0.05u<br />

.param pr=agauss(1000, 20, 1)<br />

v1 1 0 pv<br />

r1 1 2 resistor<br />

r2 2 0 pr<br />

.ends<br />

x1 s<br />

x2 s<br />

.dc<br />

.plot w1=v(x1.2)<br />

.mc 100 all<br />

* To enlarge the Gaussian distributions.<br />

.option sigtail=8<br />

.end_define_testbench<br />

.define_task t_simu(extreme=1)<br />

set iparam = 0<br />

set iparam_x1_r2 = 0<br />

set nbparams = 0<br />

set nbruns = 0<br />

set res = 0<br />

set w = 0<br />

res = _simu_load(name = "tmp/tmp.cir", tb_mc())<br />

if (res.simu_status == 0)<br />

_simu_set_mc_flow()<br />

nbparams = _simu_get_nb_stat_params()<br />

/* Find the parameter we want to modify the distribution of.<br />

*/<br />

for (iparam = 1; iparam

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

Saved successfully!

Ooh no, something went wrong!