Evaluating a lower-frequency CPU redesign

An engineer compares two CPU designs using a program that executes 120 million instructions. In both designs, 50% of the executed instructions are arithmetic instructions, 30% are loads and 20% are branches.


The cycles per instruction (CPI) value measures the average number of clock cycles used per executed instruction. Use the following class costs as complete cycle accounting, including any stalls; ignore startup and shutdown costs.


Instruction class

Original CPI

Redesigned CPI

Arithmetic

1

1

Load

4

2

Branch

3

3


Grouped bars compare the supplied cycle costs of three instruction classes for two CPU designs.


The original CPU runs at 2.40 GHz; the redesigned CPU runs at 2.00 GHz. The instruction count and instruction mix remain unchanged.


Calculate the original execution time and redesigned execution time in milliseconds, each to one decimal place. Also calculate the speedup, defined as original time divided by redesigned time, to three decimal places.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More CPU Architecture Questions: