retagged by
1,289 views
2 votes
2 votes

A CPU generates $32$-bit virtual addresses. The page size is $4$ KB. The processor has a Translation Look-aside Buffer (TLB) which can hold a total of $128$ page table entries and is $4$-way set associative. The minimum size of the TLB tag is

  1. $\text{11 bits}$
  2. $\text{13 bits}$
  3. $\text{15 bits}$
  4. $\text{20 bits}$
retagged by

2 Answers

6 votes
6 votes

Virtual Address = 32 bits

Offset bits (d) = 12 bits (As page size = 4 KB)

Bits for page number (p) = 32 - 12 = 20 bits

p = 20 d = 12

'p' bits will be used to index the TLB entry as

For set-associative mapping the division of virtual address is as follows :

tag set offset

Offset here represents the page offset, d = 12 bits

Therefore tag + set = 20

Number of sets = 128/4 = 32

Therefore, set = 5

Hence, tag = 20 - 5 = 15 

Option (C)

1 votes
1 votes
Page size = 4KB, hence offset bits required is 12.

Bits remaining for TLB tag and set = 32-12 = 20.

Bits required for 4 way set associative = 128/4 = 32 = 2^5 = 5 bits.

therefore, minimum bit of TLB Tag = 20-5 = 15.
Answer:

Related questions

1.1k
views
3 answers
1 votes
admin asked Mar 30, 2020
1,064 views
Which access method is used for obtaining a record from cassette tape?DirectSequentialRandom Parallel
1.0k
views
1 answers
0 votes
admin asked Mar 30, 2020
1,033 views
A computer uses $46$-bit virtual address, $32$-bit physical address, and a three-level paged page table organization. The page table base register stores the base address of the ... $ in this computer?$2$4$8$16$
802
views
0 answers
0 votes
admin asked Mar 30, 2020
802 views
A computer uses $46-bit$ virtual address, $32-bit$ physical address, and a three-level paged page table organization. The page table base register stores the base ... $4$8$16$
943
views
1 answers
0 votes
admin asked Mar 30, 2020
943 views
A disk has $200$ tracks (numbered $0$ through $199$). At a given time, it was servicing the request of reading data from track $120$, and at the previous request, service was for ... $ and $3$3$ and $3$3$ and $4$4$ and $4$