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.
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:
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.
The "Calculator." It performs all Arithmetic calculations (addition, subtraction, etc.) and Logical operations (comparing values using AND, OR, NOT).
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.