使用E图的自动数据路径优化
Automatic Datapath Optimization using E-Graphs
摘要:
寄存器传输级(RTL)数据路径的手动优化在工业中很常见,但由于非常耗时,因此阻碍了开发。我们利用一个RTL到另一个等效RTL的复杂变换可以分解为一系列较小的局部化变换的事实。通过将RTL表示为图并部署现代图重写技术,我们可以自动化电路设计空间探索,使我们能够发现功能等效但优化的架构。我们证明,现代重写框架可以充分捕捉各种各样的复杂优化人类设计师对位向量操作代码,包括显着的易错的微妙之处,在复杂的相互作用下的位宽的转换的有效性。建议的自动优化方法是能够重现典型的工业手动优化的结果,导致电路面积减少高达71%。我们的工具不仅发现了优化的RTL,而且还正确地识别出实现给定算术表达式的最佳架构可以取决于操作数的宽度,从而产生优化设计的库,而不是通常由手动优化生成的单个设计点。此外,我们证明了先前的学术工作,最大限度地利用进位保存表示和多个常数乘法都是广义和扩展,脱落本文的特殊情况。
英文摘要:
Manual optimization of Register Transfer Level (RTL) datapath is commonplace in industry but holds back development as it can be very time consuming. We utilize the fact that a complex transformation of one RTL into another equivalent RTL can be broken down into a sequence of smaller, localized transformations. By representing RTL as a graph and deploying modern graph rewriting techniques we can automate the circuit design space exploration, allowing us to discover functionally equivalent but optimized architectures. We demonstrate that modern rewriting frameworks can adequately capture a wide variety of complex optimizations performed by human designers on bit-vector manipulating code, including significant error-prone subtleties regarding the validity of transformations under complex interactions of bitwidths. The proposed automated optimization approach is able to reproduce the results of typical industrial manual optimization, resulting in a reduction in circuit area by up to 71%. Not only does our tool discover optimized RTL, but also correctly identifies that the optimal architecture to implement a given arithmetic expression can depend on the width of the operands, thus producing a library of optimized designs rather than the single design point typically generated by manual optimization. In addition, we demonstrate that prior academic work on maximally exploiting carry-save representation and on multiple constant multiplication are both generalized and extended, falling out as special cases of this paper.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。