arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12421cs.AR
收藏

ROVER:通过经过验证的 E-Graph 重写进行 RTL 优化

ROVER: RTL Optimization via Verified E-Graph Rewriting

Samuel Coward, Theo Drane, George A. Constantinides

AI总结:

本文提出 ROVER,利用经验证的 e-graph 重写、混合精度规则、ILP 最优提取与后端证书自动化 RTL 数据通路优化,在 Intel 与开源基准上最高减少 63% 面积。

摘要:

由于商用逻辑综合工具和高层次综合工具无法匹敌人工设计,手工 RTL 设计与优化在整个半导体行业仍然十分普遍。我们在工业数据通路设计方面的经验表明,手工优化通常可以分解为一系列保持等价性的局部变换。通过将数据通路优化形式化为图重写问题,我们在一个名为 ROVER 的工具中实现了设计空间探索的自动化。我们受 Intel 设计师启发,开发了一组混合精度 RTL 重写规则,以及配套的自动化验证框架。数据通路设计中的一个特殊挑战是确定应用变换的有效顺序,因为该顺序可能依赖于具体设计。ROVER 通过基于 e-graph 数据结构解决这一问题,该数据结构能够紧凑地表示由等价实现构成的设计空间。通过对该数据结构应用重写,ROVER 生成一组高效且功能等价的设计选项。我们从 ROVER 生成的 e-graph 中选择一种高效实现。为了精确建模电路面积,我们提出了一种理论成本度量,并随后建立整数线性规划模型以提取最优实现。为了建立对所生成设计的信任,ROVER 还生成可使用工业工具检查的后端验证证书。我们将 ROVER 应用于 Intel 提供的基准测试和开源基准测试,观察到电路面积最多减少 63%。ROVER 还能够根据给定的可参数化 RTL 设计生成由不同实现组成的定制库,从而在所有可能实例化的范围内改善电路面积。

英文摘要:

Manual RTL design and optimization remains prevalent across the semiconductor industry because commercial logic and high-level synthesis tools are unable to match human designs. Our experience in industrial datapath design demonstrates that manual optimization can typically be decomposed into a sequence of local equivalence preserving transformations. By formulating datapath optimization as a graph rewriting problem we automate design space exploration in a tool we call ROVER. We develop a set of mixed precision RTL rewrite rules inspired by designers at Intel and an accompanying automated validation framework. A particular challenge in datapath design is to determine a productive order in which to apply transformations as this can be design dependent. ROVER resolves this problem by building upon the e-graph data structure, which compactly represents a design space of equivalent implementations. By applying rewrites to this data structure, ROVER generates a set of efficient and functionally equivalent design options. From the ROVER generated e-graph we select an efficient implementation. To accurately model the circuit area we develop a theoretical cost metric and then an integer linear programming model to extract the optimal implementation. To build trust in the generated design ROVER also produces a back-end verification certificate that can be checked using industrial tools. We apply ROVER to both Intel-provided and open-source benchmarks, and see up to a 63% reduction in circuit area. ROVER is also able to generate a customized library of distinct implementations from a given parameterizable RTL design, improving circuit area across the range of possible instantiations.

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

↑