0memory Hierarchy
0memory Hierarchy
0memory Hierarchy
Amity School of
Engineering &
B. Tech. (CSE), V Semester
Technology
Computer Architecture
Jitendra Rajpurohit
Amity School of Engineering & Technology
Module IV
Memory Organization
• Memory Hierarchy
• Main Memory
• Auxiliary Memory
• Associative Memory
• Cache Memory
• Virtual Memory
Amity School of Engineering & Technology
Memory Hierarchy
• The memory unit is an essential component in any digital
computer since it is needed for storing programs and data
Memory Hierarchy
• The memory unit that directly communicate with CPU is
called the main memory
Memory Hierarchy
• 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
• A special very-high-speed memory called cache is used to increase the
speed of processing by making current programs and data available to the
CPU at a rapid rate
Amity School of Engineering & Technology
Memory Hierarchy
CPU Cache
memory
Register
Memory Hierarchy is to obtain the
highest possible access speed while Cache
minimizing the total cost of the
memory system Main Memory
Magnetic Disk
Magnetic Tape
Amity School of Engineering & Technology
Main Memory
SRAM vs DRAM
Tran. Access
per bit time Persist? Sensitive? Cost Applications
ROM
• ROM is used for storing programs that are PERMANENTLY
resident in the computer and for tables of constants that do
not change in value once the production of the computer is
completed
Main Memory
RAM
Amity School of Engineering & Technology
ROM
Amity School of Engineering & Technology
Memory Address
Map
• Memory Address Map is a pictorial representation of
assigned address space for each chip in the system
• The RAM have 128 byte and need seven address lines, where
the ROM have 512 bytes and need 9 address lines
Amity School of Engineering & Technology
Memory Address
Map
Amity School of Engineering & Technology
Memory Address
Map
• The hexadecimal address assigns a range of hexadecimal
equivalent address for each chip
-The low-order lines in the address bus select the byte within
the chips and other lines in the address bus select a particular
chip through its chip select inputs
Connection of Memory to CPU
Amity School of Engineering & Technology
CPU
Address bus
16-11 10 9 7-1 Data bus
8 RD
WR
Decoder
3 2 1 0
CS1
CS2
Data
RD 128 x 8
RAM 1
WR
AD7
CS1
CS2
Data
RD 128 x 8
WR RAM 2
AD7
CS1
Data
128 x 8
CS2 RAM 3
RD
CS1
WR
CS2
Data
RD 128 x 8
AD7
WR RAM 4
AD7
CS1
512 x 8
Data
1- 7 CS2
8 ROM
9 }