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 : Set Associative Mapping of
Cache Memory
Teaching aids : PPT,drawings
CM303.49 1
Do you Know
CM303.49 2
Recap of previous lesson
• Various mapping methods
• Associative mapping
• Direct mapping
• Set associative mapping
CM303.49 4
Need of SET associative mapping
CM303.49 5
Set Associative Mapping of Cache memory
Contd.,
CM303.49 6
Set Associative Mapping of Cache memory
Contd.,
• Two way set associative cache
• Stores two words with same index but with different
tags
CM303.49 7
Set Associative Mapping of Cache memory
Index Tag Data Tag Data
000 01 3452 02 3189
02 2367 00 1234
777
Fig.1
CM303.49 8
Set Associative Mapping of Cache memory
Contd.,
• Two way set associative cache
• When CPU wants to access a word
– index part (n bits) is used to search cache
CM303.49 9
Set Associative Mapping of Cache memory
• Disadvantage
CM303.49 10
Summary
• Set-associative mapping
• Allows to store more words with same index but with
different tags
• More complex comparison logic is required
CM303.49 11
QUIZ
CM303.49 12
1. Two way Set associative cache organization can
store
CM303.49 13
1. Two way Set associative cache organization can
store
CM303.49 14
Frequently asked Questions
CM303.49 15