Difference between RAM and ROM


A computer system consists of various hardware elements. The RAM and ROM are one of them. These two are different types of internal memories that have different purposes of being used in a computer.

In this article, you will learn RAM and ROM and the differences between them.

What is RAM

The RAM or Random Access Memory is used to store information temporarily which is needed by the CPU to process the current instruction or work. This information is lost when the computer is switched off.

RAM is located in the form of a hardware element on the motherboard of a computer system. An operating system also needs RAM to loads some programs when you start your system. The reason why we use RAM instead of using hard disk or any external storage device is that using RAM to read or write data is fast and easy as compared to other storage devices.

A RAM is also known as volatile memory, temporary memory, main memory, etc. The reason why we call it volatile or temporary memory is because it loses any data stored in it. When you shutdown your system or in case of an unexpected power cut.

Types of RAM

Broadly there are two types of RAM these are given below.

SRAM (Static RAM) –

SRAM stores a bit of data by using the state of a six transistor memory cell. It is faster and requires a constant power supply. SRAM is comparatively more expensive than DRAM.

DRAM (Dynamic RAM) –

DRAM stores a bit of information using a pair of transistors or capacitors. It offers reduced power consumption and costs less than SRAM. Different types of DRAM are given below.

  • ADRAM (Asynchronous Dynamic RAM)
  • SDRAM (Synchronous Dynamic RAM)
  • DDR SDRAM(Double Data Rate Synchronous Dynamic RAM)
  • RDRAM (Rambus Dynamic RAM)
  • CDRAM (Cache Dynamic RAM)

What is ROM

The ROM or Read Only Memory is a type of primary memory on a computer system that stores data permanently, even when the system is turned off. ROM is a read-only memory that means data inside the ROM can be read but it cannot be written on it.

The data or programs in ROM are filled by the manufacturer in such a way it cannot be reprogrammed or rewritten. The program stored on ROM is important for the functioning of a computer or some other electronic device. Some kinds of ROM allow modifying data stored on them.

Types of ROM

Some important types of ROM are –

  • PROM (Programmable ROM) – This type of ROM can be programmed only once after the creation. It is not erasable that means programmed once cannot be erased.
  • EPROM (Erasable Programmable ROM ) – The data inside this type of ROM can be erased by exposing it to high-intensity UV light for a certain period of time.
  • EEPROM (Electrically Erasable Programmable ROM ) – The data on this type of ROM can be erased electrically. It can be erased and reprogrammed multiple times.
  • Mask ROM – In this type of ROM data is written while the manufacturing of the chip

RAM vs ROM: The key differences

Some key differences between RAM and ROM are given in the table below.

Conclusion

Here you have seen the differences between RAM and ROM. I hope the information given here is useful to you. Now if you have any query then write us in the comments below.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.