arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.07239cs.ARcs.AI
收藏

VeriLoC:基于Verilog代码的代码行级硬件设计质量预测

VeriLoC: Line-of-Code Level Prediction of Hardware Design Quality from Verilog Code

New York University Tandon School of Engineering(纽约大学Tandon工程学院);New York University Abu Dhabi(纽约大学阿布扎克分校);Synopsys(Synopsys公司)

Raghu Vamshi Hemadri, Jitendra Bhandari, Andre Nakkab, Johann Knechtel, Badri P Gopalan, Ramesh Narayanaswamy, Ramesh Karri, Siddharth Garg

AI总结:

VeriLoC是首个直接从Verilog代码预测行级和模块级硬件设计质量的方法,利用Verilog代码生成LLM提取嵌入训练下游模型,将行级拥塞和时序预测F1提升至0.86-0.95,误差降至4%。

摘要:

现代芯片设计十分复杂,直接从Verilog代码(一种常用于硬件设计的编程语言)预测时序和布线拥塞等关键设计质量指标的需求至关重要。预测导致时序违例或下游布线拥塞的单行代码尤其重要且复杂。先前的工作尝试了将Verilog转换为中间图表示,并使用LLM嵌入及其他特征来预测模块级质量的方法,但未考虑代码行级质量预测。我们提出了VeriLoC,这是首个直接从Verilog在代码行级和模块级预测设计质量的方法。为此,VeriLoC利用近期的Verilog代码生成LLM提取局部的行级和模块级嵌入,并在这些嵌入的拼接上训练下游分类器/回归器。VeriLoC在代码行级拥塞和时序预测中达到了0.86-0.95的高F1分数,并将SOTA方法的14%-18%的平均绝对百分比误差降低至仅4%。我们相信,VeriLoC的嵌入及本研究的见解对复杂硬件设计的其他预测和优化任务也将具有价值。

英文摘要:

Modern chip design is complex, and there is a crucial need for early-stage prediction of key design-quality metrics like timing and routing congestion directly from Verilog code (a commonly used programming language for hardware design). It is especially important yet complex to predict individual lines of code that cause timing violations or downstream routing congestion. Prior works have tried approaches like converting Verilog into an intermediate graph representation and using LLM embeddings alongside other features to predict module-level quality, but did not consider line-level quality prediction. We propose VeriLoC, the first method that predicts design quality directly from Verilog at both the line- and module-level. To this end, VeriLoC leverages recent Verilog code-generation LLMs to extract local line-level and module-level embeddings, and train downstream classifiers/regressors on concatenations of these embeddings. VeriLoC achieves high F1-scores of 0.86-0.95 for line-level congestion and timing prediction, and reduces the mean average percentage error from 14% - 18% for SOTA methods down to only 4%. We believe that VeriLoC embeddings and insights from our work will also be of value for other predictive and optimization tasks for complex hardware design.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑