Computer Organization – Study Notes
(NCO – Cyber Olympiad – Computer Fundamentals & Hardware)
1. Simple Explanation
Computer organization is the how of a computer system:
- What hardware components exist?
- How they are connected?
- How they cooperate to execute a program.
Think of it as the blueprint of a computer – the physical layout that turns software instructions into real work.
2. Key Points
| # | Concept | Why It Matters | Typical Hardware |
|---|---|---|---|
| 1 | CPU (Central Processing Unit) | Executes instructions, performs ALU operations, controls data flow. | Core, Cache, ALU, Registers |
| 2 | Memory Hierarchy | Balances speed vs. cost. | Registers → L1/L2/L3 Cache → Main RAM → Secondary Storage |
| 3 | Buses & Interconnects | Transfer data between components. | Data bus, Address bus, Control bus, PCIe, AXI |
| 4 | Input/Output (I/O) Subsystem | Allows computer to interact with external world. | Controllers, Ports, USB, Serial, Parallel, Network |
| 5 | Instruction Set Architecture (ISA) | Defines the set of machine-level operations. | x86, ARM, MIPS, RISC-V |
| 6 | Control Unit (CU) | Decodes instructions, orchestrates data movement. | Micro‑operations, Pipeline stages |
| 7 | Pipelining & Parallelism | Improves throughput by overlapping instruction execution. | IF, ID, EX, MEM, WB stages |
| 8 | Cache Coherence & Consistency | Ensures multiple caches see the same memory state. | MESI protocol, Write‑back vs. Write‑through |
| 9 | Memory Management Unit (MMU) | Handles virtual memory, protection, address translation. | TLB, Page tables |
| 10 | Power & Thermal Design | Limits performance, affects reliability. | Voltage regulators, Heat sinks, Fans, Thermal throttling |
3. Worked Example
Problem:
Compute the result of the following instruction sequence on a simple 8‑bit CPU with a 1‑cycle ALU and 2‑byte memory words.
LOAD R1, [0x1000] ; load word from address 0x1000 into register R1
ADD R1, R2 ; add contents of R2 to R1
STORE [0x1002], R1 ; store result back to address 0x1002
Assume:
- Memory at 0x1000 = 0x34 (52 decimal)
- Register R2 = 0x0C (12 decimal)
Step‑by‑Step
| Step | Operation | Result (in hex) | Result (in decimal) |
|---|---|---|---|
| 1 | LOAD R1, [0x1000] |
R1 = 0x34 | 52 |
| 2 | ADD R1, R2 |
R1 = 0x34 + 0x0C = 0x40 | 64 |
| 3 | STORE [0x1002], R1 |
Memory[0x1002] = 0x40 | 64 |
Outcome
- Final value in R1: 0x40 (64)
- Memory at address 0x1002 now holds 0x40.
4. Quick Revision Summary
| Topic | One‑Line Reminder |
|---|---|
| CPU | Executes instructions via ALU, registers, CU. |
| Memory Hierarchy | Registers → Cache(s) → RAM → Storage. |
| Buses | Data, Address, Control – the highways of the system. |
| I/O | Controllers & ports bridge internal logic with the outside. |
| ISA | The language the CPU speaks. |
| CU | Decodes, sequences, and orchestrates everything. |
| Pipelining | Overlaps stages: IF → ID → EX → MEM → WB. |
| Cache Coherence | MESI ensures multiple caches stay in sync. |
| MMU | Maps virtual addresses to physical memory, enforces protection. |
| Power/Thermal | Balance performance with heat and energy limits. |
Tip: When studying, draw the data path diagram for a simple instruction (e.g., ADD). Label registers, ALU, bus, memory, and control signals. This visual aid reinforces how the abstract concepts above become concrete hardware operations.