Search code examples
cpu-architecturenumerical

Difference between instruction reference and data refernce


I'm not able to get why 0.4 is used in finding miss rate of data cache rather than using 0.3 as it is also given that 30% of the instructions are data refernces. (https://i.sstatic.net/jJpC1.png)


Solution

  • The given fact is that there are 40 misses per thousand instructions for data cache. Data cache will only be accessed for Load/Store instructions. There are only 40% of Load/Store Instructions. Therefore in order to get the miss rate, you need to divide the value by 0.4.