Automated Intrinsic Support for ISA Extensions: Enhancing Software Generation for RISC-V and beyond

Mayuri Bhadra, Stephanie Ecker, Daniel Albert, Ravindra Ramaiah, Sebastian Prebeck, Wolfgang Ecker

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Software development is a significant portion of the effort in today's SoC designs, making software productivity a major challenge. High-level programming languages and extensive libraries address this challenge, but another effective solution is the use of code generators. Special and customized CPU instructions are crucial for low-level tasks (e.g. CSR configuration) and compute-intensive applications like machine learning inference, as they help meet Power, Performance, and Area (PPA) requirements. However, these instructions often cannot be automatically inferred by compilers from high-level languages like C or RUST and must be explicitly coded using intrinsic notations. Code generation offers a promising solution by supporting various intrinsics across different CPU cores and variants, enabling portable, automated embedded software development. This paper discusses the key drivers and challenges in intrinsic design and proposes a structured approach to generating portable code with intrinsic notations using formal models for the software and the involved cores. This approach effectively addresses productivity challenges while meeting PPA constraints and has been successfully applied to code generation for commercially used RISC-V variants, demonstrating its industry relevance.

Original languageEnglish
Title of host publication2024 IEEE Nordic Circuits and Systems Conference, NORCAS 2024 - Proceedings
EditorsJari Nurmi, Joachim Rodrigues, Luca Pezzarossa, Viktor Aberg, Baktash Behmanesh
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798331517663
DOIs
StatePublished - 2024
Event10th IEEE Nordic Circuits and Systems Conference, NORCAS 2024 - Lund, Sweden
Duration: 29 Oct 202430 Oct 2024

Publication series

Name2024 IEEE Nordic Circuits and Systems Conference, NORCAS 2024 - Proceedings

Conference

Conference10th IEEE Nordic Circuits and Systems Conference, NORCAS 2024
Country/TerritorySweden
CityLund
Period29/10/2430/10/24

Keywords

  • inline-assembly
  • Intrinsic
  • ISA
  • MDA
  • metamodeling
  • RISC-V

Fingerprint

Dive into the research topics of 'Automated Intrinsic Support for ISA Extensions: Enhancing Software Generation for RISC-V and beyond'. Together they form a unique fingerprint.

Cite this