Published November 18, 2024 | Version v1

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

  • 1. ROR icon Infineon Technologies (Germany)
  • 2. ROR icon Technical University of Munich
  • 3. Chipglobe GmbH

Contributors

  • 1. Infineon Technologies (Germany)
  • 2. ROR icon Technical University of Munich

Description

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.

Notes

Accepted version. ©2024 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
Published as: M. Bhadra, S. Ecker, D. Albert, R. Ramaiah, S. Prebeck and W. Ecker, "Automated Intrinsic Support for ISA Extensions: Enhancing Software Generation for RISC-V and Beyond," 2024 IEEE Nordic Circuits and Systems Conference (NorCAS), Lund, Sweden, 2024, pp. 1-7, doi.org/10.1109/NorCAS64408.2024.10752480

Files

Automated_Intrinsic_Support_for_ISA_Extensions_Enhancing_Software_Generation_for_RISC-V_and_Beyond.pdf

Additional details

Identifiers

ISBN
979-8-3315-1766-3
ISBN
979-8-3315-1767-0

Funding

European Commission
ISOLDE - High Performance, Safe, Secure, Open-Source Leveraged RISC-V Domain-Specific Ecosystems 101112274
European Commission
TRISTAN - Together for RISc-V Technology and ApplicatioNs 101095947
Federal Ministry of Education and Research
Scale4Edge 16ME0122K
Federal Ministry of Education and Research
GenerIoT 01IS22084A
Federal Ministry of Education and Research
MANNHEIM-FlexKI 01IS22086C