1 votes 1 votes A cache has a capacity of 16 kbits and a line length of 128 bytes.how many set does cache have if it is 8 way set associative? A)16 B)32 C)64 D)none of the above neha singh asked May 14, 2017 neha singh 2.6k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes Cache size = 16 Kbits = 16 * 2^10 bits = 2^14 bits = 2^11 Bytes Line size = 128 Bytes = 2^7 Bytes Number of lines in cache = Cache size / Line size = (2^11) /(2^7) = 2^4 Lines Number of sets = number of lines in cache / kth way set associative = 2^4 / 2^3 = 2 Hence Number of sets = 2 akash.dinkar12 answered May 14, 2017 • selected May 15, 2017 by focus _GATE akash.dinkar12 comment Share Follow See all 0 reply Please log in or register to add a comment.