Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions

Question

Why writing matters in the workplace

Answered: 1 week ago