1 / 23

Tomasulo Loop Example

Tomasulo Loop Example. Loop: LD F0 0 R1 MULTD F4 F0 F2 SD F4 0 R1 SUBI R1 R1 #8 BNEZ R1 Loop Assume Multiply takes 4 clocks Assume first load takes 8 clocks (cache miss?), second load takes 4 clocks (hit). Loop Example Cycle 0. Loop Example Cycle 1. Loop Example Cycle 2.

gerke
Download Presentation

Tomasulo Loop Example

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tomasulo Loop Example Loop: LD F0 0 R1 MULTD F4 F0 F2 SD F4 0 R1 SUBI R1 R1 #8 BNEZ R1 Loop • Assume Multiply takes 4 clocks • Assume first load takes 8 clocks (cache miss?), second load takes 4 clocks (hit)

  2. Loop Example Cycle 0

  3. Loop Example Cycle 1

  4. Loop Example Cycle 2

  5. Loop Example Cycle 3 • Note: MULT1 has no registers names in RS

  6. Loop Example Cycle 4

  7. Loop Example Cycle 5

  8. Loop Example Cycle 6 • Note: F0 never sees Load1 result

  9. Loop Example Cycle 7 • Note: MULT2 has no registers names in RS

  10. Loop Example Cycle 8

  11. Loop Example Cycle 9 • Load1 completing; what is waiting for it?

  12. Loop Example Cycle 10 • Load2 completing; what is waiting for it?

  13. Loop Example Cycle 11

  14. Loop Example Cycle 12

  15. Loop Example Cycle 13

  16. Loop Example Cycle 14 • Mult1 completing; what is waiting for it?

  17. Loop Example Cycle 15 • Mult2 completing; what is waiting for it?

  18. Loop Example Cycle 16

  19. Loop Example Cycle 17

  20. Loop Example Cycle 18

  21. Loop Example Cycle 19

  22. Loop Example Cycle 20

  23. Loop Example Cycle 21

More Related