title: Calculating CPI Stall
body: <p>In an example, </p>
  
  <p><img src="https://i.imgur.com/4RGuU.png" alt=""></p>
  
  <p>I don't really get how CPI stall is calculated here. I think CPI Stall = CPI Ideal + Memory Stall Cycles (At least this was given)?</p>
  
  <p>From what I understand from the question: 2 = CPI Ideal. 0.02 = L1 miss rate. 25 = miss penalty. (but isnt this miss penalty for L2 cache?). .36 is num of memory instructions (why is it not <strong>.36 x .02 x 25</strong> earlier?). .04 = ?? the 4% in braces? what does that mean? .005 = L2 miss rate. </p>