SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.30345 · 2026

SchGen: PCB Schematic Generation with Semantic-Grounded Code Representations

Xinyu Zhang, Lili Qiu, Ruichun Ma, Qinpei Luo

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.30345.json · badge: /api/ran/2605.30345.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
microsoft/SchGen canonical (classifier label)
classifier basis: census
11 ran · 0 no recorded run
FunctionStatusWhere it lives
canonicalize_py Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/modules/dataset_stat.py
code served (permissive licence) · get_code("8616aa326d10afa3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Canon. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary Python file with some sample code to parse
temp_dir = Path(tempfile.gettempdir())
test_file = temp_dir / "test_canonicalize.py"

# Write sample Python code that includes the function calls mentioned in FUNC_ALIAS
sample_code = """
# Sample schematic code
add_new_wire(x=10, y=20)
wire(10.5, 20.3, name="wire1")
add_schematic_symbol(comp_type="resistor", x=50, y=100)
symbol(x=150.123, y=200.456, value=1000)
connect_pins(pin1="U1.1", pin2="U2.3")
pinlink("A1", "B2", resistance=4.7)
get_pin_location(pin_id="U1.5")
getpin("component", "pin_name")

# Some assignments with simple literals
voltage = 5.0
current = [1.2, 3.4]
config = {"mode": "active", "count": 3}
enabled = True
disabled = False
nothing = None
"""

test_file.write_text(sample_code, encoding='utf-8')

ARGS = {
    'path': test_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Canon — a Canon output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Canon output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
coordinate_to_kicad Ran
ran, honoured the contract we drafted
microsoft/SchGen/modules/kicad_sch_interface.py
code served (permissive licence) · get_code("2dacacf9f7258a35")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function coordinate_to_kicad takes two parameters: x and y
# These are used in arithmetic operations (multiplication, addition, subtraction)
# They should be numeric values (int or float)

x = 5
y = 3

ARGS = {
    "x": x,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_erc_errors Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/modules/sch_evaluation.py
code served (permissive licence) · get_code("49b2c004cebc733d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

TARGET_TYPES = {'pin_not_connected', 'power_pin_not_driven', 'pin_not_driven'}

def count_erc_errors(erc_text: str):
    lines = erc_text.splitlines()
    counts = {'pin_not_connection': 0, 'power_pin_not_driven': 0, 'pin_not_driven': 0, 'others': 0}
    current_type = None
    i = 0
    while i < len(lines):
        line = lines[i].strip()
        m = re.match('^\\[([^\\]]+)\\]:', line)
        if m:
            current_type = m.group(1)
            severity = None
            j = i + 1
            while j < len(lines):
                nxt = lines[j].strip()
                if not nxt:
                    j += 1
                    continue
                if nxt.startswith('['):
                    break
                if nxt.startswith(';'):
                    sev_match = re.match('^;\\s*(\\w+)', nxt)
                    if sev_match:
                        severity = sev_match.group(1).lower()
                    break
                j += 1
            if severity == 'error':
                if current_type in TARGET_TYPES:
                    counts[current_type] += 1
                else:
                    counts['others'] += 1
        i += 1
    return counts

erc_text_sample = """[pin_not_connected]: Net not found
; Error

[power_pin_not_driven]: Missing power
; Error

[pin_not_driven]: Pin floating
; Error

[unknown_error]: Some other issue
; Error

[pin_not_connected]: Another net issue
; Warning
"""

ARGS = {
    'erc_text': erc_text_sample
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_final Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/modules/dataset_filter.py
code served (permissive licence) · get_code("7ff743eec8809c0c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from typing import Optional

_SEG_RE = re.compile('<\\|channel\\|>\\s*(\\w+)\\s*<\\|message\\|>(.*?)\\s*(?=(?:<\\|channel\\|>|<\\|end\\|>|$))', re.S | re.I)

_RETURN_SUFFIX_RE = re.compile('(?:\\s*<\\|return\\|>\\s*)+$', re.S)

_CODE_FENCE_RE = re.compile('^\\s*```(?:[Pp]ython)?\\s*\\n|\\n\\s*```\\s*$', re.S)

def extract_final(text: Optional[str]) -> str:
    """
    Extract the FINAL message payload from a model-formatted string.

    Rules:
    1) If a <|channel|>final<|message|>...</|end|> segment exists, return its content.
    2) Otherwise, return the content of the last <|message|> segment.
    3) Do NOT assume the output ends with <|return|>; strip it only when present.
    4) Remove surrounding markdown code fences if the model wrapped the code.

    Parameters
    ----------
    text : str | None
        Full decoded string (do NOT pre-strip special tokens).

    Returns
    -------
    str
        Cleaned final content.
    """
    if not text:
        return ''
    segs = list(_SEG_RE.finditer(text))
    chosen = None
    for m in segs:
        if m.group(1).lower() == 'final':
            chosen = m
    if chosen is None and segs:
        chosen = segs[-1]
    if chosen is None:
        payload = text.strip()
    else:
        payload = chosen.group(2).strip()
    payload = _RETURN_SUFFIX_RE.sub('', payload).strip()
    payload = _CODE_FENCE_RE.sub('', payload).strip()
    return payload


# Test cases to validate various scenarios
test_text_1 = '<|channel|>final<|message|>Hello World<|end|>'
test_text_2 = '<|channel|>debug<|message|>Step 1<|end|><|channel|>output<|message|>Final Output<|end|>'
test_text_3 = '<|channel|>code<|message|>```python\nprint("hello")\n```<|return|><|end|>'
test_text_4 = None
test_text_5 = ''

ARGS = {
    'text': test_text_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_thinking Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/modules/dataset_filter.py
code served (permissive licence) · get_code("fd2d14b1b22265e3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# The function expects a dict with a 'messages' key containing a list of message dicts
# Each message dict should have 'role' and optionally 'thinking' keys
# The function looks for the last assistant message with non-empty thinking content

ARGS = {
    'obj': {
        'messages': [
            {
                'role': 'user',
                'content': 'What is 2+2?'
            },
            {
                'role': 'assistant',
                'thinking': '  Let me think about this...  ',
                'content': 'The answer is 4.'
            }
        ]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gzip_bpb Ran
ran, honoured the contract we drafted
microsoft/SchGen/modules/dataset_stat.py
code served (permissive licence) · get_code("8a45ee90dd133cd1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os, re, io, math, json, gzip, bz2, argparse

# The function gzip_bpb takes a single string parameter 's'
# and computes the bits per byte of its gzip compression.
# We need to provide a valid string argument.

s = "The quick brown fox jumps over the lazy dog. " * 10

ARGS = {
    "s": s
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init_kicad_project Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/init_project.py
code served (permissive licence) · get_code("f005ecfc78ee4c48")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import shutil
from pathlib import Path

# Create a temporary directory for the test
temp_dir = tempfile.mkdtemp()
original_cwd = Path.cwd()

try:
    # Change to temp directory so we don't pollute the real filesystem
    import os
    os.chdir(temp_dir)
    
    # Define arguments for init_kicad_project
    ARGS = {
        'project_name': 'test_project',
        'overwrite': False,
    }
    
finally:
    # Note: We don't actually restore cwd or clean up here since this is setup code
    # The actual test execution will handle cleanup
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
midpoint Ran
ran, violated the contract we drafted
microsoft/SchGen/modules/kicad_sch_interface.py
code served (permissive licence) · get_code("63c2ec995a1c6292")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function midpoint takes two points p1 and p2
# and returns their midpoint as a list
# Each point should be indexable with [0] and [1] (x and y coordinates)

# Create two sample points as lists
p1 = [1.0, 2.0]
p2 = [5.0, 8.0]

ARGS = {
    "p1": p1,
    "p2": p2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_jsonl_thinking_to_final Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/modules/dataset_filter.py
code served (permissive licence) · get_code("ab2be0e24c600944")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
from pathlib import Path

# Create a temporary JSONL file with test data
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)

# Create a test JSONL file with various message formats
jsonl_file = temp_path / "test_messages.jsonl"

test_data = [
    {
        "messages": [
            {
                "role": "user",
                "content": "What is 2+2?"
            },
            {
                "role": "assistant",
                "thinking": "<|channel|>final<|message|>The answer is 4<|end|>",
                "content": "The answer is 4"
            }
        ]
    },
    {
        "messages": [
            {
                "role": "user",
                "content": "Hello"
            },
            {
                "role": "assistant",
                "thinking": "<|channel|>work<|message|>Thinking...<|message|>\n```python\nprint('hello')\n```\n<|return|>",
                "content": "Result"
            }
        ]
    },
    {
        "messages": [
            {
                "role": "user",
                "content": "Test"
            },
            {
                "role": "assistant",
                "content": "Some response without thinking"
            }
        ]
    },
    {
        "messages": []
    }
]

with jsonl_file.open('w', encoding='utf-8') as f:
    for obj in test_data:
        f.write(json.dumps(obj, ensure_ascii=False) + '\n')

ARGS = {
    'jsonl_path': jsonl_file,
    'inplace': False,
    'out_path': temp_path / "test_messages.fixed.jsonl"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
trim_system_message Ran
ran; our contract draft was wrong, not the code
microsoft/SchGen/modules/delete_dataset.py
code served (permissive licence) · get_code("e4b52ccccdfbbc9e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# Construct a valid argument for trim_system_message
# The function expects 'obj' which should be a dict with optional 'messages' list

ARGS = {
    'obj': {
        'messages': [
            {
                'role': 'system',
                'content': 'Some preamble text. ' + 'Below is an example of KiCAD schematic file of a IMU module with the chip of ICM-20948 as U2, one 1.8v rail, 4 gnd rails, 3 capacitors with C1: 1.0 uF, C2: 0.1 uF, C3: 0.1 uF and 6 labels. U2 pin 1 is connected to the 1.8V rail, C1 pin 1, C2 pin 1, C3 pin 1, U2 pin 3 is connected to label INT, and more content after.'
            },
            {
                'role': 'user',
                'content': 'This should not be modified.'
            }
        ],
        'other_field': 'some value'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
zstd_bpb Ran
ran, honoured the contract we drafted
microsoft/SchGen/modules/dataset_stat.py
code served (permissive licence) · get_code("6c916d467474f20d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function zstd_bpb takes a single string parameter
# and computes the bits per byte of its zstandard compression

# Create a test string with reasonable length for compression testing
test_string = "The quick brown fox jumps over the lazy dog. " * 10

ARGS = {
    "s": test_string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, zstandard — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Printed circuit board (PCB) schematic design defines nearly all electronic hardware, but it remains manual and expertise-intensive. While generative AI has advanced digital and analog IC design, PCB schematic generation from natural-language intent is largely unexplored. This paper presents SchGen, the first large language model that generates editable PCB schematics from natural-language requests. The key challenge lies in the lack of an LLM-suited representation and a largescale dataset. Current schematic formats are dominated by verbose, tool-specific syntax and geometry-heavy descriptions, making them difficult to generate reliably. We introduce a semantically grounded code representation that encodes schematic editing primitives with relative placement and pin-name-based wiring, transforming a geometry-driven generation problem into a semantics-driven matching task amenable to LLMs. We further construct a large-scale dataset of PCB schematics paired with user prompts via a human-agent collaborative pipeline that converts open-source hardware designs into our representation. Experiments show that SchGen significantly outperforms alternative representations and even larger general-purpose LLMs on wire connectivity accuracy and functional correctness. Our results highlight the critical role of representation design in enabling generative models for complex hardware design tasks. The source code is available at https://github.com/microsoft/SchGen.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.30345")
get_code_for_paper("2605.30345")
have("2605.30345")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.30345.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.30345.svg)](https://syntology.ai/paper/2605.30345)

Connect an agent — have() is free.