Question
Computer Organization and Architecture Question on Machine Instructions and Addressing Modes
Instruction format has the following structure.Instruction number OPCODE destination Source 1 and Source 2.
I1: Div R3R1R2;
I2: Sub R5R3R4;
I3: Add R3R5R6;
I4: Mul R7R3R8;
A
There is a RAW dependency on R3 between I1 and I2
B
There is a RAW dependency on R3 between I2 and I3
C
There is a WAW dependency on R3 between I3 and I4
D
There is a WAR dependency on R3 between I1 and I3
Answer
There is a RAW dependency on R3 between I1 and I2
Explanation
Solution
The correct options are (A) and (B).