Logic Gates → ALU → CPU Instruction Execution
Digital logic starts with gates. Select any gate to see its truth table. Then we combine XOR (for sum) and AND (for carry) into a half adder -- the fundamental arithmetic building block. Two half adders plus an OR gate make a full adder that handles carry-in.
Chain 4 full adders (each built from 2 half adders). The carry output of each bit feeds into the carry input of the next -- this "ripple" gives the adder its name. The ALU also supports SUB (via 2's complement), AND, OR, and XOR.
A minimal CPU with 4 general-purpose registers (R0-R3), a program counter (PC), flags (Zero, Carry), and the ALU from Step 2. Watch each instruction go through the classic pipeline: Fetch → Decode → Execute → Writeback.