Technical data
virtual expand
ModelSim EE/SE Command Reference ModelSim Commands CR-183
virtual expand
The virtual expand command produces a list of all the non-virtual objects
contained in the virtual signal(s). This can be used to create a list of arguments for
a command that does not accept or understand virtual signals.
Syntax
virtual expand
[-base] [<path>|<wildcard>]+
Arguments
-base
Causes the root signal parent to be output in place of a subelement. Optional. So
for:
power add [virtual expand -base myVirtualSignal]
the resulting command after substitution would be:
power add signala signalb signalc
Examples
power add [virtual expand myVirtualSignal]
Adds the elements of a virtual signal to the power reporting tool.
In the Tcl language, the square brackets specify that the enclosed command should
be executed first ("virtual expand ..."), then the result substituted into the
surrounding command. So if myVirtualSignal is a contatenation of signala,
signalb.rec1 and signalc(5 downto 3), the resulting command after substitution
would be:
power add signala signalb.rec1 {signalc(5 downto 3)}
The slice of signalc is quoted in curly braces automatically because it contains
spaces.
See also
virtual signal command
(CR-193), virtual function command (CR-184), virtual
region command
(CR-190), virtual delete|describe|define command (CR-182),
vmap command
(CR-207), virtual log|nolog command (CR-189), virtual save
command
(CR-191), virtual show|count command (CR-192), virtual type
command
(CR-196), searchLog command (CR-144)