Bump verilator to v4.034 (#547)

* Bump verilator to v4.034
* Add new flags to verilator makefile
* Conditionally set timescale flag based on Verilator version
This commit is contained in:
Albert Magyar
2020-05-11 23:02:37 -07:00
committed by GitHub
parent 57c840f2ab
commit 2a6bd3bd5c
5 changed files with 7 additions and 4 deletions

View File

@@ -86,7 +86,10 @@ ARIANE_VERILATOR_FLAGS = \
CHIPYARD_VERILATOR_FLAGS = \
--assert
# Use --timescale to approximate timescale behavior of pre-4.034
TIMESCALE_OPTS := $(shell verilator --version | perl -lne 'if (/(\d.\d+)/ && $$1 >= 4.034) { print "--timescale 1ns/1ps"; }')
VERILATOR_NONCC_OPTS = \
$(TIMESCALE_OPTS) \
--top-module $(VLOG_MODEL) \
$(shell if ! grep -iq "module.*ariane" $(build_dir)/*.*v; then echo "$(CHIPYARD_VERILATOR_FLAGS)"; else echo "$(ARIANE_VERILATOR_FLAGS)"; fi) \
--output-split 10000 \