2023-02-04 12:29:27 +00:00
|
|
|
# David_Harris@hmc.edu 2023
|
|
|
|
# Top-level Makefile for CORE-V-Wally
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
|
|
|
|
2021-12-21 05:10:14 +00:00
|
|
|
all:
|
2021-12-22 03:59:08 +00:00
|
|
|
make install
|
2023-10-03 14:32:45 +00:00
|
|
|
make riscof
|
|
|
|
make testfloat
|
2024-03-24 21:42:09 +00:00
|
|
|
# make verify
|
2023-06-09 16:37:09 +00:00
|
|
|
make coverage
|
|
|
|
make benchmarks
|
2021-12-21 05:10:14 +00:00
|
|
|
|
|
|
|
# install copies over the Makefile.include from riscv-isa-sim
|
2023-01-16 04:27:12 +00:00
|
|
|
# And corrects the TARGETDIR path and the RISCV_PREFIX
|
2021-12-21 05:10:14 +00:00
|
|
|
|
|
|
|
install:
|
2023-01-16 04:27:12 +00:00
|
|
|
# *** 1/15/23 dh: check if any of this is still needed
|
|
|
|
#cp ${RISCV}/riscv-isa-sim/arch_test_target/spike/Makefile.include addins/riscv-arch-test/
|
|
|
|
#sed -i '/export TARGETDIR ?=/c\export TARGETDIR ?= ${RISCV}/riscv-isa-sim/arch_test_target' addins/riscv-arch-test/Makefile.include
|
|
|
|
#echo export RISCV_PREFIX = riscv64-unknown-elf- >> addins/riscv-arch-test/Makefile.include
|
|
|
|
##cd tests/linux-testgen/linux-testvectors; source ./tvLinker.sh # needs to be run in local directory
|
|
|
|
##rm tests/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe
|
|
|
|
##ln -s ${RISCV}/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe tests/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe
|
2021-12-21 05:10:14 +00:00
|
|
|
|
2023-06-09 16:37:09 +00:00
|
|
|
riscof:
|
2023-02-02 22:48:23 +00:00
|
|
|
make -C sim
|
2021-11-17 20:17:56 +00:00
|
|
|
|
2023-06-09 16:37:09 +00:00
|
|
|
testfloat:
|
|
|
|
cd ${WALLY}/addins/SoftFloat-3e/build/Linux-x86_64-GCC; make
|
|
|
|
cd ${WALLY}/addins/TestFloat-3e/build/Linux-x86_64-GCC; make
|
|
|
|
cd ${WALLY}/tests/fp; ./create_all_vectors.sh
|
|
|
|
|
|
|
|
verify:
|
|
|
|
cd ${WALLY}/sim; ./regression-wally
|
|
|
|
cd ${WALLY}/sim; ./sim-testfloat-batch all
|
|
|
|
make imperasdv
|
|
|
|
|
|
|
|
imperasdv:
|
|
|
|
iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m
|
|
|
|
iter-elf.bash --search ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m
|
|
|
|
|
|
|
|
coverage:
|
2024-03-08 15:58:12 +00:00
|
|
|
cd ${WALLY}/sim; ./regression-wally -coverage -fp
|
2023-06-09 16:37:09 +00:00
|
|
|
|
|
|
|
benchmarks:
|
|
|
|
make coremark
|
|
|
|
make embench
|
|
|
|
|
|
|
|
coremark:
|
|
|
|
cd ${WALLY}/benchmarks/coremark; make; make run
|
|
|
|
|
|
|
|
embench:
|
|
|
|
cd ${WALLY}/benchmarks/embench; make; make run
|
|
|
|
|
|
|
|
|
2022-01-20 14:17:26 +00:00
|
|
|
clean:
|
2023-02-02 22:48:23 +00:00
|
|
|
make clean -C sim
|
2021-11-17 20:17:56 +00:00
|
|
|
|