Question: 2. (6 pts) Consider executing the following code on the pipelined datapath that we discussed in class. a). During the 5th cycle, which registers are

 2. (6 pts) Consider executing the following code on the pipelined

2. (6 pts) Consider executing the following code on the pipelined datapath that we discussed in class. a). During the 5th cycle, which registers are being read and which register(s) will be written (using the register file)? add $t5, $t7, St6 sub St1, $t2, St7 add $t4, $t3, $12 sub St3, $t9, St4 sub St9, $t1, St9 b). Explain what the forwarding unit is doing during the 5th cycle of execution. Which registers are being compared? List all pairs of registers that are compared during the 5th cycle for the forwarding unit. (First, you need to determine which instruction's values are in the EX/MEM, which instruction's values are in the MEM/WB register, and which instruction's values are read from the ID/EX register during the 5th cycle. Then check the conditions for forwarding.) ). xplain what the hazard detection unit is doing during the 5th cycle of executa n w ich registers are being compared' List all pars ofre sters that are compared during the e le ort e to determine which instruction's values are in the IF/ID and which instruction's values are in the ID/EX register during the 5th cycle. Then check the conditions for the hazard detection.) ard detection unit u eed 2. (6 pts) Consider executing the following code on the pipelined datapath that we discussed in class. a). During the 5th cycle, which registers are being read and which register(s) will be written (using the register file)? add $t5, $t7, St6 sub St1, $t2, St7 add $t4, $t3, $12 sub St3, $t9, St4 sub St9, $t1, St9 b). Explain what the forwarding unit is doing during the 5th cycle of execution. Which registers are being compared? List all pairs of registers that are compared during the 5th cycle for the forwarding unit. (First, you need to determine which instruction's values are in the EX/MEM, which instruction's values are in the MEM/WB register, and which instruction's values are read from the ID/EX register during the 5th cycle. Then check the conditions for forwarding.) ). xplain what the hazard detection unit is doing during the 5th cycle of executa n w ich registers are being compared' List all pars ofre sters that are compared during the e le ort e to determine which instruction's values are in the IF/ID and which instruction's values are in the ID/EX register during the 5th cycle. Then check the conditions for the hazard detection.) ard detection unit u eed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!