Skip to main content
QUICK REVIEW

[Paper Review] PERI: A Posit Enabled RISC-V Core

Sugandha Tiwari, Neel Gala|arXiv (Cornell University)|Aug 5, 2019
Low-power high-performance VLSI designEngineering14 references9 citations
TL;DR

This paper presents PERI, the first RISC-V core extended with a parameterized, feature-complete Posit-enabled FPU that supports runtime switching between two exponent sizes (es=2 and es=3) for 32-bit posit size. The FPU is integrated with the SHAKTI C-class RISC-V core either as a tightly-coupled execution unit or co-processor via a RoCC interface, achieving 100 MHz operation on an Artix-7 FPGA with 3,507 LUTs and 1,294 registers, while enabling applications to leverage Posit’s higher accuracy or dynamic range as needed.

ABSTRACT

Owing to the failure of Dennard's scaling the last decade has seen a steep growth of prominent new paradigms leveraging opportunities in computer architecture. Two technologies of interest are Posit and RISC-V. Posit was introduced in mid-2017 as a viable alternative to IEEE 754-2008. Posit promises more accuracy, higher dynamic range, and fewer unused states along with simpler hardware designs as compared to IEEE 754-2008. RISC-V, on the other hand, provides a commercial-grade open-source ISA. It is not only elegant and simple but also highly extensible and customizable, thereby facilitating novel micro-architectural research and exploration. In this paper, we bring these two technologies together and propose the first Posit Enabled RISC-V core. The paper provides insights on how the current 'F' extension and the custom op-code space of RISC-V can be leveraged/modified to support Posit arithmetic. We also present implementation details of a parameterized and feature-complete Posit FPU which is integrated with the RISC-V compliant SHAKTI C-class core either as an execution unit or as an accelerator. To fully leverage the potential of Posit, we further enhance our Posit FPU, with minimal overheads, to support two different exponent sizes (with posit-size being 32-bits). This allows applications to switch from high-accuracy computation mode to a mode with higher dynamic-range at run-time. In the absence of viable software tool-chain to enable porting of applications in the Posit domain, we present a workaround on how certain applications can be modified minimally to exploit the existing RISC-V tool-chain. We also provide examples of applications which can perform better with Posit as compared to IEEE 754-2008. The proposed Posit FPU consumes 3507 slice LUTs and 1294 slice registers on an Artix-7-100T Xilinx FPGA while capable of operating at 100 MHz.

Motivation & Objective

  • To address the limitations of IEEE 754 floating-point arithmetic, such as complex exception handling, subnormal overhead, and inconsistent NaN representations.
  • To integrate Posit arithmetic—offering higher accuracy, dynamic range, and simpler hardware—into a commercial-grade open-source RISC-V ISA.
  • To enable runtime selection between high-accuracy (es=2) and high-dynamic-range (es=3) modes within the same FPU hardware unit.
  • To provide a practical path for integrating Posit support into existing RISC-V toolchains despite the absence of native Posit compiler support.
  • To demonstrate that Posit-based computation outperforms IEEE 754 in key numerical applications through FPGA prototyping.

Proposed method

  • Extending the RISC-V 'F' extension and utilizing the custom op-code space to encode Posit-specific instructions, including FMADD, FADD, FMUL, FDIV, FSQRT, and FCVT.
  • Designing a parameterized Posit FPU supporting 32-bit posit size with two exponent sizes (es=2 and es=3), using BSV for hardware generation.
  • Implementing control and status registers to store the current es value, enabling dynamic switching between modes during execution.
  • Integrating the FPU either as a tightly-coupled execution unit within the SHAKTI C-class core pipeline or as a co-processor via a RoCC-like interface.
  • Developing a workaround for software porting by enabling minimal code modifications to exploit existing RISC-V toolchains for Posit-aware applications.
  • Using FPGA prototyping (Xilinx Artix-7-100T) to validate performance, area, and frequency, with measured operation at 100 MHz.

Experimental results

Research questions

  • RQ1How can the RISC-V ISA be extended or modified to natively support Posit arithmetic while maintaining compatibility with existing extensions?
  • RQ2What is the hardware and performance overhead of supporting multiple exponent sizes (es=2 and es=3) within a single FPU unit for 32-bit posit size?
  • RQ3Can Posit arithmetic outperform IEEE 754 in real-world applications despite the lack of native compiler toolchain support?
  • RQ4How can a Posit FPU be efficiently integrated into a RISC-V core as either an execution unit or co-processor?
  • RQ5What are the key differences in instruction-level behavior and cycle counts between Posit and IEEE 754 FPU implementations in the RISC-V context?

Key findings

  • The proposed Posit FPU consumes 3,507 slice LUTs and 1,294 slice registers on an Artix-7-100T FPGA, operating at 100 MHz.
  • The FPU supports runtime switching between es=2 (higher accuracy) and es=3 (higher dynamic range) modes with only 4 cycles of overhead for mode change.
  • The implementation of key operations like FMUL, FADD, and FMA require 6, 6, and 8 cycles respectively, while FDIV and FSQRT require 20 and 32 cycles, respectively.
  • The FPU supports all required RISC-V 'F' extension instructions, including conversions (FCVT), comparisons (FMIN/FMAX), and classification (FCLASS), with cycle counts aligned with standard RISC-V FPU expectations.
  • The design enables coexistence of IEEE 754 and Posit FPUs on the same chip, allowing application-level selection based on accuracy or range needs.
  • Applications such as matrix multiplication and signal processing demonstrate measurable benefits with Posit over IEEE 754, particularly in reducing precision loss and improving numerical stability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.