This page provides technical details about running the Architecture Compatible Test (ACT) suite to achieve the "RISC-V Compatible™" trademark and logo. Completion of the test suite is is one step in the process of gaining permission to use the “RISC-V Compatible” Trademark. See the RISC-V Branding Guidelines & Materials webpage for more details and requirements on the other steps.
...
- Read and understand the Architecture Test Policy. This document defines the testing which is one of the requirements to use the RISC-V Compatible Trademark, including re-running the tests when the implementation is changed or the ACT test version changes.
- Review the information in the Profiles summary spreadsheet and decide the base profile and any additional extensions for which the target device wishes to claim compatibility.
- Build an ISA YAML files for the Device Under Test (DUT). This YAML file should reflect the devices true capabilities, which may be a superset of the extensions in Step #2.
Example YAML files are provide in theexamples
directory of the RISCV-CONFIG GitHub repo (named RISC-V Config (riscv-config) GitHub repo. They have names of XXX_isa.yaml).
The YAML syntax for ISA files is documented in the "ISA YAML Spec" section of the RISCV-CONFIG documentation. - Build Platform YAML file for the DUT.
Example YAML files are provide in theexamples
directory of the RISCV-CONFIG GitHub repo (named RISC-V Config (riscv-config) GitHub repo. They have names of XXX_platform.yaml).
The YAML syntax for ISA files is documented in the "Platform YAML Spec" section of the RISCV-CONFIG documentation. - Install the RISCV-CONFIG tool and use it to validate the ISA and Platform YAML files built in Steps #3 and #4. See the RISCV-CONFIG documentation for more details.
Install the RISCOF Framework, ACT suite, and SAIL. Configure RISCOF for a Device Under Test (DUT), using the previously created YAML files, and for SAIL. Then, run the tests with RISCOF as needed for the 32-bit and 64-bit test suites as needed.
Detailed steps for this process can be found in the "Running RISCV-ARCH-TESTS" section of the RISCOF Documentation.
Test suite entry points are defined in theriscv-test-suite
directory of the RISC-V Architecture Test (riscv-arch-test) GitHub repo. More information exists in theriscv-test-suite/README.md
file.- Review the test results to ensure that the DUT test results match the results of the SAIL golden model.
- When ready, submit the test results and supporting information per the directions in the “Where to Report Test Results” section of the Architecture Test Policy.
...
A RISC-V Technical Session titled "Using Template Repo to setup/run RISC-V Arch Test Suite under RHEL/Ubuntu" was recorded in April 2023. It provides information about a member-provided repo (link) that supplements setup of the ACT environment with some extra scripts and files. Details, including the presentation and recording links are available here.
...