Let us number the instructions as $I_1$, $I_2$, $I_3$, and $I_4$ respectively.
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
$I_1$ |
IF |
ID |
EX |
EX |
EX |
WB |
|
|
|
|
|
|
$I_2$ |
|
IF |
- |
- |
ID |
EX |
WB |
|
|
|
|
|
$I_3$ |
|
|
IF |
- |
- |
ID |
EX |
WB |
|
|
|
|
$I_4$ |
|
|
|
IF |
- |
- |
ID |
EX |
EX |
EX |
WB |
|
Hence, it will take $11$ clocks to execute the given instructions with operand forwarding.