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

awvCreateBusFromWaveList

awvCreateBusFromWaveList(
l_waveList
[ ?busType t_busType ]
)
=> o_bus / nil

Description

Creates a digital bus from a list of specified digital waveforms.

Arguments

l_waveList

List of digital waveforms or expressions.

?busType t_busType

Radix of the bus.

Valid values are Hex, Dec, Oct and Bin.

The default value is Hex.

Value Returned

o_bus

A digital bus whose bits are the input digital waves. The first wave in the list corresponds to MSB and the last one corresponds to LSB.

nil

Digital bus cannot be created because of an error.

Examples

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

awvCreatePlotWindow()
=> window:3

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

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

The following example lists the results available in the currently open results directory.

results()
=>
(tranOp model instance output tran
    variables
)

The following example selects the result tran.

selectResult('tran)
=> stdobj@0x347b0218

The following example creates digital waveform objects dig1, dig2, dig3, and dig4 from the digital signals net021, net027, net031, and net034 signals stored in the tran results of the results directory.

dig1=v("topLevel.net021")
=> srrWave:0x36228020
dig2=v("topLevel.net027")
=> srrWave:0x36228030
dig3=v("topLevel.net031")
=> srrWave:0x36228040
dig4=v("topLevel.net034")
=> srrWave:0x36228050

The following example creates a waveform object busFromList, representing a digital bus generated from the specified list of digital signals, dig1, dig2, dig3, and dig4.

busFromList=awvCreateBusFromWaveList(list(dig1 dig2 dig3 dig4))
=> srrWave:0x362280a0

The following example plots the digital bus in the current Waveform window.

awvPlotWaveform(
    awvGetCurrentWindow()
    list(busFromList)
    ?expr list("myBus")
    ?color list("y6")
    )
=> t

The following example creates a digital bus with the digital waveforms dig1, dig2, and dig3.

dig1= getData("topLevel.net021" ?result "tran" ?resultsDir "./mixed_signal.raw")
=> srrWave:0x397fa1e0
dig2= getData("topLevel.net034" ?result "tran" ?resultsDir "./mixed_signal.raw")
=> srrWave:0x397fa1f0
dig3= getData("topLevel.dig1" ?result "tran" ?resultsDir "./mixed_signal.raw")
=> srrWave:0x397fa200
awvCreateBusFromWaveList(list(dig1 dig2 dig3))
=> srrWave:0x397fa250


Return to top
 ⠀
X