跳到正文
arXiv (Robotics + Hardware + Signal)· Yan Tan, Xiangchen Meng, Yangdi Lyu·· 1 天前AI 评分22

Layered Formal Guidance:以形式化属性为中间层弥合自然语言到RTL生成的语义鸿沟

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

AI 导读

Layered Formal Guidance 框架以形式化属性作为自然语言规格与RTL生成之间的中间语义层,分生成前规格增强、生成后属性一致性检查、检查后反例引导精化三层施加形式化引导。在RTLLM基准和多个开源IP设计上,该框架取得更高功能正确性和更低的采样输出轨迹多样性,并可灵活增强通用LLM与领域专用模型的生成可靠性。

正文 · 原文

arXiv:2611.30766v1 Announce Type: new 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.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org