A Scaling-Assisted Signed Integer Comparator for the Balanced Five-Moduli Set RNS $\{2^{n}-1, 2^{n}, 2^{n}+ 1, 2^{n+1}- 1, 2^{n-1}- 1\}$

Signed integer comparison occurs prevalently in process control, sorting, address decoding, and conditional branching. Existing algorithms for magnitude comparison in RNS are based either on parity check or partial reverse conversion. With separately designed RNS sign detectors, they can also be used to compare residue representations of signed integers. In this paper, a radically different approach to this problem is proposed for the five-moduli set <inline-formula> <tex-math notation="LaTeX">$\{2^{n}- 1, 2^{n}, 2^{n}+ 1, 2^{n+1}- 1, 2^{n-1}-1\}$ </tex-math></inline-formula>. The signs of the operands in comparison, as well as their difference are detected after scaling by a factor of (<inline-formula> <tex-math notation="LaTeX">$2^{2n}- 1$ </tex-math></inline-formula>)(<inline-formula> <tex-math notation="LaTeX">$2^{n-1}- 1$ </tex-math></inline-formula>). The resulting finite series in the composite modulus channel is further factored into parallel carry-saved additions in the existing mod <inline-formula> <tex-math notation="LaTeX">$2^{n}$ </tex-math></inline-formula> and mod <inline-formula> <tex-math notation="LaTeX">$2^{n+1}- 1$ </tex-math></inline-formula> modulus channels, thus reducing the sizes of modulo adders from <inline-formula> <tex-math notation="LaTeX">$5n$ </tex-math></inline-formula> bits to <inline-formula> <tex-math notation="LaTeX">$n$ </tex-math></inline-formula> and <inline-formula> <tex-math notation="LaTeX">$n + 1$ </tex-math></inline-formula> bits. Upon detecting the signs of the operands and their difference, the relation is inference with a small fraction of logic gates. Our synthesis results in 65-nm CMOS technology show that the proposed design is 36.9% smaller, 7.6% faster, and 45.5% more energy efficient than the best Chinese remainder theorem-II-based magnitude comparator and at least 12.9% smaller, 7.3% faster, and 20.8% more energy efficient than the best reverse-conversion-based implementation of signed integer comparator for the same five-moduli set.

[1]  Chip-Hong Chang,et al.  Area-Power Efficient Modulo 2n-1 and Modulo 2n+1 Multipliers for {2n-1, 2n, 2n+1} Based RNS , 2012, IEEE Trans. Circuits Syst. I Regul. Pap..

[2]  Chip-Hong Chang,et al.  A New Fast and Area-Efficient Adder-Based Sign Detector for RNS { $2^{n}-1, 2^{n}, 2^{n}+1$ } , 2016, IEEE Transactions on Very Large Scale Integration (VLSI) Systems.

[3]  R. M. Hewlitt,et al.  Canonical signed digit representation for FIR digital filters , 2000, 2000 IEEE Workshop on SiGNAL PROCESSING SYSTEMS. SiPS 2000. Design and Implementation (Cat. No.00TH8528).

[4]  Omid Kavehei,et al.  Efficient Reverse Converter Designs for the New 4-Moduli Sets $\{2^{n} -1, 2^{n}, 2^{n} +1, 2^{2n + 1}-1\}$ and $\{2^{n} -1, 2^{n} +1, 2^{2n}, 2^{2n} +1\}$ Based on New CRTs , 2010, IEEE Transactions on Circuits and Systems I: Regular Papers.

[5]  Jianhao Hu,et al.  Energy-Efficient Digital Signal Processing via Voltage-Overscaling-Based Residue Number System , 2013, IEEE Transactions on Very Large Scale Integration (VLSI) Systems.

[6]  Ricardo Chaves,et al.  RNS Reverse Converters for Moduli Sets With Dynamic Ranges up to $(8n+1)$ -bit , 2013, IEEE Transactions on Circuits and Systems I: Regular Papers.

[7]  Ghassem Jaberipur,et al.  Fast low energy RNS comparators for 4-moduli sets {2n±1, 2n, m} with m∈{2n+1±1, 2n-1-1} , 2016, Integr..

[8]  Chip-Hong Chang,et al.  A Residue-to-Binary Converter for a New Five-Moduli Set , 2007, IEEE Transactions on Circuits and Systems I: Regular Papers.

[9]  Warren J. Gross,et al.  The Mixed-Radix Chinese Remainder Theorem and Its Applications to Residue Comparison , 2008, IEEE Transactions on Computers.

[10]  Chip-Hong Chang,et al.  Area-efficient and fast sign detection for four-moduli set RNS {2n −1,2n, 2n +1,22n +1} , 2014, 2014 IEEE International Symposium on Circuits and Systems (ISCAS).

[11]  Chip-Hong Chang,et al.  Simple, Fast, and Exact RNS Scaler for the Three-Moduli Set $\{2^{n} - 1, 2^{n}, 2^{n} + 1\}$ , 2011, IEEE Transactions on Circuits and Systems I: Regular Papers.

[12]  Jun Chen,et al.  Parallel Prefix Ling Structures for Modulo 2^n-1 Addition , 2009, 2009 20th IEEE International Conference on Application-specific Systems, Architectures and Processors.

[13]  Ning Ge,et al.  Simplified fault tolerant FIR filter architecture based on redundant residue number system , 2014 .

[14]  Sebastiano Impedovo,et al.  A New Technique for Fast Number Comparison in the Residue Number System , 1993, IEEE Trans. Computers.

[15]  Chip-Hong Chang,et al.  Base Transformation With Injective Residue Mapping for Dynamic Range Reduction in RNS , 2015, IEEE Transactions on Circuits and Systems I: Regular Papers.

[16]  Mehdi Hosseinzadeh,et al.  A high-speed Residue Number comparator For the 3-Moduli Set {2n−1, 2 n+1, 2 n+3} , 2010, 2010 International Symposium on Signals, Systems and Electronics.

[17]  Stanislaw J. Piestrak,et al.  Design of Reverse Converters for General RNS Moduli Sets $\{ 2^{k}, 2^{n}-1, 2^{n}+1, 2^{n+1}-1 \}$ and $\{ 2^{k}, 2^{n}-1, 2^{n}+1, 2^{n-1}-1 \}$ ($n$ even) , 2014, IEEE Transactions on Circuits and Systems I: Regular Papers.

[18]  Thanos Stouraitis,et al.  Multifunction Residue Architectures for Cryptography , 2014, IEEE Transactions on Circuits and Systems I: Regular Papers.

[19]  Mi Lu,et al.  A Novel Division Algorithm for the Residue Number System , 1992, IEEE Trans. Computers.

[20]  Haridimos T. Vergos,et al.  High-Speed Parallel-Prefix Modulo 2n-1 Adders , 2000, IEEE Trans. Computers.

[21]  Shun-Wen Cheng A high-speed magnitude comparator with small transistor count , 2003, 10th IEEE International Conference on Electronics, Circuits and Systems, 2003. ICECS 2003. Proceedings of the 2003.

[22]  Chip-Hong Chang,et al.  New Algorithm for Signed Integer Comparison in $\{2^{n+k},2^{n}-1,2^{n}+1,2^{n\pm 1}-1\}$ and Its Efficient Hardware Implementation , 2017, IEEE Transactions on Circuits and Systems I: Regular Papers.

[23]  Leonel Sousa,et al.  An RNS based Specific Processor for Computing the Minimum Sum-of-Absolute-Differences , 2008, 2008 11th EUROMICRO Conference on Digital System Design Architectures, Methods and Tools.

[24]  Chip-Hong Chang,et al.  A VLSI-efficient signed magnitude comparator for { 2n-1, 2n, 2n +2n+1-1} RNS , 2016, 2016 IEEE International Symposium on Circuits and Systems (ISCAS).

[26]  Olivier Sentieys,et al.  Designing Efficient Codecs for Bus-Invert Berger Code for Fully Asymmetric Communication , 2010, IEEE Transactions on Circuits and Systems II: Express Briefs.

[27]  Thanos Stouraitis,et al.  Grouped-moduli residue number systems for fast signal processing , 1999, ISCAS'99. Proceedings of the 1999 IEEE International Symposium on Circuits and Systems VLSI (Cat. No.99CH36349).

[28]  Nicu Sebe,et al.  Distance Learning for Similarity Estimation , 2008, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[29]  Luiz Carlos Pessoa Albini,et al.  Using the Redundant Residue Number System to increase Routing Dependability on Mobile Ad Hoc Networks , 2011 .

[30]  Chip-Hong Chang,et al.  Simple, Fast, and Exact RNS Scaler for the Three-Moduli Set , 2011 .

[31]  J R King,et al.  Analysis of the residue class core function of Akushskii, Burcev, and Pak , 1986 .

[32]  Chip-Hong Chang,et al.  Residue Number Systems: A New Paradigm to Datapath Optimization for Low-Power and High-Performance Digital Signal Processing Applications , 2015, IEEE Circuits and Systems Magazine.

[33]  Ghassem Jaberipur,et al.  Low-Power/Cost RNS Comparison via Partitioning the Dynamic Range , 2016, IEEE Transactions on Very Large Scale Integration (VLSI) Systems.

[34]  Leonel Sousa,et al.  Efficient Method for Magnitude Comparison in RNS Based on Two Pairs of Conjugate Moduli , 2007, 18th IEEE Symposium on Computer Arithmetic (ARITH '07).

[35]  Xiaoyu Song,et al.  A new algorithm for RNS magnitude comparison based on New Chinese Remainder Theorem II , 1999, Proceedings Ninth Great Lakes Symposium on VLSI.

[36]  A. S. Molahosseini,et al.  Efficient reverse converter designs for the new 4-moduli sets {2n - 1, 2n, 2n + 1, 22n+1 - 1} and {2n - 1, 2n + 1, 22n, 22n + 1} based on new CRTs , 2010 .

[37]  Yuke Wang New Chinese remainder theorems , 1998, Conference Record of Thirty-Second Asilomar Conference on Signals, Systems and Computers (Cat. No.98CH36284).