arXiv:2605.30345cs.AIcs.CL2026-05

用自然语言生成可编辑的电路图,首次实现语义驱动的PCB设计自动化。

SchGen: PCB Schematic Generation with Semantic-Grounded Code Representations

论文配图:SchGen: PCB Schematic Generation with Semantic-Grounded Code Representations
图 1 · 摘自论文原文
  • 设计语义化代码表示,用引脚名和相对位置替代复杂几何描述。
  • 在真实电路图数据集上,连线准确率与功能正确性显著优于主流模型。
  • 适合硬件工程师快速原型设计,降低电路图绘制门槛。

印刷电路板(PCB)原理图定义了几乎所有电子硬件,但目前仍依赖人工且需专业知识。尽管生成式AI已推进数字与模拟IC设计,从自然语言意图生成PCB原理图仍基本未被探索。本文提出SchGen,首个能根据自然语言请求生成可编辑原理图的大语言模型。核心挑战在于缺乏适配大语言模型的表示形式和大规模数据集。现有原理图格式以冗长、工具特异的语法和几何密集描述为主,难以可靠生成。我们引入一种语义化代码表示,通过相对位置与引脚名驱动布线,将几何主导的生成问题转化为语义匹配任务,更适配大语言模型。同时构建大规模数据集,通过人机协作流程将开源硬件设计转换为该表示。实验表明,SchGen在连线连通性准确率和功能正确性上显著超越其他表示方式,甚至优于更大规模通用大模型。结果凸显了表示设计在复杂硬件生成任务中的关键作用。

原文摘要 · Abstract (English)

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 large-scale 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.

PCB设计生成式AI语义表示

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。