Skip to content

Commit

Permalink
Workaround for Visualizer restart bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsAsplund committed Dec 20, 2024
1 parent 35d1aa6 commit b2f661f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vunit/sim_if/modelsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,11 @@ def _get_load_flags(self, config, output_path, optimize_design):

set_generic_str = " ".join(
(
f"-g/{config.entity_name!s}/{name!s}={encode_generic_value_for_args(value)!s}"
# -g should be followed by a / to denote an absolute path from the top. However, a bug
# in Visualizer causes that format to fail on restart. Without / we could theoretically
# match a lower level relative path but that is probably not very likely. Should that
# happen one can switch to the original debugger that doesn't use the early load
f"-g{config.entity_name!s}/{name!s}={encode_generic_value_for_args(value)!s}"
for name, value in config.generics.items()
)
)
Expand Down

0 comments on commit b2f661f

Please sign in to comment.