Technical data
virtual signal
CR-194 ModelSim Commands ModelSim EE/SE Command Reference
& a_00) } a
This command reconstructs a bus "sim:/chip/alu/a(4 downto 0)", using VHDL
notation, assuming that a_ii are scalars all of the same type.
virtual signal -env sim:chip.alu { (range 4:0)&{a_04, a_03, a_02, a_01, a_00} } a
This command reconstructs a bus "sim:chip.alu.a[4:0]", using Verilog notation.
Note that the concatenation notation starts with "&{" rather than "{".
virtual signal -install sim:/testbench { /chipa/alu/a(19 downto 13) & \ /chipa/
decode/inst & /chipa/mode } stuff
Assuming /chipa/mode is of type integer and /chipa/alu/a is of type
std_logic_vector, and /chipa/decode/inst is a user-defined enumeration, this
example creates a signal sim:/testbench/stuff which is a record type with three
fields corresponding to the three specified signals.
virtual signal { chip.instruction[23:21] } address_mode
This creates a three-bit signal, chip.address_mode, as an alias to the specified bits.
Commands fully compatible with virtual signals
add list (CR-22) add log / log (CR-93) add wave (CR-33)
checkpoint (CR-53) delete (CR-62) describe (CR-63) ("virtual
describe" is a little faster)
down | up
(CR-70) examine (CR-81) find (CR-85)
force
(CR-87)/noforce (CR-101) restart (CR-133) restore (CR-134)
right | left (CR-136) search and next (CR-141) searchLog (CR-144)
show (CR-148)