Download Wave window - Electrical and Computer Engineering
Transcript
GR-113
1 - Simulator windows
3 Append the procedure name to the window’s user_hook Tcl variable. See "Preference
variables located in Tcl files" (UM-542) for more information on Tcl preference variables.
An example will help clarify. Say you create a button in the Wave window that adds all
signals from the selected region to the Wave window. The button code will look something
like this:
_add_menu .wave controls right SystemButtonFace black AddWaves {add wave *}
You would insert that code into a Tcl procedure in the modelsim.tcl file and then append
the procedure to the PrefWave(user_hook) variable. The entire entry in the modelsim.tcl
file would look as follows:
proc AddWaves winname {
_add_menu .wave controls right SystemButtonFace black AddWaves {add wave *}
}
lappend PrefWave(user_hook) AddWaves
Now, any time you start ModelSim and open the Wave window, it will have a button
labeled "AddWaves" that executes the command "add wave *".
ModelSim SE GUI Reference