51.3k views
1 vote
For a processor with primary caches only, an instruction cache miss rate of 1%, a data cache miss rate of 5%, a instruction mix of 30% data accesses, and a cache miss penalty of 80 cycles, what will be the contribution to total CPI from the cache misses

1 Answer

3 votes

Answer:

2

Step-by-step explanation:

Instruction cache miss rate = 1% = 0.01

Data cache miss rate = 5% = 0.05

data access Instruction mix = 30% = 0.3

Cache miss penalty = 80 cycles

Determine the contribution to total CPI from the cache misses

Assume cache access time = 1 clock cycle

CpI ( average ) = 1 + (0.01 * 0.7 + 0.05 * 0.3) * 80 = 2.76

∴ contribution to total CPI from cache miss = 2.76 - 0.76 = 2

User Aurelius Prochazka
by
5.0k points