566 views
1 votes
1 votes

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 votes
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

Related questions

1 votes
1 votes
1 answer
1
LRU asked Jan 8, 2022
511 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 votes
0 votes
1 answer
2
imkeshav asked Jan 6, 2022
740 views
How to solve this?