Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A CPU generates 32-bit virtual addresses. The... Start Learning for Free
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:
  • a)
    11 bits
  • b)
    13 bits
  • c)
    15 bits
  • d)
    20 bits
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
A CPU generates 32-bit virtual addresses. The page size is 4 KB. The p...
Size of a page = 4KB = 2^12 Total number of bits needed to address a page frame = 32 - 12 = 20 If there are ‘n’ cache lines in a set, the cache placement is called n-way set associative. Since TLB is 4 way set associative and can hold total 128 (2^7) page table entries, number of sets in cache = 2^7/4 = 2^5. So 5 bits are needed to address a set, and 15 (20 - 5) bits are needed for tag.
View all questions of this test
Most Upvoted Answer
A CPU generates 32-bit virtual addresses. The page size is 4 KB. The p...
TLB Overview
The translation look-aside buffer (TLB) is a hardware cache used by the CPU to improve the speed of virtual address translation. It stores a subset of the page table entries (PTEs) that map virtual addresses to physical addresses.

Given parameters
- CPU generates 32-bit virtual addresses
- Page size = 4 KB
- TLB can hold 128 PTEs
- TLB is 4-way set associative

Formula to calculate TLB tag size
The tag size of the TLB can be calculated using the following formula:
tag size = virtual address size - page offset size - log2(number of entries in the TLB)

Page offset size
The page offset size is determined by the page size. In this case, the page size is 4 KB, which is equivalent to 2^12 bytes. Therefore, the page offset size is 12 bits.

Number of entries in the TLB
The TLB can hold 128 PTEs, and it is 4-way set associative. Therefore, there are 32 sets in the TLB, and each set contains 4 PTEs.

Calculating the tag size
Using the formula above, we can calculate the TLB tag size as follows:
tag size = 32 - 12 - log2(128/4)
tag size = 32 - 12 - log2(32)
tag size = 32 - 12 - 5
tag size = 15

Therefore, the minimum size of the TLB tag is 15 bits (option C).
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer?
Question Description
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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer?.
Solutions for 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer?, a detailed solution for 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? has been provided alongside types of 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice 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:a)11 bitsb)13 bitsc)15 bitsd)20 bitsCorrect answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev