Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
263 views
in Computer by (106k points)
closed by
The number of bits in the tag field of an address is
1. 11
2. 14
3. 16
4. 27

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 3 : 16

The correct answer is option 3

Data:

Physical address (PA) = 232 bytes

Block size = 32 B = 2B

Number of bits for block size = 5

cache size =256 KByte = 218 B

set associative = 4 -way 

Calculation:

number of bits = ⌈log2 n⌉ 

Number of blocks = \(\frac{cache\;size}{block\; size}\) =\({2^{18} B\over 2^5B}=2^{13}\)

Number of sets in cache = \({\frac{number\; of\; blocks}{set\; associativity}} = {2^{13}\over 2^2}=2^{11}\)

Number of bits in set =11

PA = tag + set + offset

32 = tag + 11+ 5

∴ tag = 16 bits

So, the number of bits in the tag field of an address is 16 bits

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...