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

Read full text
Authors: G Abarajithan, Zhenghua Ma, Ravidu Munasinghe, Francesco Restuccia, Ryan Kastner
Cited by: 2
References: 30

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.

Fields of Study & Subjects

Neural Networks and Applications Robotics and Automated Systems Inertial Sensor and Navigation

Publication details

Journal / source
ACM Transactions on Reconfigurable Technology and Systems
Publisher
Association for Computing Machinery (ACM)
Volume
19
Issue
2
Pages
1–33
Publication date
10 March 2026
Language
EN