First time here? Checkout the FAQ!
0 votes

asked in CO & Architecture by Active (1.7k points)   | 56 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

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 (14.9k points)  

Related questions

0 votes
1 answer
asked in CO & Architecture by shal (47 points)   | 45 views

Top Users Apr 2017
  1. akash.dinkar12

    3508 Points

  2. Divya Bharti

    2542 Points

  3. Deepthi_ts

    2040 Points

  4. rude

    1966 Points

  5. Tesla!

    1768 Points

  6. Shubham Sharma 2

    1610 Points

  7. Debashish Deka

    1588 Points

  8. Arunav Khare

    1454 Points

  9. Kapil

    1424 Points

  10. Arjun

    1420 Points

Monthly Topper: Rs. 500 gift card

22,075 questions
28,041 answers
24,135 users