用AST和RAG提升芯片规则代码生成准确率,解决专家依赖难题。
An AST-guided LLM Approach for SVRF Code Synthesis
- 结合AST结构验证与RAG领域知识,生成更精准的SVRF代码
- 在740个DRC规则上实现比基础微调高40%的准确率
- 适合芯片设计工程师快速生成和验证规则代码
标准验证规则格式(SVRF)在集成电路设计中至关重要,用于设计规则检查(DRC)、版图对电路图比对(LVS)和光学邻近校正(OPC)。随着工艺节点演进,设计规则日益复杂,传统SVRF开发方法失效,并暴露出专业人才缺口。本文提出一种融合抽象语法树(AST)嵌入与检索增强生成(RAG)的新方法,通过领域知识注入和结构化验证,提升代码生成的语义准确性和错误率控制。评估多个基于T5的模型,提出专为SVRF设计的评分框架,补充标准指标如BLEU和ROUGE-L。在包含740个DRC规则实现的综合基准上,该方法相比基础文本微调显著提升40%的生成准确率。该方法结合行业经验与先进编码策略,在数据有限条件下优化了SVRF开发流程,使用户能快速迭代设计、减少人工纠错,大幅提升整体效率。
原文摘要 · Abstract (English)
Standard Verification Rule Format (SVRF) is essential for semiconductor applications like Design Rule Check (DRC), Layout Versus Schematic (LVS), and Optical Proximity Correction (OPC) and it faces challenges as advancing nodes create complex design rules that renders traditional SVRF development ineffective and highlight an expertise gap. This paper introduces a novel methodology integrating Abstract Syntax Tree (AST) embedding and Retrieval-Augmented Generation (RAG) for enhanced SVRF code synthesis, ensuring semantic accuracy and error minimization through structural validation with domain-specific insights for precise code generation. We evaluate different T5-based models and propose an innovative SVRF-specific scoring framework that complements standard metrics like BLEU and ROUGE-L. In our approach, AST provides rigorous structural validation, while RAG infuses relevant domain knowledge, effectively enhancing the code generation workflow. Testing on a comprehensive benchmark of 740 DRC rule implementations, our methodology demonstrates up to a 40\% improvement in code generation accuracy compared to basic text-based fine-tuning process. This fusion of industry expertise with advanced coding strategies not only optimizes SVRF development under limited dataset constraints but also creates a more intuitive and efficient coding environment. Consequently, users can rapidly iterate through design cycles, reduce manual error correction, and significantly improve overall productivity.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。