RAM or ROM – What Differentiates These Two Terms ?
Last Updated on June 27, 2021 by Ephraim Iyodo
There are terms in the computer world that can be confusing and sometimes misused. Some people use the terms ROM (read-only memory) and RAM (random access memory) interchangeably.
This is, of course, inappropriate! So I want to open a discussion about the differences between RAM and ROM. I would appreciate your opinions on this also.
RAM and ROM are both types of computer memory. RAM is used to store computer programs and data that the processor needs in real time. Data in RAM is unstable and is erased when the computer is turned off. ROM contains pre-recorded data and is used to boot the computer. ROM data is static and remains in the computer even if it is turned off.
R.A.M (Random Access Memory)
RAM is the largest piece of memory that exists in computer hardware. RAM is used to store programs and data used by the central processor in real time.
Data in random access memory can be read, written, and erased any number of times.
It is volatile memory, which means that the data stored in RAM evaporates as soon as you turn off the power.
This is one reason why random-access memory cannot be used as permanent storage, even though it is much faster than traditional hard drives based on magnetic disks.
Types of RAM:
- Static RAM.
- Dynamic RAM.
SRAM (Static RAM):It stores bits of data using the state of a six-transistor memory cell. SRAM is much faster than DRAM, but costs more.
DRAM (Dynamic RAM):It stores bit data using a pair of transistor and capacitor that make up a DRAM memory cell.
R.O.M (Read-Only Memory)
Another prominent type of memory present in a computer is ROM. As the name implies, the data in this memory can only be read by the computer. So, what is the reason for using these read-only memory chips when we have RAM chips?
ROM is a non-volatile memory, it does not forget data even when the power is turned off. ROMs are used to store firmware for hardware that receives almost no regular updates, such as BIOS.
Data in traditional ROM form is hardwired to it, i.e., written at the time of manufacture. Over time, read-only memory has been developed that supports erasing and overwriting data, although it cannot reach the level of efficiency of random access memory.
Types of ROM:
- Mask ROM.
Mask ROM: This is the type of ROM for which the data is written during the manufacturing of the memory chip.
PROM (Programmable Read-only Memory): The data is written after the memory chip has been created. It is non-volatile.
EPROM (Erasable Programmable Read-only Memory): The data on this non-volatile memory chip can be erased by exposing it to high-intensity UV light.
EEPROM (Electrically Erasable Programmable Read-only Memory): The data on this non-volatile memory chip can be electrically erased using field electron emission (Fowler–Nordheim tunneling). Modern EEPROMs are quite efficient in terms of the read-write capabilities.
The above listed are semi conductor based ROM;
Others like CD-ROM which is an optical storage media is also a ROM
A CD-ROM: is a pre-pressed optical compact disc that contains data. Computers can read—but not write or erase—CD-ROMs, i.e. it is a type of read-only memory.
10 Key Differences
1. RAM is random access memory and cannot store data without power, while ROM is read-only memory and can store data even without power.
2. RAM is a power-dependent medium for storing information, while ROM is a non-volatile medium for storing data.
3, RAM is much faster and easier to write data to, while ROM is much slower to write data to than RAM.
4. RAM comes in two varieties, that is, static RAM and dynamic RAM, while ROM has three varieties: Mask ROM, PROM, EPROM and EEPROM.
5. Data in RAM is accessed, read, and erased repeatedly, while in ROM, writing data is a relatively very slow process.
6. RAM is used in primary DRAM and SRAM processor cache memory, while ROM is used in BIOS, microcontrollers and other electronic devices.
7. RAM is expensive and not cheap, while ROM is much cheaper compared to DRAM.
8. RAM is large in size and large in capacity, while ROM is smaller in size and even smaller in capacity.
9. RAM is a high-speed memory with read-write operations that occur at a fast pace, while ROM is a slower memory that is less subject to modification and can be done by an external program.
10. In RAM, data can be changed many times, which explains its wide possibilities, while in ROM the data is constant, although it can be changed, but at a very low speed and a limited number of times.
|Data||RAM data is volatile. Data is present till power supply is present.
RAM data can be read, erased or modified.
|ROM data is permanent. Data remains even after power supply is not present.
ROM data is read only.
|Storage||RAM is a temporary medium of storage.
RAM memory is large and high capacity.
|ROM is a permanent medium of storage.
ROM is generally small and of low capacity.
|Cost||RAM is costly.||ROM is cheap.|
|Function||RAM chip is used in the normal operation of a computer.||ROM is primarily used in the startup process of a computer or bootstrapping.|
|Operation||RAM is used as CPU Cache, Primary Memory.
CPU can access data stored on RAM.
|ROM is used as firmware by microcontrollers.
Data to be copied from ROM to RAM so that CPU can access its data.