Technical data
Tcl/Tk and ModelSim
ModelSim EE/SE Tutorial 6-49
Tk widgets
The intersection illustration points out several Tcl/Tk "widgets". A widget is
simply a user interface element, like a menu or scrolled list. Tk widgets are
referenced within Tcl procedures to create graphic interface objects. The Tk tool
box comes with several widgets, additional widgets can be created using these as
a base.
Controlling the simulation
The components of the intersection interface have the following effect within
ModelSim:
Saving time
Since several intersection controls invoke a VSIM command and arguments with
a single action (such as the movement of a slider), this custom interface saves time
compared to invoking the commands from the command line or ModelSim menus.
Copies of the original example files
Additional copies of the Tcl example files from these exercises are located in the
..\examples\tcl_tutorial\originals directory.
Solutions to the examples
Throughout the traffic intersection examples you will be modifying Tcl files to
complete the final intersection. You will find a completed set of intersection
Intersection control used Effect in ModelSim
Run 1000 button invokes the run command for 1000 ns
Run Forever button invokes the run -all command
Break button invokes the break command
light timing control invokes the force command with the arguments for the
indicated signal and time
arrival time control invokes the force command with the arguments for the
indicated direction and time
waiting queue any time you change a control the examine command is
invoked to display the value of the waiting queue