Main Memory (RAM/ROM)
Main memory is the primary storage directly accessible by the CPU. It consists of two types: RAM (temporary, working memory) and ROM (permanent, startup instructions).
Learning Objectives
- 11.3.4.1 Explain the differences between RAM and ROM memory
Conceptual Anchor
The Desk & Textbook Analogy
RAM is like your desk — you spread out papers you're currently working on. When you leave (power off), the desk is cleared. ROM is like a textbook permanently glued to the shelf — always there, can't be erased, contains essential instructions (like BIOS).
Rules & Theory
RAM vs ROM
| Feature | RAM | ROM |
|---|---|---|
| Full Name | Random Access Memory | Read-Only Memory |
| Volatility | Volatile (loses data when power off) | Non-volatile (keeps data without power) |
| Read/Write | Read and Write | Read only (generally) |
| Speed | Very fast | Slower than RAM |
| Purpose | Stores currently running programs & data | Stores boot instructions (BIOS/UEFI) |
| Capacity | Large (4GB–64GB typical) | Small (a few MB) |
| Changeable | Contents change constantly | Contents set during manufacturing |
Types of RAM
| Type | Full Name | Features |
|---|---|---|
| SRAM | Static RAM | Faster, more expensive, used in cache memory. Doesn't need refresh. |
| DRAM | Dynamic RAM | Slower, cheaper, used as main memory. Needs periodic refresh. |
| DDR SDRAM | Double Data Rate Synchronous DRAM | Modern standard (DDR4, DDR5). Transfers data twice per clock cycle. |
Types of ROM
| Type | Description |
|---|---|
| ROM | Written once during manufacturing, cannot be changed |
| PROM | Programmable ROM — can be written once by the user |
| EPROM | Erasable PROM — erased with UV light, then rewritten |
| EEPROM | Electrically Erasable PROM — erased electrically, rewritable |
| Flash | Modern EEPROM — fast, used in USB drives and SSDs |
Why Both Are Needed
When you turn on a computer, ROM provides the BIOS/UEFI instructions to start up. Once the OS loads, it runs in RAM. Without ROM, the computer wouldn't know how to start. Without RAM, it couldn't run programs.
Common Pitfalls
ROM = Storage (HDD/SSD)
ROM is NOT secondary storage. ROM is a small chip on the motherboard holding BIOS. HDDs and SSDs are secondary storage — a completely different category.
More RAM = Faster Computer (Always)
More RAM helps only if you're running out. If you have 16GB and only use 4GB, adding more won't help. The CPU speed, cache, and SSD also matter significantly.
Tasks
List 4 differences between RAM and ROM.
Explain why RAM is volatile and why this matters when working on documents.
A user complains their computer is slow when running many tabs. Explain which type of memory is the issue and why.
Self-Check Quiz
Q1: What happens to RAM when the computer is turned off?
Q2: What type of memory stores the BIOS?
Q3: What is the difference between SRAM and DRAM?