$\require{cancel}$
Raw time for n instructions
seconds/cycle * cycles/instruction * n instructions/program
PIPELINE COLUMN NON PIPELINE COLUMN
200 * 1 * n = 200n 800 * 1 *n = 800n
A miss penalty is 50000ps,
(see the table on page 396, this is essentially no cache)
50000/200 = 250 clock cycles 50000/800 = 63 clock cycles
Instructions: 99.7% of the instructions take 1 cycle.
.3% of the instructions take 250 or 63 cycles
.997 + .003*250 = 1.7 .997 + .003*63 = 1.18
Memory Accesses
.35 of the instructions are memory accesses.
So .65 instructions have no miss penalty.
The miss rate is 2% so the memory instructions will have
.98 * 1 + .02 * 250 = 5.98 .98 * 1 + .02 * 63 = 2.24
So overall
.65 * 1 + .35 * 5.98 = 2.74 .65 * 1 + .35 * 2.24 = 1.43
New CPI
1.7 + 2.74 = 4.44 1.18 + 1.43 = 2.61
Time for n instructions
seconds/cycle * cycles/instruction * n instructions/program
200 * 4.44 * n = 888n ps 800 * 2.61 * n = 2088n