RAM and ROM are the Main Storage Devices in computer, both storage devices are working as the work area of the computer. These devices are essential for the computer without these both devices computer will not able to work. One of the volatile and second is non volatile which one is volatile and which one is not computer science today will teach you everything about RAM and ROM in this article.
Difference between RAM and ROM:
As we read above RAM and ROM are the components of Main storage devices of the computer and both are essential for the computer so here we are going to tell you difference between RAM and ROM
1. RAM (Random Access Memory):
RAM is the primary storage device and the data and it stored the data or instruction temporarily and It takes the same amount of time to access any location in RAM. CPU can perform two types of operations on RAM and these are Read and Write.
During Read operation the contents of memory location are copied to CPU register whereas during Write operation the contents of a CPU register are copied to the memory location. The CPU cannot perform any other operations on memory locations. RAM is usually built by using two different technologies i.e.
- DRAM (Dynamic Random Access Memory): DRAM is the most commonly used technology to build RAM chips and consumes a lot of power as data stored in a DRAM needs to be refreshed periodically.
- SRAM (Static Random Access Memory): SRAM is faster than DRAM but it is more expensive. Unlike DRAM, the contents of SRAM do not need to bed refreshed periodically.
Characteristics of RAM (Random Access Memory):
- RAM is volatile memory it’s mean that the content of memory are lost when the electricity supply is shut down
- Since CPU can read data from and write data to the RAM therefore RAM is read/write memory
- RAM is random access in the sense that any part of RAM can be accessed directly.
2. ROM (Read Only Memory):
As is obvious from the name the contents of ROM can be read but new data cannot be written into it so it is a Read Only Memory. The manufacturer of the ROM writes the data and programs permanently into it and this data and programs cannot be changed afterwards ROM is used to save frequently used instructions and data. The data stored in ROM will not change for a very long time. There are three types of ROM i.e.
- PROM (Programmable Read Only Memory): This form of ROM is initially blank and the user can write his own data/programs on It by using special devices. Once the program/data is written on PROM it cannot be changed or altered. it is obvious that this kind of ROM will be used for storing the data for a very long period of time. The data written on this kind of ROM cannot be changed once it is written
- EPROM (Erasable Programmable Read Only Memory): Like PROM it is initially blank and programs and data can be written on it by the manufacturer or by the user with special devices. Unlike PROM a user can erase the data by using special devices and UV rays and then can write again, but the data is changed only for one time.
- EEPROM (Electrically Erasable Programmable Read Only Memory): This kind of ROM can be re-written by using electrical devices and so data stored on EEPROM can be easily modified. EEPROM can be very useful for taking backup of data and for keeping records that are updated frequently