Skip to content

Commit

Permalink
vhdl/nvc: terminate nvc simulation with report severity error end of …
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
Martoni committed Aug 29, 2023
1 parent c01bff7 commit 180d108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vhdl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nvc_button_deb: test/test_$(PROJECT_NAME).vhd src/$(PROJECT_NAME).vhd
mkdir -p nvc$(SIMU_DIR)
cd nvc$(SIMU_DIR); $(NVC) -a ../test/test_$(PROJECT_NAME).vhd ../src/$(PROJECT_NAME).vhd
cd nvc$(SIMU_DIR); $(NVC) -e $(PROJECT_NAME)_tb
cd nvc$(SIMU_DIR); $(NVC) -r $(PROJECT_NAME)_tb -w
cd nvc$(SIMU_DIR); $(NVC) -r $(PROJECT_NAME)_tb -w --exit-severity=error

nvc_view: $(SIMU_DIR)/$(PROJECT_NAME)_tb.fst
$(WAVE) $^
Expand Down
3 changes: 2 additions & 1 deletion vhdl/test/test_button_deb.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ begin
end loop;
report "<- Simulation Time";
wait for 1 ns;
assert false report "*** End of test ***";
-- old fashion way to terminate bench.
assert false report "*** End of test ***" severity error;
end process stimulis_p;

end Architecture button_deb_tb_1 ;

0 comments on commit 180d108

Please sign in to comment.