TopoScope: A Graph-Scoped LLM Agent for Printed Circuit Board Schematic Design

Jiale Guo, Shiji Tong, Weihao Li, Yu Wu, Boxian Lin, Mengji ShiNeurIPS 2026

TL;DR

Asking a Large Language Model (LLM) to wire up a complex Printed Circuit Board (PCB) all at once is like asking someone to untangle a bucket of headphones in the dark—attention gets diluted, pins get crossed, and things catch fire (figuratively, then literally). TopoScope solves this without any model training by turning the circuit’s evolving graph into a set of runtime blinders and a built-in spellchecker. By restricting what the LLM can see at each step and checking its work against geometric graph patterns pulled from real component datasheets, TopoScope reliably designs multi-chip hardware schematics where standard prompting falls flat.

What Problem Does This Paper Address?

Every piece of modern electronics sits on a PCB, and at the heart of every PCB is a schematic: the master blueprint showing how hundreds of pins across heterogeneous chips (microcontrollers, sensors, power regulators) wire together.

While digital chip design has enjoyed decades of automation thanks to standardized languages like Verilog and fast simulators, board-level schematic design remains stubbornly manual. Why? Because real-world integrated circuits (ICs) don't obey a single universal physics simulator like SPICE, and wiring mistakes aren't mere stylistic blemishes—swapping two pins means dead silicon. Furthermore, electrical correctness relies on multi-part topological rules, like placing a bypass capacitor between a power pin and ground, or building a two-resistor feedback divider. Dumping hundreds of pins into an LLM prompt at once overwhelms its context window and invites hallucinated connections.

Methods

TopoScope is a training-free agent built around a single shared data structure: an evolving schematic graph. On top of a standard bipartite electrical core (pins connected via "nets," or wires), the authors add a hierarchical organizational layer: pins belong to components, which belong to functional modules.

Figure 1: Overview of TopoScope. (a) Global planning decomposes the design into modules and declares cross-module signals as virtual ports, resolved into ordinary nets in a final merging step. (b) Each component is processed by a scoped LLM call grounded on a datasheet-derived standard specification and a compressed summary of already-processed modules; emitted connections are verified before the loop advances, with a six-attempt budget. (c) Components, nets, and virtual-port references form the graph substrate on which scoping and verification operate; detailed in Figure 2.

First, a global planner breaks a design task into functional modules (e.g., power, sensing) and declares cross-module wires as temporary "virtual ports." TopoScope then walks through the hierarchy depth-first, wiring one chip at a time using two novel mechanisms:

  1. Topology-Guided Context Scoping (TCS): When wiring a specific chip, TCS puts blinders on the LLM. It exposes only a focus layer (the chip's pins, reference circuit, and rules from a pre-extracted JSON datasheet knowledge base) and an environment layer (wires already created inside the current module, global power/ground rails, and the module's virtual ports). Out-of-scope pins simply cannot be referenced by construction.
  2. Pattern-Based Rule Verification: Standard PCB tools only check pairwise pin compatibility (e.g., "don't wire two outputs together"). TopoScope instead frames datasheet rules—like bypass capacitors (adjacency patterns) or feedback loops (path patterns)—as small labelled graphs. After the LLM wires a chip, TopoScope runs subgraph isomorphism anchored at the target pin. If a pattern is missing, the LLM gets up to six retries with violation feedback before moving to the next part. Finally, virtual ports are merged into real wires.
Figure 3: Electrical rules as subgraph patterns. A schematic fragment (left) is mapped to its underlying graph (right); each rule corresponds to a small subgraph pattern anchored at a designated pin. The blue box marks a path pattern (panel a) and the orange box marks an adjacency pattern (panel b). Verification reduces to subgraph matching (Definition 2).

Datasets

Because TopoScope is training-free, no training dataset is used. However, because open board-level benchmarks built around real heterogeneous ICs scarcely exist, the authors introduce a new 20-design PCB schematic benchmark.

  • It spans three complexity tiers—Easy (<60 pins, single IC), Medium (60–120 pins), and Hard (120–200 pins, 5–6 ICs)—across six domains (power management, sensing, communication, motor drive, audio, and LED/display).
  • Unlike prior benchmarks relying on loose LLM-judges or basic pin-matrix checks, evaluation uses expert-calibrated functional assertions written as subgraph patterns over the final circuit.

Key Insights and Ideas

  • Structural hallucination containment: Rather than begging an LLM via prompt engineering not to invent pins or cross-wire distant modules, TCS makes invalid cross-module references impossible by hiding irrelevant inner nets from the prompt's vocabulary.
  • Scoping and verification fix orthogonal bugs: Ablations reveal a clean division of labor. TCS prevents big-picture topological tangles that retry loops struggle to undo, while the pattern-verifier catches local datasheet omissions—becoming progressively more critical as designs scale from Easy to Hard.
  • Near-misses on hard boards: Even when models fail a Hard benchmark task overall, their Assertion Pass Rate (APR)—the fraction of design-intent checks passed—stays surprisingly flat (~89–90%). Complex multi-IC runs mostly fail due to subtle local near-misses rather than catastrophic wiring collapse.

Key Results

Evaluated across seven recent LLMs (including Gemini-3.1-Pro, GPT-5.4, GLM-5, Qwen3.5-Plus, and locally-hostable GPT-OSS-120B):

  • Massive gains on complex boards: Single-pass baselines given the exact same datasheet knowledge plummet in Pass@1 accuracy as difficulty rises: 48% (Easy) → 23% (Medium) → 8% (Hard) averaged across three representative models. With TopoScope, GPT-5.4 jumps from 14.3% to 73.8% Pass@1 on Hard designs, and Qwen3.5-Plus climbs from 9.5% to 46.7%.
  • Strongest performers: Gemini-3.1-Pro leads overall with 85.0% average Pass@1 (solving all 20 tasks within 3 runs), followed by GPT-5.4 (80.0%) and GLM-5 (77.1%).
  • Beats generic Multi-Agent setups: TopoScope outperforms a dedicated Planner-Generator-Checker multi-agent baseline across every difficulty tier—by 21.4 percentage points on Hard tasks for GPT-5.4—proving that graph-scoped visibility beats throwing more un-scoped agent chatter at the problem.

Limitations and Future Work

TopoScope assumes chip selection has already happened upstream and relies on accurate JSON records extracted from manufacturer datasheets. Crucially, its verifier checks topological correctness, not numerical physics—it confirms a feedback resistor divider is wired properly, but won't verify thermal limits, exact impedance, signal integrity, or physical PCB layout routing. Integrating numerical simulation, layout-aware constraints, and human engineering review remains essential before sending generated boards to a fab.

Summary updated

Abstract

Printed circuit boards (PCBs) are the hardware foundation of modern electronic systems. However, automating PCB schematic design remains difficult. A valid schematic must respect real-IC pin-level constraints and cross-component topological relations, neither of which is captured by generic simulation, local rule checks, or direct LLM generation. To address this challenge, we present TopoScope, a training-free LLM agent that uses the schematic graph not only as the final output, but also to guide generation and verification at runtime. TopoScope couples two mechanisms: Topology-Guided Context Scoping, which computes a scoped view for each component-level wiring decision, and Pattern-Based Rule Verification, which expresses datasheet-derived electrical constraints as graph patterns and uses them as in-loop feedback. We also introduce a 20-design benchmark spanning three complexity tiers and six application domains, with functional assertions evaluated on the generated schematic graph and calibrated against expert judgments. Across seven recent LLMs, TopoScope improves functional correctness, reduces invalid graph references, and enables more reliable generation of medium and hard multi-IC schematics compared with knowledge-provided baselines.
BibTeX
@inproceedings{guo2026toposcope,
  author = {Jiale Guo and Shiji Tong and Weihao Li and Yu Wu and Boxian Lin and Mengji Shi},
  title = {{TopoScope: A Graph-Scoped LLM Agent for Printed Circuit Board Schematic Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=et1Tk9D1jg},
}
Figure