Virtual GATE 2015 - Question 46

Given Answer Key: C
Discuss the solution.

2Comments
Shreyas Dawkhare @shreyasdawkhare 6 Feb 2015 04:30 pm

Ans : C 

(9A81)H / (10)H = (9A8)H --- Memory block number

(9A8)H mod (10)H = (8)H
 

Mahesh Kumar @maheshkumars 6 Feb 2015 03:06 pm

 I think this should be the procedure:

NAME(No.of Bits) TAG INDEX BLOCK OFFSET
MEMORY REP.     8 4 4
9A21-IN BINARY 10011010 1000 0001

So index is used to go to the particular block in cache:  Therefore 10002 is 8H. So C is the answer.

By this method No one will make any mistake.