Abstract
Field-Programmable Gate Arrays (FPGAs) are increasingly utilized as accelerators for Deep Learning (DL) workloads. However, the traditional separation of storage and compute units leads to significant energy overhead and performance bottlenecks due to data movement across the programmable interconnect. This paper introduces "Compute RAMs," a novel architectural block that integrates processing-in-memory (PIM) capabilities into standard FPGA block RAMs. By leveraging bit-serial arithmetic within the memory array, Compute RAMs reduce dynamic energy consumption by up to 80% and improve execution speed by up to 80% for common DL primitives.
Introduction: The Data Movement Bottleneck
Modern FPGA architectures typically consist of three primary components: Logic Blocks (LBs) for general-purpose logic, Digital Signal Processing (DSP) slices for arithmetic, and Block RAMs (BRAMs) for data storage. While flexible, this decoupled structure is inefficient for DL applications, which require high-bandwidth data transfer between memory and compute units. Moving data across the FPGA's programmable routing fabric is power-intensive and creates congestion, often forcing designs to operate at lower clock frequencies. Furthermore, fixed-precision DSP slices lack the flexibility to efficiently support the diverse quantization levels (e.g., int4) used in modern neural networks.
The Compute RAM Architecture
To address these challenges, the authors propose the Compute RAM, a dual-mode block capable of functioning as either standard storage or an active compute unit. Built upon 22nm "Logic-in-Memory" SRAM technology, Compute RAMs perform logical operations directly on bit-lines by activating multiple word lines simultaneously.
Each 20-Kilobit SRAM array is augmented with several key components to enable autonomous operation:
- Instruction Memory (4 Kb): Stores micro-instruction sequences for various operations.
- Controller: A simple pipelined processor that manages instruction fetch and execution.
- Logic Peripherals: Edge-of-column logic gates that facilitate bit-serial arithmetic.
In compute mode, the block employs bit-serial arithmetic, processing data one bit at a time across multiple columns. This approach allows the hardware to support arbitrary precision dynamically, as the math is defined by software instructions rather than fixed silicon.
Key Insights
- Software-Defined Precision: The instruction-driven nature of Compute RAMs allows seamless switching between precisions like int4, int8, or bfloat16 without hardware reconfiguration.
- Interconnect Bypass: Performing arithmetic within the memory block eliminates the need to route data through the expensive programmable interconnect, significantly reducing power and latency.
- Column-Wise Parallelism: While bit-serial math is slower per operation, Compute RAMs achieve high throughput by executing operations simultaneously across dozens of bit-lines (e.g., 40 columns).
Performance Evaluation
The proposed architecture was evaluated using standard FPGA CAD tools (VTR 8.0 and COFFE 2.0). The results demonstrate substantial improvements over traditional FPGA baselines.
Energy and Speed
Compute RAMs achieved an average 80% reduction in dynamic energy consumption for primitives such as addition and multiplication. By avoiding long interconnect paths, the operating frequency of circuits using these blocks increased by 60-65%, leading to overall execution speedups of 20% to 80%.
Area Efficiency
While a Compute RAM block is approximately 33% larger than a standard BRAM, it is 12% smaller than a standard DSP slice. This makes it a highly area-efficient solution for increasing compute density on-chip.
Limitations and Future Directions
The bit-serial nature of the architecture presents challenges for complex operations like dot-products, which require extensive accumulation. For these operations, wider memory arrays (e.g., 72 columns) are necessary to provide sufficient parallelism to outperform baseline FPGAs. Additionally, integrating such heterogeneous blocks into existing CAD flows remains a complex task. Future research will focus on full-scale neural network evaluations and exploring optimized RAM geometries to further maximize parallelism.
Summary updated