RTLSquad: Multi-Agent Based Interpretable RTL Design
1 st Wang Bowei, 2 nd Qi Xiong, 3 rd Zeqing Xiang, 4 th Lei Wang, 5 th Renzhi Chen · 2025
Read RTLSquad: Multi-Agent Based Interpretable RTL Design by 1 st Wang Bowei, 2 nd Qi Xiong, 3 rd Zeqing Xiang, 4 th Lei Wang, 5 th Renzhi Chen (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-05470.txt.
Introduction
Chip designers write hardware in register-transfer level code, and squeezing that code for power, speed, and area is expert work. Bowei Wang and co-authors build RTLSquad, a team of language-model agents that divides the job into three stages: exploration, implementation, and verification with evaluation. Specialist squads handle each stage and argue their choices in the open.
That visible debate is the point: engineers get a decision path they can inspect, not just code they must trust. Tests show the system producing correct designs with stronger hardware scores than single-model approaches. The 2025 paper targets the trust gap that keeps AI assistants out of real design flows.
Catalog record
| CREATOR | 1 st Wang Bowei, 2 nd Qi Xiong, 3 rd Zeqing Xiang, 4 th Lei Wang, 5 th Renzhi Chen |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 15 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2501-05470
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
RTLSquad: Multi-Agent Based Interpretable RTL Design 1 st Wang Bowei, 2 nd Qi Xiong, 3 rd Zeqing Xiang, 4 th Lei Wang, 5 th Renzhi Chen Abstract Optimizing Register-Transfer Level (RTL) code is crucial for improving hardware PPA performance. Large Language Models (LLMs) offer new approaches for automatic RTL code generation and optimization. However, existing methods often lack decision interpretability (sufficient, understandable justification for decisions), making it difficult for hardware engineers to trust the generated results, thus preventing these methods from being integrated into the design process. To address this, we propose RTLSquad, a novel LLM-Based Multi-Agent system for interpretable RTL code generation. RTLSquad divides the design process into exploration, implementation, and verification & evaluation stages managed by specialized agent squads, generating optimized RTL code through inter-agent collaboration, and providing decision interpretability through the communication process. Experiments show that RTLSquad excels in generating functionally correct RTL code and optimizing PPA performance, while also having the capability to provide decision paths, demonstrating the practical value of our system. I Introduction Fig. 1: The overview of RTLSquad. The workflow consists of three stages: exploration, implementation, and verification & evaluation. The iterative process is divided into inner loop and outer loop based on verification results. Register-transfer level (RTL) design fundamentally impacts the power, performance, and area (PPA) of hardware, highlighting the importance of optimizing RTL code. Recent research has introduced large language model (LLM) techniques for automated RTL code generation, either by fine-tuning to produce high-quality RTL code [ liuRTLCoderFullyOpenSource2024 , thakur2022benchmarkinglargelanguagemodels , thakurVeriGenLargeLanguage2024 ] or through multi-stage processes to progressively optimize RTL code [ yaoRTLRewriterMethodologiesLarge2024 , delorenzoMakeEveryMove2024 ] . Multi-stage RTL code generation process requires decision-making ability (what design to select, how to implement the design, etc.). Existing work leverages traditional heuristic algorithms to guide LLMs in making decisions, such as Monte Carlo Tree Search algorithm [ yaoRTLRewriterMethodologiesLarge2024 , delorenzoMakeEveryMove2024 , LLMCodeGen ] . These methods can provide result interpretability by providing generated code after each decision, but they are limited in providing decision interpretability [ krausAIExplainingDecisions2020 ] , the ability to clearly explain the rationale behind each decision. This limitation arises from the inherent randomness and opaque nature of heuristic methods. The lack of decision interpretability leads to: 1) Hardware engineers may struggle to trust the generated results, therefore unlikely to integrate these methods into current design process [ mohammadkhani2023systematicliteraturereviewexplainable ] ; 2) Engineers being unable to discern the quality of results during the generation process, thus lacking sufficient reason to accept the final result over others; 3) Engineers also being unable to learn from the decision-making process, therefore possible to adopt an erroneous design found to be faulty in the past again. The LLM-based multi-agent (LLM-MA) system is an innovative method for providing decision interpretability. LLM-MA system consists of multiple LLM agents with different role settings, solve tasks by simulating human collaboration [ chanChatEvalBetterLLMbased2023 , li2024improvingmultiagentdebatesparse , smit2024goingmadlookmultiagent ] . This setup demonstrates greater problem-solving capabilities compared to a single LLM instance [ qian2024chatdevcommunicativeagentssoftware , liangEncouragingDivergentThinking2023 ] . A key feature of the system is that agents communicate and negotiate decisions using natural language, making the decision-making process inherently transparent and comprehensible to users, thereby offers significant advantages in providing decision interpretability. To fully leverage the advantages of the LLM-MA system in decision interpretability for hardware design, we propose RTLSquad , a novel LLM-MA system dedicated to RTL code generation and optimization. RTLSquad operates through a multi-stage process, as shown in Figure 1 : exploration stage , exploring various design options to optimize PPA; implementation stage , generating correct RTL code according to specifications and requirements; verification & evaluation stage , analyzing EDA tool reports and identifying trends in data changes. Each stage is driven by a squad composed of multiple specialized LLM agents, where the communication process within the squad can be regarded as an interpretation of each design decision step, thereby providing decision interpretability for hardware engineers. Through iterative optimization, RTLSquad can progressively explore and implement various designs based on tool feedback, ultimately producing RTL code that is both correct and well-optimized. Experimental results across various designs demonstrate that RTLSquad’s iterative optimization enhances backbone model’s ability to generate correct RTL code, with Pass@1 performance improving by 7.2% and matching or exceeding the PPA of the reference design in most cases (73.3%). The decision paths are formatted into well-structured documents as outputs, providing comprehensive explanations for each decision in each stage, effectively addressing the disadvantages caused by insufficient decision interpretability. Our contributions are summarized as follows: • We propose RTLSquad, an RTL code generation and optimization framework dedicated to providing reliable and understandable hardware design. • We have developed various interaction mechanisms to enable multiple agents to effectively collaborate on generating RTL code. • We are the first to be able to generate RTL code while providing decision paths, thereby possessing greater practical practical value. II Related Work II-A LLM-Based Agent for RTL Design LLM for hardware design has gradually gained attention from researchers. Related studies covering various design processes [ kahng2024dgreplacedataflowdrivengpuacceleratedanalytical , hosny2019drillsdeepreinforcementlearning , 8367260 , TIAN2021174 ] . Our work primarily focuses on automated RTL design. Relevant studies indicate that LLMs capable of generate Verilog code but with limitations [ liuVerilogEvalEvaluatingLarge2023 ] . The agent paradigm can enhance LLM’s design capabilities, such as using the ReAct [ yao2023reactsynergizingreasoningacting ] paradigm to drive LLMs to fix Verilog syntax errors [ tsaiRTLFixerAutomaticallyFixing2024 ] . Further, we focus on the LLM-MA (LLM-Based Multi Agent) method [ guoLargeLanguageModel2024 ] , which completes tasks through collaboration among multiple agents. Existing work primarily utilizes LLM-MA for HLS design [ sheikholeslamSynthAIMultiAgent2024 ] or layout design [ liuLayoutCopilotLLMpoweredMultiagent2024 ] , lacking attention to RTL design. Our work employs multiple agents to form multiple specialized squads of agents, used to generate and optimize RTL code. II-B Decision Interpretability with LLM-MA AI interpretability enables users to understand why AI systems produce specific results, thereby enhancing trust [ SAEED2023110273 ] . The application of LLM-MA systems in decision interpretation has been achieved in several critical fields such as medical diagnosis [ hong2024argmedagentsexplainableclinicaldecision , pandeyAdvancingHealthcareAutomation2024 ] , fact-checking [ kim2024llmsproducefaithfulexplanations ] , etc. This demonstrates the feasibility of using such methods in hardware design, a field with equally high demands for reliability. Compared to decision paths generated by methods like CoT [ wei2023chainofthoughtpromptingelicitsreasoning ] , LLM-MA systems provide superior decision interpretability, including robust justification for decisions [ duImprovingFactualityReasoning2023 ] and better diversity [ liangEncouragingDivergentThinking2023 ] . Therefore, our work employs a squad of agents as decision-makers, aiming to provide complete decision interpretations for implementation, exploration, and analysis. III Methodology In this section, we will comprehensively introduce the design and implementation of RTLSquad. First, we will show the workflow of RTLSquad (Section III-A ). Then, we will introduce the exploration (Section III-D ), implementation (Section III-B ), and verification & evaluation stages (Section III-C ) of RTLSquad, describing the roles and processes of each stage. III-A Overview Figure 1 illustrates the workflow of RTLSquad. Consistent with the standard RTL design process, RTLSquad accepts design specifications, testbench files, and optional initial code as inputs, and outputs optimized code and comprehensive decision path documentation. Depending on whether the functional verification is passed, the iterative process of RTLSquad is divided into the verification-fix