Abstract
The rise of agentic AI workflows unlocks novel opportunities for computer systems design and optimization. However, for specialized domains such as program synthesis, the relative scarcity of HDL and proprietary EDA resources online compared to more common programming tasks introduces challenges, often necessitating task-specific fine-tuning, high inference costs, and manually-crafted agent orchestration. In this work, we present VeriMaAS, a multi-agent framework designed to automatically compose agentic workflows for RTL code generation. Our key insight is to integrate formal verification feedback from HDL tools directly into workflow generation, reducing the cost of gradient-based updates or prolonged reasoning traces. Our method improves synthesis performance by 5-7% for pass@k over fine-tuned baselines, while requiring only a few hundred training examples, representing an order-of-magnitude reduction in supervision cost.
Introduction
Generating Register-Transfer Level (RTL) code—the foundational "source code" for hardware design—remains a significant challenge for Large Language Models (LLMs). Unlike general-purpose programming languages like Python or C++, Hardware Description Languages (HDL) such as Verilog suffer from a relative lack of open-source training data. Current approaches to bridge this gap typically rely on extensive fine-tuning on proprietary datasets or the use of expensive Large Reasoning Models (LRMs) that incur high inference costs regardless of task complexity.
We introduce VeriMaAS, a framework that automates the creation of multi-agent AI workflows specifically for hardware design. By integrating real-world feedback from electronic design automation (EDA) tools directly into the reasoning loop, VeriMaAS achieves state-of-the-art performance with significantly less training data than traditional methods.
The VeriMaAS Framework
The core of VeriMaAS is a "cascading controller" that manages a pool of agentic operators, ranging from simple I/O strategies to complex reasoning modes like Chain-of-Thought (CoT), ReAct, and Self-Refine. The framework operates on the principle of escalating complexity only when necessary.
The controller starts with the simplest, most cost-effective operator. If the generated Verilog code fails to pass checks in tools like Yosys (for synthesis) or OpenSTA (for timing analysis), the controller "promotes" the task to a more sophisticated reasoning operator. This closed-loop feedback allows the system to use actual EDA tool logs—such as error messages, area reports, and timing violations—to guide the agents' self-correction process.
Experimental Evaluation
We evaluated VeriMaAS across two primary benchmarks: VeriThoughts, which focuses on reasoning and formal verification, and VerilogEval, a standard benchmark for hardware implementation tasks. We also utilized the Skywater 130nm PDK to simulate real-world manufacturing constraints, measuring Power, Performance, and Area (PPA) metrics.
Results and Discussion
VeriMaAS demonstrates significant performance improvements over both base models and specialized fine-tuned baselines. As shown in the results, the framework consistently boosts Pass@k metrics across a variety of model architectures, including GPT-4o-mini, o4-mini, and the Qwen series.
Key findings include:
- Performance Gains: VeriMaAS improved synthesis performance by 5–7% (pass@k) over models specifically fine-tuned for RTL. On open-source models like Qwen-2.5-7B, the framework yielded gains of up to 11.72% in Pass@1 accuracy.
- Supervision Efficiency: The system achieved these results with only a few hundred training examples to tune the controller, representing an order-of-magnitude reduction in supervision cost compared to traditional fine-tuning.
- Hardware Optimization: In PPA-aware modes, the system achieved area and runtime reductions of up to 28.79% by iteratively refining code based on synthesis reports.
Conclusion
VeriMaAS represents a shift toward self-correcting "HDL Copilots" that leverage the objective ground truth provided by EDA tools. By automating workflow composition, the framework balances accuracy and cost-efficiency, outperforming specialized models while requiring minimal supervision. Future work will explore the integration of commercial EDA tools and more dynamic reinforcement learning policies for operator navigation.
Summary updated