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
276 views
in Computer by (237k points)
closed by
A direct mapped cache is of size 32 KB and has block size 32 Bytes. CPU also generates 32 bit address. Number of bits needed for indexing the cache:
1. 14
2. 15
3. 10
4. 17

1 Answer

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

The correct answer is option 3

Data

Memory address = 32 bits

Data Cache = 32 KB = 215 B

Block Size = 32 B = 2B

Formula:

In a direct Mapped, the main memory can be represented as

Tag

Index

Block offset

32 = tag + lines + Block offset (In bits)

Calculation:

Assume byte-addressable:

\({\rm{number\;of\;blocks\;in\;cache\;memory}} = \frac{{{2^{15}}}}{{{2^5}}} = {2^{10}}\)

So, the number of bits required to index the cache blocks =⌈ log2 210 ⌉ = 10

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

...