Question: Problem 2: Data Hazards (25 points) For this problem, reference the following piece of assembly code. All parts of this problem use the 5-stage LC2K

 Problem 2: Data Hazards (25 points) For this problem, reference thefollowing piece of assembly code. All parts of this problem use the

Problem 2: Data Hazards (25 points) For this problem, reference the following piece of assembly code. All parts of this problem use the 5-stage LC2K pipeline datapath as presented in lecture one num1 num2 add 2 //add1 add nor halt 2 4 //add2 /or1 //halt one .fill num1 .fill7 num2 .fill 4 a) Complete the table assuming detect-and-stall is used to deal with data hazards Use - in the table to denote stalls. You may not need all the columns Cycle: 12 4 12 13 14 15 16 17 lw1 lw2 lw3 IF ID EX | MEM | WB add1 lw4 add2 nor1 Problem 2: Data Hazards (25 points) For this problem, reference the following piece of assembly code. All parts of this problem use the 5-stage LC2K pipeline datapath as presented in lecture one num1 num2 add 2 //add1 add nor halt 2 4 //add2 /or1 //halt one .fill num1 .fill7 num2 .fill 4 a) Complete the table assuming detect-and-stall is used to deal with data hazards Use - in the table to denote stalls. You may not need all the columns Cycle: 12 4 12 13 14 15 16 17 lw1 lw2 lw3 IF ID EX | MEM | WB add1 lw4 add2 nor1

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!