面向模拟电路设计的大模型检索增强与仿真反馈闭环框架
A Closed-Loop LLM Framework with Retrieval Augmentation and Simulation Feedback for Analog Circuit Design
DOI: 10.12677/csa.2026.168266, PDF,    科研立项经费支持
作者: 王俊垒, 陈 翀, 程良伦:广东工业大学,广东省信息物理融合重点实验室,广东 广州;江赛标*:珠海科技学院,电子信息工程学院,广东 珠海
关键词: 大语言模型模拟电路设计向量检索SPICE仿真元器件库匹配Large Language Model Analog Circuit Design Vector Retrieval SPICE Simulation Component Library Matching
摘要: 大语言模型为自然语言驱动的电路设计提供了新的交互方式,但在模拟电路场景中,模型输出仍容易受到器件库缺失、参数不匹配和仿真不可通过等问题影响。针对自然语言需求难以直接转化为可执行网表的问题,本文设计了一种检索增强与仿真反馈相结合的模拟电路生成流程。该流程首先将用户需求整理为结构化元器件清单,再通过精确别名匹配和向量语义检索将抽象器件映射到KiCad符号库中的可用元件,随后依据匹配结果生成SPICE网表,并由设计者结合Ngspice仿真结果进行反馈修正。该方法强调工具链可用性与人工可控性,在避免复杂多智能体编排的同时保留了从需求理解、器件落地到仿真验证的闭环。基于5类典型模拟电路的实验表明,DeepSeek-V3.2后端下该流程取得86.7%的仿真通过率和3.1%的平均目标偏差,说明该方案能够提升LLM生成模拟电路的可执行性和指标贴合度。
Abstract: Large language models (LLMs) often struggle to generate executable analog circuit netlists due to component mismatches and simulation failures. To address this, we propose a closed-loop workflow integrating retrieval augmentation and simulation feedback. The system parses user requirements into structured lists, maps abstract devices to KiCad libraries via exact alias and vector semantic retrieval, and generates SPICE netlists. Designers then iteratively refine these netlists using Ngspice simulation feedback. This highly controllable, human-in-the-loop approach avoids complex multi-agent orchestration while ensuring practical usability. Evaluated on five typical analog circuits using DeepSeek-V3.2, our method achieved an 86.7% simulation pass rate and a 3.1% average target deviation, demonstrating significantly improved executability and metric alignment for LLM-generated circuits.
文章引用:王俊垒, 江赛标, 陈翀, 程良伦. 面向模拟电路设计的大模型检索增强与仿真反馈闭环框架[J]. 计算机科学与应用, 2026, 16(8): 100-113. https://doi.org/10.12677/csa.2026.168266

参考文献

[1] 刘睿之, 李捷鹏, 王睿, 等. 人工智能辅助的芯片物理设计方法综述[J]. 计算机研究与发展, 2026, 63(7): 1643-1669.
[2] Fu, Y., Zhang, Y., Yu, Z., Li, S., Ye, Z., Li, C., et al. (2023) GPT4AIGChip: Towards Next-Generation AI Accelerator Design Automation via Large Language Models. 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), San Francisco, 29 October-2 November 2023, 1-9.
https://doi.org/10.1109/iccad57390.2023.10323953
[3] 顾雨竹, 张海磊, 黄玮. 人工智能在集成电路设计全流程中的应用研究[J]. 信息化研究, 2025, 51(6): 153-157.
[4] 刘泽垣, 王鹏江, 宋晓斌, 张欣, 江奔奔. 大语言模型的幻觉问题研究综述[J]. 软件学报, 2025, 36(3): 1152-1185.
[5] Vungarala, D., Alam, S., Ghosh, A. and Angizi, S. (2024) SPICEPilot: Navigating SPICE Code Generation and Simulation with AI Guidance. 2024 IEEE International Conference on Rebooting Computing (ICRC), San Diego, 16-17 December 2024, 1-6.
https://doi.org/10.1109/icrc64395.2024.10937006
[6] 李子骏, 肖辉, 李雪峰. 面向知识密集型任务的检索增强生成技术综述[J]. 微电子学与计算机, 2025, 42(10): 48-65.
[7] 黄俊, 翁振宇, 黄智聪. 基于大语言模型的PCB自动化设计智能体[J]. 电力电子技术, 2026, 60(7): 169-178.
[8] Lin, F., Li, X., Lei, W., Rodriguez-Andina, J.J., Guerrero, J.M., Wen, C., et al. (2025) PE-GPT: A New Paradigm for Power Electronics Design. IEEE Transactions on Industrial Electronics, 72, 3778-3791.
https://doi.org/10.1109/tie.2024.3454408
[9] 芦存博, 左璇, 金博, 等. 大模型赋能的工业软件在智能制造领域的应用研究与探索[J]. 数字化转型, 2025, 2(11): 41-51.
[10] 张犬俊, 谢杨, 房春荣, 虞圣呈, 赵源, 陈振宇. 检索增强生成在软件工程中的应用综述[J]. 软件学报, 2026, 37(3): 1316-1339.
[11] Hasan, K.S.A., Raiyan, S.R., Alvee, H.M. and Sadik, W. (2026) CircuitLM: A Multi-Agent LLM-Aided Design Framework for Generating Circuit Schematics from Natural Language Prompts.
https://arxiv.org/abs/2601.04505
[12] 曾怡, 陈容, 张德, 等. 基于机器学习技术的智能布局方法综述[J/OL]. 微电子学, 1-9.
https://link.cnki.net/urlid/50.1090.TN.20260330.1114.003, 2026-08-03.
[13] 王乃钰, 叶育鑫, 刘露, 凤丽洲, 包铁, 彭涛. 基于深度学习的语言模型研究进展[J]. 软件学报, 2021, 32(4): 1082-1115.
[14] Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., et al. (2022) Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. Advances in Neural Information Processing Systems 35, New Orleans, 28 No-vember-9 December 2022, 24824-24837.
https://doi.org/10.52202/068431-1800
[15] Shinn, N., Cassano, F., Gopinath, A., Narasimhan, K. and Yao, S. (2023) Reflexion: Language Agents with Verbal Reinforcement Learning. Advances in Neural Information Processing Systems 36, New Orleans, 10-16 December 2023, 8634-8652.
https://doi.org/10.52202/075280-0377