GATE | GATE CS Mock 2018 | Question 56
A cache memory unit with capacity of N words and block size of B words is to be designed. If it is designed as a 16-way set-associative cache, the length of the TAG field is 10 bits. If the cache unit is now designed as direct mapped cache, the length of the TAG field is ______ bits.
(A) 6
(B) 14
(C) 16
(D) None of these
Answer: (A)
Explanation: Set offset = Line offset / log(#sets)
→ Line offset = Set offset * log(#sets)
Therefore, tag bits will decreased by log(#sets) when we transform set-associative cache to direct mapped cache.
New tag bits = 10 – log (16) = 10 – 4 = 6
So, option (A) is correct.
Quiz of this Question
Recommended Posts:
- GATE | GATE CS Mock 2018 | Set 2 | Question 47
- GATE | GATE CS Mock 2018 | Set 2 | Question 54
- GATE | GATE CS Mock 2018 | Set 2 | Question 55
- GATE | GATE CS Mock 2018 | Set 2 | Question 56
- GATE | GATE CS Mock 2018 | Set 2 | Question 57
- GATE | GATE CS Mock 2018 | Set 2 | Question 58
- GATE | GATE CS Mock 2018 | Set 2 | Question 59
- GATE | GATE CS Mock 2018 | Set 2 | Question 60
- GATE | GATE CS Mock 2018 | Set 2 | Question 61
- GATE | GATE CS Mock 2018 | Set 2 | Question 62
- GATE | GATE CS Mock 2018 | Set 2 | Question 53
- GATE | GATE CS Mock 2018 | Set 2 | Question 52
- GATE | GATE CS Mock 2018 | Set 2 | Question 48
- GATE | GATE CS Mock 2018 | Set 2 | Question 49
- GATE | GATE CS Mock 2018 | Set 2 | Question 50



