计算机科学
Verilog公司
水准点(测量)
程序设计语言
抽象语法树
编译程序
语义学(计算机科学)
编码(社会科学)
解析
网络列表
构造(python库)
硬件描述语言
语法
计算机工程
计算机体系结构
推论
树(集合论)
电子电路设计
数据挖掘
人工智能
工具链
接口(物质)
机器学习
自然语言处理
编码(集合论)
抽象语法
静态分析
作者
Luping Zhang,Chao Chen,Dapeng Yan,Hui Xu,Mingsheng Cao,Jingkuan Song,Zhikuang Cai,Yufeng Guo
出处
期刊:
[Association for Computing Machinery]
日期:2026-06-30
卷期号:3 (FSE): 989-1010
摘要
With the increasing complexity and scale of integrated circuit (IC) designs, automated circuit design methods are essential for Verilog implementation. Although Large Language Models (LLMs) perform well in general-purpose coding such as C++ and Python, their performance in Verilog is constrained by domain-specific semantic and structural rules as well as the scarcity of high-quality training datasets. To address these issues, this work proposes a semantically enhanced Verilog code parsing and automatic repair framework based on Abstract Syntax Tree (AST). First, an advanced register-transfer level (RTL) analysis framework was developed to achieve semantic enhancement through static analysis–driven functional role inference and attribute annotation. Second, enhanced AST information is used to construct structured prompts and generate semantically rich module descriptions via an Application Programming Interface (API) for dataset construction. Finally, an AST-guided automatic Verilog repair framework was designed, which leverages enhanced AST analysis for precise defect localization and intelligent repair through compiler feedback loops. Experimental results indicate that the proposed method successfully repaired 15.24% of defective Verilog code, resulting in a high-quality RTL benchmark dataset containing 318,021 samples. Models fine-tuned on this dataset demonstrate significant performance improvements across three benchmarks, achieving average improvements of 13.76% and 16.95% on Eval-Machine pass@1 and pass@5, 8.97% and 14.56% on Eval-Human pass@1 and pass@5, and 15.70% and 12.20% on RTLLM V1.1 Syntax-VCS and Func.
科研通智能强力驱动
Strongly Powered by AbleSci AI