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.

Specifying Simulation Output<br />

Examples of Defining Waveforms<br />

v1 in out ...<br />

*...<br />

.defwave power_vdd=i(v1)*v(v1)<br />

• The waveform expression must consist of waves and functions which are related to the<br />

type of analysis being performed as described in the .PLOT/PRINT commands. The<br />

following is illegal and will produce false results:<br />

.defwave amplification=v(2)/v(1)<br />

*...<br />

.plot ac w(amplification)<br />

However, the following is allowed:<br />

.defwave amplification=vm(2)/vm(1)<br />

*...<br />

.plot ac wdb(amplification)<br />

• The waveform expression may use the result of some extracts from a sweep analysis<br />

through direct reference to the label holding the result or use of the EXTRACT()<br />

accessor function. The following is allowed:<br />

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

.defwave tran foo=v(1)+extract(m1) ! using the accessor function<br />

.extract sweep label=m2 min(extract(m1))<br />

.extract sweep label=m3 yval(extract(m1),2.5)<br />

The following alternative is also allowed:<br />

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

.defwave tran foo=v(1)+m1 ! direct reference to the extract label<br />

.extract sweep label=m2 min(m1)<br />

.extract sweep label=m3 yval(m1,2.5)<br />

• The PWL function in .DEFWAVE can not be used in complex expressions. An error<br />

will be generated if the .DEFWAVE uses the function with other operators or<br />

mathematical functions. The following is not accepted:<br />

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

However, the following is allowed:<br />

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

Examples of Defining Waveforms<br />

Plot the AC power of the vxx voltage source:<br />

.defwave powf = 0.5*(vdip(vxx) * CONJ(I(vxx)))<br />

.plot ac wr(powf)<br />

Example of applying a wave operator:<br />

Eldo® User's Manual, 15.3 337

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

Saved successfully!

Ooh no, something went wrong!