Bridging the Semantic Gap from Natural Language Specifications to RTL with Layered Formal Guidance
Yan Tan, Xiangchen Meng, Yangdi Lyu
Key points
From the paper's conclusion- Furthermore, we show that Layered Formal Guidance can flexibly augment both general-purpose LLMs and domain-specific models to substantially improve their generation reliability.
Abstract
While large language models (LLMs) have shown promise in generating register-transfer level (RTL) code from natural-language specifications, their reliability remains limited on designs with complex control logic and temporal behavior. This stems from a fundamental semantic gap: high-level natural language often leaves implementation-critical details underspecified, forcing LLMs to infer unstated assumptions. This paper presents Layered Formal Guidance, a novel framework that bridges this semantic gap by using formal properties as an intermediate semantic layer between natural-language specifications and RTL generation. Our framework applies formal guidance across three layers: property-driven specification augmentation before generation, property-consistency checking after generation, and counterexample-guided refinement after checking. Experiments on RTLLM benchmarks and various open-source IP designs demonstrate that our framework achieves higher functional correctness and lower sampled output-trace diversity. Furthermore, we show that Layered Formal Guidance can flexibly augment both general-purpose LLMs and domain-specific models to substantially improve their generation reliability.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Survey on LLM-Integrated Hardware Design VerificationarXiv · 2026
- LLM-based Hardware Development with Hierarchical IRs and End-to-End Multi-Agent WorkflowarXiv · 2026
- CorrectRTL: Boost RTL Generation Quality Through Automated Self-Correction with Instruction DecompositionarXiv · 2026
- Rule-Guided and Trajectory-Aware Repair for LLM-Based HLS GenerationarXiv · 2026
- Learn the Interface, Not the Implementation: Output Representation Dominates Training Regime in LLM-Based RTL GenerationarXiv · 2026
- Automated Multi-Line Bug Repair Using Model Checker Aided LLMs: A Case Study on RISC-V ProcessorsarXiv · 2026