None.
The present invention is directed to a adder for digital circuitry. More particularly the invention is directed toward an efficient, multistage adder.
Kogge-Stone addition is different from traditional ripple-carry based addition since it computes the sum all at once in parallel versus waiting for a carry to propagate from right to left. Traditionally, the problem with addition is waiting for the carry to propagate from the least significant bit, to the most significant bit of the answer. This is because the sum is actually computed digit-by-digit, or in the case of binary, bit-by-bit from right to left. This is actually the same way that addition is done by hand.
For example, in base 10 to compute 21+19, 1+9 is first computed, which leaves 0 with a carry of 1. In the next stage, 2 and 1 are added which yields 3. The carry out of the previous stage is added which yields 3+1=4. Writing the results of each stage from most-significant to least significant digit, results in 40. The same is true for binary based addition, in order to compute X, where X=A+B, one would need to wait for the carry out to propagate from the least significant bits of A+B to the most significant bits of A+B.
In order to compute S=A+B, obtaining a result must wait for the carry out of the least significant adder to make it to the most significant segment adder. This means that the most significant segment adder cannot compute until M−1 full adder delays after A and B are entered into the combined adder. The more bits and adder segments, the more stages and more resulting area, power and delays within the adder.
The Kogge-Stone adder eliminates this delay by passing the carry out bits to all stages. Since all of the carry out bits are available in all stages, the result can be computed in parallel. This parallel computation requires dedicated carry propagation hardware connected to each bit of the answer. Each stage in the Kogge-Stone adder is one bit wide resulting in 32 stages for a 32-bit adder. Dedicated carry propagate logic is connected to all 32 stages. Since each stage is made of basic AND and XOR logic gates, is very interconnected with the dedicated carry propagation logic. Implementation of the Kogge-Stone adder causes a great increase in area and loss of performance due to the increase in routing between the logical elements, and a greater number of required logical elements.
U.S. Pat. No. 5,701,504 to Timko teaches an “Apparatus and Method for Addition Based Upon Kogge-Stone Parallel Algorithm.” This uses the traditional Kogge-Stone Addition method which has the same number of stages as an adder having the same number of bits. The embodiment is particularly tailored for CMOS integrated circuits. The carry propagation routing necessary to make the carry of one stage available to all stages creates a larger area, slower speed, and increased power when applied to programmable logic solid state devices such as field programmable gate arrays (FPGAs). For many different size adders (up to 64 bits), Kogge-Stone adders are actually one half as fast as ripple carry adders when implemented on FPGAs.
There is thus a need to provide a digital adder that operates more efficiently than current digital adder designs when applied in programmable logic devices.
It is a first object to provide an adder utilizing fewer computational cycles.
Another object is to provide an adder particularly adapted for implementation with field programmable gate arrays.
Accordingly, there is provided a combined adder for N logical bits to produce a sum from a first addend having N first addend bits and a second addend having N second addend bits. A least significant adder produces a segment sum of the least significant bits and a carry out. Segment adder pairs are used for each higher order of significant sums. One segment adder produces a segment sum portion, and the other produces an incremented segment sum portion. Carry logic associated with each segment is utilized with a multiplexer to select the incremented segment sum portion or the segment sum portion. The selected segment sum portions are assembled with a most significant carry out to produce the sum.
Reference is made to the accompanying drawings in which are shown an illustrative embodiment of the invention, wherein corresponding reference characters indicate corresponding parts, and wherein:
In
Each segmented adder 22m produces a segmented sum portion Xm and a segment carry out CXm. Likewise, each segmented incremented adder 24m produces an incremented segmented sum portion X′m and an incremented segment carry out CX′m. Segmented sum portion Xm and incremented segmented sum portion X′m are the K−1 least significant bits of a segmented adder having K bits. CXm and CX′m are the most significant bits. The incremented segmented sum portion X′m is equal to the segmented sum portion Xm plus 1. The incremented segment carry out CX′m reflects any carry that results from adding 1 to the segmented sum portion Xm. Thus, the output of the segment adder 22m is the segmented sum portion if no carry is received from the lower order segment m−1, and the incremented segment adder 24m output is the segmented sum portion if a carry in is received from the lower order segment m−1. There is no incremented segment adder for the lowest segment m=0 because this segment doesn't receive a carry in.
Carry logic 26m is associated with segments 1 to m to select either the segmented sum portion Xm or the incremented segmented sum portion X′m as the final segmented sum portion Sm. For this purpose, segmented sum portion Xm and incremented segmented sum portion X′m are provided to a segment multiplexer 28m. In the embodiment shown, segment multiplexer 28m provides incremented segmented sum portion X′m as the final segment sum portion Sm if carry logic 26m provides a 1 as the segment carry factor Cfm. If carry logic 26m provides a 0 as the segment carry factor Cfm, the final segment sum portion Sm is the segmented sum portion Xm. Carry logic 26m is shown in further detail in
As detailed in
For the segment where M=1, the carry factor for segment 0, Cf0, equals the segment carry out, CX0 because the XOR between segment carry out and the incremented segment carry out, if computed, is always 1. No carry logic is necessary for this segment.
A final segment carry logic 26M is used to select between the final segment carry out CXM and the final incremented segment carry out CX′M in multiplexer 28M+1. Selected final segment carry out is assembled with final segment sum portions S0, . . . , SM−1, and SM to give the sum S as shown.
It will be understood that many additional changes in the details, materials, steps and arrangement of parts, which have been herein described and illustrated in order to explain the nature of the invention, may be made by those skilled in the art within the principle and scope of the invention as expressed in the appended claims. For example, the addends can be segmented into different bit lengths in order to best fit the programmable logic configuration. Similarly, as shown in
The foregoing description of the preferred embodiments of the invention has been presented for purposes of illustration and description only. It is not intended to be exhaustive, nor to limit the invention to the precise form disclosed; and obviously, many modification and variations are possible in light of the above teaching. Such modifications and variations that may be apparent to a person skilled in the art are intended to be included within the scope of this invention as defined by the accompanying claims.
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.
Number | Name | Date | Kind |
---|---|---|---|
5198993 | Makakura | Mar 1993 | A |
5898596 | Ruetz | Apr 1999 | A |
6832235 | Muramatsu | Dec 2004 | B1 |
9292474 | Pistorius | Mar 2016 | B1 |
20020091744 | Kantabutra | Jul 2002 | A1 |
20080046498 | Haller | Feb 2008 | A1 |
20190042194 | Langhammer | Feb 2019 | A1 |