0 votes 0 votes A $4$ way set associative cache with a size of $32$ KB has line size $16$ Bytes. There is a Byte addressable main memory with a size of $256$ MB, then which of the following Main Memory block is mapped on to the set $'0'$ of Cache Memory? $(FCEE90B)16$ $(FECF10C)16$ $(CFEE09B)16$ $(CDDE00B)16$ CO and Architecture tbb-coa-2 co-and-architecture cache-memory + – Bikram asked May 27, 2017 • retagged Sep 20, 2020 by ajaysoni1924 Bikram 322 views answer comment Share Follow See 1 comment See all 1 1 comment reply hem chandra joshi commented Jun 16, 2017 reply Follow Share ?wht 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes Total cache size is 32 KB = 25 * 210 Bytes . Total number of sets = (25 * 210 / 24 * 22 ) = 29 9 bits used for set . 15 bits for tag and 4 bits for word . Tag | Set | Word 15 | 9 | 4 CDD 111 0 0000 0000 B hence answer is option D . Bikram answered Jun 16, 2017 • selected Aug 26, 2019 by Bikram Bikram comment Share Follow See all 2 Comments See all 2 2 Comments reply hem chandra joshi commented Jun 30, 2017 reply Follow Share @bikram sir CDD 111 0 0000 0000 B hence answer is option D . ?how?(above this line i got all things) 0 votes 0 votes Bikram commented Jul 1, 2017 reply Follow Share @hem chandra joshi See ,we have to go with each options here. for option D , which is in hexadecimal . CDDE00B we can write as CDD E 0 0 B = CDD 1110 0000 0000 B we can write this way and this memory block mapped to set '0' here 0 0000 0000 is representing set '0' of cache memory , in CDD 111 0 0000 0000 B we took lower 9 bits for set. E = 1110 as question asked " which of the following Main Memory block is mapped on to the set '0' of Cache Memory" . here we have to go with each option. only this option have set '0' of cache memory. 1 votes 1 votes Please log in or register to add a comment.