A Half Adder for Two Bits
A half adder emits a sum bit and carry bit for adding two single-bit inputs with no incoming carry.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Make the outputs tangible
For inputs 1 and 1, the total is binary 10. The sum output is zero and the carry output is one. For inputs 1 and 0, the sum is one and the carry zero. Binary carrying explains the weights.
Derive gates
The sum is XOR because exactly one set input yields odd parity. The carry is AND because both bits must be one to reach two. Gate truth tables verify those functions on the remaining cases.[1]
Store a one-column result in two outputs
Adding two input bits can produce zero, one or two. XOR gives the low bit of the result, while AND gives the carry. For input one and one, sum bit zero and carry one encode binary ten. See column addition.
A B Carry Sum
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Check the reconstruction identity in every row
The integer sum should equal \(2C+S\). A half adder assumes no carry entering from a lower position. When an incoming bit can be one, a full adder's third input changes both the truth table and the circuit.