Skip to content

Commit

Permalink
Add a specific menu for VUnit in ModelSim
Browse files Browse the repository at this point in the history
  • Loading branch information
std-max committed Jun 23, 2022
1 parent a106155 commit 6b3f748
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vunit/sim_if/vsim_simulator_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,14 @@ def _create_gui_script(self, common_file_name, config):
"""
tcl = f'source "{fix_path(common_file_name)!s}"\n'
tcl += self._create_user_init_function(config)
tcl += 'add_menu "" VUnit\n'
tcl += 'add_menuitem "" VUnit "vunit user init" vunit_user_init\n'
tcl += 'add_menuitem "" VUnit "vunit compile" vunit_compile\n'
tcl += 'add_menuitem "" VUnit "vunit load" vunit_load\n'
tcl += 'add_menuitem "" VUnit "vunit run" vunit_run\n'
tcl += 'add_menuitem "" VUnit "vunit restart" vunit_restart\n'
tcl += 'add_separator "" VUnit\n'
tcl += 'add_menuitem "" VUnit "vunit help" vunit_help\n'
tcl += "if {![vunit_load]} {\n"
tcl += " vunit_user_init\n"
tcl += " vunit_help\n"
Expand Down

0 comments on commit 6b3f748

Please sign in to comment.