A 64-bit architecture features a 4KB page size. The hardware uses a Translation Lookaside Buffer (TLB) to cache page table entries. The TLB contains exactly 128 entries and is structured as 4-way set associative. How many bits are required strictly for the TLB Tag field?
A 4KB page size requires log2(4096) = 12 bits for the page offset. The Virtual Page Number (VPN) is 64 - 12 = 52 bits. The TLB has 128 entries divided into 4 ways, resulting in 128 / 4 = 32 sets. The TLB index requires log2(32) = 5 bits. The TLB Tag is the remainder of the VPN: 52 - 5 = 47 bits.