diff --git a/Makefile b/Makefile index 6a7af560..b23d8a3f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Solderpad Hardware License, Version 0.51, see LICENSE for details. # SPDX-License-Identifier: SHL-0.51 -ROOT_DIR = $(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))) +ROOT_DIR = $(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))) QUESTA ?= questa-2022.3 GIT ?= git @@ -15,6 +15,8 @@ library ?= work elf-bin ?= stimuli.riscv bwruntest = $(ROOT_DIR)/pulp-runtime/scripts/bwruntests.py +REGRESSIONS := $(ROOT_DIR)/regression-tests + CFLAGS ?= -I$(QUESTASIM_HOME)/include \ -I$(RISCV)/include/ \ -I/include -std=c++11 -I../tb/dpi -O3 @@ -51,7 +53,7 @@ endef ###################### NONFREE_REMOTE ?= git@iis-git.ee.ethz.ch:pulp-restricted/pulp-cluster-nonfree.git -NONFREE_COMMIT ?= f069d0a234e5d33e6971d2fdd590b5df22ea6bd8 +NONFREE_COMMIT ?= bf3d30b0e078d0606558fe76d3957ff71ade0328 nonfree-init: git clone $(NONFREE_REMOTE) nonfree @@ -79,12 +81,12 @@ Bender.lock: ## Clone pulp-runtime as SW stack pulp-runtime: git clone https://github.com/pulp-platform/pulp-runtime.git $@ - cd $@; git checkout 38ae6be6e28ff39f79218d333c41632a935bd584; cd .. + cd $@; git checkout 197d06b6ad1d8014cef73e0e87b59b5ebf66d019; cd $(ROOT_DIR) ## Clone regression tests for bare-metal verification regression-tests: git clone https://github.com/pulp-platform/regression_tests.git $@ - cd $@; git checkout 7343d39bb9d1137b6eb3f2561777df546cd1e421; cd .. + cd $@; git checkout d16fe2b6c7ae679862315b7792357cb7e27d28ac; cd $(ROOT_DIR) ######################## # Build and simulation # @@ -117,16 +119,14 @@ run: .PHONY: test-rt-par-bare ## Run only parallel tests on pulp-runtime test-rt-par-bare: pulp-runtime regression-tests - source env/carfield-env.sh; \ cd regression-tests && $(bwruntest) --proc-verbose -v \ -t 3600 --yaml --max-procs 2 \ - -o runtime-parallel.xml parallel-bare-tests.yaml + -o $(REGRESSIONS)/carfield/runtime-parallel.xml $(REGRESSIONS)/carfield/parallel-bare-tests.yaml .PHONY: test-rt-mchan ## Run mchan tests on pulp-runtime test-rt-mchan: pulp-runtime regression-tests - source env/carfield-env.sh; \ cd regression-tests && $(bwruntest) --proc-verbose -v \ -t 3600 --yaml --max-procs 2 \ - -o runtime-mchan.xml pulp_cluster-mchan-tests.yaml + -o $(REGRESSIONS)/carfield/runtime-mchan.xml $(REGRESSIONS)/carfield/pulp_cluster-mchan-tests.yaml diff --git a/env/carfield-env.sh b/env/carfield-env.sh index 4426c8f9..7aae454f 100644 --- a/env/carfield-env.sh +++ b/env/carfield-env.sh @@ -4,5 +4,19 @@ # set up environment variables for rtl simulation, pulp-runtime and freertos ROOTD=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/.." && pwd) + +# If at IIS, set up appropriate questa version. +if test -f /etc/iis.version; then + export QUESTA=questa-2023.4-zr + export VLOG="$QUESTA vlog" + export VLIB="$QUESTA vlib" + export VMAP="$QUESTA vmap" + export VCOM="$QUESTA vcom" + export VOPT="$QUESTA vopt" + export VSIM="$QUESTA vsim" + export QUESTA_HOME=/usr/pack/${QUESTA}/questasim + export QUESTASIM_HOME=/usr/pack/${QUESTA}/questasim +fi + source "$ROOTD/pulp-runtime/configs/carfield-cluster.sh" source "$ROOTD/scripts/vsim.sh"