verilator: be quiet for stats (#337)

Verilator v5.024 introduces stats reports for both verilation and
simulation. These reports are never expected to be useful for normal
users but brings annoying prints. We are disabling them by default.

For advanced users, they should remove the `--quiet-stats` option
manually in the Makefile.
This commit is contained in:
Yinan Xu 2024-04-11 10:41:53 +08:00 committed by GitHub
parent 52815ee1e5
commit f58265171c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ VERILATOR_5_000 := $(shell expr `$(VERILATOR_VER_CMD)` \>= 5000)
ifeq ($(VERILATOR_5_000),1)
VEXTRA_FLAGS += --no-timing +define+VERILATOR_5
endif
VERILATOR_5_024 := $(shell expr `$(VERILATOR_VER_CMD)` \>= 5024)
ifeq ($(VERILATOR_5_024),1)
VEXTRA_FLAGS += --quiet-stats
endif
# Verilator trace support
EMU_TRACE ?=