The recent demand for 8-bit floating-point (FP) formats is driven by their potential to accelerate domain-specific applications with intensive vector computations (e.g., machine learning, graphics, and data compression). This paper presents the design, implementation, and application of the software model of an 8-bit FP vector arithmetic operation set, compliant with the RISC-V vector instruction set architecture. The model has been developed as an extension of the SoftFloat library and integrated into the RISC-V reference instruction-level simulator Spike, providing the first open-source 8-bit SoftFloat extension for an instruction-set simulator. Based on the SoftFloat library templates for standard FP formats, the proposed extension implements the two widely used 8-bit formats E4M3 and E5M2 in both Open Compute Project (OCP) and IEEE 754 variants. In host-time micro-kernels, FP8 delivers +2–4% more elements per second versus FP32 (across vfadd/vfsub/vfmul) and ≈5% lower RSS; E4M3 and E5M2 perform similarly. Enabling FP8 in Spike increases the stripped binary by ~1.8% (mostly.text). The proposed extension was used to fully verify and correct errors in the vector FP unit design for the eProcessor European project, and continues to be used to verify other 8-bit FP unit implementations.

Eight-bit vector softfloat extension for the RISC-V spike simulator / Marcelli, Andrea; Cheikh, Abdallah; Barbirotta, Marcello; Mastrandrea, Antonio; Menichelli, Francesco; Olivieri, Mauro. - In: ELECTRONICS. - ISSN 2079-9292. - 14:19(2025), pp. 1-18. [10.3390/electronics14193924]

Eight-bit vector softfloat extension for the RISC-V spike simulator

Andrea Marcelli
;
Abdallah Cheikh;Marcello Barbirotta;Antonio Mastrandrea;Francesco Menichelli;Mauro Olivieri
2025

Abstract

The recent demand for 8-bit floating-point (FP) formats is driven by their potential to accelerate domain-specific applications with intensive vector computations (e.g., machine learning, graphics, and data compression). This paper presents the design, implementation, and application of the software model of an 8-bit FP vector arithmetic operation set, compliant with the RISC-V vector instruction set architecture. The model has been developed as an extension of the SoftFloat library and integrated into the RISC-V reference instruction-level simulator Spike, providing the first open-source 8-bit SoftFloat extension for an instruction-set simulator. Based on the SoftFloat library templates for standard FP formats, the proposed extension implements the two widely used 8-bit formats E4M3 and E5M2 in both Open Compute Project (OCP) and IEEE 754 variants. In host-time micro-kernels, FP8 delivers +2–4% more elements per second versus FP32 (across vfadd/vfsub/vfmul) and ≈5% lower RSS; E4M3 and E5M2 perform similarly. Enabling FP8 in Spike increases the stripped binary by ~1.8% (mostly.text). The proposed extension was used to fully verify and correct errors in the vector FP unit design for the eProcessor European project, and continues to be used to verify other 8-bit FP unit implementations.
2025
floating point; FP8; instruction set simulator; minifloat; RISC-V; softfloat; spike
01 Pubblicazione su rivista::01a Articolo in rivista
Eight-bit vector softfloat extension for the RISC-V spike simulator / Marcelli, Andrea; Cheikh, Abdallah; Barbirotta, Marcello; Mastrandrea, Antonio; Menichelli, Francesco; Olivieri, Mauro. - In: ELECTRONICS. - ISSN 2079-9292. - 14:19(2025), pp. 1-18. [10.3390/electronics14193924]
File allegati a questo prodotto
File Dimensione Formato  
Marcelli_Eight-bit-vector_2025.pdf

accesso aperto

Tipologia: Versione editoriale (versione pubblicata con il layout dell'editore)
Licenza: Creative commons
Dimensione 774.57 kB
Formato Adobe PDF
774.57 kB Adobe PDF

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1753186
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact