1. Introduction to Computer Systems
A computer system is an electronic, programmable data-processing machine that accepts raw input (data), performs systematic mathematical and logical computations under the direction of stored program instructions, and generates structured, meaningful results (information).
2. Von Neumann Architecture & Functional Units
First proposed by mathematician John von Neumann in 1945, the stored-program computer architecture remains the foundational standard for modern personal computers, servers, and embedded processors. Its primary architectural hallmark is the storage of both instructions (programs) and data in the same unified physical memory space.
Every digital computer consists of five essential functional subsystems:
- Input Unit: Transduces human-readable data (alphanumeric text, keystrokes, mouse coordinates, audio waveforms) into binary-encoded digital signals ($0$s and $1$s). Examples: Keyboard, Optical Mouse, Scanner, Barcode Reader, Microphone.
- Central Processing Unit (CPU): The computational brain that retrieves, decodes, and executes program instructions.
- Primary Memory (Main Storage): High-speed volatile memory directly accessible by the processor via the system bus (RAM).
- Secondary Storage: Non-volatile, high-capacity auxiliary memory used for long-term data retention (Solid-State Drives, Hard Disk Drives, Optical Discs).
- Output Unit: Converts binary-processed computer results into human-interpretable formats. Examples: Visual Display Monitors (OLED/IPS), Laser Printers, Audio Speakers.
3. Central Processing Unit (ALU, CU, Registers)
The CPU executes the fundamental Fetch → Decode → Execute Cycle:
- Arithmetic and Logic Unit (ALU): Performs all elementary arithmetic operations (Addition, Subtraction, Multiplication, Division) and boolean relational comparisons (AND, OR, NOT, XOR, Less Than, Greater Than, Equal To).
- Control Unit (CU): Acts as the nerve center. It issues precise electrical timing and control signals to supervise the sequence of data transfers between registers, memory, and arithmetic units.
- Internal Processor Registers: Ultra-fast, single-word temporary flip-flop storage elements directly embedded inside the CPU core:
- Program Counter (PC): Holds the memory address of the next instruction to be fetched.
- Instruction Register (IR): Holds the binary opcode of the current instruction undergoing execution.
- Memory Address Register (MAR): Holds the physical memory address to read from or write to.
- Memory Buffer Register (MBR / MDR): Holds the actual data word transferred to/from memory.
- Accumulator (AC): Holds intermediate results generated during ALU computations.
4. Computer Memory Hierarchy
Because no single memory technology simultaneously offers maximum access speed, unlimited storage capacity, and minimum financial cost, computer systems organize memory into a stratified hierarchy:
| Hierarchy Level | Memory Type | Typical Access Time | Capacity Range | Volatility |
|---|---|---|---|---|
| Level 0 | CPU Internal Registers | $< 1$ nanosecond | 64 bytes – 2 KB | Volatile |
| Level 1 / 2 / 3 | SRAM Cache (L1, L2, L3) | 1 – 15 nanoseconds | 32 KB – 64 MB | Volatile |
| Level 4 | Main Memory (DRAM / RAM) | 50 – 80 nanoseconds | 8 GB – 128 GB | Volatile |
| Level 5 | Solid State Drive (NVMe SSD) | 10 – 100 microseconds | 256 GB – 4 TB | Non-Volatile |
| Level 6 | Magnetic Hard Disk (HDD) | 5 – 15 milliseconds | 1 TB – 20 TB | Non-Volatile |
5. Input / Output Subsystems & System Buses
The processor and memory communicate with peripheral hardware devices across shared parallel conductor lines known as the System Bus:
- Data Bus: Bidirectional bus carrying the actual data values between CPU, RAM, and I/O devices (typically 32-bit or 64-bit wide).
- Address Bus: Unidirectional bus driven by the CPU to select a specific physical memory cell or I/O port address. For an $n$-bit address bus, the addressable memory capacity is $2^n$ bytes (e.g. 32-bit bus addresses up to $2^{32} = 4\text{ GB}$).
- Control Bus: Multidirectional signal lines carrying read/write strobes, interrupt requests (IRQ), bus grants, and clock sync pulses.
6. Classification of Computer Software
Software refers to the organized collection of data instructions that direct hardware execution. It is broadly categorized into two families:
- System Software: Low-level software that directly manages hardware resources and provides a stable operational platform for application programs:
- Operating System (OS): Manages processes, virtual memory, filesystems, and device drivers (e.g., Linux, Windows, macOS).
- Language Translators: Compilers (translate whole program to machine code at once), Interpreters (translate line-by-line), and Assemblers (convert assembly mnemonics to machine code).
- Utility Software: Disk defragmenters, antivirus suites, backup tools, and file compression utilities.
- Application Software: End-user programs designed to accomplish specific functional tasks:
- General Purpose: Word processors, spreadsheets, web browsers, media players.
- Specialized / Custom: Banking core software, airline reservation systems, hospital management software.