Skip to content

Commit

Permalink
Makefile: use xs_assert_v2 to include filename info (#199)
Browse files Browse the repository at this point in the history
Assertion now report its filename as well.
  • Loading branch information
poemonsense authored May 20, 2024
1 parent 3630ab5 commit d147ad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ $(SIM_TOP_V): $(SCALA_FILE) $(TEST_FILE)
mkdir -p $(@D)
mill -i generator.test.runMain $(SIMTOP) $(MILL_ARGS_ALL)
@for file in $(RTL_DIR)/*.$(RTL_SUFFIX); do \
sed -i -e 's/$$fatal/xs_assert(`__LINE__)/g' "$$file"; \
sed -i -e "s/\$$error(/\$$fwrite(32\'h80000002, /g" "$$file"; \
done
sed -i -e 's/$$fatal/xs_assert_v2(`__FILE__, `__LINE__)/g' "$$file"; \
sed -i -e "s/\$$error(/\$$fwrite(32\'h80000002, /g" "$$file"; \
done

sim-verilog: $(SIM_TOP_V)

Expand Down

0 comments on commit d147ad5

Please sign in to comment.