用图重构与分区技术,大幅提升大规模电路验证效率。
GROOT: Graph Edge Re-growth and Partitioning for the Verification of Large Designs in Logic Synthesis
- 基于AIG图设计节点特征与边重生长算法
- 1024位加法器验证内存减少59.38%,准确率达99.96%
- 专为EDA图计算优化GPU内核,适合芯片设计工程师
芯片设计中的传统验证方法耗时且计算开销大,尤其在大规模电路中。图神经网络(GNN)被视为提升验证效率的潜在方案,但缺乏融合芯片设计领域知识、图论与GPU内核设计的统一框架。为此,本文提出GROOT,一个算法与系统协同设计框架,集成芯片设计知识并重设计GPU内核,以提升验证效率。具体地,利用电路节点类型及输入边到节点连接极性构建节点特征;采用图划分算法将大图拆分为小子图,实现快速GPU处理;提出图边重生长算法恢复验证精度。通过分析EDA图工作负载,发现高/低度节点具有极化分布特性,据此重设计两种GPU内核(HD-kernel与LD-kernel),适配单卡部署。与SOTA方法对比:在1,024位超大规模进位生成加法器(含134,103,040个节点、268,140,544条边,批量大小16)上,GROOT内存占用降低59.38%,准确率高达99.96%。相较cuSPARSE、MergePath-SpMM与GNNAdvisor等先进GPU内核,运行时间分别提升1.104x、5.796x和1.469x。
原文摘要 · Abstract (English)
Traditional verification methods in chip design are highly time-consuming and computationally demanding, especially for large scale circuits. Graph neural networks (GNNs) have gained popularity as a potential solution to improve verification efficiency. However, there lacks a joint framework that considers all chip design domain knowledge, graph theory, and GPU kernel designs. To address this challenge, we introduce GROOT, an algorithm and system co-design framework that contains chip design domain knowledge and redesigned GPU kernels, to improve verification efficiency. More specifically, we create node features utilizing the circuit node types and the polarity of the connections between the input edges to nodes in And-Inverter Graphs (AIGs). We utilize a graph partitioning algorithm to divide the large graphs into smaller sub-graphs for fast GPU processing and develop a graph edge re-growth algorithm to recover verification accuracy. We carefully profile the EDA graph workloads and observe the uniqueness of their polarized distribution of high degree (HD) nodes and low degree (LD) nodes. We redesign two GPU kernels (HD-kernel and LD-kernel), to fit the EDA graph learning workload on a single GPU. We compare the results with state-of-the-art (SOTA) methods: GAMORA, a GNN-based approach, and the traditional ABC framework. Results show that GROOT achieves a significant reduction in memory footprint (59.38 %), with high accuracy (99.96%) for a very large CSA multiplier, i.e. 1,024 bits with a batch size of 16, which consists of 134,103,040 nodes and 268,140,544 edges. We compare GROOT with GPU-based GPU Kernel designs SOTAs such as cuSPARSE, MergePath-SpMM, and GNNAdvisor. We achieve up to 1.104x, 5.796x, and 1.469x improvement in runtime, respectively.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。