10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Eldo Control Language<br />

Parallel Operation<br />

.define_testbench tb_netlist(pr_value=100k, pc_value=10u)<br />

.param pr=pr_value<br />

.param pc=pc_value<br />

v1 1 0 PWL 0 0 0.1 3<br />

r1 1 2 pr<br />

c1 2 0 pc<br />

.tran 1 10<br />

.extract label=t2 xthres(v(2), 2)<br />

.end_define_testbench<br />

.define_task t_main_para<br />

set i = 0<br />

set r_val[] = {10k, 20k, 30k, 40k, 50k}<br />

set t2[] = 0<br />

/* Run 5 different simulations in parallel for each value of r1<br />

* and get the extract results inside the array named t2.<br />

*/<br />

set res = para(simulation(tb_netlist(pr_value=r_val[ijob()]),<br />

+ t2[ijob()]=@t2),<br />

+ simulation(tb_netlist(pr_value=r_val[ijob()]),<br />

+ t2[ijob()]=@t2),<br />

+ simulation(tb_netlist(pr_value=r_val[ijob()]),<br />

+ t2[ijob()]=@t2),<br />

+ simulation(tb_netlist(pr_value=r_val[ijob()]),<br />

+ t2[ijob()]=@t2),<br />

+ simulation(tb_netlist(pr_value=r_val[ijob()]),<br />

+ t2[ijob()]=@t2))<br />

for (i=res.imin; i

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

Saved successfully!

Ooh no, something went wrong!