论文标题
使用电子图表的自动数据优化
Automatic Datapath Optimization using E-Graphs
论文作者
论文摘要
寄存器传输级别(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.