Due: Friday, November 15, 2024, 11:00 am (start of the class)
Email Ying your homework. The email subject should follow this format CS232 Fall2024 HW7 -- Your Name.
Pipelining
Given the following parameters, answer the questions below. Assume there is no need to stall to solve any hazard.
- Processing an instruction takes 10 steps.
- The single stage CPU has all 10 steps in one stage and 1 latch layer.
- A 10-stage CPU has to execute the same 10 steps in 10 stages, one step per stage, and will have a latch layer for each stage.
- The logic delay of each step is 3ns.
- The latch delay is 1ns.
- What is the time needed to execute one instruction on the single stage CPU?
- What is the time needed to execute one instruction on the 10-stage CPU?
- Assume there is a 5-stage CPU, which has to execute the same 10 steps in 5 stages. This 5-stage CPU is designed in a way to avoid possible bottleneck. What is the time needed to execute one instruction on the 5-stage CPU?
- What is the speedup for 1000 instructions using a 5-stage CPU?
- What is the speedup for 1000 instructions using a 10-stage CPU?
Assume that 20% of the instructions needed to be executed are conditional branches.
- What is the probability there are no conditional branches currently
being executed in a 5-stage CPU?
- What is the probability there are no conditional branches currently
being executed in a 10-stage CPU?
© 2024 Ying Li. Page last modified:
.