A direct mapped cache holds 4 blocks. If the following block numbers are accesse
ID: 2080064 • Letter: A
Question
A direct mapped cache holds 4 blocks. If the following block numbers are accessed, which of the blocks are in the cache at the end of the accesses? the block numbers are in decimal and do not include the byte/block offset. 1, 3, 5, 7, 9 7, 9 9 1, 3, 5, 7. 9 3, 7, 5, 9 What determines if there is a hit? the tag matches and the valid bit is 0. the tag matches the tag matches and the valid bit is 1 the valid bit is 1 A 8-way set associated cache means that there are 8 blocks in the cache, each set in the cache can hold 8 blocks, each block in the cache is 8 words, there are 8 sets in the cacheExplanation / Answer
1.
The direct mapped cache can hold 4 blocks. So, it holds 1,3,5,7 and the last and remained block at the end of accesses is 9.
Option B is correct.