Provenance Before Tape-Out: Licence-Aware Auditing of LLM-Generated RTL with a Four-Level Evidence Ladder from Token Fingerprints to Formal Equivalence, Distinctiveness Scoring and SPDX Snippet Records

Large language models now write register-transfer-level (RTL) code that goes into real chips. They are trained on public hardware repositories that carry a mix of permissive, weakly reciprocal and strongly reciprocal licences, and they can reproduce parts of that code without saying where it came from. Studies of software code generation show that even strong models produce a small but non-negligible share of output strikingly similar to existing open-source code and rarely report its licence; for RTL, memorisation has been shown to leak designs even without verbatim overlap. Yet no flow exists that audits generated RTL for provenance before tape-out and records the result in a form that legal and supply-chain processes can use. This paper proposes such a flow. A four-level evidence ladder escalates candidate matches from cheap token fingerprints, through identifier-normalised syntax and structural hashes of synthesised and-inverter graphs, to formal equivalence checking of the matched logic. A distinctiveness score prevents common idioms—a multiplexer, a counter, a synchroniser—from triggering findings, mirroring the legal intuition that independent creation is plausible for trivial code. Each finding is mapped to the obligations of the source licence and written as an SPDX snippet record with byte ranges, evidence level and source. A remediation loop then attributes, complies, or regenerates the region and re-audits it. The flow uses only open tools and treats its output as evidence for a human decision, not as legal advice. Concept/architecture paper analysed with symbolic models; no simulation was run and no measured results are claimed. Any numerical values quoted come from the cited sources. Simulation-based validation is planned for a follow-up paper. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-25
DOI
https://doi.org/10.5281/zenodo.24536593
Primary Topic
Physical Unclonable Functions (PUFs) and Hardware Security
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Provenance Before Tape-Out: Licence-Aware Auditing of LLM-Generated RTL with a Four-Level Evidence Ladder from Token Fingerprints to Formal Equivalence, Distinctiveness Scoring and SPDX Snippet Records

I-Wei Tseng
Zenodo (CERN European Organization for Nuclear Research)
Physical Unclonable Functions (PUFs) and Hardware Security
preprint

Provenance Before Tape-Out: Licence-Aware Auditing of LLM-Generated RTL with a Four-Level Evidence Ladder from Token Fingerprints to Formal Equivalence, Distinctiveness Scoring and SPDX Snippet Records

I-Wei Tseng
preprint en

Abstract

Large language models now write register-transfer-level (RTL) code that goes into real chips. They are trained on public hardware repositories that carry a mix of permissive, weakly reciprocal and strongly reciprocal licences, and they can reproduce parts of that code without saying where it came from. Studies of software code generation show that even strong models produce a small but non-negligible share of output strikingly similar to existing open-source code and rarely report its licence; for RTL, memorisation has been shown to leak designs even without verbatim overlap. Yet no flow exists that audits generated RTL for provenance before tape-out and records the result in a form that legal and supply-chain processes can use. This paper proposes such a flow. A four-level evidence ladder escalates candidate matches from cheap token fingerprints, through identifier-normalised syntax and structural hashes of synthesised and-inverter graphs, to formal equivalence checking of the matched logic. A distinctiveness score prevents common idioms—a multiplexer, a counter, a synchroniser—from triggering findings, mirroring the legal intuition that independent creation is plausible for trivial code. Each finding is mapped to the obligations of the source licence and written as an SPDX snippet record with byte ranges, evidence level and source. A remediation loop then attributes, complies, or regenerates the region and re-audits it. The flow uses only open tools and treats its output as evidence for a human decision, not as legal advice. Concept/architecture paper analysed with symbolic models; no simulation was run and no measured results are claimed. Any numerical values quoted come from the cited sources. Simulation-based validation is planned for a follow-up paper. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.

Zenodo (CERN European Organization for Nuclear Research)
Physical Unclonable Functions (PUFs) and Hardware Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon