๐ฅ๏ธ Inside a computer 3D
๐ง CPU (processor)
Fetches each instruction from memory, decodes it and executes it โ adding, comparing, jumping โ billions of times a second.
Like: The chef who does the actual cooking.
- Speed
- โ 3โ6 GHz (billion clock ticks per second)
- Cores
- 4 to 24+ in a desktop; each is a complete processor
- Transistors
- Tens of billions
- Size of features
- โ 3โ5 nm process (2024โ26)
๐ Logic inside: ALU = adders + logic gates ยท instruction decoder = decoders ยท registers = flip-flops ยท MUXes pick which register feeds the ALU.
- Fetch: the CPU reads the next instruction from memory (address in the program counter).
- Decode: a decoder works out what the instruction means โ add, load, store, jumpโฆ
- Execute: the ALU (adders and gates) does the work; multiplexers route the data.
- Store: the result is written into a register (flip-flops) or memory.
- Repeat โ billions of times a second, every clock tick. This is the von Neumann design (1945).