mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
Merge pull request #45 from pulp-platform/fc/qol-fixes
Small quality-of-life fixes
This commit is contained in:
commit
ed59950ab7
2 changed files with 13 additions and 7 deletions
|
|
@ -286,35 +286,35 @@ ifndef VSIM_PATH
|
|||
$(error "VSIM_PATH is undefined. Either call \
|
||||
'source $$YOUR_HW_DIR/setup/vsim.sh' or set it manually.")
|
||||
endif
|
||||
ln -s $(VSIM_PATH)/modelsim.ini $@
|
||||
ln -sfn $(VSIM_PATH)/modelsim.ini $@
|
||||
|
||||
$(TARGET_BUILD_DIR)/work:
|
||||
ifndef VSIM_PATH
|
||||
$(error "VSIM_PATH is undefined. Either call \
|
||||
'source $$YOUR_HW_DIR/setup/vsim.sh' or set it manually.")
|
||||
endif
|
||||
ln -s $(VSIM_PATH)/work $@
|
||||
ln -sfn $(VSIM_PATH)/work $@
|
||||
|
||||
$(TARGET_BUILD_DIR)/boot:
|
||||
ifndef VSIM_PATH
|
||||
$(error "VSIM_PATH is undefined. Either call \
|
||||
'source $$YOUR_HW_DIR/setup/vsim.sh' or set it manually.")
|
||||
endif
|
||||
ln -s $(VSIM_PATH)/boot $@
|
||||
ln -sfn $(VSIM_PATH)/boot $@
|
||||
|
||||
$(TARGET_BUILD_DIR)/tcl_files:
|
||||
ifndef VSIM_PATH
|
||||
$(error "VSIM_PATH is undefined. Either call \
|
||||
'source $$YOUR_HW_DIR/setup/vsim.sh' or set it manually.")
|
||||
endif
|
||||
ln -s $(VSIM_PATH)/tcl_files $@
|
||||
ln -sfn $(VSIM_PATH)/tcl_files $@
|
||||
|
||||
$(TARGET_BUILD_DIR)/waves:
|
||||
ifndef VSIM_PATH
|
||||
$(error "VSIM_PATH is undefined. Either call \
|
||||
'source $$YOUR_HW_DIR/setup/vsim.sh' or set it manually.")
|
||||
endif
|
||||
ln -s $(VSIM_PATH)/waves $@
|
||||
ln -sfn $(VSIM_PATH)/waves $@
|
||||
|
||||
$(TARGET_BUILD_DIR)/stdout:
|
||||
mkdir -p $@
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
HOSTNAME := $(shell hostname)
|
||||
ETH_HOST = $(shell echo $(HOSTNAME) | grep -q "\.ee\.ethz\.ch$$" && echo 1 || echo 0)
|
||||
ifeq (ETH_HOST,1)
|
||||
QUESTA ?= questa-2022.3
|
||||
else
|
||||
QUESTA ?=
|
||||
endif
|
||||
ifdef USE_IBEX
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__ibex__ -U__riscv__ -UARCHI_CORE_HAS_PULPV2 -DRV_ISA_RV32
|
||||
|
|
@ -73,5 +79,5 @@ ifndef gui
|
|||
vsim-flags = -c
|
||||
endif
|
||||
|
||||
run:
|
||||
$(QUESTA) vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); source $(VSIM_PATH)/scripts/start.tcl"
|
||||
run: $(TARGETS)
|
||||
cd $(TARGET_BUILD_DIR); $(QUESTA) vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); source $(VSIM_PATH)/scripts/start.tcl"
|
||||
|
|
|
|||
Loading…
Reference in a new issue