Museum Directory
Computing/How Does a CPU Work?
ComputingBeginner8 min

How Does a CPU Work?

From billions of microscopic silicon switches to the instruction cycle that powers every computer.

Interactive Exhibit Visualization

Live Simulation Engine

1. FETCH (IF)PC: 0x00401A20L1 I-Cache 32KB2. DECODE (ID)Opcode: ADD (R1, R2)Control Matrix (R3=Dest)3. EXECUTEALU: 42 + 58 = 1004. WRITEBACK (WB)Register File: R3 <= 100Zero Flag (ZF)=0 · Carry=0

Step 11. Instruction Fetch (IF)

Program Counter sends address to L1 Instruction Cache.

The Program Counter (PC) emits memory address 0x00401A20. The Instruction Cache immediately outputs the 32-bit binary instruction word into the Instruction Buffer.

Step 1 of 4How Does a CPU Work?
Curated Learning Depth

Choose Your Level of Depth

Target Audience:Curious Beginners & Students
Think of a CPU as an ultra-fast chef following a recipe step-by-step at billions of steps per second.

Key Takeaways

  • The CPU is the central brain of every computer, phone, and console.
  • It works like a recipe reader: Fetch the next instruction, Understand it, Do the math, and Save the result.
  • Billions of tiny electronic switches (transistors) flip between ON (1) and OFF (0).

The Symphony of Silicon

At its simplest, a Central Processing Unit (CPU) is a calculator on hyperdrive. When you click an app, type on your keyboard, or move a mouse, your computer translates that action into a sequence of numbers (instructions).

Imagine an automated kitchen with a chef who reads a single line of a recipe, grabs two ingredients, chops them together, and puts the finished plate on a counter — and does this 3 to 5 billion times every single second.

1. The Recipe Book (Memory): Holds the list of instructions and numbers waiting to be processed. 2. The Chef's Hands (ALU - Arithmetic Logic Unit): Does the actual addition, comparison, and calculation. 3. The Chef's Eyes (Control Unit): Reads the instructions and tells the rest of the chip what to do next. 4. The Cutting Board (Registers): Holds the tiny bits of data the CPU is working on right this exact millisecond.
Interactive Challenge+25 XP

Arrange the 4 stages of the classic CPU instruction cycle in the correct chronological order:

1
Decode
2
Write Back
3
Fetch
4
Execute