Metraipolis › archive › dc_99c0f027d8f6

SpecLens: LLM-Based Verilog Generation with Specification-Derived Constraints via Behavioral Divergence — arXiv:2609.16729

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.16729
License (as archived)
CC0-1.0
Archived
2026-10-15T19:29:46.635Z
SHA-256 of the archived text
0ce9ad07ba9e60f70a811c6a4c9734cd44cbbc8bbce7c44164ede6ebf8a8f6a3
Stable URL of this page
https://metraipolis.com/documento/dc_99c0f027d8f6

How to cite

SpecLens: LLM-Based Verilog Generation with Specification-Derived Constraints via Behavioral Divergence — arXiv:2609.16729 — arXiv (en), https://arxiv.org/abs/2609.16729 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_99c0f027d8f6 (Metraipolis archive dc_99c0f027d8f6, sha256 0ce9ad07ba9e60f70a811c6a4c9734cd44cbbc8bbce7c44164ede6ebf8a8f6a3)
BibTeX
@misc{dc99c0f027d8f6,
  title = {SpecLens: LLM-Based Verilog Generation with Specification-Derived Constraints via Behavioral Divergence — arXiv:2609.16729},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.16729},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_99c0f027d8f6; sha256 0ce9ad07ba9e60f70a811c6a4c9734cd44cbbc8bbce7c44164ede6ebf8a8f6a3},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.16729. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models (LLMs) have recently shown promise in Verilog generation, but producing functionally correct RTL directly from natural-language specifications remains a highly challenging task. Existing approaches improve LLM-based Verilog generation mainly with retrieval-augmented generation (RAG), self-planning, or few-shot prompting. However, these methods focus primarily on external or generic forms of enhancement rather than strengthening the specification with task-specific constraints. In this work, we propose SpecLens, an automated framework for LLM-based Verilog generation that derives specification-driven constraints by analyzing behavioral divergence among multiple candidate implementations, using the original specification as the only external semantic source during generation. On the VerilogEval v2.0 spec-to-RTL benchmark, SpecLens achieves a functional pass@1 ratio of 86.2\% with o3-mini-medium and 89.4\% with o3-mini-high. This corresponds to a 3.6 percentage-point gain over the SOTA prompting method with o3-mini-medium and a 3.8 percentage-point gain over the SOTA behavioral divergence method with o3-mini-high. In addition, on RTLLM v1.1 and v2.0, analysis shows that SpecLens is more specification-faithful and less prone to benchmark-aligned priors. SpecLens achieves 100\% syntactic correctness on VerilogEval v2.0, 86.2\% on RTLLM v1.1, and 88\% on RTLLM v2.0, even without using costly compile-repair loops to revise generated code iteratively. The code is open source and available at this https URL .

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-16 in cs.AR).
Categorie arXiv: Hardware Architecture (cs.AR).
Pagina del lavoro: https://arxiv.org/abs/2609.16729 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T18:35:20.268Z dalla pagina https://arxiv.org/catchup/cs.AR/2026-09-16?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).