arXiv:2610.41225cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41225

RTL-Interact: Training EDA-Interactive Models for Multi-Task RTL Design

Wenxuan Shi, Yaoyu Zhu, Di Huang, Chongxiao Li, Xiaoyun Zhang, Muxin Song, Yutong Wu, Ziyuan Nan, Pengwei Jin, Tian Zhi, Xishan Zhang, Rui Zhang, Xing Hu, Zidong Du, Qi Guo, Yunji Chen

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

ABSTRACT

Large language models offer a promising route to register-transfer-level (RTL) design, but reliable implementations require checking and revision based on electronic design automation (EDA) tools' feedback. Existing RTL-specialized models often lack learned interaction with such EDA tools or rely on separate generation and repair components. We introduce RTL-INTERACT, a multi-task post-training framework that trains a single RTL-specialized model to generate RTL, construct task-appropriate EDA checks, and revise implementations using tool feedback. The framework combines automatically constructed multi-task demonstrations with staged supervision from chain-of-thought to tool-integrated reasoning. We further introduce Pattern-Aware Policy Optimization (PAPO) for multi-task reinforcement learning. PAPO augments Group Relative Policy Optimization with correctness-gated rewards that favor concise successful checking while rewarding effective revision, and uses task grouping to preserve coverage across objectives. On CVDP, RTL-Interact-32B achieves 48.7% weighted Pass@1 and 68.9% Pass@5, surpassing its teacher model, DeepSeek-V3.2, while RTL-Interact-8B achieves 44.9% weighted Pass@1. Additionally, we show that PAPO can reduce average tool calls by 63.8% while improving Pass@1. Both models also outperform all RTL-specialized baselines on VerilogEval v2 and RTLLM v2, demonstrating the effectiveness of our method.

1 INTRODUCTION

Large language models (LLMs) offer a promising route to automating register-transfer-level (RTL) design. Generating usable RTL requires not only syntactically valid code but also compliance with the functional requirements and implementation constraints stated in a specification. Electronic design automation (EDA) tools provide feedback on whether candidate RTL compiles, behaves as intended in simulation, and meets task-specific design objectives. Such feedback allows a model to check and revise its design before submitting a solution.

Existing RTL-specialized models improve code generation through domain supervision or EDA-derived training rewards, but do not explicitly learn to use EDA feedback to revise implementations during inference (Liu et al., 2023b; Zhao et al., 2024a; Zhu et al., 2025). Tool-assisted workflows organize generation, checking, and revision through prompting and agent coordination, but rely on the underlying models' existing RTL generation and repair capabilities (Thakur et al., 2023; Zhao et al., 2024b). Other approaches train models to revise RTL using EDA feedback, but require separate generation and repair adapters or cooperating models, adding deployment and coordination complexity (Cui et al., 2024; Yu et al., 2026). These limitations motivate training a single RTL-specialized model for both RTL generation and feedback-based revision, without separate adapters or cooperating models. Figure 1 contrasts the solution processes of RTL generation and RTL reasoning models with those of EDA-interactive RTL models. Achieving this across multiple RTL tasks requires learning task-appropriate checks and effective revisions while avoiding redundant tool calls.

Figure

Figure 1: Representative solution processes of (a) RTL generation models, such as RTL-Coder (Liu et al., 2023b); (b) RTL reasoning models, such as CodeV-R1 (Zhu et al., 2025); and (c) our EDA-interactive RTL model.

To this end, we propose RTL-INTERACT, a post-training framework for training a single RTL-specialized model to generate RTL, construct task-appropriate EDA checks, and revise candidate implementations using EDA feedback. The framework consists of multi-task data construction, CoT-to-TIR staged supervision, and reinforcement learning (RL) with pattern-aware policy optimization. Starting from the specification-RTL pairs in the open-source dataset, we automatically construct tasks with different code contexts and design objectives, then generate and filter teacher demonstrations using task-specific checks. Each tool-interaction demonstration records the teacher's candidate implementations, EDA requests, returned feedback, subsequent revisions, and final implementation.

To develop both RTL reasoning and effective use of EDA feedback, we apply CoT-to-TIR staged supervision to improve RTL generation and revision using EDA feedback within the same model. Tool-free chain-of-thought (CoT) examples and tool-integrated reasoning (TIR) demonstrations supervise different solution processes, making their organization an important training choice. We first train on CoT examples from the open-source dataset, covering RTL syntax, hardware semantics, and reasoning from specifications to implementations. We then train on multi-task TIR demonstrations to teach the model to construct EDA requests and use the returned feedback. At a matched template-token budget, this staged approach improves CVDP (Pinckney et al., 2025) Pass@1 by 1.0% over TIR-only supervision. Separate evaluations also show improvements in both RTL generation and revision using EDA feedback over CoT-only supervision.

Multi-task RL further optimizes these behaviors through interaction with the EDA environment. A reward based only on final correctness does not distinguish how a correct implementation was checked and revised. We introduce Pattern-Aware Policy Optimization (PAPO), which incorporates correctness-gated rewards for EDA-checking patterns and task grouping into Group Relative Policy Optimization (GRPO) (Shao et al., 2024). For solutions that pass final verification, the reward favors concise, successful checking while retaining positive rewards for successful revision. To maintain training coverage across different objectives, task grouping keeps prescribed task-group proportions among the samples retained for each policy update. Across the full RL stage, the 8B model improves CVDP Pass@1 by 5.4% while reducing the average number of tool calls by 63.8%.

On CVDP, RTL-Interact-32B surpasses its tool-enabled teacher, DeepSeek-V3.2, achieving 48.7% weighted Pass@1. RTL-Interact-8B achieves 44.9%, with both models outperforming other RTL-specialized models of comparable size. These gains extend to VerilogEval v2 (Liu et al., 2023a; Pinckney et al., 2024) and RTLLM v2, where both model sizes outperform other RTL-specialized baselines in Pass@1 across code completion and specification-to-RTL tasks.

Our contributions are as follows:

  • We develop a multi-task post-training framework that uses task-specific teacher demonstrations and CoT-to-TIR staged supervision to train a single RTL-specialized model for RTL generation and revision using EDA feedback.

  • We introduce PAPO, which incorporates correctness-gated rewards for EDA-checking patterns and task grouping into GRPO to improve multi-task RTL performance with fewer tool calls and shorter response length, achieving joint gains in both RTL correctness and EDA interaction efficiency.

  • Our RTL-Interact-32B achieves 48.7% Pass@1 and 68.9% Pass@5 on CVDP, surpassing its teacher model DeepSeek-V3.2 on both metrics. Our models also outperform all RTL-specialized baselines with large gains in Pass@1 on VerilogEval v2 and RTLLM v2. We will release both models, together with the training data and code.