1 / 16

Appendix C Practice Problem Set 1

Appendix C Practice Problem Set 1. Problem 1. 1. Identify data dependencies in the code segment below. # of dependencies: ____________? i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3

fancy
Download Presentation

Appendix C Practice Problem Set 1

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. Appendix CPractice Problem Set 1

  2. Problem 1 1. Identify data dependencies in the code segment below. # of dependencies: ____________? i:R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  3. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  4. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  5. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  6. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  7. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  8. i: R2  R0 + R1 j: R3  R0 * R2 k: R5  R2 – R3 l: R2  R6 – R7

  9. Problem 2 2. For the given sequence of instructions, fill the table below with the pipeline stages for each instruction. The first row is already filled for you. Assuming no memory latency, how many cycles does it take to execute his piece of code?

  10. Problem 3 2. Repeat problem 2 but with some independent instruction inserted to reduce stalls.

  11. This is the original sequence

  12. This is the newsequence

More Related