Question: dependencies between all instructions s ID Instruction 11 Load x1, 0(X31) 12 Load x2, 8(x31) 13 Add x4, x1, x2 14 Mul x11, x2, x4


dependencies between all instructions s ID Instruction 11 Load x1, 0(X31) 12 Load x2, 8(x31) 13 Add x4, x1, x2 14 Mul x11, x2, x4 15 Sub x5, x1, x4 16 Load x6, 16(x11) 17 Add x6, X5, X6 18 Sub x7, x8, x9 19 Div x7, X7, x8 EM MEW 10-6 ALU PI Figure 1: 5-stage Pipeline without forwarding 3) Consider the 5-stage pipeline design we discussed in the lecture, shown in Figure 1, without forwarding paths. Insert the minimum number of required NOPs into the instruction stream without re-ordering instructions to avoid all hazards. Calculate the average CPI of this code, assuming a CPI of one for all instructions. Assume that registers from the register file can be written and read in the same cycle. (4 Points) FD DEX EXEM MEWE Lood How ALU ALU PI Figure 1: 5-stage Pipeline without forwarding 3) Consider the 5-stage pipeline design we discussed in the lecture, shown in Figure 1, without forwarding paths. Insert the minimum number of required NOPs into the instruction stream without re-ordering instructions to avoid all hazards. Calculate the average CPI of this code, assuming a CPI of one for all instructions. Assume that registers from the register file can be written and read in the same cycle. (4 Points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
