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
125 views
in Computer by (85.4k points)
closed by
The width of the physical address on a machine is 40 bits. The width of the tag field in a 512 KB 8-way set associative cache is______ bits.

1 Answer

0 votes
by (88.5k points)
selected by
 
Best answer

Data:

Physical address (PA) = 40 bits

Cache Memory Size (CS) = 512 KB = 219 B

Block Size (BO) = 2x B

Set associativity = 8

Formula:

Formula to find number of bits in tag in set associative mapping

PA = tag + set + BO

\({\rm{number\;of\;set}} = \frac{{{\rm{CS}}}}{{{\rm{S}} \times {\rm{BO}}}}\)

Calculation:

\({\rm{number\;of\;set}} = \frac{{{2^{19}}}}{{{2^3} \times {2^{\rm{x}}}}} = {2^{19 - 3 - x}}\)

PA = tag + set + BO

40 = tag + 19 – 3 – x 

∴ tag = 24 bits

Important Points:

Assume: Memory is byte addressable

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

...