cva6/verif/regress/dhrystone.sh
Zbigniew Chamski c2794df8e6
Some checks failed
bender-up-to-date / bender-up-to-date (push) Has been cancelled
ci / build-riscv-tests (push) Has been cancelled
ci / execute-riscv64-tests (push) Has been cancelled
ci / execute-riscv32-tests (push) Has been cancelled
[CV32A6*X] Disable Zifencei across the verification infrastructure. (#2822)
This MR implements the non-RTL part of CVA6 project changes needed for #2734:
* changes to scripts
* changes to configuration files
* turn off Zifencei support in RTL configuration.
2025-03-13 06:12:47 +01:00

75 lines
1.9 KiB
Bash

# Copyright 2022 Thales DIS design services SAS
#
# Licensed under the Solderpad Hardware Licence, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.0
# You may obtain a copy of the License at https://solderpad.org/licenses/
#
# Original Author: Zbigniew CHAMSKI (zbigniew.chamski@thalesgroup.fr)
# where are the tools
if ! [ -n "$RISCV" ]; then
echo "Error: RISCV variable undefined"
return
fi
if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi
# install the required tools
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh
source ./verif/sim/setup-env.sh
if ! [ -n "$DV_HWCONFIG_OPTS" ]; then
DV_HWCONFIG_OPTS="cv32a65x"
fi
if ! [ -n "$UVM_VERBOSITY" ]; then
export UVM_VERBOSITY=UVM_NONE
fi
export DV_OPTS="$DV_OPTS --issrun_opts=+tb_performance_mode+debug_disable=1+UVM_VERBOSITY=$UVM_VERBOSITY"
make clean
make -C verif/sim clean_all
cd verif/sim
src0=../tests/custom/dhrystone/dhrystone_main.c
srcA=(
../tests/custom/dhrystone/dhrystone.c
../tests/custom/common/syscalls.c
../tests/custom/common/crt.S
)
cflags=(
-fno-tree-loop-distribute-patterns
-static
-mcmodel=medany
-fvisibility=hidden
-nostdlib
-nostartfiles
-lgcc
-O3 -fno-inline
-Wno-implicit-function-declaration
-Wno-implicit-int
-I../tests/custom/env
-I../tests/custom/common
-I../tests/custom/dhrystone/
-DNOPRINT
)
python3 cva6.py \
--target hwconfig \
--hwconfig_opts="$DV_HWCONFIG_OPTS" \
--iss="$DV_SIMULATORS" \
--iss_yaml=cva6.yaml \
--c_tests "$src0" \
--sv_seed 1 \
--gcc_opts "${srcA[*]} ${cflags[*]}" \
--linker ../../config/gen_from_riscv_config/cv32a65x/linker/link.ld \
$DV_OPTS