Re-thinking Memory-Bound Limitations in CGRAs

Xiangfeng Liu, Zhe Jiang, Anzhen Zhu, Xiaomeng Han, Mingsong Lyu, Qingxu Deng, Nan Guan

Introduction

Coarse-Grained Reconfigurable Arrays (CGRAs) are specialized hardware accelerators designed to efficiently process iterative, data-parallel loops. Traditionally, these architectures rely on Scratchpad Memory (SPM)—a small, fast, software-managed buffer. While this model is ideal for predictable data access patterns, such as matrix multiplication, it struggles with the unpredictable nature of modern "irregular" workloads.

The Memory Wall in CGRAs

Irregular workloads, including Graph Neural Networks (GNNs), database operations, and unstructured mesh simulations, often lead to frequent memory misses. Because CGRAs typically operate deterministically, a single memory miss can cause the entire array to stall. Analysis of complex graph tasks reveals that CGRA utilization can plummet to a dismal 1.43%, leaving the hardware largely idle while waiting for data from main memory.

CGRA utilization drops significantly during irregular workloads, averaging only 1.43% due to memory stalls.

Proposed Architectural Overhaul

To overcome these limitations, this research proposes a three-pronged architectural strategy to replace the traditional idealistic memory model with a dynamic cache hierarchy:

  1. Cache-Integrated Memory Subsystem: The design moves away from SPM-only models to a hybrid L1/L2 cache hierarchy, enabling the hardware to handle data volumes that far exceed on-chip storage capacity.
  2. CGRA-Specific Runahead Execution: This is the core innovation. When a cache miss occurs, the CGRA saves its state and enters a "runahead" mode. It substitutes missing data with dummy values to continue execution. While these specific calculations are discarded, they allow the CGRA to calculate future memory addresses and issue "precise prefetches." Once the original data arrives, the system restores its state and resumes normal execution with a warmed cache.
  3. Dynamic Cache Reconfiguration: A hardware monitor samples access patterns, allowing the system to dynamically reallocate cache associativity (ways) and adjust line sizes to meet the specific needs of different Processing Elements (PEs).
The proposed architecture features a multi-cache memory subsystem (a), a runahead execution mechanism (b), and a dynamic cache reconfiguration workflow (c).

Key Results and Insights

The evaluation of this design across various kernels (GCN, HPC, Sorting, and Multimedia) yielded significant performance and efficiency gains:

  • Performance Speedup: The runahead mechanism achieved an average 3.04× speedup, reaching up to 6.91× for kernels with poor data locality.
  • Storage Efficiency: By focusing on locality and prefetching rather than raw capacity, the system achieved performance comparable to massive SPM designs while requiring only 1.27% of the storage size.
  • Area Overhead: These enhancements introduced a 14.78% area overhead to the base CGRA core, a trade-off the authors deem favorable given the substantial performance improvements.

Conclusion and Future Work

By rethinking the memory hierarchy and introducing runahead execution, this work successfully mitigates the "memory wall" for CGRAs. Future research will focus on improving compiler support for mapping irregular loops, possibly using MLIR or LLMs, and conducting detailed power consumption analyses of the runahead logic.

Summary updated

BibTeX
@article{liu2025re,
  author = {Xiangfeng Liu and Zhe Jiang and Anzhen Zhu and Xiaomeng Han and Mingsong Lyu and Qingxu Deng and Nan Guan},
  title = {{Re-thinking Memory-Bound Limitations in CGRAs}},
  journal = {ACM Trans. Embed. Comput. Syst.},
  year = {2025},
  doi = {10.1145/3760386},
}
Figure