Technical data
Tcl/Tk and ModelSim
118
-
ModelSim EE Lessons ModelSim EE Tutorial
The result is a traffic intersection interface similar to this illustration:
wm widget
Calls to the op-
erating system
window man-
ager to create
the "traffic"
window.
canvas widget
The background,
lines and traffic
lights are created
with the canvas
widget.
button widgets
Each button in-
vokes the indi-
cated VSIM run
or break com-
mand.
label widget
A static label is add-
ed to the end of the
connect_lights pro-
cedure to indicate
connection to the
simulator.
entry widget
The entry widget
(contained within
a frame widget)
can facilitate en-
try, or in this case,
provides a display
for a VSIM exam-
ine command.
frame and
scale widget
A scale widget
within a frame
widget creates
an analog entry
device for a min-
imum to a maxi-
mum value and
invokes the
VSIM force com-
mand