RAM (Random Access Memory)
• Volatile - data lost when power removed
• Very fast read/write access
• Stores currently running programs and active data
• Acts as working memory for the CPU
• More RAM allows more applications to run simultaneously
• Measured in GB (commonly 8GB, 16GB, 32GB)
ROM (Read-Only Memory)
• Non-volatile - data persists without power
• Read-only during normal operation (can be programmed specially)
• Contains firmware and boot processes (BIOS/UEFI)
• Stores permanent system instructions
• Slower than RAM
• Cannot be used as working memory
RAM vs ROM Comparison
• RAM: Volatile (data lost without power)
• ROM: Non-volatile (data persists)
Read/Write
• RAM: Read and write frequently
• ROM: Primarily read-only
Speed
• RAM: Very fast
• ROM: Slower
Purpose
• RAM: Working memory, running programs
• ROM: Permanent instructions, firmware
Upgradeable
• RAM: Yes - can add more RAM
• ROM: Usually soldered to motherboard
Contents
• RAM: Changes constantly
• ROM: Fixed (or rarely changed)
ROM in Embedded Systems
In a desktop computer, ROM holds the start-up instructions (the BIOS). An embedded system, such as a washing machine or a digital photo frame, often holds its whole operating system or firmware in ROM.
• The software rarely or never needs to be updated
• It cannot be overwritten or deleted by accident
• It is not lost when the device is switched off, and is available as soon as the device is switched on
• The program does not have to be loaded from separate secondary storage, which saves time and keeps the device small
Any data the device saves is usually written to flash storage, which is small, durable and low in power use.