Hardware Managed Memory Streams for RISC-V

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 112 papers18 conceptsfrozen 2026-10-04

In traditional processor architectures, the CPU is responsible for every step of a data-intensive loop: calculating the next memory address, issuing the load instruction, performing the arithmetic, and incrementing the pointer. For workloads like sparse linear algebra or tensor operations, the "bookkeeping" of address generation often consumes more cycles and energy than the actual computation.

A research direction led by Luca Benini, Fabian Schuiki, and Paul Scheffler addresses this bottleneck by offloading memory access patterns to dedicated hardware units. By transforming registers into implicit data streams, these architectures allow simple cores to achieve near-theoretical peak compute utilization.

Decoupling Address Generation from Execution

The core innovation, introduced as Stream Semantic Registers (SSR), involves mapping specific CPU registers to hardware-managed memory streams. Instead of a register holding a static value, it acts as a window into a data stream. Every time the core reads from an SSR, the hardware automatically fetches the next element in a pre-programmed pattern and updates the address for the next read.

This mechanism effectively removes the instruction overhead of loops. In a standard RISC-V core, a dot product might require four or five instructions per element (load, load, multiply-accumulate, increment, branch). With SSRs, the core only executes the multiply-accumulate; the hardware handles the rest in the background. Schuiki et al. demonstrated that this allows single-issue cores to achieve up to 5x speedups by keeping the Floating Point Unit (FPU) constantly saturated.

Handling Irregular and Sparse Data

While basic SSRs handle affine (predictable, strided) patterns, real-world workloads often involve "pointer-chasing" or indirect lookups. Indirection Stream Semantic Registers (ISSRs) and Sparse Stream Semantic Registers (SSSRs) extend this concept to irregular data.

These units offload the logic for index matching and indirect addressing—common in sparse matrix-vector multiplication—into hardware. By processing index streams in the background, the hardware resolves addresses before the core even requests the data. This eliminates the round-trip latency of traditional indirect loads, enabling high efficiency in tasks like graph analytics and sparse convolutions that typically cripple standard CPUs.

Scaling from Edge to Manycore

The utility of hardware-managed streams extends across the entire computing spectrum:

  • At the Edge: The Flex-V architecture uses these principles to shuffle data for mixed-precision neural networks, achieving 3.26 TOPS/W by removing software-based data-shuffling overhead.
  • In Data Movement: The intelligent DMA (iDMA) architecture by Thomas Benz and colleagues applies N-dimensional address generation to autonomous data transfers, allowing for complex tensor slicing without CPU intervention.
  • In Manycore Systems: The Occamy system integrates these streaming units into a 432-core dual-chiplet design, proving that offloading memory patterns is a viable strategy for scaling high-performance computing (HPC) workloads on open-source RISC-V hardware.

By moving the "where" of data access into hardware, these researchers allow the "what" of computation to proceed at full speed, bridging the gap between flexible general-purpose cores and rigid specialized accelerators.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_hardware_managed_memory_streams_for_risc_d42f9cd9,
  title = {Hardware Managed Memory Streams for RISC-V},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hardware-managed-memory-streams-for-risc-v/rdr_d42f9cd9fbb24ad3970b0b2b58642b33},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_hardware_managed_memory_streams_for_risc_d42f9cd9_v1,
  title = {Hardware Managed Memory Streams for RISC-V},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hardware-managed-memory-streams-for-risc-v/rdr_d42f9cd9fbb24ad3970b0b2b58642b33/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}