MAGE: A Multi-Agent Engine for Automated RTL Code Generation
Yujie Zhao, Hejia Zhang, Hanxian Huang, Zhongming Yu, Jishen Zhao

TL;DR
MAGE is a multi-agent AI system that significantly improves the accuracy and correctness of automatically generated Verilog RTL code using novel sampling, debugging, and verification mechanisms.
Contribution
This paper introduces MAGE, the first open-source multi-agent system for RTL code generation, with innovative sampling and verification techniques that outperform existing single-agent approaches.
Findings
Achieves 95.7% correctness rate on VerilogEval-Human 2 benchmark.
Surpasses state-of-the-art by 23.3% in code correctness.
Demonstrates robustness and reliability in AI-driven RTL design.
Abstract
The automatic generation of RTL code (e.g., Verilog) through natural language instructions has emerged as a promising direction with the advancement of large language models (LLMs). However, producing RTL code that is both syntactically and functionally correct remains a significant challenge. Existing single-LLM-agent approaches face substantial limitations because they must navigate between various programming languages and handle intricate generation, verification, and modification tasks. To address these challenges, this paper introduces MAGE, the first open-source multi-agent AI system designed for robust and accurate Verilog RTL code generation. We propose a novel high-temperature RTL candidate sampling and debugging system that effectively explores the space of code candidates and significantly improves the quality of the candidates. Furthermore, we design a novel Verilog-state…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel-Driven Software Engineering Techniques · Advanced Software Engineering Methodologies · Service-Oriented Architecture and Web Services
