Professional Documents
Culture Documents
ANDHRA PRADESH
Name : U.Rajya Lakshmi
Designation : Lecturer
Branch : Computer Engg.,
Institute : Govt.Polytechnic for Women,
PALAMANER.
Year/Semester : III Semester
Subject : Computer Architecture
Subject Code : CM-303
Topic : Memory Organization
Duration : 50 Min
Sub Topic : Direct mapping of Cache Memory
Teaching aids : PPT,drawings
CM303.48 1
Do you Know
CM303.48 2
Recap of previous lesson
CM303.48 4
Disadvantages of associative mapping
Contd.,
• Expensive
CM303.48 5
Direct Mapping
Contd.,
CM303.48 6
Direct Mapping
Contd.,
tag index
m bits
Fig.1
CM303.48 7
Direct Mapping
Contd.,
CM303.48 8
Organization Of Cache Memory In Direct
Mapping
Index
Tag data
address
000
001
002
003
004
2n-2
2n-1
Cache memory
Fig.2
CM303.48 9
Operation of Direct Mapping organization
Contd.,
CM303.48 10
Operation of Direct Mapping organization
Contd.,
CM303.48 11
Example of Direct Mapping organization
Contd.,
00000
Octal address
3454
02004 1543
777 02
02776 0276
2701
02777 2701
Fig.4
CM303.48 13
Example of Direct Mapping organization
CM303.48 14
Disadvantage of Direct Mapping organization
CM303.48 15
Summary
CM303.48 17
1. Disadvantage of Associative mapping process
• Not flexible
• Complex logic
• Locality of reference
CM303.48 18
1. Disadvantage of Associative mapping process
• Not flexible
• Complex logic
• Locality of reference
CM303.48 19
2. The two parts of CPU generated address in
direct mapping of cache
a) Tag and data
b) Data and logic
c) Index and data
d) Tag and index
CM303.48 20
2. The two parts of CPU generated address in
direct mapping of cache
• Tag and data
• Data and logic
• Index and data
• Tag and index
CM303.48 21
Frequently asked Questions
CM303.48 22
Short Answer Questions
CM303.48 23
Assignment Questions
CM303.48 24