Question: Computer Architecture Question 5 (40 Marks) a) Consider a hypothetical four stage processor where the stages are defined as: sl, s2, s3, st. Each stage
Computer Architecture
Question 5 (40 Marks) a) Consider a hypothetical four stage processor where the stages are defined as: sl, s2, s3, st. Each stage requires 1 cycle to complete. Suppose a program consisting of 200 instructions, is executed on this 4-stage processor. 111) i) Draw the timing diagram showing the execution of the first four instructions, considering that the program is running on without pipelining. [4 marks) i) Draw the timing diagram showing the execution of the first four instructions, considering that the program is running with ideal pipelining. Assume that there is no pipeline hazards and dependencies. [4 marks] Compute the execution time of the program without pipelining and with pipelining (no dependencies), and compare the performance improvement for ideal pipelining [4 marks) iv) Consider that the program is running with pipelining, but there are some dependencies. Each instruction is dependent on a specific stage of the instruction immediately before it, particularly stage 53 of each instruction is dependent on stage 4 of the instruction immediately before it. That is: stage 53 of instruction two is dependent on stage 54 of instruction one, ostage s3 of instruction three is dependent on stage 54 of instruction two o and so on To address the hazard created by the dependencies assume that the pipeline will be stalled until the hazard is cleared. No forwarding or other options are available to avoid the hazard Draw the pipeline timing diagram showing the execution of the first four instructions. Indicate the stall (wherever required) by using a "x" in the corresponding pipeline stage. [4 marks] Use the observations from this timing diagram to determine the cycle per instruction (CPI). Show your working. [4 marks] on
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
