Technical data
Tcl/Tk and ModelSim
ModelSim EE Tutorial ModelSim EE Lessons
-
115
Tcl/Tk and Model
Sim
This lesson is divided into several Tcl examples intended to give you a sense of
Tcl/Tk’s function within Model
Sim
. The examples include a custom simulation
interface created with Tcl/Tk. You must be using Model
Sim
EE/PLUS or
Model
Sim
EE/VHDL to complete these exercises.
Examples in this lesson
Example 1 - create a "hello world" button widget (p122)
Example 2 - add a procedure that gets called by a button push (p123)
Example 3 - The traffic light simulation (p124)
Example 4 - draw a state machine that represents the simulation (p127)
More information on Tcl/Tk
Tcl print references
Sources of information about Tcl include
Tcl and the Tk Toolkit
by John K.
Ousterhout, published by Addison-Wesley Publishing Company, Inc., and
Practical Programming in Tcl and Tk by
Brent Welch published by Prentice Hall.
Tcl online references
The following are a few of the many Tcl references available:
• When using Model
Sim
make this VSIM Main menu selection:
Help > Tcl Man
Pages
.
• Tcl man pages are also available at: www.elf.org/tcltk-man-html/contents.htm
• Tcl/Tk general information is available from the Tcl/Tk Consortium:
www.tclconsortium.org
• The Scriptics Corporation, John Ousterhout’s company (the original Tcl
developer): www.scriptics.com
.