From 5e59a96537af3691515d93ce62f616bc390fba7a Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 15 Nov 2024 10:29:40 +0100 Subject: [PATCH] [MK]: Update sim.mk to include hyperbus model --- target/sim/sim.mk | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/target/sim/sim.mk b/target/sim/sim.mk index 605a6b6..b718e4c 100644 --- a/target/sim/sim.mk +++ b/target/sim/sim.mk @@ -31,9 +31,10 @@ CHIM_VLOG_ARGS += +define+HYP0_PRELOAD_MEM_FILE=\"$(HYP0_PRELOAD_MEM_FILE)\" # an absolute path produce inter-CI-runner file accesses CHIM_VLOG_ARGS += +define+PATH_TO_HYP_SDF=\"../models/s27ks0641/s27ks0641.sdf\" + # Generate vsim compilation script $(CHIM_SIM_DIR)/vsim/compile.tcl: chs-hw-init snitch-hw-init - @bender script vsim $(SIM_TARGS) --vlog-arg="$(CHIM_VLOG_ARGS)" > $@ + @bender script vsim $(SIM_TARGS) $(EXT_TARGS) --vlog-arg="$(CHIM_VLOG_ARGS)" > $@ echo 'vlog "$(realpath $(CHS_ROOT))/target/sim/src/elfloader.cpp" -ccflags "-std=c++11"' >> $@ # Clean @@ -43,11 +44,4 @@ chim-sim-clean: @rm -rf $(CHIM_SIM_DIR)/vsim/transcript @rm -f $(CHIM_SIM_DIR)/vsim/compile.tcl -chim-sim: $(CHIM_SIM_DIR)/vsim/compile.tcl - - -$(CHIM_SIM_DIR)/vsim/compile.tcl: chs-hw-init snitch-hw-init - @bender script vsim $(COMMON_TARGS) $(SIM_TARGS) $(EXT_TARGS) --vlog-arg="$(VLOG_ARGS)"> $@ - echo 'vlog "$(realpath $(CHS_ROOT))/target/sim/src/elfloader.cpp" -ccflags "-std=c++11"' >> $@ - endif # chim_sim_mk