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 20—DC Mismatch Comparison with Monte Carlo Analysis using ECL<br />

.define_testbench _mc(nb_mc_run=10)<br />

.mc nb_mc_run<br />

.extract mc label=mc_offset mcstd(offset)<br />

.extract mc label=mc_power mcstd(power)<br />

.end_define_testbench<br />

The above lines define the testbench to be used for the Monte Carlo analysis including<br />

information to be extracted.<br />

.define_task run()<br />

set dcm_offset=0<br />

set dcm_power=0<br />

set mc_offset=0<br />

set mc_power=0<br />

simulation( dcm(), dcm_power=@dcm_power, dcm_offset= @dcm_offset )<br />

simulation( _mc(nb_mc_run=500), mc_power=@mc_power, mc_offset=<br />

@mc_offset )<br />

The above lines define the task to be used for the DCMISMATCH and Monte Carlo analyses.<br />

fprint(stdout, "\nThis is an ECL-controlled simulation, comparing the<br />

global results of DCMISMATCH and MONTECARLO.\n")<br />

fprint(stdout, "The values reported below are the 1-sigma estimates of<br />

the offset and power quantities, as estimated with both methods.\n\n")<br />

fprint(stdout, "DC mismatch : offset : %e\n", dcm_offset)<br />

fprint(stdout, "DC mismatch : power : %e\n", dcm_power)<br />

fprint(stdout, "Monte Carlo : offset : %e\n", mc_offset)<br />

fprint(stdout, "Monte Carlo : power : %e\n", mc_power)<br />

.end_define_task<br />

The above lines specify the printing of the extracted results in a custom format.<br />

.run<br />

The above line executes the previously defined task named run.<br />

Simulation Results<br />

This is an ECL-controlled simulation, comparing the global results of<br />

DCMISMATCH and MONTECARLO.<br />

The values reported below are the 1-sigma estimates of the offset and<br />

power quantities, as estimated with both methods.<br />

DC mismatch : offset : 6.033827e-03<br />

DC mismatch : power : 1.285868e-06<br />

Monte Carlo : offset : 6.071414e-03<br />

Monte Carlo : power : 1.278497e-06<br />

Eldo® User's Manual, 15.3 1323

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

Saved successfully!

Ooh no, something went wrong!