update rocket-chip again
This commit is contained in:
@@ -22,9 +22,12 @@ include $(sim_dir)/Makefrag-verilator
|
||||
|
||||
long_name = $(PROJECT).$(MODEL).$(CONFIG)
|
||||
|
||||
rocketchip_vsrc_dir = $(ROCKETCHIP_DIR)/src/main/resources/vsrc
|
||||
|
||||
sim_vsrcs = \
|
||||
$(build_dir)/$(long_name).v \
|
||||
$(ROCKETCHIP_DIR)/vsrc/AsyncResetReg.v \
|
||||
$(rocketchip_vsrc_dir)/AsyncResetReg.v \
|
||||
$(rocketchip_vsrc_dir)/plusarg_reader.v \
|
||||
$(testchip_vsrcs)
|
||||
|
||||
sim_csrcs = \
|
||||
|
||||
@@ -24,6 +24,8 @@ verilator/verilator-$(VERILATOR_VERSION).tar.gz:
|
||||
mkdir -p $(dir $@)
|
||||
wget http://www.veripool.org/ftp/verilator-$(VERILATOR_VERSION).tgz -O $@
|
||||
|
||||
rocketchip_csrc_dir = $(ROCKETCHIP_DIR)/src/main/resources/csrc
|
||||
|
||||
# Run Verilator to produce a fast binary to emulate this circuit.
|
||||
VERILATOR := $(INSTALLED_VERILATOR) --cc --exe
|
||||
VERILATOR_FLAGS := --top-module $(MODEL) \
|
||||
@@ -32,4 +34,4 @@ VERILATOR_FLAGS := --top-module $(MODEL) \
|
||||
--output-split 20000 \
|
||||
-Wno-STMTDLY --x-assign unique \
|
||||
-I$(base_dir)/testchipip/vsrc -I$(base_dir)/rocket-chip/vsrc \
|
||||
-O3 -CFLAGS "$(CXXFLAGS) -DVERILATOR -include $(base_dir)/rocket-chip/csrc/verilator.h"
|
||||
-O3 -CFLAGS "$(CXXFLAGS) -DVERILATOR -include $(rocketchip_csrc_dir)/verilator.h"
|
||||
|
||||
Reference in New Issue
Block a user