2. Computer System Organization

1. Computer System Organization

Computer system organization refers to the operational structure and interaction between the system's hardware components. It describes how components communicate to execute instructions and process data. The key elements of computer organization include:

a. Central Processing Unit (CPU)

The CPU is the brain of the computer system, responsible for executing instructions. It consists of three main components:

1.     Arithmetic Logic Unit (ALU): Performs arithmetic and logical operations.

2.     Control Unit (CU): Directs the flow of data and instructions within the CPU.

3.     Registers: Small, high-speed storage locations for immediate data processing.

CPU Operations

The CPU follows the Fetch-Decode-Execute Cycle:

1.     Fetch: Retrieves an instruction from memory.

2.     Decode: Interprets the instruction.

3.     Execute: Carries out the instruction.

4.     Store – The result is saved in memory or sent to an output device.

Registers and caches are both types of storage in a computer system, but they serve different purposes and are located at different levels in the memory hierarchy.

  1. Registers:
    • Location: Registers are the smallest and fastest type of storage in a CPU. They are located directly within the CPU.
    • Purpose: Registers store data that the CPU is actively using or manipulating during its operations. They are used for quick access to operands and intermediate results.
    • Size: Registers are very small in number and size. Modern CPUs typically have a set of general-purpose registers and special-purpose registers.
    • Access Time: Registers have the fastest access time among all storage types.
  2. Cache:
    • Location: Cache is a type of high-speed volatile computer memory located between the CPU and the main memory (RAM).
    • Purpose: The primary purpose of cache is to store copies of frequently accessed data and instructions from the main memory. This helps in reducing the time taken to access data by providing a faster intermediate storage.
    • Size: Cache is larger than registers but smaller than main memory. It is divided into levels, such as L1 (closest to the CPU), L2, and sometimes L3.
    • Access Time: Cache has faster access times than main memory but slower than registers.

https://www.youtube.com/watch?v=zAHfX7hrmz4