Question: What is the execution time of this sequence on a 7 - stage pipeline with a 2 - cycle instruction latency for non - branch

What is the execution time of this sequence on a 7-stage pipeline with a 2-cycle
instruction latency for non-branch instructions, but a 5-cycle branch instruction latency? Assume the branch is not taken, so the DIV is the next instruction executed
after it.
BNE r4, #0, r5 PC <- r4 if r5 is not equal to r5
DIV r2, r1, r7 r2<- r1/r7
ADD r8, r9, r10 r8<- r9+r10
SUB r5, r2, r9 r5<- r2-r9
MUL r10, r5, r8 r10<- r5 x r8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!