Question: Computer Architecture 1. ( 6 points) Suppose the following code segment is going to be executed in the 5 -stage pipeline of the SRC processor.

Computer Architecture 1. ( 6 points) Suppose the following code segment is going to be executed in the 5 -stage pipeline of the SRC processor. Id r9, addr 1 sub r5,r3,r9 add r7,r5,r10 st r7, addr 2 (a) (2 points) Find out all RAW hazards in the code segment. (b) (2 points) How many cycles are needed to complete the execution if data forwarding is used? Explain how all the RAW hazards are resolved. (c) (2 points) How many cycles are needed to complete the execution if data forwarding is not used? If an instruction needs to be stalled, list the number of cycles that this instruction has to be stalled. 2. (4 points) Referring to the following 1-bus SRC microarchitecture, write the concrete RTN steps for the instruction "sub ra, rb, rc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
