现在我正在学习simplescalar源代码。但是我对预测模块感到困惑。这是关于双模预测器。 这里是初始化: case BPred2bit:
if (!l1size || (l1size & (l1size-1)) != 0)
fatal("2bit table size, `%d', must be non-zero and a power of two",
l
我已经计算了一个包含缓存未命中率(mr)与缓存大小(sc)的图。如何计算各种缓存大小的CPI(每条指令周期)。 假设是: Given cache miss latency (say 10) ,
base CPI of 1 and
33.33% of instructions as memory operations.
我的理解是,CPI可以用下面的公式来计算。下面的方法是否正确? CPI