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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user