Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Computer Science homework question 1. The following code adds integers in two arrays (whose address is in $s0 and $s1) and stores the results back
Computer Science homework question
1. The following code adds integers in two arrays (whose address is in $s0 and $s1) and stores the results back into the first array. $s2 is initialized to 0. Ss3 is 100 I2: I3: I 4: I5: I6: I7: I8: I9: add SW addi addi addi bne St0, ($s0) Stl, ($s1) Sto, $to, St1 St0, ($s0) $s0, $s0, 4 $s1, $s1, 4 Ss2, $s2, 1 Ss2, $s3, I1 Assume a MIPS processor with a 5-stage pipeline. Branches are not delayed For each of the following implementations of MIPS, show the pipeline diagram from the lF stage of 11 to the IF stage of 11 in the next iteration You are not required to list but you should know which forwarding path is used and when 1. This implementation does not have any forwarding paths. The conditional branch is resolved in the MEM stage and the correct instruction is fetched in the WB stage of the branch instruction. The pipeline stalls before the conditional branch is resolved 1. This implementation has all the forwarding paths needed for better performance. The conditional branch is resolved in the ID stage. The implementation also use a static branch predictor that predicts not-taken. If the prediction is correct, there is no performance penalty on branchesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started