GATE / CS ARCHIVE

GATE CSE 2006 / QUESTION 62

Tag width of four-way TLB

Computer Organization & Architecture · Memory Organization & Address Translation · Full GATE CSE 2006 paper

GATE 2006, Q62 2 marks · MCQ
Report issue

Memory Organization & Address Translation

Question 62, GATE 2006: A CPU has 32-bit virtual addresses, 4 KB pages, and a 128-entry TLB that is four-way set associative. What is the minimum tag width, excluding any address-space identifier?
Options:
(A) 11 bits
(B) 13 bits
(C) 15 bits
(D) 20 bits
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (6 steps)

1. A 4 KB page requires 12 offset bits, leaving 32−12=20 virtual-page-number bits. There are 128/4=32 TLB sets, requiring 5 index bits.

2. The minimum tag is the remaining 20−5=15 bits, option C. Additional address-space identifiers are not included in the stated minimum.

3. Teaching check: Partition the virtual address into offset, set index and tag. Page offsets require log₂4096=12 bits. Four-way associativity means only 128/4=32 sets, so five more bits select the set and the remaining fifteen distinguish pages within that set.

Original paper, page 9