Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 the core work 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.

...

  • Architecture Compatibility 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.
  • Profiles Policy - This document groups RISC-V extension into various Profile names which may be used for claiming compatibility.
  • Profiles summary spreadsheet - This spreadsheet may be used to decide the base profile and any additional extensions for which the target device wishes to claim compatibility.

Reading and understanding their contents is recommended as the first steps of completing this process.

Test Components

RISC-V-Compatible Testing requires the following components:

...

Testing should be performed using the most recent, stable versions.  For more information about the ACT suite, RISCOF, and RISCV-CONFIG, including the most recent versions and the list of supported RISC-V Profiles and Extensions, see the "Compatibility Test Framework" section of the RISC-V Technical Specifications wiki page.  The information in this presentation describes an alternate way to facilitate setup of the tools used by ACT, using a member-provided repository with scripts to facilitate the process.

The subsequent steps in the next section will detail how to load and install these components.

Test Process

The ordered list of steps to complete the test process are as follows:

...

  1. 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 #2for which RISC-V Compatibility will be claimed.
    Example YAML files are provide in the examples directory of the 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.
  2. Build Platform YAML file for the DUT.
    Example YAML files are provide in the examples directory of the 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.
  3. Install the RISCV-CONFIG tool and use it to validate the ISA and Platform YAML files built in Steps #3 #1 and #4#2.  See the RISCV-CONFIG documentation for more details.
  4. 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. Detailed steps for this process can be found in the "Running RISCV-ARCH-TESTS" section of the RISCOF Documentation.

  5. Run the appropriate ACT suite from RISCOF for either the 32-bit or 64-bit test suite.
    Detailed steps for this process can be found in the "Running Tests with RISCOF" section of the RISCOF Documentation.
    Test suite entry points are defined in the
    riscv-test-suite directory of the RISC-V Architecture Test (riscv-arch-test) GitHub repo.  More information exists in the riscv-test-suite/README.md file.

  6. Review the test results to ensure that the DUT test results match the results of the SAIL golden model.
  7. Repeat Steps #8 #5 and #9 #6 as needed.
  8. 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.

...