Question: Compute the effective CPI for MIPS using Figure A.27 below. Assume we have made the following measurements of average CPI for instruction types: Assume that

Compute the effective CPI for MIPS using Figure A.27 below. Assume we have made the following measurements of average CPI for instruction types: Assume that 60% of the conditional branches are taken and that all instructions in the other category are ALU instructions. Average the instruction frequencies of gap and gcc to obtain the instruction mix.

Instruction

Clock Cycles

All ALU instructions

1.0
Loads-Store 1.4

Conditional branches

Taken

2.0

Not taken

1.5

Jumps

1.2

Instruction

gap (%)

gcc (%)

Load

26.5

25.1

Store

10.3

13.2

Add

21.1

19.0

Sub

1.7

2.2

Mul

1.4

0.1

Compare

2.8

6.1

Load imm

4.8

2.5

Cond branch

9.3

12.1

Cond move

0.4

0.6

Jump

0.8

0.7

Call

1.6

0.6

Return

1.6

0.6

Shift

3.8

1.1

AND

4.3

4.6

OR

7.9

8.5

XOR

1.8

2.1

Other logical

0.1

0.4

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!