12.07.2015 Views

ModelSim SE GUI Reference - Parent Directory

ModelSim SE GUI Reference - Parent Directory

ModelSim SE GUI Reference - Parent Directory

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Main window GR-1193 Append the procedure name to the window’s user_hook Tcl variable. See "Simulator<strong>GUI</strong> preferences" (GR-269) for more information on Tcl preference variables.An example will help clarify. Say you create a button in the Wave window that adds allsignals from the selected region to the Wave window. The button code will look somethinglike 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 appendthe procedure to the PrefWave(user_hook) variable. The entire entry in the modelsim.tclfile would look as follows:proc AddWaves winname {_add_menu .wave controls right SystemButtonFace black AddWaves {add wave *}}lappend PrefWave(user_hook) AddWavesNow, any time you start <strong>ModelSim</strong> and open the Wave window, it will have a buttonlabeled "AddWaves" that executes the command "add wave *".<strong>ModelSim</strong> <strong>SE</strong> <strong>GUI</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!