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

以最小硬件代价实现多常数乘法

Towards the Multiple Constant Multiplication at Minimal Hardware Cost

Rémi Garcia, Anastasia Volkova

摘要:

整数上的多常数乘法(MCM)是一种常见的操作,出现在需要高度优化硬件的嵌入式系统中。一种有效的方法是用移位和加法代替昂贵的通用乘法,即无乘法器电路。在这项工作中,我们改进了国家的最先进的MCM的最优方法,基于线性规划(ILP)。我们引入了一个新的较低级别的硬件成本,基于计数的一位加法器的数量,并证明它是强烈相关的LUT计数。这种新的无乘法器MCM电路模型允许我们考虑中间截断,允许显着节省资源时,不需要一个完整的输出精度。我们将错误传播规则到我们的ILP模型,以保证用户给定的误差界的MCM结果。所提出的多风格MCM的ILP模型实现为一个开源工具,并结合FloPoCo代码生成器,提供了一个完整的系数到VHDL的流程。我们在广泛的实验中评估我们的模型,并提出了一个深入的分析,设计指标的影响,实际合成的硬件。

英文摘要:

Multiple Constant Multiplication (MCM) over integers is a frequent operation arising in embedded systems that require highly optimized hardware. An efficient way is to replace costly generic multiplication by bit-shifts and additions, i.e. a multiplierless circuit. In this work, we improve the state-of-the-art optimal approach for MCM, based on Integer Linear Programming (ILP). We introduce a new lower-level hardware cost, based on counting the number of one-bit adders and demonstrate that it is strongly correlated with the LUT count. This new model for the multiplierless MCM circuits permitted us to consider intermediate truncations that permit to significantly save resources when a full output precision is not required. We incorporate the error propagation rules into our ILP model to guarantee a user-given error bound on the MCM results. The proposed ILP models for multiple flavors of MCM are implemented as an open-source tool and, combined with the FloPoCo code generator, provide a complete coefficient-to-VHDL flow. We evaluate our models in extensive experiments, and propose an in-depth analysis of the impact that design metrics have on actually synthesized hardware.

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

↑