|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
I1 |
IF |
ID |
EX |
MA |
WB |
|
|
|
|
|
I2 |
|
IF |
ID |
------ |
EX |
MA |
WB |
|
|
|
I3 |
|
|
IF |
ID |
---- |
EX |
MA |
WB |
|
|
I4 |
|
|
|
IF |
ID |
---- |
EX |
MA |
WB |
|
THEREFORE total 9 cycles needed.
Since this is RISC pipeline by default it will use operand forwarding and we will witness operand forwarding between I1’s MA and I2’s EX where dependent operand will be directly forwarded and thus other answer is completely wrong