Bridging the Semantic Gap from Natural Language Specifications to RTL with Layered Formal Guidance

Yan Tan, Xiangchen Meng, Yangdi Lyu
11/23/2026
cs.ARcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tan2026bridging,
  title  = {Bridging the Semantic Gap from Natural Language Specifications to RTL with Layered Formal Guidance},
  author = {Yan Tan and Xiangchen Meng and Yangdi Lyu},
  year   = {2026},
  eprint = {2611.30766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.30766v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.30766.svg)](https://codeofpaper.com/paper/2611.30766)

Discussion