1 / 18

Basic Pipeline Datapath

Basic Pipeline Datapath. Pipeline In Use. We’ll follow two instructions through the pipeline, first separately, then together. add $7,$2,$3, where $2 = 35 and $3 = 62 lw $4, 28($5), where $5=56 and memory location 84 stores 20

pdunbar
Download Presentation

Basic Pipeline Datapath

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. Basic Pipeline Datapath

  2. Pipeline In Use • We’ll follow two instructions through the pipeline, first separately, then together. • add $7,$2,$3, where $2 = 35 and $3 = 62 • lw $4, 28($5), where $5=56 and memory location 84 stores 20 • add instruction at address 40; lw at 44 • Note: rightmost multiplexor is inverted

  3. add $7,$2,$3 – IF stage 40 0 44 40 add

  4. add $7,$2,$3 – ID stage 10 000 000000 1100 2 35 3 62 100000 7

  5. add $7,$2,$3 – EX stage 10 000 35 0 62 97 1 0010 62 100000 10 7 7 1

  6. add $7,$2,$3 – MEM stage 10 0 0 0 97 7

  7. add $7,$2,$3 – WB stage 1 0 7 97 97

  8. lw $4, 28($5) – IF stage 44 0 48 44 lw

  9. lw $4, 28($5) – ID stage 11 010 100011 0001 5 56 28 4

  10. lw $4, 28($5)– EX stage 11 010 56 1 84 1 0010 28 28 4 00 4 0

  11. lw $4, 28($5)–– MEM stage 11 0 0 84 20 1 4

  12. lw $4, 28($5)–– WB stage 1 1 20 4 20

  13. add – IF stage 40 0 44 40 add

  14. lw – IF stage, add – ID stage 10 000 000000 1100 44 0 48 2 35 44 3 62 lw 100000 7

  15. lw – ID stage, add – EX stage 11 10 010 100011 000 0001 5 56 35 62 97 0010 62 28 100000 4 10 7 7 1

  16. lw – EX stage, add – MEM stage 11 010 10 0 0 56 1 84 1 0010 28 28 0 97 4 00 4 7 0

  17. lw – MEM stage, add – WB stage 11 0 1 0 0 84 20 7 97 97 1 4

  18. lw - WB stage 1 1 20 4 20

More Related