4 4 votes If main memory $=128 \ KB$ and cache memory is of $2KB$ with $16B$ lines .and uses associative mapping . What would be the # of bits used for Tag for each block? CO & Architecture co-and-architecture cache-memory + – saxena0612 2.4k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments saxena0612 commented Jan 1, 2018 reply Follow flag ....................................................... 0 0 replyShare just_bhavana commented Jan 1, 2018 reply Follow flag clearly none of the options are matching ! 1 1 replyShare saxena0612 commented Jan 1, 2018 reply Follow flag Yes!! 0 0 replyShare Please log in or register to add a comment.
0 0 votes the correct answer is option a main memory size = 128 kb = 2 ^7 * 2^10 = 2^17 bytes cache memory size = 2 kb = 2^10 bytes no of lines = 16 bytes cache offset = cache memory size \ no of lines = 2^10\2^4 = 2^6 bytes number of bits in cache offset = 6 bits as total main memory size = 17 bits tag bits = 17 - 6 = 11 bits poojasharma123 answered Aug 5, 2018 poojasharma123 comment Share Follow 0 reply Please log in or register to add a comment.