awvCreateBus
awvCreateBus(t_busName l_waveList r_radix) =>o_bus/nil
Description
Creates a digital bus from the specified digital waveforms and the radix type.
Arguments
|
Valid values are |
Value Returned
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 tran result of the results directory.
selectResult('tran)
=> stdobj@0x37f03410
The following examples create 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:0x382bf020
dig2=v("topLevel.net027")
=> srrWave:0x382bf030
dig3=v("topLevel.net031")
=> srrWave:0x382bf040
dig4=v("topLevel.net034")
=> srrWave:0x382bf050
The following examples create waveform objects myBus1, myBus2, and myBus3, representing digital buses generated from the specified list of digital signals, dig1, dig2, dig3, and dig4 and with the specified radix.
myBus1=awvCreateBus("myBus1" list(dig1 dig2 dig3 dig4) "Hex")
=> srrWave:0x382bf060
myBus2=awvCreateBus("myBus2" list(dig1 dig2 dig3 dig4) "Binary")
=> srrWave:0x382bf070
myBus3=awvCreateBus("myBus3" list(dig1 dig2 dig3 dig4) "Octal")
=> srrWave:0x382bf080
The following example plots the digital buses in the current Waveform window.
awvPlotWaveform(
awvGetCurrentWindow()
list(myBus1 myBus2 myBus3)
?color list("y12" "y6" "y18")
?lineStyle list("solid" "dash" "solid")
?lineThickness list("thick" "thick" "thick")
)
=> t

The following example creates a digital bus with the digital waveforms dig1 and dig2 with the Binary radix.
dig1= getData("topLevel.net021" ?result "tran" ?resultsDir "./mixed_signal.raw")
=> srrWave:0x397fa030
dig2= getData("topLevel.net034" ?result "tran" ?resultsDir "./mixed_signal.raw")
=> srrWave:0x397fa040
awvCreateBus("myBus" list(dig1 dig2) "Binary")
=> srrWave:0x397fa130
Return to top