Toward RISC-V CSR Compliance Testing

Niklas Bruns, Vladimir Herdt, Daniel Große, Rolf Drechsler

Research output: Contribution to journalArticlepeer-review

Abstract

Recently, the critical compliance testing (CT) problem for reduced instruction set computer (RISC)-V has received significant attention. However, control and status registers (CSRs), which form the backbone of the RISC-V privileged architecture specification, have been mostly neglected in the CT effort so far. In this letter, we first analyze the RISC-V privileged architecture specification in detail to group the CSRs into different classes according to their functionality. Based on the classes and additional common CSR characteristics, we come up with a set of fundamental CSR tests. These partly automatically generated CSR tests allow to check the compliance of RISC-V simulators and cores. We found several unknown errors in numerous RISC-V simulators. The results demonstrate the necessity for extensive CSR testing to ensure compliance with the RISC-V specification.
Original languageEnglish
Number of pages4
JournalIEEE Embedded Systems Letters
Volume13
Issue number4
DOIs
Publication statusPublished - 2021

Fields of science

  • 202005 Computer architecture
  • 202017 Embedded systems
  • 102 Computer Sciences
  • 102005 Computer aided design (CAD)
  • 102011 Formal languages

JKU Focus areas

  • Digital Transformation

Cite this