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

swapSweep

swapSweep(
o_waveform
t_sweepVariable
n_xValue
)
=> o_waveform / nil

Description

Swaps x-axis values with the specified sweep variable.

Arguments

o_waveform

Waveform whose x-axis values you want to swap with a sweep variable.

t_sweepVariable

Name of the sweep variable.

n_xValue

X-axis value at which the specified waveform is swapped with the sweep variable.

Value Returned

o_waveform

Waveform that has x-axis values swapped with the sweep variable.

nil

X-axis values of the specified waveform cannot be swapped because of an error.

Examples

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

awvCreatePlotWindow()
=> window:3

The following example opens simulation results stored in the specified directory.

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

The following example selects the tran result from the specified results directory.

selectResult('tran)
=> stdobj@0x3295cbc0

The result tran contains a waveform out generated by simulating parametric data using the sweep variables, vdd and temp. The following example stores the waveform object ID of the signal out to a variable waveform.

waveform=v("out")
=> srrWave:0x36c69020

The following example plots the waveform out in the Waveform window that you created using the function awvCreatePlotWindow.

plot waveform
=> t

The following example swaps x-axis values of waveform out at x=50ns with the sweep variable vdd.

swapWaveformVdd=swapSweep(waveform "vdd" 50ns)
=> srrWave:0x36c690d0

The following example plots the swapped waveform.

plot swapWaveformVdd
=> t

Note that the output waveform has x axis swapped with the specified sweep variable vdd.

The following example swaps x-axis values of waveform out at x=50ns with the sweep variable temp.

swapWaveformTemp=swapSweep(waveform "temp" 50ns)
=> srrWave:0x36c69270

The following example plots the swapped waveform.

plot swapWaveformTemp
=> t

Note that the output waveform has x axis swapped with the specified sweep variable temp.


Return to top
 ⠀
X