Arithmetic#

Gates do math.

Addition, subtraction, comparison, and parity are just particular combinational functions β€” truth tables large enough that nobody writes them out by hand, built instead from repeating cells. A full adder chained N times is an N-bit adder; add a mode input and it becomes the core of an ALU. These are the blocks where propagation delay stops being abstract, because a carry has to ripple across every stage before the answer is valid.

Sections#

  • Half & Full Adders β€” The one-bit cell that all binary arithmetic is built from.
  • Subtractors β€” Subtraction as addition of a two’s-complement number.
  • Magnitude Comparators β€” Deciding greater-than, less-than, or equal in hardware (distinct from the voltage comparators in Analog Helpers).
  • Parity & Error Detection β€” Cheap integrity checks built from XOR trees.
  • ALU β€” Where arithmetic and logic functions are selected under control β€” the ancestor of the CPU datapath.
Page last modified: July 13, 2026