English

CGRA4ML: A Hardware/Software Framework to Implement Neural Networks for Scientific Edge Computing

Hardware Architecture 2026-03-30 v4 Artificial Intelligence

Abstract

The scientific community increasingly relies on machine learning (ML) for near-sensor processing, leveraging its strengths in tasks such as pattern recognition, anomaly detection, and real-time decision-making. These deployments demand accelerators that combine extremely high performance with programmability, ease of integration, and straightforward verification. We present cgra4ml, an open-source, modular framework that generates parameterizable CGRA accelerators in synthesizable SystemVerilog RTL, tailored to common ML compute patterns found in scientific applications. The framework supports seamless system integration through AXI-compliant interfaces and open-source DMA components, and it includes automatic firmware generation for programming the accelerator. A comprehensive verification suite and a runtime firmware stack further support deployment across diverse SoC platforms. cgra4ml provides a modular, full-stack infrastructure, including a Python API, SystemVerilog hardware, TCL toolflows, and a C runtime, which facilitates easy integration and experimentation, allowing scientists to focus on innovation rather than dealing with the intricacies of hardware design and optimization. We demonstrate the effectiveness of cgra4ml to implement common scientific edge neural networks using ASIC and FPGA design flows.

Keywords

Cite

@article{arxiv.2408.15561,
  title  = {CGRA4ML: A Hardware/Software Framework to Implement Neural Networks for Scientific Edge Computing},
  author = {G Abarajithan and Zhenghua Ma and Ravidu Munasinghe and Francesco Restuccia and Ryan Kastner},
  journal= {arXiv preprint arXiv:2408.15561},
  year   = {2026}
}

Comments

Accepted for publication in ACM TRETS 2026

R2 v1 2026-06-28T18:26:12.783Z