TRANSMISSION // 2606.19387v3

A formal step-by-step method for LLM-guided RTL

Source published

A framework has an LLM propose hardware design decisions while formal checks verify each refinement step. Its guarantees depend on an accurate contract and have practical limits.

AI-generated conceptual illustration for A formal step-by-step method for LLM-guided RTL
AI-generated conceptual illustration; not documentary evidence.

LLMs can draft register-transfer level (RTL) code, but passing a testbench offers limited assurance that a design meets its requirements. This study proposes a workflow that translates requirements into a formal contract, refines it through checked steps and generates RTL from the verified implementation.

Writing hardware from a plain-language description involves more than producing code. Register-transfer level (RTL) describes signals and state changes that unfold concurrently across clock cycles. Simulation tests selected behaviors, but a testbench may not cover every case. You Li, Samuel Mandell and David Z. Pan propose a framework that uses a large language model (LLM) to suggest design decisions while formally checking the steps from requirements to implementation.

The system begins by translating a natural-language specification into a formal hardware contract, expressed in a subset of Dafny, a programming language with automated verification tools. Depending on the design, the contract can describe initial conditions, behavior that must hold during execution, final conditions and assumptions about the surrounding environment. The framework checks formal properties of the contract, but automated checks cannot ensure it captures the author’s intent. The researchers therefore include human review, with engineers able to amend the contract before implementation begins.

The next stage progressively refines the contract into a concrete program. The LLM proposes choices, such as a condition, an invariant that should hold across clock cycles, or a way to divide the design. A refinement engine applies the corresponding transformation only after Dafny verifies its proof obligations. If a proposal cannot be verified or a path reaches a dead end, the system can return diagnostic feedback and backtrack to alternatives.

Once refinement is complete, a rule-based generator and compiler translate the verified program into synthesizable SystemVerilog, Verilog or VHDL. The LLM suggests design decisions, but does not directly modify the program without checks. The formal guarantees depend on the soundness of the refinement laws and their verification—not on the LLM being error-free. A recorded derivation links contract clauses to requirements, refinement steps to their justifications, and RTL lines to the statements that produced them. This trace can help engineers inspect how the implementation was derived.

The authors evaluated the framework on VerilogEval, RTLLM v2.1 and the self-contained tier of ChipBench. They used two Gemini models and compared the system with a one-shot LLM baseline and two agentic systems. On defect-free benchmark problems, the framework achieved pass counts broadly comparable to the alternatives in the reported settings. These comparisons vary with whether methods could access the golden testbench during generation and with model configuration. The study’s central claim is not that the framework wins on benchmark scores, but that its generated implementation can be proved to satisfy its formal contract.

The benchmarks themselves also raised concerns. The authors identified 26 problems where defects affected evaluation, including conflicts between a prompt and testbench, unreliable testbenches, and ambiguous or inconsistent specifications. In a separate experiment, they asked the system to produce five diverse designs for problematic cases. On ambiguous problems, at least two designs had non-equivalent behavior, illustrating how alternatives can expose underspecified requirements. Unreliable testbenches were harder to detect because the problem lay in the testbench rather than the specification.

A proof against a contract does not prove that the contract accurately represents the intended design. Engineers still need to review that translation. The current framework also requires multi-clock designs to be decomposed into single-clock modules and does not support level-sensitive storage; the paper attributes two evaluation failures to that limitation. The authors describe power, performance and area objectives as a direction for future work, rather than a goal included in the current refinement search.

The authors tested whether reusable compositional laws could shorten derivations. In an experiment with Gemini 4 Argon on 224 single-clock problems, both the core-law-only setting and the setting with 11 compositional laws succeeded. Without the compositional laws, the process used 2.1 times as many refinement steps and 5.1 times the total Dafny solving time. This result concerns derivation efficiency in that setup; it does not show that the system is ready to replace engineering review or production verification.

This is a research framework evaluated on selected benchmarks, not evidence that arbitrary hardware requirements can be implemented without oversight. The source is an arXiv preprint, and the available evidence does not establish its peer-review status. Its guarantees are conditional on a faithful contract, supported hardware features and the correctness of the refinement machinery.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Formal Guidance for AI-Generated RTL

    Shared method: Both integrate formal checking into iterative RTL generation: the stepwise-refinement framework checks proof obligations at each transformation, while Layered Formal Guidance model-checks candidates against SVAs and uses counterexamples to guide revisions. They differ in what is checked and where the formal properties enter the workflow, so this is a methodological connection, not evidence of comparable performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2606.19387v3 — Original paper

      Excerpt reference: static/papers/2606.19387v3.md:82-138
      Basis: Paper text
      Source SHA-256: b67656a7701b0c51a93bf256f5d46da9bd6fbd045da555918cde661e127411df

    • 2611.30766v1 — Original paper

      Excerpt reference: static/papers/2611.30766v1.md:70-136
      Basis: Paper text
      Source SHA-256: ad6c4b767ec56de19010b335ac9206a0d7d17f8bcbda26e9ecfea33d4cc4275d

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.