1) Total Cycles if there were no stalls or branching = k + (n-1) = 5 + ( 12-1) = 16 cycles
where k = number of stages in pipeline and n = total number of instructions
2) Due to branching, we jump over/skip I5, I6, I7, I8; four instructions are skipped; updated number of cycles = 12 cycles
3) Branch is resolved at 4th stage (EI) Therefore,
number of stalls = 4-1 = 3 cycles
Final number of cycles = 12 + 3(stalls) = 15 cycles
Cycle time = 10 + 1= 11ns
Execution time = cycle time * number of cycles = 11 ns * 15 = 165 ns