Technical data

add wave
274
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
{ <item_name> [-flatten] { sig1 sig2 sig3 ... } }
Creates a user-defined bus in place of <item_name>; ‘sig
i’
are signals to be concatenated
within the user-defined bus. Optional. The following option is available:
-flatten
Creates an array signal that cannot be expanded to show waveforms of
individual elements. Gives greater flexibility in the types of elements that can
be combined, but loses the original element names. Without the
-flatten
option,
all items must be either all scalars or all arrays of the same size. With
-flatten
,
specified items may be either scalars or various sized arrays as long as they have
the same element enumeration type.
Note:
You can use the
Edit > Combine
selection from the "Wave window" (p168) menu to create a user-
defined bus.
Examples
add wave -logic -color gold out2
Displays an item named
out2
. The item is specified as being a logic item presented in gold.
add wave -hex { address { a_7 a_6 a_5 a_4 a_3 a_2 a_1 a_0 } }
Displays a user-defined, hex formatted bus named
address
.