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.
@article{arxiv.2509.13557,
title = {MACO: A Multi-Agent LLM-Based Hardware/Software Co-Design Framework for CGRAs},
author = {Zesong Jiang and Yuqi Sun and Qing Zhong and Mahathi Krishna and Deepak Patil and Cheng Tan and Jeff Zhang},
journal= {arXiv preprint arXiv:2509.13557},
year = {2025}
}