Spatz: Clustering Compact RISC-V-Based Vector Units to Maximize Computing Efficiency

Matteo Perotti, Samuel Riedel, Matheus A. Cavalcante, Luca Benini

Abstract

Spatz is a compact, open-source 64-bit RISC-V vector processor designed to maximize computing efficiency through architectural balancing. By employing a small, latch-based Vector Register File (VRF) and a shared-memory cluster architecture, Spatz achieves over 95% FPU utilization and an energy efficiency of 95.7 GFLOPS/W in a 12nm process. This work demonstrates that compact vector units, when properly balanced with memory bandwidth, can provide superior efficiency for data-parallel workloads compared to traditional, large-scale vector architectures.

The Challenge: The Von Neumann Bottleneck in AI

As AI and Machine Learning requirements expand, traditional processor architectures face significant hurdles, primarily the "Von Neumann Bottleneck"—the energy and time penalties associated with moving data between memory and the processor. To mitigate memory latency, conventional vector processors often rely on massive Vector Register Files (VRFs) spanning hundreds of KiB. However, these large SRAM-based structures are area-intensive and consume substantial power. The Spatz architecture challenges this trend, investigating whether peak computing efficiency can be achieved with a much smaller, more compact vector unit.

The Spatz Architecture

The researchers developed Spatz, a Vector Processing Unit (VPU) based on the RISC-V "Zve64d" extension. The design focuses on balancing "arithmetic intensity" with physical hardware constraints.

The Snitch-Spatz Pairing

Spatz is designed as an accelerator for a "Snitch" scalar core. In this decoupled architecture, the tiny Snitch core manages instruction control and flow, while Spatz executes heavy-duty 64-bit floating-point operations. This separation allows the scalar core to be extremely small, as its overhead is amortized over long vector instructions.

The Snitch-Spatz architecture, showing the decoupled scalar core and the internal components of the Spatz vector unit, including the banked VRF and functional units.

Latch-based SCM VRF

A key innovation in Spatz is the use of a physically-driven Standard Cell Memory (SCM) using latches instead of standard SRAM for the register file. For small capacities (under 1 KiB per bank), latches were found to be 35% more energy-efficient than SRAM. This compact VRF acts as a critical L0 buffer, reducing traffic and energy consumption on the L1 memory interconnect.

Evaluation and Workloads

The architecture was evaluated using a suite of standard data-parallel kernels representing common AI/ML tasks, including double-precision matrix multiplication (matmul), 2D convolution (conv2d), and Fast Fourier Transform (fft). These workloads vary in arithmetic intensity and memory access patterns, providing a comprehensive test of the architecture's versatility.

Key Results and Efficiency

Implemented in GlobalFoundries’ 12nm FinFET technology, the Spatz cluster demonstrates remarkable performance and efficiency. It reaches 15.7 GFLOPS (double precision) at 1 GHz and achieves 97.9% FPU utilization on 64x64 matrix multiplication.

The most significant finding is the relationship between vector length (VLENB) and energy efficiency. The analysis shows that efficiency peaks at a relatively small vector length, justifying the "compact" design philosophy.

Energy efficiency (GFLOPS/W) vs. vector length (VLENB), illustrating the optimal efficiency point achieved by the compact Spatz design.

On 2D convolution, Spatz achieves 99.3 GFLOPS/W and an area efficiency of 171 GFLOPS/W/mm². Compared to a cluster of specialized scalar cores (Snitch with Stream Semantic Registers) of equal silicon area, the Spatz cluster is 30% more energy-efficient.

Conclusion

Spatz proves that "bigger isn't always better" in hardware design. By adhering to the RISC-V Vector (RVV) 1.0 standard, it benefits from existing compiler support while delivering industry-leading efficiency. While memory-bound kernels remain a challenge, the Spatz architecture provides a scalable and efficient template for future edge-AI and high-performance computing clusters.

Summary updated

BibTeX
@article{perotti2023spatz,
  author = {Matteo Perotti and Samuel Riedel and Matheus A. Cavalcante and Luca Benini},
  title = {{Spatz: Clustering Compact RISC-V-Based Vector Units to Maximize Computing Efficiency}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2023},
}
Figure