arXiv:2608.30659cs.ARAug 2026

Manuscript Offprint

arXiv:2608.30659

LLM-based Hardware Development with Hierarchical IRs and End-to-End Multi-Agent Workflow

Chenyang Yin, Agasthi Haputhanthri, Aditya Anirudh Jonnalagadda, Zhenyu Bai, Yuanming Song, Saranyu Chattopadhyay, Mohammad Fadiheh, Tom Zelazny, Subhasish Mitra, Tulika Mitra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Chenyang Yin 1^{1}

Agasthi Haputhanthri 1^{1}

Aditya Anirudh Jonnalagadda 1^{1}

Zhenyu Bai 1^{1}

Yuanming Song 2^{2}

Saranyu Chattopadhyay 3^{3}

Mohammad Fadiheh 4^{4}

Tom Zelazny 3^{3}

Subhasish Mitra 3^{3}

Tulika Mitra 1^{1}

1^{1}National University of Singapore

2^{2}Shandong University

3^{3}Stanford University

4^{4}LUBIS EDA

Abstract

Large language models (LLMs) are increasingly used in software development, but their use in complex hardware design remains limited. This gap stems from both the scarcity of public hardware training data and the fundamentally different methodologies used in hardware design. In particular, applying LLMs to hardware requires more than direct RTL generation: the model must understand module boundaries, inter-module connections, and verification requirements. For nontrivial designs, directly generating complete RTL using LLM is rarely effective.

In this paper, we present an LLM-based hardware development framework with hierarchical intermediate representations (IRs) and an end-to-end multi-agent workflow. The core idea is to provide an abstraction of hardware design to LLMs through two structured IRs: Architectural Sketch, which captures module topology and interconnection, and Operational Specification, which defines per-module functionality and interfaces. Our framework uses these IRs to decompose a complex design into sub-modules, specify the per-block functionality, and derive how each module should be tested and verified. In order to fix the intractable errors in complex designs, we incorporate a multi-agent debug loop in the framework, allowing agents to get the error feedback and control the debug details such as the signals to be probed for simulation.

We evaluate our framework on Verilog-Eval benchmark, achieving a pass@5 rate of 95.5%, which surpasses current state-of-the-art LLM generation frameworks. To better assess performance on complex, realistic designs, we introduce a new case study spanning applications from general-purpose processors to digital signal processing systems. Experimental results indicate that such complex designs exceed the capabilities of existing approaches, whereas our framework is the only one capable of producing functional end-to-end design. Our generated RTL follows all industry-standard design rules, is lint-clean, functionally correct and fully synthesizable. Within the case study, each case averages 780 lines of RTL and synthesizes to a netlist of roughly 1.4 million cells, with RTL generation taking around 800 seconds and consuming approximately 82,000 tokens per design.

1 Introduction

As large language models (LLMs) continue advancing, cutting-edge models such as GPT-5.4[19], Claude 4.6[3], and Gemini 3.1[10] have demonstrated remarkable capabilities in assisting software engineering tasks [11][13]. Leveraging LLM-powered programming tools like GitHub Copilot[9] and Cursor[4], software engineers have significantly reduced manual effort and enhanced productivity. More recently, emerging agentic tools, like Claude Code[2] and Openclaw[21], have substantially lowered barriers to software development and improved developer productivity.

This on-going LLM trend presents a precious opportunity for the hardware industry. With a high barrier to entry, the hardware design process remains highly challenging and time-consuming even for advanced engineers. This situation highlights the significant potential of leveraging LLMs to assist hardware development. Existing studies such as [1, 7, 14, 16, 20, 22, 25, 28, 30, 31] have demonstrated the effectiveness of LLM-aided hardware design by achieving strong results on relevant benchmarks such as Verilog-Eval[15] and RTLLM[17]. However, these works are limited by their main focus on relatively small, single-module hardware designs. In contrast, real-world hardware development tasks—where LLM assistance is most needed—are typically more complex. They involve multiple interacting modules, sophisticated algorithms, and require users to develop their own testbenches rather than those provided in the benchmark. This disconnect highlights a clear gap between current research and the demands of real-world hardware design.

Real-world hardware development typically begins with defining the top-level architecture, which establishes the system organization. Individual functional blocks are then designed incrementally, with each block verified using its own testbench. Once all sub-modules are validated, a top-module is constructed to integrate them. The system then undergoes system-level verification using a top-level testbench, ultimately yielding an implementation-ready hardware design. While existing research places much attention on assisting the RTL design stage with LLMs, the verification stage—providing critical feedback needed for ensuring functional correctness—is in fact highly time-consuming, with a median share of 50–60% of the overall ASIC design time [8]. The end-to-end workflow requires substantial time and human effort, and using LLMs only for RTL generation fails to fully exploit their potential.

Motivated by this gap, recent work has explored the use of LLMs in other stages of the design workflow, such as organization and verification. Works such as ROME [18] and HiveGen [26] propose LLM-assisted frameworks that decompose complex systems into sub-modules and generate them block-by-block, resembling the divide-and-conquer methodology adopted by human engineers. However, these approaches still rely on manually written testbenches and therefore fall short of an end-to-end workflow. Leveraging LLMs in the verification stage, AutoBench [23] and CorrectBench [24] focus purely on testbench generation and self-correction, while MAGE [31] incorporates LLM-based internal testbench generation to assist RTL generation. However, their scope remains limited to single-module settings, not extending to hierarchical testbench generation for complex systems. Overall, despite these meaningful

Table 1: Comparison of different workflows. Our framework achieves end-to-end automation for complex design.

FrameworkRTL GenerationTestbench GenerationComplex Design Divide & Conquer
[1, 7, 16, 20, 28]✓✕✕
AutoBench✕✓✕
CorrectBench✕✓✕
ROME✓✕✓
HiveGen✓✕✓
MAGE✓✓✕
Ours✓✓✓

explorations along different directions, there remains a lack of an LLM-based end-to-end hardware design workflow—one that can take high-level design requirements, automatically analyze and decompose tasks, generate individual modules, construct corresponding testbench for verification, and ultimately deliver a complete and functionally correct hardware system—which is what we try to propose in this paper. The comparison of our proposed framework against existing representative research is presented in Table 1.

In order to enhance our framework's capability in handling complex hardware designs, we introduce two hierarchical intermediate representations (IRs) that standardize the description of hierarchical systems: the Architectural Sketch, which captures top-level structural organization, and the Operational Specification, which defines module functionalities and interfaces. These IRs serve two key purposes. First, they enable our framework to extract design requirements from natural language or diagrams and organize them in a structured form, facilitating both RTL and testbench generation. Second, they provide an additional level of abstraction for hardware design, allowing LLMs to better understand and reason about complex systems, and to design them effectively using a divide-and-conquer strategy. Building on these IRs, we propose an end-to-end multi-agent framework that redefines existing LLM-assisted hardware design workflows. Our framework begins with a planning stage, where the input is analyzed to generate the Architectural Sketch, followed by the Operational Specifications for each module. Once the IRs are finalized, they serve as guides for the generation, where RTL and corresponding testbenches are generated block-by-block. Adopting a bottom-up approach, it first generates all the sub-modules and then integrates them into the top-module.

In the RTL generation phase, a self-reflection loop is adopted by many existing frameworks [7, 18, 26, 31], where simulation outputs are fed back to the generator LLM for iterative debug. However, we observe that such a vanilla debug loop is insufficient for complex modules, particularly for sub-modules with intricate logic or the top-modules. To address this limitation, we design an effective multi-agent debug loop within our framework. Specifically, the loop consists of: (1) a probing information generator that identifies relevant internal signals to monitor, (2) an automated script that instruments the testbench to capture these signals, (3) a debug advisor that analyzes the execution traces and provides diagnostic advice, and (4) an error fixer that updates the RTL based on the generated advice. In addition, to prevent repetitive errors across iterations, we maintain a debug history that records the error patterns, corresponding advice, and RTL modifications. With this multi-agent debug loop, our framework is able to reliably produce functionally correct designs for complex systems.

We first evaluate our framework on the widely used Verilog-Eval benchmark[15]. Compared to the existing state-of-the-art baseline[31], our approach achieves a higher pass rate, demonstrating the effectiveness of the proposed IRs. However, as our goal is to enable complex, multi-module system design, Verilog-Eval does not fully capture the capabilities of our framework. To address this, we construct a case study consisting of seven representative complex hardware systems, ranging from digital signal processing (e.g., a beamformer) to processor designs (e.g., a RISC-V processor), along with 29 extracted sub-modules. For fair evaluation, we manually develop golden testbenches for all cases. We compare our framework with ROME[18] and MAGE[31] on this case study. While ROME and MAGE achieve only 0/7 and 1/7 success rates on full-system designs, and 16/29 and 19/29 on sub-modules, respectively, our framework successfully passes all cases. These results highlight the effectiveness of our approach in enabling end-to-end design of complex hardware systems.

References (10)