Question: Let's say we have a datapath where the execution stages take the following amounts of time: a. If we implemented this as a single-cycle CPU,


Let's say we have a datapath where the execution stages take the following amounts of time: a. If we implemented this as a single-cycle CPU, how long would a clock cycle be? Show your work. b. If we implemented this as a multi-cycle CPU, how long would a clock cycle be, and why? (Remember, all the clock cycles have to be the same length.) We're running a program on that CPU with the following instruction mix. For the following questions, use this instruction mix in your calculations. a. For the single-cycle pipeline from part 2a, calculate the average latency of a load instruction: in cycles (why is it this number?) in seconds (show your work) b. For the multi-cycle pipeline from part 2b, calculate the average latency of a load instruction: in cycles (show your work) in seconds (show your work) Let's say we have a datapath where the execution stages take the following amounts of time: a. If we implemented this as a single-cycle CPU, how long would a clock cycle be? Show your work. b. If we implemented this as a multi-cycle CPU, how long would a clock cycle be, and why? (Remember, all the clock cycles have to be the same length.) We're running a program on that CPU with the following instruction mix. For the following questions, use this instruction mix in your calculations. a. For the single-cycle pipeline from part 2a, calculate the average latency of a load instruction: in cycles (why is it this number?) in seconds (show your work) b. For the multi-cycle pipeline from part 2b, calculate the average latency of a load instruction: in cycles (show your work) in seconds (show your work)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
