Question: 1. Given an instruction sequence with instructions in classes A, B, and C as the table below: Instruction Class A B C CPI 2 1

1. Given an instruction sequence with instructions in classes A, B, and C as the table below:

Instruction Class A B C
CPI 2 1 3
Instruction Count 10 40 10

Total number of instructions in this sequence =

Number of clock cycles from instruction class A =

Number of clock cycles from instruction class B =

Number of clock cycles from instruction class C =

Total number of clock cycles =

Average CPI for this instruction sequence = (Answer with a floating point value with 1 digit to the right of the decimal point, e.g. 4.5)

2. Given an instruction sequence with instructions in classes A, B, and C as the table below (same as the last two questions):

Instruction Class A B C
CPI 2 1 3
Instruction Count 10 40 10

Suppose we are considering improving the execution with the following restrictions:

  • We can only select one class of instructions to improve; and
  • We will be able to reduce the execution time for the selected instruction class by 50%;
  • No changes to other instructions.

Which instruction class should we select to achieve the most improvement?

class A

class B

class C

Either one: the improvement will always be the same.

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!