Adder (electronics): Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Hillie Plantinga
(Cleanup)
imported>Pat Palmer
(some word were imprecise)
Line 1: Line 1:
An adder is a [[digital circuit]] designed to perform [[number|numerical]] [[addition]].  It is composed of several [[logic gate]]s.  In [[computer]] [[CPU|processor]]s, adders operate on [[binary]] numbersIf [[two's complement]] binary is used, then an adder can also be modified for subtraction.
An adder is a [[digital circuit]] designed to perform [[integer]] [[addition]].  It is composed of several [[logic gate]]s.  In [[computer]] [[CPU|processor]]s, adders operate on [[binary]] integersWhen [[two's complement]] binary representation is used, then an adder can also be modified for subtraction.


A half-adder is a single [[bit]] adder that can take in two inputs (A and B) and produce a Sum and a Carry.  The output is the sum of A+B, with Carry being the most significant digit.  The Carry can be represented by the [[And (electronics)|AND]] of A and B, while the Sum is the [[Xor|XOR]] of A and B.
A half-adder is a single [[bit]] adder that can take in two inputs (A and B) and produce a Sum and a Carry.  The output is the sum of A+B, with Carry being the most significant digit.  The Carry can be represented by the [[And (electronics)|AND]] of A and B, while the Sum is the [[Xor|XOR]] of A and B.

Revision as of 22:47, 13 May 2007

An adder is a digital circuit designed to perform integer addition. It is composed of several logic gates. In computer processors, adders operate on binary integers. When two's complement binary representation is used, then an adder can also be modified for subtraction.

A half-adder is a single bit adder that can take in two inputs (A and B) and produce a Sum and a Carry. The output is the sum of A+B, with Carry being the most significant digit. The Carry can be represented by the AND of A and B, while the Sum is the XOR of A and B.

A full-adder is a single bit adder that takes three inputs (A, B, and a Carry-in) and produces a Sum and a Carry-out. The Sum is represented by (A XOR B) XOR Cin, and the Carry-out is true if any two inputs are true.

Single-bit full adders can be chained together to form multiple-bit adders, if the Carry-out of the first adder is linked to the Carry-in of the second, and so forth. This is called a ripple-carry adder, and allows the linking of an infinite number of full-adders. However, the gate delay of a ripple-carry adder grows quickly, since each operation must wait on the previous operation to complete. Thus a 4-bit adder would consist of 4 single-bit additions working in succession.