面向设计与验证自动化的 Verilog 自动补全深度学习框架
A Deep Learning Framework for Verilog Autocompletion Towards Design and Verification Automation
AI总结:
本文提出融合通用编程语言预训练模型并在 Verilog 数据集上微调的深度学习框架,用于 Verilog 代码自动补全,实验显示其多项指标显著优于从零训练模型。
摘要:
创新的电子设计自动化(EDA)解决方案对于满足日益复杂的电子设备的设计需求十分重要。Verilog 是一种硬件描述语言,被广泛用于数字电路的设计与验证,并通过特定的 EDA 工具进行综合。然而,编写代码是一项重复且耗时的工作。本文首先提出了一种用于训练 Verilog 自动补全模型的新型深度学习框架,其次给出了一个由开源仓库获取的文件和代码片段构成的 Verilog 数据集。该框架包括整合在通用编程语言数据上预训练的模型,并在经过整理、与目标下游任务相似的数据集上对其进行微调。通过使用多项评估指标,比较在所提出 Verilog 数据集不同子集上训练的不同预训练模型,这一点得到了验证。实验表明,与从零开始训练的模型相比,所提出框架在 BLEU、ROUGE-L 和 chrF 分数上分别取得了 9.5%、6.7% 和 6.9% 的提升。代码和数据可在 https://github.com/99EnriqueD/verilog_autocompletion 获取。
英文摘要:
Innovative Electronic Design Automation (EDA) solutions are important to meet the design requirements for increasingly complex electronic devices. Verilog, a hardware description language, is widely used for the design and verification of digital circuits and is synthesized using specific EDA tools. However, writing code is a repetitive and time-intensive task. This paper proposes, primarily, a novel deep learning framework for training a Verilog autocompletion model and, secondarily, a Verilog dataset of files and snippets obtained from open-source repositories. The framework involves integrating models pretrained on general programming language data and finetuning them on a dataset curated to be similar to a target downstream task. This is validated by comparing different pretrained models trained on different subsets of the proposed Verilog dataset using multiple evaluation metrics. These experiments demonstrate that the proposed framework achieves better BLEU, ROUGE-L, and chrF scores by 9.5%, 6.7%, and 6.9%, respectively, compared to a model trained from scratch. Code and data are made available at: https://github.com/99EnriqueD/verilog_autocompletion .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。