Skip to content
IRC-Coding IRC-Coding
CPU ALU Control Unit Registers Cache Fetch Decode Execute

CPU Explained: Architecture, Fetch-Decode-Execute & Cache

Learn CPU fundamentals: control unit, ALU, registers, program counter, instruction set, L1–L3 cache, and the fetch-decode-execute cycle.

S

schutzgeist

2 min read
CPU Explained: Architecture, Fetch-Decode-Execute & Cache

CPU (Central Processing Unit)

This article is a definition of the CPU – including exam questions, core components, and tags.

In a Nutshell

The CPU is the heart of every computer: It executes commands, processes data, and controls essential system operations.

Compact Technical Description

The CPU typically consists of:

  • Control Unit (interprets commands, coordinates data flow)
  • ALU (arithmetic-logical operations)
  • Registers (very fast temporary storage)

Modern CPUs are usually multi-core and have cache memory (L1/L2/L3) for performance optimization.

Performance depends, among other things, on clock frequency, architecture, cache size, and number of cores.

Exam-Relevant Key Points

  • Components: control unit, ALU, registers
  • Instruction cycle: Fetch → Decode → Execute (IHK-relevant)
  • Registers as extremely fast temporary storage
  • Cache vs. RAM
  • Security aspect: speculative execution (Spectre/Meltdown) as contextual knowledge
  • Multicore: more throughput, often better energy/performance ratio

Core Components

  1. Control Unit
  2. ALU
  3. Register Set
  4. Program Counter
  5. Instruction Register
  6. Bus Interface
  7. Cache (L1/L2/L3)
  8. Clock Generator
  9. Instruction Set
  10. Interrupt Control

Simple Practical Example

ADD R1, R2
- Control unit decodes the instruction
- ALU adds contents from R1 and R2
- Result is stored in R1

Explanation: The instruction cycle controls execution: 1) Fetch, 2) Decode, 3) Execute.

Advantages and Disadvantages

Advantages

  • Universally programmable
  • High computing speed
  • Parallel processing (multicore)

Disadvantages

  • Heat generation at high performance
  • Dependency on instruction set
  • Register/on-chip memory limited

Typical Exam Questions (with Short Answer)

  1. Main task of the CPU? Execute commands, process data, control system.
  2. What components does it consist of? Control unit, ALU, registers.
  3. What is the program counter? Register with address of the next instruction.
  4. Cache vs. RAM? Cache is faster/smaller/closer to CPU.

Further Information

  1. https://de.wikipedia.org/wiki/Zentraleinheit
  2. https://meltdownattack.com/
Back to Blog
Share:

Related Posts