Question: Please answer the quesitons below: 9 . Now we consider that the working of a pipelined processor, with the normal 5 - step pipeline discussed
Please answer the quesitons below:
Now we consider that the working of a pipelined processor, with the normal step pipeline discussed in class. Instruction Fetch Decode Execute Mem Writeback.
n instructions will in the ideal case no hazards take n cycles to complete. However, we actually were given this code to run:
add $s $s $s #
lw $s$s #
add $s $s $s #
add $s $s $s #
This is not the ideal case. Why not can you spot the hazard? How long will the code take to run assuming no smart solutions such as bypassing etc. Could this have been remedied with creative reordering of the instructions?
In class, we discussed a processor that takes ps for a clock cycle. When stage pipelined, the processor required ps for a clock cycle. How much was the slowdown in latency, and why did it happen?
Hint: not every substep needed ps register readwrite needed but all steps were made the same length to fit. Flesh out the details.
Despite the increased latency, the pipeline executes a long sequence of instructions faster than the singlecycle design. Explain why, and how much speedup we get in the ideal case. Given cycle instructions, cycle, cycle, cycle, and cycle. What is the average CPI, and how fast in million instructions per second will the processor run this program? Answer for both the singlecycle and the pipelined version.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
