Memory Hierarchy & Caches
Based on the following behavior, which of the following block sizes is NOT possible for our cache?
Consider:
1) Cache starts empty, also known as a cold cache
2) Access (address: hit/miss) stream: (14: miss), (15: hit), (16: miss)
Addresses above are in decimal
a. 4 bytes
b. 8 bytes
c. 16 bytes
d. 32 bytes
Let's evaluate each case one by one :
a. 4 bytes
In this case, following groups of physical addresses will be mapped together in corresponding blocks :
So if accesses are :
So, access-sequence possible = YES
b. 8 bytes
In this case, following groups of physical addresses will be mapped together in corresponding blocks :
So if accesses are :
So, access-sequence possible = YES
c. 16 bytes
In this case, following groups of physical addresses will be mapped together in corresponding blocks :
So if accesses are :
So, access-sequence possible = YES
d. 32 bytes
In this case, following groups of physical addresses will be mapped together in corresponding blocks :
So if accesses are :
So, access-sequence possible = NO
So, the correct option is
d. 32 bytes
Get Answers For Free
Most questions answered within 1 hours.