FPnew is an open-source, highly configurable floating-point unit (FPU) designed to enable "transprecision computing"—the ability to tune numerical precision to match specific application requirements. By supporting a wide range of formats, from 8-bit "mini-floats" to 64-bit double precision, FPnew achieves significant energy efficiency gains (up to 2.95 Tflop/sW) and performance speedups without compromising the accuracy of final results.
The Challenge: Efficiency Beyond Moore's Law
As Moore’s Law slows and the "power wall" becomes a critical constraint, traditional hardware scaling no longer provides the energy efficiency improvements required for modern workloads like Machine Learning and IoT. While floating-point (FP) arithmetic is flexible and ubiquitous, standard 32-bit (float) and 64-bit (double) formats are often overkill for many tasks, leading to wasted energy and memory bandwidth.
Fixed-point arithmetic offers an alternative but requires tedious manual scaling and lacks the dynamic range of FP. The authors propose a hardware solution for transprecision computing: a paradigm where precision is a configurable parameter. The primary challenge is creating hardware that is "energy-proportional"—meaning that using fewer bits results in a commensurate reduction in energy consumption.
Architecture and Methods
The authors developed FPnew, a modular and parameterizable FPU architecture implemented in SystemVerilog. The design focuses on three key architectural features:
- Hierarchical Organization: The unit is partitioned into "Operation Group Blocks" (e.g., ADDMUL for Fused Multiply-Add, DIVSQRT for division/square root).
- Flexible Slicing: Each group can be implemented using Parallel Slices (dedicated hardware for each format to maximize energy efficiency) or Merged Slices (shared hardware to minimize area).
- SIMD Support: For narrower formats, FPnew automatically packs multiple operations into a single wide datapath. For instance, a 64-bit unit can execute eight 8-bit operations simultaneously.
To support these capabilities, the researchers extended the RISC-V Instruction Set Architecture (ISA) to include new formats (FP16, bfloat16, FP8) and "expanding" operations, such as an FMA that multiplies two 16-bit numbers and accumulates the result into a 32-bit register to maintain precision.
Evaluation and Key Results
The architecture was evaluated using synthetic benchmarks, a transprecision case study involving dot-product accumulation, and a physical silicon implementation in Globalfoundries 22FDX (22nm) technology.
Silicon measurements and simulations demonstrated the following:
- Extreme Efficiency: Measured energy efficiency reached 2.95 Tflop/sW for 8-bit operations and 178 Gflop/sW for 64-bit operations at 0.45V.
- Performance Scaling: Throughput scales from 3.2 Gflop/s (FP64) up to 25.3 Gflop/s (FP8) on the 64-bit Ariane core.
- System-Level Impact: In a 32-bit embedded core (RI5CY), transprecision extensions resulted in a 1.67x speedup and a 37% reduction in total system energy compared to a standard FP32 baseline.
- Area Efficiency: The FPU occupies roughly 47% of the area of a small RI5CY core but represents only about 0.7% of a full SoC, making it a highly cost-effective addition.
Insights and Future Work
A key insight from this research is that supporting small formats is insufficient without energy proportionality. FPnew utilizes fine-grained clock gating to ensure that when a small format is used, unused portions of the wide datapath do not consume power. Additionally, "Expanding FMA" operations allow for low-precision multiplication with high-precision accumulation, preserving numerical stability while saving energy.
While "Merged Slices" save area, they can complicate perfect energy proportionality. Future work aims to improve automated compiler support for precision exploration and potentially incorporate exotic representations like Posits or Logarithmic Number Systems (LNS).
Summary updated