An Efficient Algorithm for Modulus Operation and Its Hardware Implementation in Prime Number Calculation
W.A. Susantha Wijesinghe

TL;DR
This paper introduces a new FPGA-friendly algorithm for modulus operations using simple arithmetic and logic, demonstrating scalable, efficient performance for cryptographic prime calculations up to 500,000.
Contribution
A novel modulus algorithm that avoids multiplication/division, optimized for FPGA, scalable from 32-bit to 2048-bit, with practical cryptographic applications.
Findings
Consistent linear performance scaling with bit length difference
Efficient resource utilization and power management on FPGA
Effective for prime number calculations up to 500,000
Abstract
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 , where represents the cycle count and 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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
