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.
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:
- 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.
- 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.
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