Snitch: A Tiny Pseudo Dual-Issue Processor for Area and Energy Efficient Execution of Floating-Point Intensive Workloads

Florian Zaruba, Fabian Schuiki, Torsten Hoefler, Luca Benini · DOI

Introduction

The "Snitch" architecture introduces a tiny, 10 kGE integer core paired with a high-performance double-precision floating-point unit (FPU). By using two clever ISA extensions—Stream Semantic Registers (SSR) and Floating-point Repetition (FREP)—the system offloads memory addressing and loop management, achieving "pseudo dual-issue" performance and a 2× energy-efficiency improvement over contemporary vector processors.

Problem Statement: The "Bookkeeping Tax"

In the era of machine learning and scientific computing, floating-point operations are king. However, traditional general-purpose CPUs suffer from a "bookkeeping tax." In a simple dot-product kernel, a standard CPU might spend over 90% of its energy on auxiliary tasks—like fetching instructions, calculating memory addresses, and managing loops—leaving less than 10% for the actual math (the FPU).

Energy breakdown of common instructions showing the high overhead of non-computational tasks.

While dedicated hardware accelerators are efficient, they are often too rigid to handle evolving algorithms. On the other hand, complex "out-of-order" CPUs that try to hide these overheads consume massive amounts of silicon area and power. The authors tackle the challenge of creating a processor that is as flexible as a general-purpose CPU but as efficient as a dedicated accelerator.

The Snitch Architecture

The researchers developed Snitch, an ultra-small RISC-V core. The "secret sauce" lies in two minimally intrusive Instruction Set Architecture (ISA) extensions:

  1. Stream Semantic Registers (SSR): This extension allows the core to treat memory streams as if they were registers. Instead of writing explicit load and store instructions for every piece of data, the programmer configures a "streamer." When the FPU reads from a specific register (e.g., ft0), the SSR hardware automatically fetches the next data point from memory in the background.
  2. Floating-point Repetition (FREP): This allows the core to offload a sequence of floating-point instructions to a tiny micro-loop buffer. Once the integer core tells the FPU "repeat these three instructions 100 times," the integer core is free to perform other tasks (like calculating the next set of pointers) or simply idle to save power.
The Snitch architecture, featuring a tiny integer core and a decoupled FPU subsystem with SSR and FREP support.

Together, these allow a single-issue, in-order core to behave like a pseudo dual-issue processor, where the FPU and the integer core work independently and in parallel with minimal hardware overhead (only 3.2% area increase at the cluster level).

Evaluation Methodology

The architecture was evaluated using a suite of eight data-oblivious parallel microkernels representing common workloads in scientific computing and AI:

  • Linear Algebra: Dot product, Matrix Multiplication (GEMM), AXPY.
  • Deep Learning: ReLU activation, 2D Convolution.
  • Signal Processing: Fast Fourier Transform (FFT).
  • Statistics/Search: k-Nearest Neighbors (kNN), Monte Carlo π approximation.

The authors compared Snitch against Ara (a RISC-V vector processor), the NVIDIA Volta SM (GPU), and the ARM Carmel (a high-end superscalar CPU).

Key Insights

  • The "Control-to-Compute" Ratio: The core insight is that for many workloads, the integer core's only job is to "feed" the FPU. By moving the "feeding" logic (addressing and looping) into hardware streamers and buffers, you can use a microscopic integer core without bottlenecking a massive FPU.
  • Pseudo Dual-Issue: Unlike true dual-issue processors that require complex logic to find independent instructions, Snitch achieves parallelism by decoupling the FPU's execution from the integer core's instruction stream.
  • Register Staggering: To prevent the FPU from stalling due to data dependencies in tight loops, the FREP extension includes a "staggering" mechanism that automatically rotates register names, effectively providing software-defined operand renaming.

Results

  • Performance: Snitch achieved a 6× speedup on several microkernels compared to a baseline RISC-V implementation.
  • Efficiency: It demonstrated a 3.5× gain in energy efficiency on parallel workloads and a 2× improvement over the Ara vector processor.
  • Utilization: On a 128×128 matrix multiplication, the system achieved over 94% FPU utilization, meaning the math units were almost never idle.
  • Area: The entire integer core is so small (approx. 20 kGE) that it occupies only 11% of the core complex area, while the FPU and its supporting logic dominate the silicon, which is exactly what you want for a math-heavy processor.

Conclusion and Future Work

While Snitch excels at "data-oblivious" kernels, its current SSR implementation is less effective for sparse linear algebra, where memory access depends on the data itself. Future iterations could extend the SSR hardware to support these irregular patterns. Additionally, further work on compiler infrastructure is needed to automatically generate SSR and FREP code from standard C/C++ without requiring manual optimization or assembly.

Summary updated

BibTeX
@article{zaruba2021snitch,
  author = {Florian Zaruba and Fabian Schuiki and Torsten Hoefler and Luca Benini},
  title = {{Snitch: A Tiny Pseudo Dual-Issue Processor for Area and Energy Efficient Execution of Floating-Point Intensive Workloads}},
  journal = {IEEE Trans. Computers},
  year = {2021},
  doi = {10.1109/tc.2020.3027900},
}
Figure