CS Fundamentals
Learn about different memory devices used in computers — RAM modules, ROM chips, cache memory, and how they differ from storage devices.
Introduction
Memory devices are the hardware components that physically hold data the computer is actively using. While "memory" and "storage" are often confused in everyday language, they serve very different purposes in computing. Memory is the computer's short-term workspace — fast but temporary. Let's look at the physical devices that provide this crucial function.
Memory vs Storage — The Critical Difference
| Aspect | Memory (RAM) | Storage (HDD/SSD) |
|---|---|---|
| Speed | Very fast (nanoseconds) | Slower (microseconds to milliseconds) |
| Persistence | Volatile — lost on power-off | Non-volatile — retained permanently |
| Purpose | Active workspace for running programs | Long-term file storage |
| Capacity | 8–64 GB typically | 256 GB – 4 TB typically |
| Cost per GB | Expensive (~$3/GB) | Cheap (~$0.03-0.10/GB) |
Analogy: Memory is your desk (limited space, but everything is within arm's reach). Storage is your filing cabinet (huge capacity, but takes time to find and retrieve items).
RAM Modules
DIMM (Desktop RAM)
DIMM (Dual Inline Memory Module) is the standard RAM form factor for desktop computers.
- Physical appearance: A long, thin circuit board (about 5 inches) with memory chips on both sides
- Installs vertically into slots on the motherboard
- Current standard: DDR5 (Double Data Rate 5)
- Common capacities: 8 GB, 16 GB, 32 GB per module
- Speed ratings: DDR5-4800, DDR5-5600, DDR5-6000 (measured in MT/s — megatransfers per second)
SODIMM (Laptop RAM)
SODIMM (Small Outline DIMM) is the compact version for laptops.
- About half the length of desktop DIMM
- Same technology, just smaller form factor
- Many modern laptops have RAM soldered directly to the motherboard (not upgradeable)
DDR Generations
| Generation | Year | Speed Range | Voltage |
|---|---|---|---|
| DDR3 | 2007 | 800-2133 MT/s | 1.5V |
| DDR4 | 2014 | 2133-5100 MT/s | 1.2V |
| DDR5 | 2020 | 4800-8400 MT/s | 1.1V |
Each generation is physically different — you cannot install DDR4 RAM in a DDR5 slot (the notch position is different to prevent this).
ROM Chips
ROM (Read Only Memory) chips contain permanent instructions that don't change.
BIOS/UEFI ROM
The most important ROM in your computer holds the BIOS or UEFI firmware — the first program that runs when you press the power button. It:
- Tests hardware (POST — Power On Self Test)
- Identifies connected devices
- Loads the operating system from storage
Types of ROM:
- PROM — Programmable ROM (written once, then permanent)
- EPROM — Erasable PROM (can be erased with UV light and rewritten)
- EEPROM — Electrically Erasable PROM (can be rewritten electronically)
- Flash ROM — Modern EEPROM variant (used in USB drives, SSDs, and BIOS chips)
Cache Memory
Cache is a small amount of extremely fast memory built directly into or very close to the CPU.
Physical form: Cache isn't a separate device you buy — it's manufactured as part of the CPU chip itself. You can't upgrade it.
Levels:
- L1 Cache — Smallest (32-128 KB per core), fastest (1-2 cycles access time)
- L2 Cache — Medium (256 KB - 1 MB per core), slightly slower
- L3 Cache — Largest (8-64 MB shared), slower than L1/L2 but still much faster than RAM
Registers
Registers are the fastest memory in any computer — tiny storage locations inside the CPU itself.
- Capacity: Just a few bytes each (32-bit or 64-bit wide)
- A CPU has typically 16-32 general-purpose registers
- Access time: Essentially instant (within 1 clock cycle)
- Purpose: Hold the data and instructions currently being processed
Virtual Memory
Not a physical device, but an important concept: when RAM is full, the operating system uses part of the hard drive/SSD as extra "memory." This is called virtual memory or swap space.
- Much slower than real RAM (because storage is slower than memory)
- Allows running more programs than physical RAM would permit
- If you notice your computer slowing down dramatically when many programs are open, it's likely using virtual memory heavily
How to Check Your Memory
- Windows: Open Task Manager (Ctrl+Shift+Esc) → Performance tab → Memory
- macOS: Apple menu → About This Mac → Memory
- Linux: Run
free -hin the terminal
Key Takeaways
- Memory devices provide fast, temporary workspace for active computing
- Desktop RAM uses DIMM modules; laptops use smaller SODIMM
- DDR5 is the current standard — each generation is faster and more power-efficient
- ROM provides permanent, unchanging instructions (like BIOS)
- Cache memory is built into the CPU for ultra-fast access to frequently used data
- More RAM = smoother multitasking; RAM type/speed must match motherboard specifications
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Memory Devices.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Computer Fundamentals topic.
Search Terms
computer-fundamentals, computer fundamentals, computer, fundamentals, hardware, memory, devices, memory devices
Related Computer Fundamentals Topics