Answer c
i)
# Cycles used by 1 Non-Pipeline Instruction = 4*1 = 4
so, # Cycles used by 500 Non-Pipeline Instruction = 4*500 = 2000
# Cycles used by 1 Pipeline Instruction = 4
so, # Cycles used by 500 Pipeline Instruction = 4 + (500-1) = 503
Speedup = 2000/503 = 3.976
ii)
Branch instructions causes 3 stall clock cycles.
Branch penalty = 0.1*3 = 0.3
So, # Cycles used by 500 Pipeline Instruction with branches = 503*1.3 = 653.9
Speedup = 2000/653.9 = 3.058
(C) Assume 500 instructions are executed using a four-stage pipeline. Each stage requires 1 clock cycle...