Cache Memory - Indexing: CS223 Computer Architecture & Organization
Cache Memory - Indexing: CS223 Computer Architecture & Organization
John Jose
Associate Professor
Department of Computer Science & Engineering
Indian Institute of Technology Guwahati
Four cache memory design choices
❖ Where can a block be placed in the cache?
– Block Placement
❖ How is a block found if it is in the upper level?
– Block Identification
❖ Which block should be replaced on a miss?
– Block Replacement
❖ What happens on a write?
– Write Strategy
Block Placement
Index and Offset Calculations
A cache has 512 KB capacity, 4B word, 64B block size and 8-way set
associative. The system is using 32 bit address. Given the address
0X ABC89984, which set of cache will be searched and specify which
word of the selected cache block will be forwarded if it is a hit in
cache?
# sets = CS/(BSxA) = 219/(26x23) = 210 = 1024 sets
1 word = 4B , Hence 64 byte block has 16 words
Tag = 16 Index =10 Offset=6 (4+2)