How it works
The parts of a processor on one block diagram. Inside the CPU are the control unit, the arithmetic logic unit, the registers, the cache and the clock. Three buses join it to main memory.
Read the full guide
The blocks inside
The control unit fetches, decodes and carries out instructions. The arithmetic logic unit, or ALU, does the calculations and makes the decisions. The registers and the cache are fast memory inside the processor, and the clock sends the pulse that keeps every part in time.
Buses and registers
The address bus carries memory addresses out of the processor, the data bus carries the data itself in both directions, and the control bus carries control signals. Each register is told apart by what it joins: the memory address register feeds the address bus, the memory data register meets the data bus, and the accumulator is joined to the ALU.
- The address bus is the only wide arrow with one head: addresses only ever leave the processor.
Questions and answers
What are the main parts of a processor?
The control unit, the arithmetic logic unit and the registers. Most school courses add the cache, the clock and the buses that join the processor to memory.
What does the control unit do?
It fetches each instruction, decodes it and carries it out, and it sends the control signals that tell the other parts of the computer what to do.
What is the difference between the address bus and the data bus?
The address bus carries the memory address the processor wants, and only away from the processor. The data bus carries the data stored at that address, and it works in both directions.
What is the program counter?
A register that holds the memory address of the instruction to be fetched next. After each fetch it is increased by one.