GATE / CS ARCHIVE

GATE CSE 2017 SET 1 / QUESTION 54

GATE CSE 2017 Set 1 Q54

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2017 Set 1 paper

GATE 2017 Set 1, Q54 2 marks · NAT
Report issue

Cache Memory

Question 54, GATE 2017: A cache has capacity N words, blocks of B words, and a 10-bit tag when directly mapped. With unchanged capacity and block size, redesign as 16-way set associative. Find tag width.
Tap to enlarge
Answer & solution

Official answer: 14.0

Our answer: 14

1. Address bits are partitioned into tag, set index, and block offset. Keeping B fixed leaves offset width unchanged.

2. A direct-mapped cache has N/B sets. A 16-way cache of the same total capacity has N/(16B) sets, requiring log₂16=4 fewer index bits.

3. The address width has not changed, so those four bits move to the tag. New tag width=10+4=14 bits. Associativity changes the set count, not the number of offset bits.

Original paper, page 24 · Answer key