Algorithm for constructing the adder of residues of two numbers modulus
Abstract
An urgent scientific and applied problem is the problem of constructing the adder structure, which is performed on logical elements with two stable states and operates according to an arbitrary modulo mi. This type of adder is used both in the positional binary number system (PNS) and in the non-positional number system in residual classes (RNS). If the residuals ai and bi of numbers А = (a1||a2||…||ai||…||ak ) and B = (b1||b2||…||bi||…||bk ), represented in the RNS are given in a binary PNS, then the adder of two residuals ai and bi modulo mi is a set of n = [log2 (mi - 1)+1] binary one-bit adders (BOBA). Simultaneously, all BOBA are connected as positional binary adders. The purpose of the article is to develop an algorithm for constructing the adder structure of two residuals ai and bi of numbers A and B for an arbitrary modular value mi of RNS. This process is realized by organizing new inter-bit connections of BOBA, using a positional adder modulo M = 2n - 1. It is noted, that there are special sets of modules that are used when processing data in RNS. So, when performing the operation of modular addition of the remainders of numbers, one of three mutually pairwise primes (of the form M = 2n - 1, M = 2n or M = 2n + 1) can be used. It is shown that in order to synthesize an adder modulo mi RNS, in the adder structure modulo M, it is necessary to appropriately form the additional connections.
Downloads
References
V. A. Krasnobayev, A. A. Kuznetsov, S. A. Koshman, and K. O. Kuznetsova "A method for implementing the operation of modulo addition of the residues of two numbers in the residue number system", Cybernetics and Systems Analysis, Vol. 56, No. 6, November, 2020, 1029-1038. https://doi.org/10.1007/s10559-020-00323-9.
Krasnobayev V. A., Yanko A. S., Koshman S. A. A Method for arithmetic comparison of data represented in a residue number of system // Cybernetics and Systems Analysis. – January 2016. – Vol. 52, Is. 1, pp. 145-150.
Krasnobayev V. A. and Koshman S. A. Method for implementing the arithmetic operation of addition in residue number system based on the use of the principle of circular shift // Cybernetics and Systems Analysis. – July, 2019. – Vol. 55, Is. 4, pp. 692-698.
Bayoumi M.A., Jullien G.A., Miller W.C. A VLSI Implementation of Residue. Adders IEEE Trans. on Circuits and Systems. 1987. Vol. 34, № 3. pp. 284-288.
Azadeh Safari, James Nugent, Yinan Kong. Novel implementation of full adder based scaling in Residue Number Systems. IEEE 56th International Midwest Symposium on Circuits and Systems (MWSCAS). 4-7 Aug. 2013. pp. 657–660.
Shugang Wei. Fast signed-digit arithmetic circuits for residue number systems. IEEE International Conference on Electronics, Circuits, and Systems (ICECS). 6-9 Dec. 2015. pp. 344 – 347.
P.V. Ananda Mohan. Residue Number Systems: Theory and Applications. Birkhäuser Basel: Springer International Publishing Switzerland, 2016. - 351 Р.