What Actually Changed in This Circuit? Semantic Diff and Three-Way Merge for Analog and Mixed-Signal Schematics by Canonical Circuit Graphs, Colour-Refinement Matching, Typed Edit Scripts and Electrically Checked Merges
Analog and mixed-signal teams keep schematics and netlists under version control, but the tools compare them as text or as drawings. A textual diff of two netlist versions reports hundreds of changed lines when a designer only renamed nets, reordered instances or split a transistor into two parallel fingers, and it hides a single reconnected pin among them. A three-way merge of two branches either fails on unrelated edits or, worse, succeeds while silently shorting two nets. Netlist comparison has been solved for layout-versus-schematic checking, and structured differencing and merging have been solved for source code and XML; neither has been turned into a version-control diff and merge whose units are electrical edits. This paper proposes one. Both versions are normalised into a canonical circuit graph in which renames, terminal symmetries, multiplicity splits and ordering are not edits. Devices and nets are matched by stable anchors, partition refinement in the style of LVS comparators and a minimum-cost assignment for the remaining ambiguity. The result is a typed edit script—device added or removed, terminal reconnected, parameter changed, subcircuit replaced, motif changed—with an electrical impact summary of the nets and devices it touches. A three-way merge composes the two edit scripts of a branch pair, merges commuting edits automatically, reports typed conflicts instead of text conflicts, and runs electrical checks on the merged circuit before accepting it. The method plugs into existing version-control systems as a diff and merge driver. 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
- I-Wei Tseng
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24537647
- Primary Topic
- VLSI and FPGA Design Techniques
- Type
- preprint