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

关于使用整数操作进行近似8位浮点运算

On Approximate 8-bit Floating-Point Operations Using Integer Operations

Theodor Lindberg, Oscar Gustafsson

AI总结:

本文研究了使用简单整数操作执行近似8位浮点运算,通过添加条件进位等机制实现忠实舍入和正确舍入,并在FPGA上取得显著资源节省。

摘要:

本文讨论了使用简单整数操作执行的近似8位浮点运算。对于两位尾数格式,所考虑的操作始终可以获得忠实舍入。对于所有操作,无论是直接还是通过添加条件进位,都可以针对不同的舍入模式获得正确舍入的结果。对于三位尾数格式,有时可以直接获得忠实舍入,而对于其他操作,则必须添加条件进位。通过使用稍微复杂的进位表达式,大多数操作和舍入模式都能获得正确舍入的结果。本文展示了使用标准单元和FPGA技术进行乘法运算的硬件实现结果,说明了整数计算的潜在优势。特别是对于FPGA,获得了显著的资源节省。

英文摘要:

In this work, approximate eight-bit floating-point operations performed using simple integer operations is discussed. For two-bit mantissa formats, faithful rounding can always be obtained for the considered operations. For all operations, correctly rounded results can be obtained for different rounding modes, either directly or by adding a conditional carry in. For three-bit mantissa formats, faithful rounding can be sometimes be obtained directly, while for other operations a conditional carry in must be added. Correctly rounded results can be obtained for most operations and rounding modes using slightly more complicated expressions for the carry in. Hardware implementation results for multiplication using both standard cell and FPGA technology are presented illustrating the potential benefit of integer computation. Especially for FPGA, significant resource savings are obtained.

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

↑