Question: a ) Define cache hit ratio. [ 2 marks ] b ) Using a suitable diagram, show the sets and blocks arrangement of an 8
a Define cache hit ratio.
marks
b Using a suitable diagram, show the sets and blocks arrangement of an way associativity cache that has blocks in total.
marks
c If the above cache contains bytes in each block, draw the address subdivision of a bit memory address. Clearly indicate byte offset, set index and tag.
marks
d A way set associativity writeback cache has blocks in total. The Block size is bytes. It takes to copy a block from memory to cache or from the cache to memory. On a cache hit, each instruction takes Consider the following memory access sequence generated by the instructions to access data from this cache.
Assume initially all cache entries are invalid.
marks
i Calculate the main memory block addresses which are accessed by each memory access.
ii Find the set index of the cache, where each memory block address is mapped to
iii. For each memory operation, identify whether it is a cache hit or miss.
iv Calculate the total time taken for the memory access sequence to complete. State any assumptions if any.
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
