Pass MODEL variable to emulator.cc
This enables hot-swapping of the top-level test harness by specifying `MODEL=MyTestHarness` when building the emulator.
This commit is contained in:
committed by
Andrew Waterman
parent
fd39eadcd6
commit
c61714a465
@ -1,5 +1,5 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Verilator Generation
|
||||
# Verilator Generation
|
||||
#--------------------------------------------------------------------
|
||||
firrtl = $(generated_dir)/$(long_name).fir
|
||||
firrtl_debug = $(generated_dir_debug)/$(long_name).fir
|
||||
@ -57,7 +57,7 @@ VERILATOR_FLAGS := --top-module $(MODEL) \
|
||||
--output-split 20000 \
|
||||
-Wno-STMTDLY --x-assign unique \
|
||||
-I$(base_dir)/vsrc \
|
||||
-O3 -CFLAGS "$(CXXFLAGS) -DVERILATOR -include $(base_dir)/csrc/verilator.h"
|
||||
-O3 -CFLAGS "$(CXXFLAGS) -DVERILATOR -DTEST_HARNESS=V$(MODEL) -include $(base_dir)/csrc/verilator.h"
|
||||
cppfiles = $(addprefix $(base_dir)/csrc/, $(addsuffix .cc, $(CXXSRCS)))
|
||||
headers = $(wildcard $(base_dir)/csrc/*.h)
|
||||
|
||||
|
Reference in New Issue
Block a user