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

一种高效取模运算算法及其在素数计算中的硬件实现

An Efficient Algorithm for Modulus Operation and Its Hardware Implementation in Prime Number Calculation

W. A. Susantha Wijesinghe

AI总结:

本文提出一种仅用加减、逻辑和移位操作的 FPGA 取模算法,周期数满足 y=2x+2,并通过素数计算验证其高效与可扩展性。

摘要:

本文提出了一种用于 FPGA 实现的新型取模运算算法。该算法仅使用加法、减法、逻辑和移位操作,避免了与乘法和除法相关的复杂性及硬件成本。它在 32 位到 2048 位的操作数规模范围内表现出稳定性能,解决了密码应用中的可扩展性挑战。该算法使用 Verilog HDL 实现,并在 Xilinx Zynq-7000 系列 FPGA 上进行测试,结果显示周期数随位长差(BLD)呈可预测的线性扩展,可用方程 y=2x+2 描述,其中 y 表示周期数,x 表示 BLD。将该算法应用于最高 500,000 的素数计算,展示了其实用性和性能优势。综合评估表明,其具有高效的资源利用率、稳健的时序性能和有效的功耗管理,适用于高性能和资源受限平台。结果表明,所提算法显著提高了模算术运算效率,并对密码协议和安全计算具有潜在意义。

英文摘要:

This paper presents a novel algorithm for the modulus operation for FPGA implementation. The proposed algorithm use only addition, subtraction, logical, and bit shift operations, avoiding the complexities and hardware costs associated with multiplication and division. It demonstrates consistent performance across operand sizes ranging from 32-bit to 2048-bit, addressing scalability challenges in cryptographic applications. Implemented in Verilog HDL and tested on a Xilinx Zynq-7000 family FPGA, the algorithm shows a predictable linear scaling of cycle count with bit length difference (BLD), described by the equation $y=2x+2$, where $y$ represents the cycle count and $x$ represents the BLD. The application of this algorithm in prime number calculation up to 500,000 shows its practical utility and performance advantages. Comprehensive evaluations reveal efficient resource utilization, robust timing performance, and effective power management, making it suitable for high-performance and resource-constrained platforms. The results indicate that the proposed algorithm significantly improves the efficiency of modular arithmetic operations, with potential implications for cryptographic protocols and secure computing.

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

↑