Skip to content

Commit

Permalink
Tb: Fix HyperRAM sdf absolute path not working in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sermazz committed Oct 17, 2024
1 parent fe9f02c commit 840a1dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion target/sim/sim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ HYP1_PRELOAD_MEM_FILE ?= ""
CHIM_VLOG_ARGS += +define+HYP_USER_PRELOAD="$(HYP_USER_PRELOAD)"
CHIM_VLOG_ARGS += +define+HYP0_PRELOAD_MEM_FILE=\"$(HYP0_PRELOAD_MEM_FILE)\"
CHIM_VLOG_ARGS += +define+HYP1_PRELOAD_MEM_FILE=\"$(HYP1_PRELOAD_MEM_FILE)\"
CHIM_VLOG_ARGS += +define+PATH_TO_HYP_SDF=\"$(realpath $(CHIM_SIM_DIR)/models/s27ks0641/s27ks0641.sdf)\"
# this path should be kept relative to the vsim directory to avoid CI issues:
# 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
Expand Down

0 comments on commit 840a1dd

Please sign in to comment.