RISC-V Word-Size Modular Instructions for Residue Number Systems
Laurent-St\'ephane Didier (IMATH), Jean-Marc Robert (IMATH)

TL;DR
This paper demonstrates that specialized RISC-V instructions for word-size modular arithmetic significantly accelerate Residue Number System computations, especially in cryptographic and digital signal processing applications, compared to traditional architectures.
Contribution
It introduces RISC-V instructions tailored for RNS modular arithmetic and evaluates their performance benefits through simulations and algorithm comparisons.
Findings
RNS modular multiplication with Kawamura's base extension is 2.76 times faster on In Order processors.
It is over 3 times faster on Out of Order processors.
Using specific instructions reduces cycle counts by 4.5x in In Order and 8x in Out of Order architectures.
Abstract
Residue Number Systems (RNS) are parallel number systems that allow the computation on large numbers. They are used in high performance digital signal processing devices and cryptographic applications. However, the rigidity of instruction set architectures of the market-dominant microprocessors limits the use of such number systems in software applications. This article presents the impact of word-size modular arithmetic specific RISC-V instructions on the software implementation of Residue Number Systems. We evaluate this impact on several RNS modular multiplication sequential algorithms. We observe that the fastest implementation uses the Kawamura et. al. base extension. Simulations of architectures with GEM5 simulator show that RNS modular multiplication with Kawamura's base extension is 2.76 times faster using specific word-size modular arithmetic instructions than pseudo-Mersenne…
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.
