| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | | | | |
---|
F6 <-- Mem[R2 + 34] | F | D | I | E | M | W | | | | | | | | | | | | | | | | | | | | | | | Ld1 |
F2 <-- Mem[R3 + 45] | | F | D | I | E | M | W | | | | | | | | | | | | | | | | | | | | | | Ld2 |
F0 <-- F2 X F4 | | | F | D | I | - | - (waiting for operands) | M1 | M2 | M3 | M4 | M5 | M6 | M7 | M8 | W | <-- theres no mem stage, it just writes to the common data bus. | | | | | | | | | | | | Mul1 |
F8 <-- F2 - F6 | | | | F | D | I | - | A1 | A2 | A3 | A4 | W | | | | | | | | | | | | | | | | | Add1 |
F10 <-- F0 / F6 | | | | | F | D | I <-- F6 pushed to res. Station. F0 is unknown but mark its dependent reservation station. | - | - | - | - | - | - | - | - | - | D1 | .. | ... | .... | D24 | W | | | | | | | |
F6 <-- F8 + F2 | | | | | | F | D | I | - | - | - | - | A1 | A2 | A3 | A4 | W | | <-- this doesnt cause a WAR hazard because the previous reference to F6 was copied into the reservation station when that instruction was read | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | Knowns | | Pendings | | | | | | | | | | | | | | | | | | | | | | | |
Clock cycle 6: | ID | BUSY | OP | Vj | Vk | Oj | Ok | A | <-- address | | | | | | | | | | | | | | | | | | | | |
Reservation stations | Ld1 | y | load | | | | | y | <-- it is in writeback, dont need the address anymore. When writeback completes, the status will flip to not busy. | | | | | | | | | | | | | | | | | | | | |
| Ld2 | y | load | | | | | R3 + 45 | | | | | | | | | | | | | | | | | | | | | |
| Mul1 | y | x | | F4 | Ld2 | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | ^ put in the ID that will tell us where to find this result | | | | | | | | | | | | | | | | | | | | | | | |
Target Registers | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| Field | F0 | .. | F2 | .. | F4 | .. | F6 | .. | F8 | .. | F10 | | | | | | | | | | | | | | | | | |
| Q: | Mul1 | | Ld2 | | | | Ld1 | | | | | | | | | | | | | | | | | | | | | |