• edited by
2,645 views
0 0 votes

consider a 4-stage pipeline (IF, ID, EX, WB) used to execute the following code. All the instructions are spending 1 cycle in all the stags but MUL takes 4 cycles. Div takes 3 cycles in EX stages. The pipeline uses operand forwarding as an optimization

a- how many cycles are required to complete the program with optimization?

b- how many cycles are required to complete without optimization?

I1 : MUL  r0 , r1 , r2

I2 : DIV  r3 , r1 , r2

I3: SUB  r4, r3, r2

I4: ADD r5, r4, r1

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
2 2 answers
1.5k
1.5k views
Markzuck asked Dec 25, 2018
1,467 views
here why to take stall at the highlighted cell as its OPERAND FORWARDING and unless mentioned its EX-EX and its being followed without stall also, please clarify how to u...
1 1 vote
1 1 answer
2.1k
2.1k views
Na462 asked Oct 13, 2018
2,067 views
The following sequence of instructions is executed in basic 5 stage pipeline ( F D E M W). Assume data dependency is resolved by Operand Forwarding. Load instruction outp...
0 0 votes
1 answers 1 answer
994
994 views
sourav. asked Jan 28, 2016
994 views
they have not given the number of cycles taken by ADD/LOAD..i have taken as 1..correct if i am wrongThe following sequence of instruction is executed in a basic 5 stage p...
0 0 votes
2 2 answers
1.5k
1.5k views