Skip to content
Tactiverge
  1. Stage 1
  2. Stage 2
  3. Stage 3
  4. Stage 4
  5. Stage 5 (this one)
  6. Stage 6
  7. Stage 7
  8. Stage 8
  9. Stage 9
  10. Stage 10
  11. Stage 11
  12. Stage 12
  13. Stage 13
  14. Stage 14
  15. Stage 15

Explanation

Adding two bits gives a two-bit answer: 0 + 0 = 00, 0 + 1 = 01, 1 + 1 = 10. The right bit is the sum S and the left bit is the carry C.

Look at the columns of that table. S is 1 when the inputs differ: that is XOR. C is 1 only when both are 1: that is AND. Two gates, and you have a half adder. It is only "half" because it cannot accept a carry coming in from a lower column.

Flip the inputs and follow the signal

A
B
ABXOR0AND0S=0C=0
Half adder. Inputs: A = 0, B = 0. x1 is XOR of A and B = 0; a1 is AND of A and B = 0. Outputs: S = 0, C = 0.

S = 0 C = 0

S = A XOR B, C = A AND B. Check that A + B = 2·C + S on every combination.

Check yourself

Marked instantly in your browser. Use the interactive above to work it out.

  1. 1. In a half adder with A = 1 and B = 1, what is the carry C?
  2. 2. Which gate produces the sum bit S of a half adder?