Question: Say you have an LC 2 K program with the following characteristics: - ( 3 5 % ) Iw - (

Say you have an LC2K program with the following characteristics:
-\(35\%\) Iw
-\(20\%\) sw
-\(15\%\) add/nor
-\(30\%\) beq
-\(25\%\) of register-writing instructions are immediately followed by an instruction dependent on it. You may assume that it is true no matter what instructions are involved.
-\(70\%\) of branches are not taken
1. What would be the expected CPI of your program using detect-and-stall to resolve data hazards and detect-and-stall for control hazards? Assume we are using the 5-stage pipeline described in class and the stalling is handled by the pipeline. Clearly show your work. [7]
2. What would be the expected CPI of your program using detect-and-forward to resolve data hazards and predict-not-taken for control hazards? Assume we are using the 5-stage pipeline described in class. Clearly show your work. [8]
Say you have an LC 2 K program with the following

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 Programming Questions!