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
2.5k views
in Computer by (103k points)
closed by
Consider a machine with a byte addressable main memory of 216 bytes and block size of 8 bytes. Assume that a direct mapped cache consisting of 32 lines used with this machine. How many bits will be there in Tag. line and word field of format of main memory addresses ?
1. 8, 5, 3
2. 8, 6, 2
3. 7, 5, 4
4. 7, 6, 3

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 1 : 8, 5, 3

The correct answer is option 1.

 

Direct Mapping: 

Given Data,

Main memory size =216 bytes

No of blocks in Main memory (M)=216  ÷ 23

Block Size (P)= 23 bytes

No of blocks in the cache memory (N) =25 bytes 

Tag=28=Tag bits= log2(M/N)

line or cache block= 2=cache block  bits= log2N

word field or word offset= 23=word offset bits=log2P

∴ Hence the correct answer is (8,5,3).

N = No of blocks in cache memory  =(cache memory size)/Block size

M=  No of blocks in main memory   = (main memory size)/Block size

P=Block size

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

...