Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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