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.

Specifying Simulation Output<br />

Examples of Defining Waveforms<br />

.EXTRACT LABEL = A MAX(V(1))<br />

.EXTRACT LABEL = B MAX(V(2))<br />

.STEP PARAM P1 1 3 1<br />

.DEFWAVE SWEEP my_wave = MEAS(a) + MEAS(b)<br />

.end<br />

Example using the SIGMA function to sum various items (numbers, parameters or output<br />

quantities); when items are output quantities, wildcards are accepted:<br />

.EXTRACT dc SIGMA(v(*),1.0,'p1+2')<br />

.DEFWAVE tran star3=SIGMA(ISUB(X2*.g),V(E*))<br />

Example of using the PWL function:<br />

v1 1 0 pwl ( 0 0 10n 10)<br />

r1 1 0 1<br />

.defwave tran foo = pwl(0,0,20n, meas(ex))<br />

.extract label = ex yval(v(1),5n)<br />

.tran 1n 10n<br />

.plot tran w(foo)<br />

.end<br />

Example of using the PWL, PWL_CTE and PWL_LIN functions.<br />

v1 1 0 pwl ( 0 0 10n 10)<br />

r1 1 0 1<br />

.defwave tran f1 = pwl(5n,0,7n,5,8n,5,9n,1)<br />

.defwave tran f2 = pwl_cte(5n,0,7n,5,8n,5,9n,1)<br />

.defwave tran f3 = pwl_lin(5n,0,7n,5,8n,5,9n,1)<br />

.defwave tran f4 = pwl_lin(5n,0, 5n, 5)<br />

.defwave tran f5 = pwl_lin(0n, 5)<br />

.extract label = ex yval(v(1),5n)<br />

.tran 1n 10n<br />

.plot tran w(f1) w(f2) w(f3) w(f4) w(f5)<br />

.end<br />

The plot obtained from the netlist is shown in Figure 8-2. The wave f4 demonstrates how to plot<br />

vertical waves with the .DEFWAVE command.<br />

338<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!