I'm reading the paper "Spatz: A Compact Vector Processing Unit for High-Performance and Energy-Efficient Shared-L1 Clusters". These are my notes from reading it:
https://dl.acm.org/doi/abs/10.1145/3508352.3549367
Overview
- The idea is to combine processing elements that share L1 memory and configure them as a vector processor.
- The paper proposes Spatz, a compact, modular 32-bit vector processing unit.
- A cluster with four Snitch scalar cores needs only 7.9 pJ of energy per 32-bit integer multiply-accumulate operation.
- A Spatz-based MemPool system achieves 285 GOPS when running a 256×256 32-bit integer matrix multiplication.
- This is a 70% performance improvement over a comparable Snitch-based MemPool system.
- A Spatz-based MemPool system achieves 266 GOPS/W.
- This is more than twice the energy efficiency of the Snitch-based system (128 GOPS/W).
Introduction
The paper proposes Spatz, a compact 32-bit vector machine based on the embedded subset of RISC-V Vector Extension Version 1.0.
Architecture

- Spatz_N is attached to a small shared-L1 cluster with 16 KB of local SPM (Scratch Pad Memory).
- Each bank is split into 1 KB SRAM banks.
- Each CC has L1 instruction caches of 128 B and 2 KB.
- It has a private, latch-based L0 instruction cache.
- An address-based multiplexer decides whether a CC's memory request is forwarded to the AXI interface or to the crossbar.
Instruction Dispatch
- Spatz communicates with the scalar core through the generic CORE-V X-Interface accelerator interface.
- However, because the interface specification is still evolving, it is not a good fit for the memory bandwidth requirements of a vector machine.
- While Spatz's vector load/store unit is executing a memory operation, the scalar core's load/store unit is stalled, which guarantees the ordering of memory requests.
Controller
- Snitch predecodes the vector instructions and dispatches the vector instructions and scalar operands to the vector unit.
- The controller manages the CSRs and also handles operations such as LMUL.
- The controller directs the execution of vector instructions in the functional units. Hazards between vector instructions are handled through operand backpressure, and chaining is supported.
Vector Register File
- The vector register file is a multi-bank, multi-ported VRF with four 3R1W banks. Each bank is VLEN/4 bits wide, and the four VRF banks are occupied by the 32 vector registers of VLEN bits each.
- The VRF does not limit Spatz's target number of MACUs. Each Spatz core has only a small number of MACUs.
- The centralized VRF also makes it easy to implement things like vector permutation instructions.
Functional Units
Vector load/store unit
- Supports unit-stride and constant-stride memory accesses.
- The number of memory interfaces N matches the number N of MACUs in the design. This means that the ratio of peak compute to memory bandwidth is 0.5 OP/B.
- Providing multiple narrow memory interfaces enables fast constant-stride accesses and gather/scatter.
- However, because there is no ordering guarantee among the memory responses of individual requests, there is a reorder buffer between the memory interfaces and the VRF.
Vector arithmetic unit
- Hosts N MACUs. To save area, each MACU has four datapaths.
- Each datapath implements a multiplier, an adder, a comparator, and a shifter.

- Vector slide unit
- The vector slide unit performs vector permutation.
This is an English translation of the original Japanese post: Spatz: A Compact Vector Processing Unit for High-Performance and Energy-Efficient Shared-L1 Clusters という論文を読む