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

Defining Waveforms<br />

Defining Waveforms<br />

Use the .DEFWAVE command to define a new waveform by relating previously defined<br />

waveforms and nodes. Some usage notes follow:<br />

• Combining the .PLOT command with the .DEFWAVE command can be used to<br />

generate so-called template waveforms, that is, piece-wise-linear waveforms defined by<br />

a series of arbitrary (x,y) coordinates. Using .PLOT, these templates can be displayed<br />

together with the simulation results (this is very useful when verifying whether a filter<br />

response passes or not specifications such as cutoff frequencies, minimum attenuation,<br />

and so on). For example:<br />

.DEFWAVE FILTERSPEC=PWL(1e-3,0,100k,0,500k,-60,100G,-60)<br />

.PLOT AC VDB(OUT) W(FILTERSPEC)<br />

• Waveform definitions can be specified inside subcircuit definitions. Identical complex<br />

calculations can be performed for each instance of the subcircuit. Typically the<br />

subcircuit is declared once and instanced many times. This means there is no need to<br />

have many instances of the same subcircuit with definitions of .DEFWAVE and .PLOT<br />

for each. Eldo only calculates the .DEFWAVE statements that are called, not all<br />

.DEFWAVE statements declared.<br />

• Waveform names cannot contain arithmetic operators.<br />

• Waveform names cannot contain the hierarchical separator: the period character “.”.<br />

• Only one waveform may be defined per .DEFWAVE statement.<br />

• It is not possible to use functions which expect at least one waveform as input.<br />

• Built-in PPL functions that act on a waveform cannot be used in Tcl procs that are called<br />

from .DEFWAVE statements. This is because .DEFWAVE expressions represent a<br />

numerical value, and not a waveform.<br />

• A wave is instantiated by preceding the wave name w, which can be followed by a<br />

format suffix for complex waveforms, for example: wm, wdb, wp, wi, wr are enclosed<br />

in parentheses ().<br />

• A waveform expression cannot contain a division by zero. If this is the case, 1.0×10 -15 is<br />

automatically assigned to a value.<br />

• The .DEFWAVE command is order dependent in that all components of the waveform<br />

expression must have already been defined earlier in the netlist. The following is illegal:<br />

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

*...<br />

v1 in out ...<br />

However, the following is allowed:<br />

336<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!