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

set i = 0<br />

set cumul = 0<br />

set nb_errors = 0<br />

/* Use arrays to prevent concurrency errors. */<br />

set r_val[] = 0<br />

set res[] = 0<br />

set t2[] = 0<br />

/* Parallel loop for simulations. */<br />

para_step (type=step,<br />

+ param=i,<br />

+ start=10k,<br />

+ stop=100k,<br />

+ step=10k)<br />

r_val[ijob()] = i<br />

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

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

/* Forbidden to compute cumul here (concurrency issue). */<br />

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

end_para_step<br />

/* Sequential loop to analyze results;<br />

* cumul can be computed only here.<br />

*/<br />

for (i = res.imin;<br />

+ i

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

Saved successfully!

Ooh no, something went wrong!