Question: Q4. Suppose the instructions executed in a program break down into the following categories. Type Percentage Arithmetic and Logic 30% Load 30% Store 15% Conditional

Q4. Suppose the instructions executed in a program break down into the following categories.

Type Percentage

Arithmetic and Logic 30%

Load 30%

Store 15%

Conditional branch 15%

Jump 10%

Assume a 5-stage MIPS pipeline with all needed bypassing paths. Ideally, you can get a CPI of 1 on the processor. However, it cannot be reached because of hazards. A jump instruction always causes a 1 cycle stall. For a branch instruction, if it is taken, there is a 1 cycle stall; otherwise there is no performance penalty. For this application, 60% of the executed conditional branch instructions are taken. In addition, 10% of the load instructions cause 1 cycle stall because of the load-use hazards. What is the overall CPI of this program?

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!