Technical data

ModelSim EE/PLUS Reference Manual Logic Modeling Library and Hardware Modeler -
509
Each command requires a window instance argument that identifies a specific
model instance and window name. For example,
/top/u1/wa
refers to window
wa
in model instance
/top/u1
.
lmcwin read
The
read
command displays the current value of a window. The optional radix
argument is -binary, -decimal, or -hexadecimal (these names may be abbreviated).
The default is to display the value using the std_logic characters. For example, the
following command displays the 64-bit window
wc
in hexadecimal:
lmcwin read /top/u1/wc -h
lmcwin write
The
write
command writes a value into a window. The format of the value
argument is the same as used in other simulator commands that take value
arguments. For example, to write 1 to window
wb
, and all 1’s to window
wc
:
lmcwin write /top/u1/wb 1
lmcwin write /top/u1/wc X"FFFFFFFFFFFFFFFF"
lmcwin enable
The
enable
command enables continuous monitoring of a window. The specified
window is added to the model instance as a signal (with the same name as the
window) of type std_logic or std_logic_vector. This signal may then be referenced
in other simulator commands
just like any other signal (the
add list
command
(p260) is shown below). The window signal is continuously updated to reflect the
value in the model. For example, to list window
wa
:
lmcwin enable /top/u1/wa
add list /top/u1/wa
lmcwin disable
The
disable
command disables continuous monitoring of a window. The window
signal is not deleted, but it no longer is updated when the model’s window register
changes value. For example, to disable continuous monitoring of window
wa
:
lmcwin disable /top/u1/wa
lmcwin release
Some windows are actually nets, and the write command behaves more like a
continuous force on the net. The
release
command disables the effect of a
previous
write
command on a window net.