# MAGE: A Multi-Agent Engine for Automated RTL Code Generation

Source: [MAGE: A Multi-Agent Engine for Automated RTL Code Generation](<https://www.sota2.com/research/paper/68fa76301e209131cea6bbdc>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T03:48:32.506Z

Authors: Yujie Zhao, Hejia Zhang, Hanxian Huang, Zhongming Yu, Jishen Zhao

Published: 2024-12-10T21:53:55.000Z

## 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 checkpoint checking mechanism that enables early detection of functional errors and delivers precise feedback for targeted fixes, significantly enhancing the functional correctness of the generated RTL code. MAGE achieves a 95.7% rate of syntactic and functional correctness code generation on VerilogEval-Human 2 benchmark, surpassing the state-of-the-art Claude-3.5-sonnet by 23.3 %, demonstrating a robust and reliable approach for AI-driven RTL design workflows.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Verilog Generation on VerilogEval v2 (41 filtered problems)](<https://www.sota2.com/research/sota/verilog-generation-on-verilogeval-v2-41-filtered-problems.md>): Verilog Generation; VerilogEval v2 (41 filtered problems); Solved Rate: 0.8048780487804879.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2412.07822>)

[PDF](<https://arxiv.org/pdf/2412.07822.pdf>)
