Home /
Expert Answers /
Computer Science /
6-36-marks-consider-the-following-code-is-executed-on-pipelined-datapath-with-only-structural-h-pa515
(Solved):
6. [36 marks] Consider the following code is executed on pipelined datapath with only structural h ...
6. [36 marks] Consider the following code is executed on pipelined datapath with only structural hazard solved. (a) Referring to the above code, which registers and how many times each of those registers are affected by Data Hazard. (b) Draw a diagram, by using arrow(s) to indicate Forwarding and cross (X) to indicate Stall [Referring to an example below], to illustrate how Forwarding and Stall are used to execute the above code without having Data Hazard. The arrow should correctly indicate the Forwarding to the upper or lower input of the ALU. (c) Based on your answer at part (b), how many cycles are required to execute the above code?