set 1): If we consider all stages requires 1 clock cycle. In that case cycle required is: = (4+10000-1)
=10003 cycles
set 2): Now first stage actually required 2 clock cycle.and we have calculated for 1 clock cycle already so calculate for remained 1 clock cycle of first stage. that will be = 10000 cycles
second stage required only 1 clock cycle so that we would not calculate.
set 3): In third stage there are 10% of multiplication instructions.now we have already calculated for 1 clock cycle. now out of 4 cycle we will calculate for only 3 clock cycle = 3*10000*(0.10)
=3000 cycles
there are 5% of division instructions.now we have already calculated for 1 clock cycle. now out of 7 cycle we will calculate for only 6 clock cycle = 6*10000*(0.05)
=3000 cycles
if we total all the cycle considering all set = 10003 + 10000 + 3000 + 3000
Total cycles = 26003 cycle