Introduction
In the field of Very Large Scale Integration (VLSI) chip design, engineers rely heavily on complex scripts to drive Electronic Design Automation (EDA) tools. These tools typically utilize proprietary or highly specialized Python and Tcl APIs. While general-purpose Large Language Models (LLMs) like GPT-4 have demonstrated remarkable coding capabilities, they consistently fail in the EDA domain. This failure stems from three primary challenges: extreme data scarcity of specialized EDA code, frequent hallucinations of non-existent API calls, and the multi-step reasoning required to navigate strict tool-specific execution rules. To address these barriers, we present JARVIS (Just A Remarkable VLSI Intelligence System), a specialized multi-agent framework designed to automate high-quality EDA script generation.
The JARVIS Multi-Agent Architecture
JARVIS employs a sophisticated agentic workflow that moves beyond simple prompt-response cycles. The system is structured as a team of specialized agents, each handling a distinct part of the code generation and refinement process.
As shown in the architecture above, the process begins with a Top Agent that orchestrates the task based on user instructions. The Code Generator produces an initial script, which is then passed to RuleEnforce—a tool that applies "hard-coded" domain expertise, such as ensuring specific sequences required for power calculations are followed.
A critical component is the Custom Code Compiler. Unlike standard compilers that merely report errors, this tool simulates execution and utilizes the tool's internal API knowledge graph. If a hallucinated attribute is detected, the compiler searches the graph to find the "shortest path" to the correct command, providing actionable feedback to the Code Fixing Agent. Finally, a Guardrail Agent performs a quality check to ensure the output aligns with the user's original intent.
Synthetic Data Generation and Training
To overcome the lack of open-source training data, JARVIS utilizes a novel Synthetic Data Generation (SDG) approach. Rather than relying on LLMs to write code from scratch, the researchers developed a random code generator based on the tool's "command graph" and Abstract Syntax Trees (ASTs). This ensures that the 35,000 synthetic training examples are syntactically valid from the start. These "skeletons" are then augmented by an LLM which adds natural language comments and generates corresponding questions. This method forces the underlying model—initially a domain-adapted ChipNeMo model—to learn the actual "grammar" of the EDA tool through Supervised Fine-Tuning (DSFT).
Evaluation Benchmarks
JARVIS was evaluated against three new benchmarks of increasing complexity:
- B-easy: 150 simple API queries evaluated via string matching.
- B-medium: 30 questions requiring 2–3 stages of reasoning.
- B-hard: 20 complex questions involving multiple reasoning stages and cross-tool dependencies.
Experimental Results
The performance gap between JARVIS and off-the-shelf models is significant. General-purpose models like GPT-4o and Llama 3.1 scored near 0% on these benchmarks due to their lack of specialized API knowledge. In contrast, the JARVIS framework achieved high accuracy across all difficulty levels.
As illustrated in the results, the multi-agent framework is essential for high performance, particularly on complex tasks. On the B-hard benchmark, the inclusion of agents improved accuracy from 43% to 81%. Ablation studies further revealed that removing the RuleEnforce tool led to a 25% drop in accuracy on hard tasks, confirming that agentic feedback and domain-specific constraints are as vital as the underlying model's training.
Conclusion and Future Work
JARVIS demonstrates that a combination of domain-specific fine-tuning and a robust multi-agent architecture can solve highly specialized engineering tasks where general LLMs fail. Future work will focus on implementing Direct Preference Optimization (DPO) to improve conversational alignment and exploring ways to scale reasoning capabilities while managing the computational costs associated with multi-agent workflows.
Summary updated