Claims
- 1. Apparatus for the modulo number calculation of input signals in binary form, using residue class arithmetic, comprising:
- a plurality n of three-input, two-output, adding means, having one input for receiving a signal K.sub.0, K.sub.1, . . . , K.sub.n-1, where K.sub.i =a mod (2.sup.n -1), a second input for receiving a signal, J.sub.0, J.sub.1, . . . , J.sub.n-1, where J.sub.i =b (mod 2.sup.n -1), the third input, for receiving an input carry, being circularly connected to one of the outputs, a first output, of an adjacent adding means, for transmitting an output carry to it, the first output of the 0-th adding means being connected to the third input of the 1st adding means, the 1st to the 2nd, etc., through the (n-1)st to the 0-th;
- an n-input means for adding, whose inputs comprise, and are connected to, the second outputs of the n three-input adding means, for adding the n inputs in an AND manner;
- an inverting means, whose input is connected to the output of the n-input adding means, for inverting the signal at its input; and
- a plurality of n two-input ANDing means, each having one of its inputs connected to the output of one of the n adding means, the other input being connected to the output of the inverting means, the output signal comprising the sum K.sub.i +J.sub.i =(a+b) modulo (2.sup.n -1) of two input signals, K.sub.i =a modulo (2.sup.n -1) and J.sub.i =b modulo (2.sup.n -1), whereby the apparatus serves as an adder.
- 2. The apparatus according to claim 1, further comprising:
- a plurality of n switching means, connected to binary input signals I.sub.0, I.sub.1, . . . , I.sub.n-1, for switching the I signal alternately to one of a pair of connecting points, a first or a second connecting point; and
- a plurality of n inverting means, connected to the n first connecting points, for inverting the polarity of the I signals received at their inputs, the outputs of the inverting means being connected to the other connecting points of the pair, at which connection the I signal is identical to the K signal, and the apparatus remains an adder, J.sub.i +K.sub.i =J.sub.i +I.sub.i, whereas the apparatus is a subtracter, J.sub.i -I.sub.i, when the I signal is inverted.
- 3. The apparatus according to claim 2 wherein:
- the n-input means for adding are full adders.
STATEMENT OF GOVERNMENT INTEREST
The invention described herein may be manufactured and used by or for the Government of the United States of America for governmental purposes without the payment of any royalties thereon or therefor.
US Referenced Citations (2)
Non-Patent Literature Citations (2)
Entry |
Liv et al. "Residue Generator of Binary Numbers in 2's Complement Form" IBMechnical Disclosure Bulletin vol. 9, No. 2, Jul. 1966, pp. 158-159. |
Banerji "A Novel Implementation Method for Addition & Subtraction in Residue Number Systems" IEEE Trans. on Computers, Jan. 1974, pp. 106-109. ___ |