Problem 1. (10 points): The following instructions executed on a 5-stage pipelined datapath: If there is no forwarding o
Posted: Wed Apr 27, 2022 3:15 pm
Problem 1. (10 points): The following instructions executed on a 5-stage pipelined datapath: If there is no forwarding or hazard detection, insert NOPS to ensure correct execution. (Hint: for the first sw instruction, register rl needs to be written first by “add" instruction and then sw instruction can read it.) add SW lw add ri, r5, r3 ri, 0 (r2) ri, 4 (r2) r5, r5, r1 ri, 0 (r2) SW