Answer:
(A) CPIₐ = 2.22, MIPSₐ = 90, CPUₐ = 0.2 s
CPIₙ = 1.92, MIPSₙ, CPUₙ = 0.23 s
(B) Even though machine B has a higher MIPS than machine A, it needs a longer CPU time to execute the similar set of benchmark programs instructions.
Step-by-step explanation:
To start with, we solve for CPI ∨ A,
Where ∨ = superscript
CPIₙ = Machine B, that is (ₙ = B),
Therefore,
a) CPIₐ = Σ CPI ∨i × I ∨i ÷ I ∨c
= (8 × 1 + 4 × 3 + 2 ×4 + 4 × 3 ) × 10 ⁶ ÷ ( 8 +4 +2+4) × 10 ⁶
≈ 2.22
MIPSₐ = f / CPIₐ × 10 ⁶ = 200 × 10 ⁶ ÷ 2.22 × 10 ⁶
≈ 90
CPUₐ = I ∨c × CPIₐ ÷ f
= 18 × 10 ⁶ × 2.2 ÷ 200 × 10 ⁶
= 0.2 s
CPIₙ = Σ CPI ∨i × I ∨i ÷ I ∨c
= (10 × 1 + 8 × 2 + 2 × 4 + 4 × 3) × 10 ⁶ ÷ (10 + 8+ 2 + 4) × 10 ⁶
≈ 1.92
MIPSₙ = f / CPIₙ × 10 ⁶ = 200 × 10 ⁶ / 1.92 × 10 ⁶
= 104
CPUₙ = I ∨c × CPIₙ ÷ f
=24 × 10 ⁶ × 1.92 ÷ 200 × 10 ⁶
≈ 0.23 S
b) Even though machine B has a higher MIPS than machine A, it needs a longer CPU time to execute the similar set of benchmark programs instructions.