A CPU generates -bit virtual addresses. The page size is KB. The processor has a translation look-aside buffer (TLB) which can hold a total of page table entries and is -way set associative. The minimum size of the TLB tag is:
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:
- Page Size:
- Page Offset:
The Virtual Page Number (VPN) is the remaining part of the virtual address:
2. TLB Structure:
The TLB is -way set associative and holds a total of entries.
- Number of Sets in TLB:
- TLB Set Index Bits:
3. TLB Tag Size Calculation:
The Virtual Page Number (VPN) is split into the TLB Tag and the TLB Index:
Thus, the minimum size of the TLB tag is 15 bits.
Free practice · Your answers on this page are not saved.
