Bridging the Semantic Gap from Natural Language Specifications to RTL with Layered Formal Guidance
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.
Create a lesson
Metadata
- Categories
- cs.AR, cs.AI
Related papers
NEVA: Natural-Language Co-Evolution and Validation of Microarchitectures
Shared title terminologycs.ARKhoi Le, Sayanti Jana, Matthew DeLorenzo et al.
Specification-Grounded Adaptive Triage and Formal Invariant Exclusion Synthesis for Autonomous Silicon Coverage Closure
Shared title terminologycs.ARVeni Mohan
Large Language Models for RTL Design: A Review of Generation, Verification, Evaluation, and Implementation
Shared title terminologycs.ARHepziba Susan, Shivaranjani G. R., Malik Imran et al.
ReSynP3D: Bridging Logic Resynthesis and Tier Repartitioning during 3D IC Placement Optimization
Shared title terminologycs.ARShuo Ren, Shixi Chen, Yaohui Han et al.
QiMeng-TheoremV: Agentic Theorem Proving with Speculated IRs for Large-Scale RTL Formal Verification
Shared title terminologycs.ARChenrui Cao, Chongxiao Li, Yutong Wu et al.
Power-Aware Simulation and Formal Equivalence for Unmodified SystemC and SystemVerilog RTL
Shared title terminologycs.ARMayur Kubavat