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

@@ -21,7 +21,7 @@ clean () {
NPROC=8
# verilator version
VERILATOR_VERSION=v4.028
VERILATOR_VERSION=v4.034
# remote variables
REMOTE_WORK_DIR=$CI_DIR/$CIRCLE_PROJECT_REPONAME-$CIRCLE_BRANCH-$CIRCLE_SHA1-$CIRCLE_JOB

View File

@@ -164,7 +164,7 @@ RUN apt-get install -y \
# Install verilator
RUN git clone http://git.veripool.org/git/verilator \
&& cd verilator \
&& git checkout v4.028 \
&& git checkout v4.034 \
&& autoconf && ./configure && make && make install
# Update PATH for Java tools

View File

@@ -22,5 +22,5 @@ sudo yum install -y dtc
# install verilator
git clone http://git.veripool.org/git/verilator
cd verilator
git checkout v4.028
git checkout v4.034
autoconf && ./configure && make -j16 && sudo make install

View File

@@ -23,5 +23,5 @@ sudo apt-get install -y device-tree-compiler
# install verilator
git clone http://git.veripool.org/git/verilator
cd verilator
git checkout v4.028
git checkout v4.034
autoconf && ./configure && make -j16 && sudo make install

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 \