Difference Between RAM and ROM
Difference between RAM and ROM
Topics we are going to discuss here are
What is RAM:
RAM ( random access memory ) is a volatile memory used to store the data and information being used in real-time by CPU. the files you are working on are stored inside RAM. Data stored in RAM is both readable and editable. The data is stored temporarily on RAM.
It does not matter where your data is physically inside the RAM you can read or write data at almost the same time. Once your computer gets shut down all data stored in RAM will be erased as it is volatile memory.
Types of RAM
the types of most used RAM in today’s world are
- Static Random Access Memory (SRAM)
- Dynamic Random Access Memory (DRAM)
the type of RAM which uses flip-flop circuits to store a bit. SRAM is volatile so when power will remove data will be automatically erased.
A flip-flop or latch is a type of circuit that has two stable states.
A bit in DRAM is stored using a pair of transistors and capacitors. Both the capacitor and transistor are typically based on metal-oxide-semiconductor.
What is ROM:
ROM (read-only memory) is a type of computer memory that is non-volatile. It is fixed on the motherboard and the data or instructions are stored permanently on these memory chips. Even the computer is shut down the data will remain in ROM.
ROM usually refers to those memory chips that after manufacturing cannot be changed.
in these types of ROM data is written at the time of manufacturing rather than by the user.
Following are the types of ROM:
- PROM (Programmable Read-Only Memory)
- EPROM (Erasable Programable ROM)
- EEPROM (Electrically Erasable Programmable ROM)
Once the PROM is programmed by the manufacturer it cannot be changed or erased. it is a non-volatile memory.
EPROM is the type of ROM which are erasable and can be rewritten. the ultraviolet light is used to erase the data from EPROM. it is a non-volatile memory.
This ROM can be electrically erased and can be electrically changed.
it is a non-volatile memory.
RAM VS ROM:
| Difference | RAM | ROM |
| storage capacity | RAM has a high storage capacity | ROM has a lower storage capacity |
| Retentiveness | it’s volatile so data remains until the power remains | its non-volatile so data remains even if a computer is off |
| uses | stores the data or information being used by the CPU in real-time | stores the firmware software or instructions for the bootstrap of the computer |
| cost | expensive | a lot cheaper than RAM |
| Speed | Speed of RAM is fast | Slow |
| Size | Larger than ROM | Smaller than RAM |
| User interaction | Users can read and write data and information | Users can only read data |
RAM is volatile while ROM is non-volatile. RAM is faster than ROM. ROM is smaller than RAM. both have their own importance and use in computers.
To know the basics about programming languages read this article
I hope you have learned something from here.
Do you like our article?