Skip to content

Commit

Permalink
[MK]: Update sim.mk to include hyperbus model
Browse files Browse the repository at this point in the history
  • Loading branch information
Lore0599 committed Nov 15, 2024
1 parent 8f60f2f commit 5e59a96
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions target/sim/sim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 5e59a96

Please sign in to comment.