Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. How many cycles are needed to execute these instructions on a forwarding and

ID: 2249741 • Letter: 1

Question

1. How many cycles are needed to execute these instructions on a forwarding and non-forwarding pipeline datapath? LD X1, 40(x6) Add X6, X2, X2 Sd X6, 50(X1) (25 points) 8, 8 0 9,8 7,9 3. Add the minimum number of required nop instruction to the code below so that it will run correctly on a pipeline that does not handle data hazards. 2: 3: 4 (25 points) Addi X11, X12, 5 Add X13, X11, X12 Addi X14, X11, 15 Add X15, X13, X12 Two NOPs between 1 and 2; one NOP between 3 and 4 One NOP between 1 and 2; one NOP between 2 and 3: one NOP between 3 and 4 One NOP between 1 and 2, two NOPs between 3 and 4 Two NOPs between 1 and 2; two NOPs between 3 and 4 4. What is the total execution time of these instructions on a pipelined forwarding datapath? Ld Ld Add X1, 16(X2) X3, 32(X1) X4, X1, X3 IF: 250 ps; ID: 200 ps; EXE: 250 ps; MEM: 300 ps; WB: 200 ps (25 points) O 2700 O 3000 O 2400 O 2100

Explanation / Answer

1. How many cycles are needed to excute forwarding and non-forwarding pipeline datapath ?
ANS : Forwarding pipeling datapath = 7
          Non - forwarding pipeling datapath = 8
         Final answer is 7, 8

3. minimum number of NOP instructions is
Ans : One NOP between 1 and 2 NOP between 2 and 3 One NOP between 3 and 4

4. Total exeucation time is pipeling forwarding datapath is
Ans : 2700 ps