Skip to content

[Issue-1252] Added the support to run latest riscv-arch-tests in core-v-verif CVA6 infrastructure

Created by: fatimasaleem

This PR solves the issue mentioned in 1252. I have updated the cva6 environment to make it compatible to run the latest riscv-arch-tests with the riscof-dev infrastructure.

What was Changed

The following major changes were made while setting up the cva6 environment

  • Created a new testlist yaml file and a new install script for riscv-arch-test as @ASintzoff suggested - dv-riscv-arch-tests.sh sets all the environment variables and then calls all required install scripts - Created an install-riscv-isa-sim.sh script which is installing riscv-isa-sim as in riscof-dev the riscv-target has been removed, and for using the spike simulator as an architectural test model, we needed the required dependency files (e.g model_test.h) - Created a separate testlist_riscv-arch-tests-cv64a6_imafdc_sv39.yaml file for running the riscv-arch-tests on cva6 with proper path and env variable setup, major additions are as follows 1. Added compile-time macros, XLEN, TEST_CASE_1 - as suggested by @neelgala 2. Updated the path of the env according to the riscof-dev dir structure 3. Updated the arch-test target to use the locally installed spike

  • Updated the cva6_spike_log_to_trace_csv.py so that spike logging is aligned with CVA6 verilated model logging

  • Replaced the cva6/sim/link.ld with the latest one

Environment Variables

export RISCV=/path/to/tootchain
export RISCV_GCC=$RISCV/bin/riscv64-unknown-elf-gcc
export RISCV_OBJCOPY=$RISCV/riscv64-unknown-elf/bin/objcopy
export SPIKE_ROOT=$RISCV

Steps to Run

After all these changes the CVA6 core-v-verilf environment is running all the current riscv-arch-tests on the riscof-dev branch. Steps to run:

git clone git@github.com:10x-Engineers/core-v-verif.git
cd core-v-verif
git checkout issue-1252-fix
source cva6/regress/dv-riscv-arch-test.sh

Merge request reports

Loading