Skip to content

Commit

Permalink
Add a macro to indicate Verilator v5.0 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense committed Mar 13, 2024
1 parent ac60423 commit b2f739e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verilator.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ VEXTRA_FLAGS += --instr-count-dpi 1
endif
VERILATOR_5_000 := $(shell expr `$(VERILATOR_VER_CMD)` \>= 5000)
ifeq ($(VERILATOR_5_000),1)
VEXTRA_FLAGS += --no-timing
VEXTRA_FLAGS += --no-timing +define+VERILATOR_5
endif

# Verilator trace support
Expand Down

0 comments on commit b2f739e

Please sign in to comment.