TRANSMISSION // 2611.30766v1

Formal Guidance for AI-Generated RTL

Source published

A three-stage framework adds formal properties before RTL generation, checks candidates against them, and uses counterexamples to guide revisions. Selected benchmarks report higher correctness, with limits.

AI-generated conceptual illustration for Formal Guidance for AI-Generated RTL
AI-generated conceptual illustration; not documentary evidence.

Turning a written description into hardware code requires specifying how a design behaves over time. A new framework uses formal properties to make some requirements explicit, check generated RTL against them, and guide revisions when checks fail.

A hardware design must define behavior across clock cycles, states and input conditions. But a natural-language description may leave implementation details unstated. When a large language model (LLM) fills in those gaps, it can make assumptions the designer did not intend.

Yan Tan, Xiangchen Meng and Yangdi Lyu propose Layered Formal Guidance, a framework for guiding and checking generated register-transfer-level (RTL) code. RTL describes a digital circuit’s operations and data movement. The framework uses formal properties—precise, machine-checkable statements about behavior—as an intermediate layer between a written specification and generated code.

Three stages of guidance

First, the framework derives candidate SystemVerilog Assertions (SVAs) from the specification. These may describe reset behavior, timing, state transitions, interface handshakes or corner cases. The properties are translated into structured natural-language constraints and added to the prompt for the code-generating model. The aim is to make implementation requirements more explicit before generation.

Second, a model checker tests generated RTL against the current SVA set. If a property is violated, the checker returns a counterexample trace showing inputs and behavior associated with the failure. Third, an analyzer uses that trace to assess whether the problem may involve the RTL, an ambiguity or omission in the specification, or an incorrect property, then attempts a targeted revision. This attribution and revision are part of the framework’s model-driven process; the paper does not establish that the diagnosis will always be right or that each revision will succeed.

The in-loop check establishes consistency with the current properties, not correctness against the designer’s intended behavior. The authors evaluate final functional correctness separately using benchmark validation flows and, for one IP-design benchmark, equivalence checks against a reference implementation.

What the experiments report

The study tests the approach on public RTL task sources including RTLLM, VerilogEval, CVDP and ChipVerilog, using both general-purpose and hardware-focused models. In a focused analysis of five difficult RTLLM tasks, the researchers sampled ten candidates per task. With the original specifications, each task had four to nine distinct observed behaviors, and zero to six candidates passed official checks. Specification augmentation reduced the observed behavior counts to one to three and increased the pass counts to five to ten. After one counterexample-guided refinement round, all ten candidates passed for each task, with one observed behavior per task.

For FPU, OR1200 and CVDP, the paper reports average pass@1 results across evaluated models increasing from 4.89% to 19.78%, 16.99% to 37.99%, and 39.3% to 50.09%, respectively, comparing the base models with the full framework. Pass@k is calculated from multiple sampled candidates and the number that pass; pass@1 is a benchmark metric, not a guarantee about a model’s future output. The paper also reports gains across five tested methods on VerilogEval and RTLLM 2.0.

The authors report reduced diversity in sampled output behaviors alongside improved benchmark pass rates. Reduced diversity alone does not demonstrate correctness: as a general limitation, candidates could agree while still being wrong. The benchmark checks, rather than consistency by itself, underpin the paper’s correctness results.

What remains uncertain

The approach depends on properties that accurately capture the intended behavior. The paper reports measures of syntactic validity and non-vacuity for generated properties, but these do not show that every property expresses the designer’s intent. A flawed property could constrain generation in the wrong direction. The authors also report that the benefits of counterexample refinement vary across models, consistent with the need to interpret traces and produce appropriate repairs.

The evidence comes from selected benchmarks and open-source designs, not every kind of hardware specification. Ten candidates were used in the described RTLLM diversity analysis; the paper’s pass@k setup also defines its metrics using ten samples, but these details should not be taken as a universal deployment evaluation. Refinement was limited to one iteration per candidate in the stated setup, and the process can stop when it makes no progress or reaches its iteration limit. How the method performs beyond these conditions remains uncertain.

This work is an arXiv preprint; the supplied source does not establish whether it has undergone peer review. Its results should therefore be read as research claims requiring further evaluation. The study presents formal properties not only as checks after code generation, but also as a way to make requirements explicit beforehand and guide attempted revisions. Whether this approach transfers reliably to less standardized real-world designs is still an open question.

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.

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

    Shared method: Both papers put formal specifications and verification inside RTL generation rather than relying only on post-generation testing: the origin uses SVAs to augment prompts and check candidates, while Li et al. use Dafny contracts and verify each refinement step. These are related uses of formal guidance, not the same workflow or a directly comparable evaluation.

    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.

    • 2611.30766v1 — Original paper

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

    • 2606.19387v3 — Original paper

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

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