The Central Processing Unit (CPU) is often called the brain of the computer. It is the primary component responsible for executing instructions and processing data. Without the CPU, a computer cannot perform any meaningful tasks.
The CPU is an electronic circuit that interprets and executes program instructions. It performs basic arithmetic, logic, control, and input/output (I/O) operations specified by the instructions.
In modern computers, the CPU is a microprocessor chip made of integrated circuits. It is mounted on the motherboard, which is the main system board connecting all components of the computer.
+---------------------+| Control Unit |+----------+----------+ |+----------v----------+| ALU |+----------+----------+ |+----------v----------+| Registers |+---------------------+
The CPU follows a cycle called the Instruction Cycle, which consists of three main steps:
This cycle repeats continuously while the computer is powered on and running programs.
The CPU communicates directly with different types of memory:
The memory unit that communicates directly with the CPU is called primary memory or main memory. Cache memory acts as a high-speed buffer between the CPU and main memory.
Computers have evolved through several generations:
Vacuum tubes were large, consumed a lot of power, and generated heat, which limited early computers' speed and reliability.
| Component | Function |
|---|---|
| Control Unit (CU) | Directs the operation of the processor and controls data flow |
| Arithmetic Logic Unit (ALU) | Performs arithmetic and logical operations |
| Registers | Temporary storage for data and instructions |
| Cache Memory | Speeds up access to frequently used data and instructions |
| Formula | Description |
|---|---|
| \( \text{Clock Cycles per second} = \text{Clock Speed (Hz)} \) | Number of clock cycles completed by CPU in one second |
| \( \text{Block Size} = \frac{\text{Total Memory Size}}{\text{Number of Blocks}} \) | Size of each memory block when memory is divided equally |
| \( \text{Instruction Cycle} = \text{Fetch} + \text{Decode} + \text{Execute} \) | Steps involved in processing a single instruction |
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →