title: What is the formula of CC or average CPI?
body: <p>I have a MIPS code. There are <strong>189</strong> instructions and <strong>55</strong> of them are <em><strong>memory</strong></em> instructions.
  There are some values that are given,<br />
  Data cache miss rate = 20%<br />
  Miss penalty = 100 Clock Cycles.</p>
  <p>And the question is to calculate total CC for code and average CPI for instruction?
  I know these two things but I couldn't figure out how can use miss rate and miss penalty in the formula. Shouldn't be there an instruction cache rate?</p>