Enable Lightweight and Precision-Scalable Posit/IEEE-754 Arithmetic in RISC-V Cores for Transprecision Computing
Qiong Li, Chao Fang, Longwei Huang, Jun Lin, Zhongfeng Wang
TL;DR
This work tackles the challenge of enabling light-weight, precision-scalable posit arithmetic within RISC-V for transprecision computing while maintaining IEEE-754 compatibility. It introduces a unified architecture that integrates dedicated posit codecs into the FPU, supports multi/mixed-precision with a dynamic exponent size $es$, and adds custom ISA extensions for format conversions between posit and IEEE-754 formats. Experimental results show substantial hardware savings (up to 47.9% LUTs and 57.4% FFs) and up to 2.54x throughput improvements in GEMM kernels, with minimal core overhead and solid SoC performance. The proposed design delivers practical transprecision capabilities on IoT-class cores, enabling efficient compute across FPU, core, and SoC levels.
Abstract
While posit format offers superior dynamic range and accuracy for transprecision computing, its adoption in RISC-V processors is hindered by the lack of a unified solution for lightweight, precision-scalable, and IEEE-754 arithmetic compatible hardware implementation. To address these challenges, we enhance RISC-V processors by 1) integrating dedicated posit codecs into the original FPU for lightweight implementation, 2) incorporating multi/mixed-precision support with dynamic exponent size for precision-scalability, and 3) reusing and customizing ISA extensions for IEEE-754 compatible posit operations. Our comprehensive evaluation spans the modified FPU, RISC-V core, and SoC levels. It demonstrates that our implementation achieves 47.9% LUTs and 57.4% FFs reduction compared to state-of-the-art posit-enabled RISC-V processors, while achieving up to 2.54$\times$ throughput improvement in various GEMM kernels.
