Skip to content

Commit

Permalink
modelsim: Quit after simulation is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Sep 19, 2019
1 parent c36b651 commit f656a68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion edalize/modelsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
all: work $(VPI_MODULES)
run: work $(VPI_MODULES)
$(VSIM) -do "run -all" -c $(addprefix -pli ,$(VPI_MODULES)) $(TOPLEVEL) $(EXTRA_OPTIONS)
$(VSIM) -do "run -all; exit" -c $(addprefix -pli ,$(VPI_MODULES)) $(TOPLEVEL) $(EXTRA_OPTIONS)
run-gui: work $(VPI_MODULES)
$(VSIM) -gui $(addprefix -pli ,$(VPI_MODULES)) $(TOPLEVEL) $(EXTRA_OPTIONS)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_modelsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ EXTRA_OPTIONS ?= $(VSIM_OPTIONS) $(addprefix -g,$(PARAMETERS)) $(addprefix +,$(P
all: work $(VPI_MODULES)

run: work $(VPI_MODULES)
$(VSIM) -do "run -all" -c $(addprefix -pli ,$(VPI_MODULES)) $(TOPLEVEL) $(EXTRA_OPTIONS)
$(VSIM) -do "run -all; exit" -c $(addprefix -pli ,$(VPI_MODULES)) $(TOPLEVEL) $(EXTRA_OPTIONS)

run-gui: work $(VPI_MODULES)
$(VSIM) -gui $(addprefix -pli ,$(VPI_MODULES)) $(TOPLEVEL) $(EXTRA_OPTIONS)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_modelsim/vsim2.cmd
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-do run -all -c top_module a few vsim_options -gvlogparam_bool=1 -gvlogparam_int=42 -gvlogparam_str=hello +plusarg_bool=1 +plusarg_int=42 +plusarg_str=hello
-do run -all; exit -c top_module a few vsim_options -gvlogparam_bool=1 -gvlogparam_int=42 -gvlogparam_str=hello +plusarg_bool=1 +plusarg_int=42 +plusarg_str=hello

0 comments on commit f656a68

Please sign in to comment.