3 3 votes what will be size of main memory. when 4-way set associative mapping of cache memory is done and cache size is 256 KB and Tag field has 7 bits( consider, memory is byte addresable ) CO & Architecture co-and-architecture cache-memory + – amrendra pal 2.0k views answer comment Share Follow Print See all 9 Comments 9 9 Comments reply joshi_nitish commented Sep 3, 2017 reply Follow flag 8 MB ?? 0 0 replyShare amrendra pal commented Sep 3, 2017 reply Follow flag @joshi_nitish, can you tell how it will be 8MB? 0 0 replyShare joshi_nitish commented Sep 3, 2017 reply Follow flag let y and x bits for set and offset field respectively there will be 2y sets and every set will have 4 lines and every line has a weight of 2x bytes therfore size of cache = 2y*4*2x = 256*210 => x+y = 16 total bits to represent MM address = 7(tag) + y(set) + x(offset) = 7 + 16 = 23bits therefore MM = 223 bytes = 8MB 1 1 replyShare amrendra pal commented Sep 3, 2017 reply Follow flag @joshi_nitish , can you tell that what will be the size of tag directory and block size? 0 0 replyShare joshi_nitish commented Sep 3, 2017 reply Follow flag @amrendra pal no, we can not calculate size of tag directory or block size because, for that we need to know individual value of x and y, here we only know x+y 0 0 replyShare amrendra pal commented Sep 3, 2017 reply Follow flag @joshi_nitish, can you tell that how many multiplexers are used here and what will be the size of that multiplexers 0 0 replyShare joshi_nitish commented Sep 3, 2017 reply Follow flag it will require 4 levels of MUXs with each level containing seven (2y $\times$ 1) MUX 0 0 replyShare amrendra pal commented Sep 3, 2017 reply Follow flag @joshi_nitish, what is the means of level here ? 0 0 replyShare amrendra pal commented Sep 3, 2017 reply Follow flag @joshi_nitish, what about the OR gate here?tell 0 0 replyShare Please log in or register to add a comment.
1 1 vote Just Find Total number of bits in tag when direct mapped cache. 7bit tag given in 4way set associative so in direct mapped cache it is of 7-2 =5bits tag. So main memory is 25 times bigger than cache memory. So main memory size = 32×256KB =8MB If you get logic you can do directly without conversion. papesh answered Sep 4, 2017 papesh comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote tag set block size 7 x y cache size=no.of set*lines per set*size of set 256 KB=4*2y*2x 216 = 2y*2x x+y=16 The number of bits in physical address=7+x+y=23 The main memort size =223 = 8 MB Uma Maheswari answered Nov 2, 2017 Uma Maheswari comment Share Follow 0 reply Please log in or register to add a comment.