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?
Most Upvoted 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.
Free Test
Community Answer
A CPU generates 32-bit virtual addresses. The page size is 4 KB. The p...
Solution:

Given:

Virtual address size = 32 bits

Page size = 4 KB = 2^12 bytes

TLB size = 128 entries

Set associativity = 4-way

To determine the minimum size of the TLB tag, we need to calculate the number of bits required for the page offset and the page number.

Page Offset:

The page offset is the number of bits required to represent the byte offset within a page. Since the page size is 4 KB, which is 2^12 bytes, the page offset requires 12 bits.

Page Number:

The page number is the number of bits required to represent the virtual page number. Since the virtual address size is 32 bits, and the page size is 4 KB, the number of bits required for the page number can be calculated as follows:

Number of bits for page number = 32 - 12 = 20 bits

Associativity:

The TLB is 4-way set associative, which means that each set in the TLB contains 4 page table entries. Therefore, the number of sets in the TLB can be calculated as follows:

Number of sets in TLB = TLB size / Associativity = 128 / 4 = 32

Tag size:

To determine the tag size, we need to subtract the number of bits required for the page offset and page number from the total number of bits in the virtual address, and then divide by the number of sets in the TLB. The formula for calculating the tag size is:

Tag size = (Virtual address size - Page offset - Number of bits for page number) / Number of sets in TLB

Substituting the values, we get:

Tag size = (32 - 12 - 20) / 32 = 15 / 32 = 0.46875

Since the tag size has to be an integer value, we need to round up to the nearest integer. Therefore, the minimum size of the TLB tag is 15 bits.

Therefore, option C is the correct answer.
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