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 Nov 6, 2022
1 parent 4c062cb commit 739a62a
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 739a62a

Please sign in to comment.