Technical data

add_menu
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
265
# WindowName Menu MenuItem label Command
# ---------- ---- -------------------- -------
add_menu $wname mine
add_menuitem $wname mine "Do My Own Thing..." $cmd1
add_separator $wname mine ;#----------------------------
add_submenu $wname mine changeCase
add_menuitem $wname mine.changeCase "To Upper" $cmd2
add_menuitem $wname mine.changeCase "To Lower" $cmd3
add_submenu $wname mine vars
add_menucb $wname mine.vars "Feature One" -variable
myglobalvar($wname:one)
-onvalue 1 -offvalue 0 -indicatoron 1
}
AddMyMenus .signals
This example is available in the
following DO file:
<install_dir>/modeltech/
examples/addmenu.do
. You
can run the DO file to add the
"Mine" menu shown in the
illustration, or modify the file
for different results.
To execute the DO file, select
Macro > Execute Macro
from
the Main window menu bar, or
use the
do
command (p302)
from the Model
Sim
command
line.
See also
add_menucb
command (p266),
add_menuitem
command (p268),
add_separator
command (p269),
add_submenu
command (p270), and the
change_menu_cmd
command (p282)