1) Consider a five stage pipeline. Branch instructions each
cause a three cycle penalty. Starting empty, calculate the cycles
to execute 120 instructions. On average there is one branch in
every 24 instructions
b) Reconsider the prior question but rather than starting empty,
the pipeline has been executing code for a long time and there is
also one data dependency in every 60 instructions. Each data
dependency causes a one cycle penalty. Calculate the number of
cycles as well as the average cycles per instruction (CPI).