Question: Using the same pipelined datapath as in Question 3 and the same instructions, rearrange them to minimize the number of hazards, and redetermine the sequence

Using the same pipelined datapath as in Question 3 and the same instructions, rearrange them to minimize the number of hazards, and redetermine the sequence of the instructions moving through the pipeline. Provide a brief reasoning why you moved around certain instructions. This new code should be written both in the instruction column. This new code should also be written below the table without any NOPs that might be inserted by the hazard detection unit. Inst. 1: ld x3 0(x4) Inst. 2: sub x5 x3 x2 Inst. 3: or x6 x4 x5 Inst. 4: sd x5 20(x6) Inst. 5: sd x6 20(x1) Inst. 6: add x7 x3 x5 Instruction 1 CC2 CC3 CC4 CC5 CC6 CC7 CC8 CC9 CC10 CC12 CC13 CC14 Using the same pipelined datapath as in Question 3 and the same instructions, rearrange them to minimize the number of hazards, and redetermine the sequence of the instructions moving through the pipeline. Provide a brief reasoning why you moved around certain instructions. This new code should be written both in the instruction column. This new code should also be written below the table without any NOPs that might be inserted by the hazard detection unit. Inst. 1: ld x3 0(x4) Inst. 2: sub x5 x3 x2 Inst. 3: or x6 x4 x5 Inst. 4: sd x5 20(x6) Inst. 5: sd x6 20(x1) Inst. 6: add x7 x3 x5 Instruction 1 CC2 CC3 CC4 CC5 CC6 CC7 CC8 CC9 CC10 CC12 CC13 CC14
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
