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

TimingLLM: 一种两阶段检索增强框架,用于从Verilog预合成时间预测

TimingLLM: A Two-Stage Retrieval-Augmented Framework for Pre-Synthesis Timing Prediction from Verilog

University of Southern California(美国南加州大学)

Armin Abdollahi, Negin Ashrafi, Mehdi Kamal, Massoud Pedram

AI总结:

TimingLLM通过两阶段检索增强框架,利用Verilog直接预测最坏负松弛和总负松弛,提升预合成时间预测的准确性和效率。

摘要:

早期、无需工具的时间预测仍是快速RTL迭代的关键障碍。我们引入TimingLLM,一种两阶段检索增强的LLM管道,直接从Verilog估计最坏负松弛(WNS)和总负松弛(TNS)。第一阶段是微调的LLM,作为紧凑的后合成时间Oracle,生成路径级到达时间和所需时间,并总结为轻量的结构-时间线索(例如,门计数袋、关键路径深度、门类型模式)。第二阶段是基于LLM的回归器,预测WNS/TNS并应用在最后的Transformer块中学习的对角引导向量,该向量从不相交的检索库中k个最接近的定时标记模块计算得出。在VerilogEval上,TimingLLM达到R_WNS=0.91(MAPE 12%)和R_TNS=0.97(MAPE 16%),运行速度比先前方法快1.3-1.6倍。训练使用新的60,000模块Verilog语料库及其综合报告,我们将发布。训练后,TimingLLM可通过仅重新训练少量回归头,在每个设置上使用1000个标记模块适应新工艺库和PVT角落,一致优于最先进的基线。

英文摘要:

Early, tool-free prediction of post-synthesis timing remains a key obstacle to rapid RTL iteration. We introduce TimingLLM, a two-stage retrieval-augmented LLM pipeline that estimates worst negative slack (WNS) and total negative slack (TNS) directly from Verilog. Stage 1 is a fine-tuned LLM that acts as a compact post-synthesis timing oracle, producing path-level arrivals/required times that are summarized into lightweight structural-timing cues (e.g., bag-of-gates counts, critical-path depth, gate-type patterns). Stage 2 is an LLM-based regressor that predicts WNS/TNS and applies a learned diagonal steering vector at the last transformer block, computed from the k nearest timing-labeled modules in a disjoint retrieval bank. On VerilogEval, TimingLLM attains R_WNS = 0.91 (MAPE 12%) and R_TNS=0.97 (MAPE 16%) while running 1.3-1.6 times faster than prior methods. Training uses a new 60k-module Verilog corpus with synthesis reports, which we will release. After training once, TimingLLM can be adapted to new technology libraries and PVT corners by refitting only a small regression head on 1000 labeled modules per setting, consistently outperforming state-of-the-art baselines.

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

↑