GATE CSE
First time here? Checkout the FAQ!
x
0 votes
115 views

asked in CO & Architecture by Active (1.9k points)   | 115 views
what is ur doubt...?
i think it is easy 2 check with hit-miss pattern nd options ...

Saurabh if possible pls take a looke at this question http://gateoverflow.in/103937/branch-prediction#a103951

see the selected ans ...

1 Answer

0 votes

Lets go step by step.

1) First access: 0

   I generated miss.ok, fine.

 

2) 2nd access: 2

   It was hit.

 

   Now, observed closely the options. In option A, block size=2. If this was the case, this would have generated a miss.

   So, option A is eliminated.

 

 3) 3rd access: 4

     It generated a miss. Now, consider option B. If block size=128, then this should have been a hit.

     So, option B eliminated.

 

     Now, we prove that option C is also wrong. OPtion (C) says that in single set, there can 128 blocks with BS=4bytes (which            says cache is greater than M.M. Quite possible, atleast hypothetically!).

      So, a block, once brought in would always generate a hit. But we see that access to address 0 (i.e. 3rd last zero) is a miss.

      So, option C also eliminated.

 

answered by Veteran (15.4k points)  

Related questions

+1 vote
0 answers
1
+1 vote
0 answers
3
asked in CO & Architecture by Sunil8860 (191 points)   | 36 views


Top Users Aug 2017
  1. Bikram

    4888 Points

  2. ABKUNDAN

    4704 Points

  3. akash.dinkar12

    3480 Points

  4. rahul sharma 5

    3142 Points

  5. manu00x

    3012 Points

  6. makhdoom ghaya

    2470 Points

  7. just_bhavana

    2382 Points

  8. stblue

    2130 Points

  9. Tesla!

    2066 Points

  10. joshi_nitish

    1758 Points


25,002 questions
32,124 answers
74,782 comments
30,176 users