2026-11-26 15:48 UTC

PCBSchemaGen releases 227 PCB schematic tasks and a deterministic structural verifier

state: watchingheat: mediumuncertainty: mediumrelevance: mediumllm-code-synthesis electronic-design-automation verifiable-generationHuanghaohe ZouPCBSchemaGen authors

What is this?

PCBSchemaGen_v2 is an open-source release of two PCB-schematic-synthesis benchmarks—62 hand-authored tasks and 165 derived from public schematics—and a deterministic five-layer verifier for candidate SKiDL designs. The repository says the checks cover electrical invariants, pin roles, IC connection templates, circuit topology, and power rules, using constraints tied to commercial ICs. It supports structural evaluation without an LLM or functional simulation; it does not establish that a design will work electrically or be manufacturable. An arXiv paper describes the broader PCBSchemaGen framework, but the supplied evidence does not independently validate the benchmark’s coverage or verifier’s accuracy.

Why it matters

The release offers a useful, reproducible way to test structural correctness in AI-generated PCB schematics, a niche but consequential engineering task where generic code tests and simulation may miss pin and topology errors. Its 227 tasks and deterministic checks could help researchers compare systems and provide feedback during generation. But passing the verifier is not evidence that a circuit functions or is safe to manufacture, and the supplied sources do not independently establish the verifier’s accuracy or benchmark coverage.

Current assessment

PCBSchemaGen_v2 releases two suites totaling 227 schematic-synthesis tasks: 62 hand-authored PCBBench tasks and 165 tasks derived from public schematics. The authors describe a deterministic five-layer verifier checking electrical invariants, pin roles, per-IC connection templates, circuit topology and power rules against constraints derived from real IC datasheets. They say it can score candidate SKiDL designs without an LLM, API key, golden reference or functional simulation. This is a useful evaluation artifact for comparing schematic-generation systems and a potentially practical reward or repair signal. Important limits: it assesses structural constraints, not functional performance or manufacturability; the supplied evidence does not independently validate its rules, task representativeness or scores. The web results also surface a newer, related SchGen paper claiming expert-assessed functional-validity metrics, but do not provide enough detail here to compare its evaluation directly with PCBSchemaGen.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1709h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-16 11:22 (minted)⭐ origin echo-reconstructedReleases two benchmark suites totaling 227 PCB schematic-synthesis tasks and a deterministic five-layer structural verifier for candidate SK
HZou9 / PCBSchemaGen authors on github (echo) · attributed from hn.story.49724579 · published time unknown
—
09-16 10:48first on hacker news · published · lag ?PCBSchemaGen: Reward-Guided LLM Code Synthesis for PCB Schematic Design
teleforce
—
09-16 10:48amplified on hacker newshn.story.49724579
teleforce
peak 1 · 0 comments · 26% of case engagement
09-22 14:55amplified on hacker news 👑hn.story.49802378
Dota-12
peak 3 · 0 comments · 74% of case engagement
09-16 11:20our radar first saw it · lag ?discovery anchor: hn.story.49724579—

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnPCBSchemaGen: Reward-Guided LLM Code Synthesis for PCB Schematic Design
Retrieved article excerpt

Open article · Retrieved 2026-09-16T11:22:14.886320+00:00

# PCBSchemaGen — Benchmarks & Verifier

This repository provides the **two benchmark suites** and the **deterministic 5-layer verifier** from the paper
*PCBSchemaGen: Reward-Guided LLM Code Synthesis for Printed Circuit Board (PCB) Schematic Design with Structured Verification*.

It lets anyone (i) load the **227 PCB schematic-synthesis tasks**, and (ii) run the **deterministic structural verifier**
that scores a candidate SKiDL design against real-IC pin- and topology-level constraints — no LLM, no API key,
and no cached results required.

## What's included

```
PCBSchemaGen_v2/
├── benchmarks/
│   ├── pcbbench/benchmark.tsv                   # 62 hand-authored tasks (Easy/Medium/Hard)
│   └── open_schematics/ose_165_task_specs.json  # 165 tasks from public schematics
├── framework/
│   ├── topo/                                    # the deterministic 5-layer verifier (self-contained)
│   └── task_config.yaml                         # per-task verification parameters
├── kg/kg_open_schematics.json                   # schema-induced KG for Open-Schematics-Eval
├── component.json / kg_component.json / kg.json # schema-induced KG for PCBBench
├── requirements.txt
└── LICENSE
```

## Benchmarks at a glance

| Suite | Tasks | Difficulty split | Real ICs | Domains |
| --- | --- | --- | --- | --- |
| PCBBench (`benchmarks/pcbbench/benchmark.tsv`) | 62 | 17 Easy / 28 Medium / 17 Hard | 41 commercial | 22 |
| Open-Schematics-Eval (`benchmarks/open_schematics/ose_165_task_specs.json`) | 165 | 40 Easy / 48 Medium / 77 Hard | 439 commercial | 22 |
| **Total** | **227** | 57 / 76 / 94 | 480 | 22 |

Each PCBBench task row specifies: task id, difficulty level, circuit type, the natural-language task,
input/output nodes, input/output voltages, and the required-component set.

## The deterministic 5-layer verifier

The verifier scores a candidate schematic against structural constraints derived from real IC datasheets —
fully deterministic, with no golden reference and no functional simulation:

1. **L1 ERC** — electrical invariants (VDD/GND disjointness, power reachability, ground integrity)
2. **L1b Role** — pin-role compatibility under the 32-role schema
3. **L2 Template** — per-IC subcategory connection templates
4. **L3 Topology** — subgraph isomorphism vs. canonical motifs (half-bridge, sync-buck, three-phase inverter, …)
5. **L4 Power** — domain-specific power rules (Kelvin source, decoupling, isolation, gate-resistor)

See the paper appendix (verification details) for the full predicate set and reward ladder.

## Install

```
python3 -m pip install -r requirements.txt   # networkx, pyyaml
```

## Using the verifier

The verifier is self-contained in `framework/topo/` (only depends on `networkx`). It exposes, among others:

```
from framework.topo import (
    KGStore, index_snapshot,
    check_system_topology, is_complex_task,
    validate_complex_task, get_validation_feedback_for_llm,
)

# 1. Load the schema-induced KG (component.json + kg_component.json)
kg = KGStore(base_dir=".")

# 2. Index a candidate design snapshot (nets / parts extracted from a SKiDL build)
snapshot = index_snapshot(...)

# 3. Run the layered checks
#    - system-level validation for Hard / complex tasks:
report = validate_complex_task(...)
#    - or per-layer checks: check_system_topology(...), run_phase2_checks(...)
```

Per-task verification parameters (match mode, enabled checks, skipped rules) live in
`framework/task_config.yaml`. Exact function signatures are documented in each module's
docstring under `framework/topo/` and in the paper appendix.

## License

Released under the MIT License (see `LICENSE`). Open-Schematics-Eval tasks are derived from the
public `open-schematics` dataset (MIT). Vendor datasheets referenced during KG construction are
cited, not redistributed.

## Citation

```
@inproceedings{pcbschemagen2026,
  title     = {PCBSchemaGen: Reward-Guided LLM Code Synthesis for Printed Circuit Board (PCB)
               Schematic Design with Structured Verification},
  author    = {Zou, Huanghaohe and Han, Peng and Nazerian, Emad and
               Zhang, Mafu and Guo, Zhicheng and Huang, Alex Q.},
  year      = {2026},
}
```
teleforce10
🟧 echo.github ⭐Releases two benchmark suites totaling 227 PCB schematic-synthesis tasks and a deterministic five-layer structural verifier for candidate SKHZou9 / PCBSchemaGen authors——
🟧 hnShow HN: CircuitPilot – We built a physics engine to auto-route PCBs using LLMsDota-1230

Interpretation history

Decision trace