MACO: A Multi-Agent LLM-Based Hardware/Software Co-Design Framework for CGRAs
Zesong Jiang, Yuqi Sun, Qing Zhong, Mahathi Krishna, Deepak Patil, Cheng Tan, Jeff Zhang
TL;DR
The paper presents MACO, an open-source multi-agent LLM-based framework for CGRA HW/SW co-design that iteratively explores the design space, repairs design errors with rule-based mechanisms, and selects high-quality designs using adaptive confidence and self-learning. By combining exponentially decaying exploration, repair libraries, and a two-tier evaluation loop, MACO reduces design turnaround time and improves PPA compared with baselines. Experimental results across multiple kernels and domains show substantial power reductions and performance gains, with MACO designs validated through ASIC flows. This approach demonstrates the viability and practicality of LLM-driven automation for complex CGRA design tasks.
Abstract
Coarse-Grained Reconfigurable Arrays (CGRAs) offer high performance and energy efficiency across domains, yet design remains difficult due to a vast, interdependent space and costly manual iteration. We present MACO, an open-source multi-agent LLM framework for CGRA HW/SW co-design. MACO generates and refines architectures through four stages: HW/SW Co-design, Design Error Correction, Best-Design Selection, and Evaluation & Feedback, iteratively improves power, performance, and area (PPA) via agent reasoning and closed-loop feedback. To traverse the space efficiently, we introduce exponentially decaying exploration; to accelerate convergence, we incorporate an LLM self-learning mechanism that adaptively selects promising candidate CGRAs. In addition, we propose a rule-based mechanism to correct CGRA design errors. Evaluated against other state-of-the-art methods, MACO achieves superior PPA while substantially reducing human effort, highlighting the promise of LLM-driven automation for practical CGRA design.
