Abstract
While Large Language Models (LLMs) have demonstrated significant proficiency in software engineering, their application to hardware description languages (HDLs) like Verilog has largely been confined to simple, isolated logic blocks. This paper introduces ArchXBench, a hierarchical benchmark suite comprising 51 designs across six levels of complexity, ranging from basic gates to integrated System-on-Chip (SoC) components. Our evaluation of state-of-the-art models—including Claude 3.5 Sonnet, GPT-4o, o1-mini, and DeepSeek R1—reveals a stark "complexity cliff." While models perform well on low-level arithmetic, they consistently fail to generate the deeply pipelined and hierarchical architectures required for modern signal processing and AI accelerators. These findings suggest that current LLMs rely more on pattern matching than architectural reasoning, highlighting the need for agentic workflows and formal verification in automated RTL synthesis.
1. Introduction
The integration of LLMs into the hardware design cycle promises to accelerate the development of Register-Transfer Level (RTL) code. However, existing benchmarks such as RTLLM or VerilogEval primarily focus on "toy" problems—single-function blocks like counters or simple adders. In contrast, production-grade hardware engineering involves managing deep pipelines, complex state machines, and strict area-power-latency trade-offs within hierarchical systems.
ArchXBench was developed to address this gap, providing a rigorous "stress test" for LLMs. By categorizing hardware tasks into six distinct levels of complexity, the suite allows researchers to identify exactly where model reasoning breaks down and what architectural features (e.g., pipelining, iterative logic) pose the greatest challenges to automated synthesis.
2. The ArchXBench Dataset
ArchXBench consists of 51 benchmark designs organized into a hierarchical structure:
- Levels 0-1 (Basic Logic): Fundamental gates and simple combinational/multi-cycle arithmetic (e.g., Ripple Carry Adders).
- Level 2 (Pipelined Components): Introduction of temporal complexity, including pipelined arithmetic and single-round cryptographic components (e.g., AES rounds).
- Level 3 (Iterative Algorithms): Floating-point units and algorithms requiring iterative state management (e.g., Newton-Raphson square root).
- Level 4 (Signal Processing): Complex structural designs such as Fast Fourier Transforms (FFT) and FIR filters.
- Level 5 (ML & Image Processing): High-level blocks including 2D Convolutions and Systolic GEMM arrays.
- Level 6 (Integrated Subsystems): Full functional cores, such as complete AES encryption engines and 3D CNN blocks.
3. Methodology
We evaluated four leading models—Claude 3.5 Sonnet, GPT-4o, o1-mini (o4-mini-high), and DeepSeek R1—using a pass@5 metric. Each model was provided five independent attempts to solve a prompt; a task was considered "solved" if at least one attempt passed functional verification.
The evaluation pipeline included:
- Zero-shot Prompting: Models received a natural language description and a formal interface specification.
- Functional Verification: Generated Verilog was executed against a pre-defined testbench.
- Architectural Validation: Code was manually inspected to ensure compliance with specific structural requirements (e.g., ensuring a design was actually pipelined as requested).
- Reference Modeling: For Levels 5 and 6, Python-based golden models were used to verify output accuracy.
4. Key Results and the "Complexity Cliff"
Our evaluation uncovered several critical insights into the current state of LLM-driven hardware design:
4.1 Performance Degradation
A massive drop-off in performance, termed the "Complexity Cliff," occurs at Level 4. While models like o1-mini showed strength in Levels 1 through 3 (solving 16 out of 30 tested benchmarks overall), all models failed to produce functionally correct code for Level 4 and above. As designs grew in complexity, we observed significant syntax degradation, where models lost track of basic HDL structural rules in long-form code.
4.2 Training Bias vs. Reasoning
Models performed surprisingly well on the AES encryption core (Level 6) despite its inherent complexity. This success is likely due to the ubiquity of AES in training data. Conversely, models frequently failed on mathematically simpler but less common structures, such as Dadda multipliers. This suggests that LLMs are often "reciting" known hardware patterns rather than reasoning through architectural requirements.
4.3 The Role of Scaffolding
Performance improved significantly when prompts included explicit mathematical equations (e.g., Gradient Descent formulas) rather than just functional descriptions. This indicates that LLMs currently excel at "mathematical translation" but struggle with independent "architectural planning."
5. Discussion and Future Directions
The failure of current models to scale to complex RTL suggests that zero-shot prompting is insufficient for production-grade hardware design. Future work should focus on:
- Agentic Workflows: Moving beyond single prompts toward multi-step processes where models first plan a micro-architecture (perhaps in C or pseudocode) before generating Verilog.
- Formal Verification Loops: Integrating RTL simulators and formal tools into the LLM loop, allowing models to self-correct based on error logs and timing reports.
- Domain-Specific Fine-tuning: Enhancing model understanding of structural hardware constraints and hierarchical integration.
ArchXBench serves as a baseline for these future developments, providing a clear metric for progress toward fully automated, high-performance digital system synthesis.
Summary updated