CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A CPU generates 32-bits virtual addresses. The page size is 4 KB. The processor has a translation look-aside buffer (TLB) which can bold a total of 128 page table entries and is 4-way set associative.
The minimum size of the TLB tag is

A
20 bits
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
15 bits
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
13 bits
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
11 bits
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 15 bits
Number of bits for virtual address = 32
Number of bits for pages = 4 KB
=log2(212)=12
So, number of bits for pages = 32 - 12 = 20

Number of bits for sets = log2(32)=5
So, minimum tag size = 20 - 5 = 15

flag
Suggest Corrections
thumbs-up
1
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Hardware Support for Page Table using TLB
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon