An adder, or summer, is a digital circuit that performs addition of numbers. In many computers and other kinds of processors, adders are used in the arithmetic logic units (ALUs). They are also used in other parts of the processor, where they are used to calculate addresses, table indices, increment and decrement operators and similar operations. Although adders can be constructed for many number representations, such as binary-coded decimal or excess-3, the most common adders operate on binary numbers. In cases where two's complement or ones' complement is being used to represent negative numbers, it is trivial to modify an adder into an adder–subtractor. Other signed number representations require more logic around the basic adder.
History George Stibitz invented the 2-bit binary adder (the Model K) in 1937.
Binary adders
Half adder The half adder adds two single binary digits A and B. It has two outputs, sum (S) and carry (C). The carry signal represents an overflow into the next digit of a multi-digit addition. The value of the sum is 2C+S. The simplest half-adder design incorporates an XOR gate for S and an AND gate for C. The Boolean logic for the sum (in this case S) will be A⊕B whereas for the carry (C) will be A⋅B. With the addition of an OR gate to combine their carry outputs, two half adders can be combined to make a full adder. The truth table for the half adder is:
Various half adder digital logic circuits:
Full adder A full adder adds binary numbers and accounts for values carried in as well as out. A one-bit full-adder adds three one-bit numbers, often written as A, B, and Cin; A and B are the operands, and Cin is a bit carried in from the previous less-significant stage. The circuit produces a two-bit output. Output carry and sum are typically represented by the signals Cout and S, where the sum equals 2Cout+S. The full adder is usually a component in a cascade of adders, which add 8, 16, 32, etc. bit binary numbers. A full adder can be implemented in many different ways such as with a custom transistor-level circuit or composed of other gates. The most common implementation is with:
S=A⊕B⊕Cin Cout=(A⋅B)+(Cin⋅(A⊕B)) The above expressions for S and Cout can be derived from using a Karnaugh map to simplify the truth table. In this implementation, the final OR gate before the carry-out output may be replaced by an XOR gate without altering the resulting logic. This is because when A and B are both 1, the term (A⊕B) is always 0, and hence (Cin⋅(A⊕B)) can only be 0. Thus, the inputs to the final OR gate can never be both 1 (this is the only combination for which the OR and XOR outputs differ). Due to the functional completeness property of the NAND and NOR gates, a full adder can also be implemented using nine NAND gates, or nine NOR gates. Using only two types of gates is convenient if the circuit is being implemented using simple integrated circuit chips which contain only one gate type per chip. A full adder can also be constructed from two half adders by connecting A and B to the input of one half adder, then taking its sum-output S as one of the inputs to the second half adder and Cin as its other input, and finally the carry outputs from the two half-adders are connected to an OR gate. The sum-output from the second half adder is the final sum output (S) of the full adder and the output from the OR gate is the final carry output (Cout). The critical path of a full adder runs through both XOR gates and ends at the sum bit S. Assumed that an XOR gate takes 1 delays to complete, the delay imposed by the critical path of a full adder is equal to:
TFA=2⋅TXOR=2D The critical path of a carry runs through one XOR gate in adder and through 2 gates (AND and OR) in carry-block and therefore, if AND or OR gates take 1 delay to complete, has a delay of:
Tc=TXOR+TAND+TOR=D+D+D=3D The truth table for the full adder is:
Inverting all inputs of a full adder also inverts all of its outputs, which can be used in the design of fast ripple-carry adders, because there is no need to invert the carry. Various full adder digital logic circuits:
Adders supporting multiple bits
Ripple-carry adder
It is possible to create a logical circuit using multiple full adders to add N-bit numbers. Each full adder inputs a Cin, which is the Cout of the previous adder. This kind of adder is called a ripple-carry adder (RCA), since each carry bit "ripples" to the next full adder. The first (and only the first) full adder may be replaced by a half adder (under the assumption that Cin=0). The layout of a ripple-carry adder is simple, which allows fast design time; however, the ripple-carry adder is relatively slow, since each full adder must wait for the carry bit to be calculated from the previous full adder. The gate delay can easily be calculated by inspection of the full adder circuit. Each full adder requires three levels of logic. In a 32-bit ripple-carry adder, there are 32 full adders, so the critical path (worst case) delay is 3 (from input to Cout of first adder) + 31 × 2 (for carry propagation in latter adders) = 65 gate delays. The general equation for the worst-case delay for a n-bit carry-ripple adder, accounting for both the sum and carry bits, is:
TCRA(n)=THA+(n−1)⋅Tc+Ts=TFA+(n−1)⋅Tc=3D+(n−1)⋅2D=(2n+1)⋅D A design with alternating carry polarities and optimized AND-OR-Invert gates can be about twice as fast.
Carry-lookahead adder (Weinberger and Smith, 1958)
… excerpt ends here. Continue reading the full article.





