Question: Q . 4 . Memory Hierarchy [ 2 0 marks ] Consider a computer system with a cache memory organized as a 4 - way
Q Memory Hierarchy
marks
Consider a computer system with a cache memory organized as a way set associative cache. The cache has a block Size of Bytes and a total size of KB
The sequence of memory addresses of the first column in the below table need to be accessed in the shown order:
begintabularlccll
hline begintabularc
Memory
Address
endtabular & begintabularc
Block
Address
decimal
endtabular & begintabularc
Set Index
decimal
endtabular & begintabularc
Hit
Miss
endtabular &
hline hline times & & & & Block is added to set
hline hline times & & & &
hline hline times & & & &
hline hline times & & & &
hline times & & & &
hline hline times & & &
hline hline times & & &
hline hline times & & &
hline
endtabular
Calculate the number of sets in the cache.
Determine which addresses map to which sets.
Trace the access pattern to identify hits and misses in the cache.
Use the above table or repeat it in your answer
Calculate the hit ratio for the given sequence of memory accesses.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
