946 views
1 1 vote

Consider the following sequence of instructions:

 

LOAD R4, 0(R8)

AND R1, R5, R2

OR R1, R1, R3

OR R2, R2, R7

ADD R3, R2, R1

STORE R3, 0(R8)

 

Number of cycles required to complete the given sequence of instructions in a 5 stage (IF, ID, EX, Mem, WB) RISC processor with operand forwarding_____

1 Answer

3 3 votes

Total 10 cycles needed . 

There is EX- EX stage operand forwarding between instructions I2-I3, I4-I5, I3-I5

and I5-I6

• edited by
Position:
Show:

Related questions

1 1 vote
1 1 answer
864
864 views
LRU asked Jan 8, 2022
864 views
Consider following assembly-language program:1: MOV R3, R7 2: LOAD R8, (R3) 3: ADD R3, R3, 4 4: LOAD R9, (R3) 5: BNE R8, R9, L3The sum of WAW, RAW, and WAR dependencies f...
0 0 votes
1 1 answer
1.5k
1.5k views
imkeshav asked Jan 6, 2022
1,509 views
How to solve this?For the following C fragment:\[\begin{array}{l}A=B+C ; \\D=A+E ;\end{array}\]the following sequence of MIPS instructions can be executed (assume all var...