Skip to main content

Non-Modular Operations of the Residue Number System: Functions for Computing

  • Chapter
  • First Online:
Book cover Embedded Systems Design with Special Arithmetic and Number Systems

Abstract

This chapter introduces the problem of non-modular operations in the Residue Number System (RNS) and presents some recent approaches for their effective implementation. The approaches are based on specific functions defined from the RNS to the Integers that show mathematical properties useful to support the implementation of non-modular operations, like magnitude comparison and residue-to-binary conversion. In particular, two different functions defined from the RNS to the Integers are discussed: the ‘diagonal functions’ and the ‘quotient functions’. Through the paper the new implementations of non-modular operations in the RNS are described and their effectiveness is analysed with respect to traditional techniques in the literature.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Abbreviations

- :

m 1,m 2,…,m n : set of pairwise relatively prime moduli (n integer, n ≥ 2)

- :

\( M={\displaystyle \prod_{i=1}^n{m}_i} \)

- :

I = [0,M − 1]: dynamic range of the RNS (set of integers)

- :

\( {X}_i={\left|X\right|}_{m_i} \): the least positive residue of X modulo m i , i = 1,2,..,n

- :

\( {M}_i=\frac{M}{m_i} \), i = 1,2,…,n

- :

\( \mathit{SQ}={\displaystyle \sum_{i=1}^n{M}_i} \): the ‘diagonal modulus’ of the RNS

- :

\( {J}_{a,b}={\left|\frac{1}{a}\right|}_b \): the multiplicative inverse of a modulo b (i.e. \( \vert a\cdot {\left|\frac{1}{a}\right|}_b{\vert}_b=1 \))

- :

a⌋: the largest integer not exceeding a

- :

b⌉: rounding to a higher integer

- :

≡: modular congruence

- :

MOMA (n, W): multi-operand modulo W adder for n operands.

References

  1. S. Szabó, R.I. Tanaka, Residue arithmetic and its applications to computer technology (McGraw-Hill, New York, 1967)

    MATH  Google Scholar 

  2. F.J. Taylor, Residue arithmetic: a tutorial with examples. Computer 17(5), 50–62 (1984)

    Article  Google Scholar 

  3. A.A. Albert, Fundamental concepts of higher algebra (University of Chicago Press, Chicago, 1956)

    MATH  Google Scholar 

  4. S. Andraos, H. Ahmed, A new efficient memoryless residue to binary converter. IEEE Trans. Circ. Syst. 35, 1441–1444 (1988)

    Article  MATH  MathSciNet  Google Scholar 

  5. K.M. Ibrahim, S.N. Saloum, An efficient residue to binary converter design. IEEE Trans. Circ. Syst. CAS-35, 1156–1158 (1988)

    Article  MATH  Google Scholar 

  6. S. Chen, S. Wei, Weighted-to-residue and residue-to-weighted converters with three-moduli (2n − 1, 2n, 2n + 1) signed-digit architectures, in Proceedings of 2006 IEEE International Symposium on Circuits and Systems (ISCAS 2006), Island of Kos, Greece, 21–24 May 2006

    Google Scholar 

  7. W.W. Swamy, M.N.S. Ahmad, M.O.Y. Wang, A high-speed residue-to-binary converter for three-moduli (2k − 1, 2k − 1, 2n−1 − 1) RNS and a scheme for its VLSI implementations. IEEE Trans. Circuits Syst. II: Express Briefs 47(12), 1576–1581 (2000)

    Article  MATH  Google Scholar 

  8. B. Cao, C.-H. Chang, T. Srikanthan, A residue-to-binary converter for a new five-moduli set. IEEE Trans. Circuits Syst. I 54(5), 1041–1049 (2007)

    Article  MathSciNet  Google Scholar 

  9. B. Cao, T. Srikanthan, C.-H. Chang, Design of residue-to-binary converter for a new 5-moduli superset residue number system, in Proceedings of the International Symposium on Circuits and Systems (ISCAS 2004), Vancouver, Canada, vol. 2, pp. II-841-4, 23–26 May 2004

    Google Scholar 

  10. A. Skavantzos, M. Abdallah, Implementation issues of the two-level residue number system with pairs of conjugate moduli. IEEE Trans. Signal Process. 47(3), 826–838 (1999)

    Article  Google Scholar 

  11. B. Phillips, Scaling and reduction in the residue number system with pairs of conjugate moduli. in Proceedings of the 37th Asilomar Conference on Signals, Systems and Computers, vol. 2, pp. 2247–2251, 2003

    Google Scholar 

  12. S.J. Piestrak, Design off residue generators and multioperand modular adders using carry-save adders. IEEE Trans. Comput. 423(1), 68–77 (1994)

    Article  Google Scholar 

  13. S.J. Piestrak, A high-speed realization of a residue to binary number system converter. IEEE Trans. Circuits Syst. II 42(10), 661–663 (1995)

    Article  Google Scholar 

  14. S.J. Piestrak, A note on RNS architectures for the implementation of the diagonal function. Inform. Process. Lett. 115(4), 453–457 (2015)

    Article  MATH  Google Scholar 

  15. J. Gonnella, The application of core functions to residue number system. IEEE Trans. Signal Process. 39(1), 69–75 (1991)

    Article  MATH  Google Scholar 

  16. I.J. Akushskii, V.M. Burcev, I.T. Pak, A new positional characteristic of nonpositional codes and its applications, in Coding Theory and the Optimization of Complex Systems, V.M.Amerbsev ed., Kazah, 1977

    Google Scholar 

  17. D.D. Miller, R.E. Altschul, J.R. King, J.N. Polky, analysis of the residue class core function of akushskii, burcev and pak, in Residue Number System Arithmetic, Modern Applications in Digital Signal Processing, ed. by M.A.Soderstrand et al. IEEE Press,Paper 7-2, pp. 390–401

    Google Scholar 

  18. G. Dimauro, S. Impedovo, G. Pirlo, A new technique for fast numbers comparison in the residue number system. IEEE Trans. Comput. 42(5), 608–612 (1993)

    Article  MathSciNet  Google Scholar 

  19. G. Dimauro, S. Impedovo, G. Pirlo, A new magnitude function for fast numbers comparison in the residue number system. Microprocess. Microprogram. 35(1–5), 97–104 (1992)

    Article  Google Scholar 

  20. G. Dimauro, S. Impedovo, G. Pirlo, A. Salzo, RNS architectures for the implementation of the diagonal function. Inform. Process. Lett. 73, 189–198 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  21. G. Dimauro, S. Impedovo, R. Modugno, G. Pirlo, R. Stefanelli, Residue-to-binary conversion by the quotient function. IEEE Trans. Circuits Syst—Part II 50(8), 488–493 (2003)

    Article  Google Scholar 

  22. G. Pirlo, D. Impedovo, A new class of monotone functions of the residue number system. Int. J. Math. Models Methods Appl. Sci. 7, 802–809 (2013)

    Google Scholar 

  23. P.V. Ananda Mohan, RNS to binary conversion using diagonal function and pirlo and impedovo monotonic function. Circuits Syst. Signal Process. 35(3), 1063–1076 (2016)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Giuseppe Pirlo .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Cite this chapter

Pirlo, G. (2017). Non-Modular Operations of the Residue Number System: Functions for Computing. In: Molahosseini, A., de Sousa, L., Chang, CH. (eds) Embedded Systems Design with Special Arithmetic and Number Systems. Springer, Cham. https://doi.org/10.1007/978-3-319-49742-6_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-49742-6_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-49741-9

  • Online ISBN: 978-3-319-49742-6

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics