基于LLM引导逐步精化的可形式化验证、人类可解释RTL生成框架
Formally-Verifiable and Human-Interpretable RTL Generation with LLM-Guided Stepwise Refinement
一个LLM引导的RTL生成框架将自然语言需求翻译为形式化硬件契约,再逐步精化为实现,每步由LLM提出设计决策、精化引擎在形式化验证正确后才应用变换。生成的程序经契约形式化验证后转为可综合RTL,推导记录可让每行RTL追溯到对应设计决策与需求。该框架还提供可靠的验证反馈与可复用设计经验。
arXiv:2606.19387v3 Announce Type: replace-cross Abstract: Large language models (LLMs) are accelerating register-transfer level (RTL) development, but ensuring the correctness of generated designs remains a major challenge. Existing LLM-driven workflows rely heavily on simulation-based verification, which provides limited correctness guarantees, and often offer little insight into the design decisions behind the generated RTL. We present a framework for LLM-guided, correct-by-construction RTL generation that combines the generative capabilities of LLMs with the mathematical rigor of stepwise refinement. The framework translates natural-language requirements into a formal hardware contract and progressively refines the contract into an implementation. At each refinement step, the LLM proposes a design decision, while the refinement engine applies the corresponding transformation only after formally verifying its correctness. The resulting program is formally verified against the contract and then translated into synthesizable RTL. The recorded derivation allows every line of generated RTL to be traced back to the design decisions and requirements that motivated it. Beyond generating verified implementations, the framework provides reliable verification feedback and reusable design experience, laying the foundation for self-improving hardware generation.
来源:arXiv (AI + Vision + Imaging) · arxiv.org