PERCIVAL:具有Quire功能的开源Posit RISC-V核心
PERCIVAL: Open-Source Posit RISC-V Core with Quire Capability
摘要:
实数的浮点数表示是普遍存在的IEEE 754浮点数标准的替代方案。在这项工作中,我们提出了PERCIVAL,一个基于CVA6的应用级可编程RISC-V核心,可以执行所有可编程指令,包括quire融合操作。这解决了以前的作品所遇到的障碍,这些作品只包括部分可扩展性支持或必须在软件中模拟假设,从而限制了其应用程序的范围或可扩展性。此外,Xcovery,一个RISC-V的扩展,用于LLVM指令被合并到LLVM中。因此,PERCIVAL是第一个在硬件中集成完整的FPGA指令集的工作。这些元素允许本机执行浮点指令以及标准浮点指令,进一步允许比较这些表示。FPGA和ASIC综合显示了实现32位置位的硬件成本,并强调了包括一个quire累加器的显著开销。然而,结果比较posits和IEEE浮点数表明,quire能够更准确地执行点积。在一般的矩阵乘法中,与单精度浮点数相比,精度误差减少了4个数量级。此外,性能比较表明,这些精度的提高并不妨碍它们的执行,因为假设运行速度与单精度浮点数一样快,并且比双精度浮点数表现出更好的时序,因此可能提供一种替代表示。
英文摘要:
The posit representation for real numbers is an alternative to the ubiquitous IEEE 754 floating-point standard. In this work, we present PERCIVAL, an application-level posit capable RISC-V core based on CVA6 that can execute all posit instructions, including the quire fused operations. This solves the obstacle encountered by previous works, which only included partial posit support or which had to emulate posits in software, thus limiting the scope or the scalability of their applications. In addition, Xposit, a RISC-V extension for posit instructions is incorporated into LLVM. Therefore, PERCIVAL is the first work that integrates the complete posit instruction set in hardware. These elements allow for the native execution of posit instructions as well as the standard floating-point ones, further permitting the comparison of these representations. FPGA and ASIC synthesis show the hardware cost of implementing 32-bit posits and highlight the significant overhead of including a quire accumulator. However, results comparing posits and IEEE floats show that the quire enables a more accurate execution of dot products. In general matrix multiplications, the accuracy error is reduced up to 4 orders of magnitude when compared with single-precision floats. Furthermore, performance comparisons show that these accuracy improvements do not hinder their execution, as posits run as fast as single-precision floats and exhibit better timing than double-precision floats, thus potentially providing an alternative representation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。