diff --git a/site-setup.sh b/site-setup.sh index 81f17fff2..8bcd3d96e 100755 --- a/site-setup.sh +++ b/site-setup.sh @@ -15,7 +15,7 @@ export IMPERASD_LICENSE_FILE=27020@zircon.eng.hmc.edu # Change thi export QUESTA_HOME=/cad/mentor/questa_sim-2023.4/questasim # Change this for your path to Questa, excluding bin export DC_HOME=/cad/synopsys/SYN # Change this for your path to Synopsys DC, excluding bin export VCS_HOME=/cad/synopsys/vcs/U-2023.03-SP2-4 # Change this for your path to Synopsys VCS, excluding bin -export BREKER_HOME=/cad/breker/trek5-2.1.10b-GCC6_el7 # Change this for your path to Breker Trek +export BREKER_HOME=/cad/breker/trek5-2.1.11-GCC6_el7 # Change this for your path to Breker Trek # Tools # Questa and Synopsys diff --git a/testbench/trek_files/platform.yaml b/testbench/trek_files/platform.yaml index d7f7b8dad..c5b201342 100644 --- a/testbench/trek_files/platform.yaml +++ b/testbench/trek_files/platform.yaml @@ -154,7 +154,11 @@ trek: doc: >- Verbatim code that will be put into the header section of the test. value: |- - + // enable mtimer interrupts + #define TREK_MTIME_BASE (0x0200bff8) + #define TREK_MTIMECMP_BASE (0x02004000) + #define TREK_MSWI_BASE (0x02000000) + #define TREK_MTIMECMP_DELAY 0x1000 declaration: doc: >- Verbatim code that will be put into the declaration section of the test. diff --git a/tests/breker/Makefile b/tests/breker/Makefile index fc56d8805..e21b6b3d5 100644 --- a/tests/breker/Makefile +++ b/tests/breker/Makefile @@ -14,7 +14,7 @@ TREKSVIP := source $(TREKFILES)/breker-setup.sh && treksvip -p $(PLATFOR # Compilation paths and variables START_LIB_DIR := $(WALLY)/examples/C/common START_LIB := $(START_LIB_DIR)/crt.S $(START_LIB_DIR)/syscalls.c -MARCH :=-march=rv64gc_zcb_zfa_zba_zbb_zbc_zbs_zfh_zicboz_zicbop_zicbom_zbkb_zbkx_zknd_zkne_zknh_svinval +MARCH :=-march=rv64gc_zcb_zfa_zba_zbb_zbc_zbs_zfh_zicboz_zicbop_zicbom_zicond_zbkb_zbkx_zknd_zkne_zknh_svinval MABI :=-mabi=lp64d LINKER := $(START_LIB_DIR)/test.ld LINK_FLAGS := -nostartfiles