edited by
422 views
4 votes
4 votes
A CPU generates $64$-bit virtual addresses. The page size is $8$ KB. The processor has a translation look-aside buffer (TLB) which can hold a total of $256$ page table entries and is $8$-way set associative. The minimum size of the tag memory for TLB in bytes is _______
edited by

1 Answer

Best answer
6 votes
6 votes
Number of sets in TLB $= 256/8 = 32.$

Number of PTEs $ =2^{64} B/8KB = 2^{51}  $

So, number of PTEs which can map to a TLB set $ = 2^{51}/32= 2^{46}.$

So, minimum size of TLB tag $ = 46$ bits.

We have $256$ entries in TLB each of $46$ bits. So, total tag memory size for TLB $ = 46 \times 256\; \text{bits} = 46 \times 32\; \text{bytes} = 1472\:\text{bytes.}$
selected by
Answer:

Related questions