Computer Studies Revision Notes

Computer Generations, Von Neumann Architecture, CPU Cycle & Memory Hierarchy

Trace the five generations of computers, analyze CPU components (ALU, Control Unit, Registers) and the fetch-decode-execute cycle, compare SRAM/DRAM/ROM, and compute digital storage units.

1. Evolution & Five Generations of Electronic Computers

Modern computing evolved from mechanical aids—Abacus, Napier’s Bones, Pascaline (Blaise Pascal), Leibniz Stepped Reckoner, and Charles Babbage’s Analytical Engine (the conceptual blueprint for programmable computers, with Ada Lovelace as the first programmer)—into five electronic generations: 1. 1st Generation (1940–1956) — Vacuum Tubes: Enormous size, extreme heat, high power draw, programmed in Machine Language (e.g., ENIAC, UNIVAC I). 2. 2nd Generation (1956–1963) — Transistors: Smaller, faster, cooler, more reliable; introduced Assembly Language and early high-level languages (FORTRAN, COBOL). 3. 3rd Generation (1964–1971) — Integrated Circuits (ICs): Multiple transistors etched onto silicon chips; keyboards, monitors, and early operating systems (IBM System/360). 4. 4th Generation (1971–Present) — Microprocessors (VLSI): Millions/billions of transistors on a single chip (Intel 4004 onward), powering PCs, laptops, smartphones, and the Internet. 5. 5th Generation (Present & Beyond) — ULSI & Artificial Intelligence: Parallel processing, quantum research, natural language processing, and machine learning.

2. Von Neumann Architecture, CPU Components & System Buses

Proposed by John von Neumann (1945), the stored-program computer keeps both program instructions and data in main memory and processes them via the Central Processing Unit (CPU): - Arithmetic and Logic Unit (ALU): Executes arithmetic (+, -, ×, ÷) and logical comparisons (=, <, >, AND, OR). - Control Unit (CU): Directs timing and control signals across the entire system, coordinating memory reads and I/O devices. - Registers: Ultra-fast tiny storage slots inside the CPU—Program Counter (PC) holds the address of the next instruction; MAR (Memory Address Register) holds the active memory location; MDR (Memory Data Register) holds fetched data; CIR (Current Instruction Register) holds the instruction being decoded; Accumulator (ACC) stores intermediate ALU results. - Three System Buses: Address Bus (unidirectional, CPU → memory), Data Bus (bidirectional), and Control Bus (carries read/write/clock signals). - Fetch–Decode–Execute Cycle: CPU fetches the next instruction pointed to by the PC into CIR, increments PC, decodes the opcode in CU, and executes it using ALU/memory.

3. Memory Hierarchy & Digital Storage Unit Math

Computer storage balances speed, volatility, and cost per gigabyte (fastest to slowest: Registers → L1/L2/L3 Cache → RAM → SSD/HDD → Optical/Cloud): - RAM (Random Access Memory): Volatile (loses data when power turns off); holds the active OS and running applications. - SRAM (Static RAM): Faster, uses flip-flops, does not require refreshing—used for CPU Cache. - DRAM (Dynamic RAM): Uses capacitors requiring constant refreshing, cheaper and denser—used for Main System RAM. - ROM (Read-Only Memory): Non-volatile; stores boot firmware (BIOS/UEFI). Variants: PROM, EPROM (UV-erasable), EEPROM/Flash memory. - Storage Capacity Conversions: - 1 nibble = 4 bits, 1 byte = 8 bits - 1 KB = 1{,}024 bytes = 2^{10} bytes; 1 MB = 1{,}024 KB; 1 GB = 1{,}024 MB; 1 TB = 1{,}024 GB. - Worked Calculation: How many 4 MB audio files fit inside a 2 GB flash drive (binary standard)? 2 GB = 2 × 1{,}024 MB = 2{,}048 MB implies frac{2{,}048}{4} = 512 files

4. Computer Classification, Peripherals & Examiner Traps

- By Data Type: Analogue (continuous physical measurements: speedometer, thermometer), Digital (discrete binary 0s and 1s: laptops, calculators), Hybrid (combines both: hospital ICU monitors, automated fuel dispensers). - By Size & Power: Supercomputers (weather forecasting, nuclear simulation) → Mainframes (banking/national census) → Minicomputers → Microcomputers (desktops, laptops, tablets, smartphones). - Input vs Output: Input (keyboard, mouse, barcode reader, OCR, OMR, MICR used on bank cheques, microphone); Output (monitor, laser/inkjet printer, plotter for CAD blueprints, speakers); Dual I/O (touchscreen, modem). Examiner Trap: Never confuse OMR (Optical Mark Recognition—grades shaded JAMB/WAEC objective answer sheets) with MICR (Magnetic Ink Character Recognition—reads magnetic bank cheque numbers) or OCR (Optical Character Recognition—converts scanned printed text into editable text).