Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE) PDF Download

Introduction

Memory is the most essential element of a computing system because without it computer can’t perform simple tasks. Computer memory is of two basic types – Primary memory(RAM and ROM) and Secondary memory (hard drive, CD, etc). Random Access Memory (RAM) is primary-volatile memory and Read Only Memory (ROM) is primary-non-volatile memory. 

Classification of Computer memoryClassification of Computer memory

1. Random Access Memory (RAM)

  • It is also called read-write memory or the main memory or the primary memory.
    The programs and data that the CPU requires during the execution of a program are stored in this memory. It is a volatile memory as the data lost when the power is turned off.
  • RAM is further classified into two types- SRAM (Static Random Access Memory) and DRAM (Dynamic Random Access Memory).

Difference Between DRAM and SRAM
Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

2. Read Only Memory (ROM)

  • Stores crucial information essential to operate the system, like the program essential to boot the computer.
  • It is not volatile.
  • Always retains its data.
  • Used in embedded systems or where the programming needs no change.
  • Used in calculators and peripheral devices.
  • ROM is further classified into 4 types- ROM, PROM, EPROM, and EEPROM. 

Types of Read Only Memory (ROM)

  1. PROM (Programmable read-only memory): It can be programmed by the user. Once programmed, the data and instructions in it cannot be changed. 
  2. EPROM (Erasable Programmable read only memory): It can be reprogrammed. To erase data from it, expose it to ultraviolet light. To reprogram it, erase all the previous data. 
  3. EEPROM (Electrically erasable programmable read only memory): The data can be erased by applying an electric field, with no need for ultraviolet light. We can erase only portions of the chip.

Difference Between RAM and ROM
Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

Different Types of RAM (Random Access Memory)

RAM(Random Access Memory) is a part of computer’s Main Memory which is directly accessible by CPU. RAM is used to Read and Write data into it which is accessed by CPU randomly. RAM is volatile in nature, it means if the power goes off, the stored information is lost. RAM is used to store the data that is currently processed by the CPU. Most of the programs and data that are modifiable are stored in RAM.

Integrated RAM chips are available in two form:

  1. SRAM(Static RAM)
  2. DRAM(Dynamic RAM)

The block diagram of RAM chip is given below.

Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

1. SRAM

The SRAM memories consist of circuits capable of retaining the stored information as long as the power is applied. That means this type of memory requires constant power. SRAM memories are used to build Cache Memory.
SRAM Memory Cell: Static memories(SRAM) are memories that consist of circuits capable of retaining their state as long as power is on. Thus this type of memories is called volatile memories. The below figure shows a cell diagram of SRAM. A latch is formed by two inverters connected as shown in the figure. Two transistors T1 and T2 are used for connecting the latch with two bit lines. The purpose of these transistors is to act as switches that can be opened or closed under the control of the word line, which is controlled by the address decoder. When the word line is at 0-level, the transistors are turned off and the latch remains its information. For example, the cell is at state 1 if the logic value at point A is 1 and at point B is 0. This state is retained as long as the word line is not activated.

Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

For Read operation, the word line is activated by the address input to the address decoder. The activated word line closes both the transistors (switches) T1 and T2. Then the bit values at points A and B can transmit to their respective bit lines. The sense/write circuit at the end of the bit lines sends the output to the processor.

For Write operation, the address provided to the decoder activates the word line to close both the switches. Then the bit value that to be written into the cell is provided through the sense/write circuit and the signals in bit lines are then stored in the cell.

2. DRAM

DRAM stores the binary information in the form of electric charges that applied to capacitors. The stored information on the capacitors tend to lose over a period of time and thus the capacitors must be periodically recharged to retain their usage. The main memory is generally made up of DRAM chips.
DRAM Memory Cell: Though SRAM is very fast, but it is expensive because of its every cell requires several transistors. Relatively less expensive RAM is DRAM, due to the use of one transistor and one capacitor in each cell, as shown in the below figure., where C is the capacitor and T is the transistor. Information is stored in a DRAM cell in the form of a charge on a capacitor and this charge needs to be periodically recharged.

For storing information in this cell, transistor T is turned on and an appropriate voltage is applied to the bit line. This causes a known amount of charge to be stored in the capacitor. After the transistor is turned off, due to the property of the capacitor, it starts to discharge. Hence, the information stored in the cell can be read correctly only if it is read before the charge on the capacitors drops below some threshold value.

Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

Types of DRAM
There are mainly 5 types of DRAM:

  1. Asynchronous DRAM (ADRAM): The DRAM described above is the asynchronous type DRAM. The timing of the memory device is controlled asynchronously. A specialized memory controller circuit generates the necessary control signals to control the timing. The CPU must take into account the delay in the response of the memory.
  2. Synchronous DRAM (SDRAM): These RAM chips’ access speed is directly synchronized with the CPU’s clock. For this, the memory chips remain ready for operation when the CPU expects them to be ready. These memories operate at the CPU-memory bus without imposing wait states. SDRAM is commercially available as modules incorporating multiple SDRAM chips and forming the required capacity for the modules.
  3. Double-Data-Rate SDRAM (DDR SDRAM): This faster version of SDRAM performs its operations on both edges of the clock signal; whereas a standard SDRAM performs its operations on the rising edge of the clock signal. Since they transfer data on both edges of the clock, the data transfer rate is doubled. To access the data at high rate, the memory cells are organized into two groups. Each group is accessed separately.
  4. Rambus DRAM (RDRAM): The RDRAM provides a very high data transfer rate over a narrow CPU-memory bus. It uses various speedup mechanisms, like synchronous memory interface, caching inside the DRAM chips and very fast signal timing. The Rambus data bus width is 8 or 9 bits.
  5. Cache DRAM (CDRAM): This memory is a special type DRAM memory with an on-chip cache memory (SRAM) that acts as a high-speed buffer for the main DRAM.
The document Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Architecture & Organisation (CAO).
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
20 videos|86 docs|48 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Random Access Memory (RAM) & Read Only Memory (ROM) - Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

1. What is the difference between RAM and ROM?
Ans. RAM stands for Random Access Memory and ROM stands for Read Only Memory. The main difference between them is that RAM is a volatile memory that allows read and write operations, while ROM is a non-volatile memory that only allows read operations. This means that data stored in RAM is temporary and gets erased when the computer is turned off, whereas data stored in ROM is permanent and remains even when the power is turned off.
2. Can I upgrade the RAM in my computer?
Ans. Yes, you can usually upgrade the RAM in your computer. RAM modules are typically replaceable and can be easily removed and upgraded. However, it is important to make sure that the new RAM module is compatible with your computer's motherboard and meets the required specifications. It is recommended to consult the computer's manual or a professional technician to ensure a successful RAM upgrade.
3. What is the purpose of RAM in a computer?
Ans. RAM plays a crucial role in a computer's performance. It is used to temporarily store data that the computer's processor needs to access quickly. When you open an application or run a program, it gets loaded into the RAM for faster access. The more RAM a computer has, the more data it can store temporarily, which results in faster and smoother performance.
4. Can I store files on ROM?
Ans. No, you cannot directly store files on a ROM. ROM is a type of memory that is pre-programmed during the manufacturing process and is read-only, meaning you cannot write or modify data stored in ROM. It primarily contains firmware or software instructions that are permanently stored, such as the computer's BIOS. To store files, you would typically use other forms of non-volatile memory like hard drives or solid-state drives.
5. Is it possible to retrieve data from RAM after the computer is turned off?
Ans. No, it is not possible to retrieve data from RAM after the computer is turned off. RAM is a volatile memory, which means that it requires continuous power to retain data. Once the power is turned off, the data stored in RAM is immediately lost. This is why it is important to save your work and regularly back up important data to non-volatile storage devices like hard drives or cloud storage.
20 videos|86 docs|48 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

shortcuts and tricks

,

Extra Questions

,

Objective type Questions

,

Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

Free

,

ppt

,

video lectures

,

mock tests for examination

,

study material

,

Summary

,

Previous Year Questions with Solutions

,

Exam

,

past year papers

,

MCQs

,

pdf

,

practice quizzes

,

Semester Notes

,

Sample Paper

,

Random Access Memory (RAM) & Read Only Memory (ROM) | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

Important questions

,

Viva Questions

;