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

Defining and Running Simulations<br />

.define_testbench tb_rc(v_extract=4)<br />

v1 1 0 pulse (0 5 0 10n 10n 5 10)<br />

r1 1 2 10k<br />

c1 2 0 100u ic=0<br />

.tran 1 20 uic<br />

.plot tran v(1,0)<br />

.plot tran v(2,0)<br />

.meas tran vect label=cross_meas trig at 0 targ v(2,0) val=v_extract<br />

.end_define_testbench<br />

.define_task t_simu<br />

set meas_res [] = 0<br />

set i = 0<br />

/* Run the simulation and get the vector result. */<br />

if (simulation( \<br />

name="simu_rc/simu_rc.cir", \<br />

tb_rc(), \<br />

meas_res=@cross_meas).simu_status == 0)<br />

fprint(stdout, "Simulation succeeded:\n")<br />

fprint(stdout, "uv crosses 4V at: [ ")<br />

for (i=meas_res.imin; i

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

Saved successfully!

Ooh no, something went wrong!