Computer Architecture Memory and Cache if your answer is not
Computer Architecture: Memory and Cache, if your answer is not sure, please indicate NOT SURE Thanks
(Q1) If we have a direct-mapped cache with 32 blocks, where will the 16-bit memory address: 1101 1001 1000 1111 be stored in cache?
(a) In the block with address: 00111
(b) In the block with address: 00011
(c) In the block with address: 01111
(d) In the block with address: 11011
(Q2) A set-associative cache consists of 64 blocks, divided into four-block sets. How many valid bits we need per each block to validate the information stored inside? That is, how many valid bits does a block need to validate its contents?
(a) 2
(b) 8
(c) 1
(d) 4
Solution
In the block with address: 01111
Option c is correct choice.
8 valid bits does a block need to validate its contents
Option b is correct choice.
