Question: Please write in tag and index as well for B I would like to learn so show work if possible thank you 8. [18 points]
8. [18 points] Suppose we have a memory and a direct-mapped cache with the following characteristics Memory is byte addressable Memory addresses are 16 bits . The cache has 8 blocks Each cache block holds 16 bytes of data a) [3 points] In the spaces below, indicate how the 16 address offset bits b) [12 points] Below is a sequence of four binary memory bits are allocated to the offset, index, and tag parts of the address used to reference the cache; rtag bits addresses in the order they are used to reference memory Assume that the cache is initially empty. For each reference, write down the tag and index bits and circle either hit or miss to indicate whether that reference is a hit or a miss index bits Memory address Tag Index Hit/ Miss (circle) 0010 1101 1011 0011 Hit Miss Hit Miss Hit Miss Hit Miss 0010 1101 1011 1000 1010 1010 1010 1011
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
