Skip to content
Official PYQ · 2006

GATE CS 2006 Q62 — Memory Management and Virtual Memory

Explain with AI

A CPU generates 3232-bit virtual addresses. The page size is 44 KB. The processor has a translation look-aside buffer (TLB) which can hold a total of 128128 page table entries and is 44-way set associative. The minimum size of the TLB tag is:

Choose one option
View worked solution

Answer: C

To find the minimum size of the TLB tag, we can break down the virtual address generated by the CPU:

1. Virtual Address Breakdown:

  • Virtual Address Size: 32 bits32\text{ bits}
  • Page Size: 4 KB=212 bytes4\text{ KB} = 2^{12}\text{ bytes}
  • Page Offset: log⁡2(212)=12 bits\log_2(2^{12}) = 12\text{ bits}

The Virtual Page Number (VPN) is the remaining part of the virtual address:

VPN Size=32 bits−12 bits=20 bits\text{VPN Size} = 32\text{ bits} - 12\text{ bits} = 20\text{ bits}

2. TLB Structure:

The TLB is 44-way set associative and holds a total of 128128 entries.

  • Number of Sets in TLB: Number of Sets=Total EntriesAssociativity=1284=32 sets\text{Number of Sets} = \frac{\text{Total Entries}}{\text{Associativity}} = \frac{128}{4} = 32\text{ sets}
  • TLB Set Index Bits: log⁡2(32)=5 bits\log_2(32) = 5\text{ bits}

3. TLB Tag Size Calculation:

The Virtual Page Number (VPN) is split into the TLB Tag and the TLB Index:

VPN=TLB Tag+TLB Index\text{VPN} = \text{TLB Tag} + \text{TLB Index} 20 bits=TLB Tag+5 bits20\text{ bits} = \text{TLB Tag} + 5\text{ bits} TLB Tag=20 bits−5 bits=15 bits\text{TLB Tag} = 20\text{ bits} - 5\text{ bits} = 15\text{ bits}

Thus, the minimum size of the TLB tag is 15 bits.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions