Note: , ,
1536.00
Step-by-Step Solution
Insight: TLB size is the number of entries multiplied by the size of each entry. The number of entries is derived directly from the TLB reach and the page size.
Exam route:
- TLB entries = TLB reach / page size = 1 MB / 4 KB = 2^20 / 2^12 = 256.
- Virtual address = 64 GB = 2^36 bytes. VPN bits = 36 - 12 = 24.
- Physical address = 1 GB = 2^30 bytes. PFN bits = 30 - 12 = 18.
- Entry size = 4 (PID) + 24 (VPN) + 18 (PFN) + 2 (control) = 48 bits = 6 bytes.
- Total TLB size = 256 * 6 = 1536 bytes.
Learning route:
This is a TLB architecture and sizing question.
Step 1: Calculate the number of entries in the TLB. The TLB reach is the total physical memory that can be accessed through the TLB. Reach = Number of entries Page size. Therefore, Number of entries = 1 MB / 4 KB = entries.
Step 2: Determine the Virtual Page Number (VPN) bits. The virtual address space is 64 GB = bytes. The page size is 4 KB = bytes. VPN bits = bits.
Step 3: Determine the Physical Frame Number (PFN) bits. The physical address space is 1 GB = bytes. PFN bits = bits.
Step 4: Calculate the size of a single TLB entry. The entry stores: 4-bit process ID + 24-bit VPN + 18-bit PFN + 2-bit control field = 48 bits.
Step 5: Convert bits to bytes. 48 bits / 8 = 6 bytes per entry.
Step 6: Calculate the total TLB size. Total size = Number of entries Size per entry = bytes.