Computer Organization and Architecture: Chapter 4: Memory and IO

Need for a Hierarchical Memory System gets

Questions: 1. Explain the necessity of memory hierarchy. Write a note on memory hierarchy. 2. Draw different memory address layouts and brief about the technique used to increase the average rate of fetching words from the main memory. 3. Draw the memory hierarchy in a typical computer system.

Need for a Hierarchical Memory System gets

• Ideally, computer memory should be fast, large and inexpensive. Unfortunately, it is impossible to meet all the three of these requirements using one type of memory.

• Increased speed and size are achieved at increased cost.

• Very fast memory system can be achieved if SRAM chips are used. These chips are expensive and for the cost reason it is impracticable to build a large main memory using SRAM chips. The only alternative is to use DRAM chips for large main memories.

• Processor fetches the code and data from the main memory to execute the program. The DRAMs which form the main memory are slower devices. So it is necessary to insert wait states in memory read/write cycles. This reduces the speed of execution.

• The solution for this problem is come out with the fact that most of the computer programs work with only small sections of code and data at a particular time. In the memory system, small section of SRAM is added along with main memory, referred to as cache memory.

• The program which is to be executed is loaded in the main memory, but the part of program (code) and data that work at a particular time is usually accessed from the cache memory.

• This is accomplished by loading the active part of code and data from main memory to cache memory. The cache controller looks after this swapping between main memory and cache memory with the help of DMA controller.

• The cache memory just discussed is called secondary cache. Recent processors have the built‒in cache memory called primary cache.

• DRAMs along with cache allow main memories in the range of tens of megabytes to be implemented reasonable cost, the size and better speed performance. But the size of memory is still small compared to the demands of large programs with voluminous data. A solution is provided by using secondary storage, mainly magnetic disks and magnetic tapes to implement large memory spaces. Very large disks are available at a reasonable price, sacrificing the speed.


• From the above discussion, we can realize that to make efficient computer system it is not possible to rely on a single memory component, but to employ a memory hierarchy. Using memory hierarchy all of different types of memory units are employed to give efficient computer system. A typical memory hierarchy is illustrated in Fig. 4.2.1.

• In summary, we can say that a huge amount of cost‒effective storage can be provided by magnetic disks. A large, yet affordable, main memory can be built with DRAM technology along with the cache memory to achieve better speed performance.


• Fig. 4.2.2 shows how memory hierarchy can be employed in a computer system. As shown in Fig. 4.2.2, at the bottom of the hierarchy magnetic tapes and magnetic disks are used as a secondary memory. This memory is also known as auxiliary memory.

• The main memory occupies a central position by being able to communicate directly with the CPU and with auxiliary memory devices through an I/O processor.

• Fig. 4.2.3 shows common memory hierarchies with two, three and four levels.

I : Instruction flow

D: Data flow



Review Questions

1. Explain the necessity of memory hierarchy. Write a note on memory hierarchy.

2. Draw different memory address layouts and brief about the technique used to increase the average rate of fetching words from the main memory.

3. Draw the memory hierarchy in a typical computer system.

 

Computer Organization and Architecture: Chapter 4: Memory and IO : Tag: Computer : - Need for a Hierarchical Memory System gets


Computer Organization and Architecture: Chapter 4: Memory and IO



Under Subject


Computer Organization and Architecture

CW25201 3rd Semester IT department. | 2025 Regulation | 3rd Semester 2025 Regulation



Related Subjects


Discrete Mathematics

MA25C14 3rd Semester CSE,IT,CY,AIDS departments. | 2025 Regulation | 3rd Semester 2025 Regulation


Data Structures

CS25C08 3rd Semester CSE,IT,CY,AIDS departments. | 2025 Regulation | 3rd Semester 2025 Regulation


Computer Organization and Architecture

CW25201 3rd Semester IT department. | 2025 Regulation | 3rd Semester 2025 Regulation


Object Oriented Programming

CS25C07 3rd Semester IT department. | 2025 Regulation | 3rd Semester 2025 Regulation


Web Technologies

IT25301 3rd Semester IT department. | 2025 Regulation | 3rd Semester 2025 Regulation


English Communication Skills Laboratory I

EN25C03 3rd Semester all department. | 2025 Regulation | 3rd Semester 2025 Regulation


Skill Development Course I

3rd Semester all department. | 2025 Regulation | 3rd Semester 2025 Regulation