βοΈ Processor & Main Memory
(CPU, Registers, Architecture, RAM/ROM, Cache)
Short notes for competitive exams | 20 high-yield MCQs with explanation
π§ Central Processing Unit (CPU)
Brain of computer. Contains Control Unit (CU) and Arithmetic Logic Unit (ALU). No other component determines overall performance as much as CPU. When entire CPU on a single silicon chip β microprocessor.
π Word Size & Registers
Word size = length of registers (bits). 32/64/128-bit common. Larger word size β faster processing. Registers are high-speed temporary storage inside CPU (not main memory). Key registers:
- MAR β holds address of active memory location.
- MBR β holds data on way to/from memory.
- PC (Program Counter) β holds address of next instruction.
- Accumulator (A) β holds data/result of operations.
- IR (Instruction Register) β holds current instruction being executed.
- I/O Register β communicates with I/O devices.
πΉοΈ Instruction Set & Backward Compatibility
Instruction set = built-in machine instructions (add, compare, etc.). Different CPUs have different sets. Manufacturers group CPUs into families with backward compatibility (new CPU includes all instructions of predecessor). Allows software upgrades without rewriting.
β±οΈ Processor Speed & Clock
System clock emits pulses (cycles). Speed measured in MHz/GHz. 1 GHz = 10βΉ cycles/sec. Superscalar CPUs execute >1 instruction per cycle (multiple ALUs). Speed units: PC β MHz/GHz; workstations/mainframes β MIPS/BIPS; supercomputers β MFLOPS, GFLOPS, TFLOPS, PFLOPS.
ποΈ CISC vs RISC vs EPIC
- CISC (Complex Instruction Set): large instruction set, variable-length instructions, complex hardware (e.g., x86).
- RISC (Reduced Instruction Set): small fixed-length instructions, fewer addressing modes, faster & cheaper (SPARC, POWER, PA-RISC).
- EPIC (Explicitly Parallel Instruction Computing): compiler-driven parallelism, predication, speculation. Intel Itanium (IA-64) example.
π§© Multicore & Power-Efficient Processors
Multiple cores on one chip (dual-core, quad-core, up to 64 cores). Better parallel performance, less heat/power than single-core. Power-efficient tech: Demand Based Switching (DBS) β adjusts frequency & voltage based on workload. Reduces total cost of ownership (TCO).
ποΈ Main Memory Organization
Memory = array of addressable locations (words). Each word has unique address. Word length = bits per location. Memory operations: read (non-destructive), write (destructive). Word-addressable (fixed length) vs character-addressable (variable length). Capacity: KB (2ΒΉβ°), MB (2Β²β°), GB (2Β³β°), TB, PB.
πΎ RAM & ROM Types
- RAM (volatile): Dynamic RAM (DRAM) β needs refresh; Static RAM (SRAM) β faster, costlier, used for cache.
- ROM (non-volatile): fixed data, burned in. PROM (user programmable once), EPROM (erasable β UV or EEPROM/Flash).
- Cache memory: extremely fast buffer between CPU and main memory, stores active data/instructions to reduce speed mismatch.
π Memory Characteristics Table
| Parameter | Primary memory | Secondary memory |
|---|---|---|
| Speed | fast (ns) | slow (ms) |
| Capacity | small (GBs) | large (TBs) |
| Cost/bit | high | low |
| Volatile | yes (RAM), no (ROM) | non-volatile |
| Access | random access | sequential/pseudo-random |