Question: 3. Consider a version of the pipeline from Section 4.5 in the book that does not handle data hazards (i.e. the programmer is responsible for


3. Consider a version of the pipeline from Section 4.5 in the book that does not handle data hazards (i.e. the programmer is responsible for addressing data hazards by inserting NOPS where necessary). Supposed that after optimization a typical n-instruction program requires an additional 0 . 4 *n NOPs to correctly handle data hazards. (16 pts) Supposed that the cycle time of this pipeline without forwarding is 250 ps. Supposed also that adding forwarding hardware will reduce the number of NOPs from 0.4 n to 0.05*n, but will increase the cycle time to 300ps. What is the speedup of this new pipeline compared to the one without forwarding? (4 pts) a. b. Different programs will require different amounts of NOPs. How many NOPs (as percentage of all instructions in a program) can remain in the typical program before that program runs slower on the pipeline with forwarding? (4 pts) Can a program with only 0.075*n NOPs possible run faster on the pipeline with forwarding? Explain why or why not. (4 pts) c. 3. Consider a version of the pipeline from Section 4.5 in the book that does not handle data hazards (i.e. the programmer is responsible for addressing data hazards by inserting NOPS where necessary). Supposed that after optimization a typical n-instruction program requires an additional 0 . 4 *n NOPs to correctly handle data hazards. (16 pts) Supposed that the cycle time of this pipeline without forwarding is 250 ps. Supposed also that adding forwarding hardware will reduce the number of NOPs from 0.4 n to 0.05*n, but will increase the cycle time to 300ps. What is the speedup of this new pipeline compared to the one without forwarding? (4 pts) a. b. Different programs will require different amounts of NOPs. How many NOPs (as percentage of all instructions in a program) can remain in the typical program before that program runs slower on the pipeline with forwarding? (4 pts) Can a program with only 0.075*n NOPs possible run faster on the pipeline with forwarding? Explain why or why not. (4 pts) c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
