Product Documentation
Virtuoso Visualization and Analysis XL SKILL Reference
Product Version IC23.1, November 2023

awvPlotSimpleExpression

awvPlotSimpleExpression(
t_expression
[ ?plotStyle t_plotStyle ]
[ ?graphType t_graphType ]
[ ?graphModifier t_graphModifier ]
[ ?waveType g_waveType ]
)
=> t / nil

Description

Evaluates the specified expression and plots the resulting waveform.

Arguments

t_expression

Expression to be evaluated and plotted.

?plotStyle t_plotStyle

Plotting style.

Valid values are Append, Replace, New Window, and New Subwindow.

?graphType t_graphType

Type of graph.

Valid values are Default, Rectangular, Polar, Impedance, Admittance, Immittance, and RealvsImag.

?graphModifier t_graphModifier

Y axis of rectangular graphs.

Valid values are Magnitude, Phase, WPhase, Real, Imaginary, dB10, dB20.

?waveType g_waveType

Specifies whether the signal is Y versus Y or not.

Valid values are YvsY and nil.

Value Returned

t

Expression is evaluated and the resulting waveform is plotted successfully.

nil

Expression cannot be evaluated because of an error.

Examples

The following example creates a Waveform window and returns its window ID.

awvCreatePlotWindow()
=> window:3

The following example opens the results stored in the directory ampsim.raw. The tran-tran result in this directory contains the signals net35 and net10 that are used in the expression to be evaluated and plotted.

openResults("/servers/user/design/ampsim.raw")
=> "/servers/user/design/ampsim.raw"

The following example evaluates the specified expression and plots the resulting waveform in subwindow 1 of the Waveform window that you created using awvCreatePlotWindow.

awvPlotSimpleExpression("v(\"net35\" ?result \"tran-tran\")-v(\"net10\" ?result \"tran-tran\")" ?plotStyle "Append" ?graphType "" ?graphModifier "Magnitude")
=> t

The following example opens the results stored in the directory prbs.raw. The tran-tran result in this directory contain a signal jitter that is used in the expression to be evaluated and plotted.

openResults("/servers/user/design/prbs.raw")
=> "/servers/user/design/prbs.raw"

The following example evaluates the specified expression and plots the resulting eye diagram waveform in subwindow 2 of the Waveform window that you created using awvCreatePlotWindow.

awvPlotSimpleExpression("eyeDiagram(v(\"jitter\" ?result \"tran-tran\" ?resultsDir \"./prbs.raw\") 200n 400u 2*40n   ?autoCenter t )" ?plotStyle "New SubWindow" ?graphModifier "Magnitude")
=> t

Return to top
 ⠀
X