The CPU and Architecture

1. The Evolution of Computing

Before the mid-1940s, computers were fixed-program machines. If you wanted a computer to switch from doing math to processing text, you had to physically rewire it.

The Challenge: Early computers like ENIAC required engineers to manually flip switches and move patch cables to "program" the machine. This took days or weeks for a single task. There was no "software" as we know it today.

2. The Stored Program Concept

In 1945, mathematician John von Neumann proposed a revolutionary idea: the Stored Program Concept.

The Core Idea

Both Data and the Instructions (the program) are stored together in the same Memory Unit (RAM).

This allowed a computer to be reprogrammed simply by loading a different set of instructions into memory, rather than changing the hardware.

3. Main Components of the CPU

The Von Neumann architecture defines three main components that work together to process data:

Control Unit (CU)

The "Manager" of the CPU. It directs the flow of data between the CPU and other devices. It manages the execution of instructions by sending control signals to the other components.

Arithmetic Logic Unit (ALU)

The "Calculator." It performs all Arithmetic calculations (addition, subtraction, etc.) and Logical operations (comparing values using AND, OR, NOT).

Memory Unit (Main Memory)

This refers specifically to Registers. They hold addresses (of data in RAM) as well as data and instructions fetched from RAM. The CPU can read from and write to this unit very quickly.

4. Why the Von Neumann Architecture?

  • Flexibility: The same hardware can perform any task as long as the instructions are provided in memory.
  • Efficiency: It uses a single set of buses to access memory, simplifying the design of the computer.
  • Universal Design: Almost every modern computer, from your smartphone to your laptop, is based on this foundational model.
⚠️ Exam Alert: You must remember that in a Von Neumann machine, instructions and data share the same memory and the same buses. This is often a 1-mark question!