Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Assume a program requires the execution of50×106FP instructions, 110×106INT instructions,80×106L/S instructions, and16×106branch instructions. The CPI for each type of instruction is 1, 1, 4, and 2, respectively. Assume that the processor has a 2 GHz clock rate:

1.14.1 By how much must we improve the CPI of FP instructions if we want the program to run two times faster?

1.14.2 By how much must we improve the CPI of L/S instructions if we want the program to run two times faster?

1.14.3 By how much is the execution time of the program improved if the CPI of INT and FP instructions is reduced byand the CPI of L/S and Branch is reduced by?

Short Answer

Expert verified

1.14.1

CPI is negative so it’s not possible

1.14.2

CPI of L/S instructions must improve by 5 times

1.14.3

Time improvement times

Step by step solution

01

Determine the formulae

Write the formula to calculate the execution time

Executiontime=Clockcyclesclockrate …… (1)

Write the formula to determine the CPI

CPI=Executiontime×clockrateInstructioncount …… (2)

Write the formula to determine the clock cycles

Clockcycle=Instructioncount×CPI ……. (3)

02

Now, we want the program to run two times faster, so we have to find a new CPI

1.14.1

Given,

Total FP Instructions =50×106

INT Instruction =110×106

L/S Instructions =80×106

Branch Instructions =16×106

Each processor clock rate is=2Ghz

Now, calculate Execution time

Executiontime=Clockcyclesclockrate

For FP (Floating point) instructions, Initial Execution time

localid="1655307257244" =50×106×1+110×106×1+80×106×4+16×106×22×109=512×1062×109

=256×10-3

For 16 processors

Clock cycle=512×106

Execution time=256×10-3

Half the number of clock cycles to improve the CPI of FP instructions,

CPIFPimproved=512×1062-110×106×1+80×106×4+16×106×250×106=-206×10650×106=-4.12<0

We cannot improve CPI of FP instructions when we run the program two times faster because it would be negative

03

Determine the New CPI

Half the number of clock cycles to improve the CPI of LS instructions:

Given No. of L/S instruction =

CPIL/Simproved=512×1062-50×106×1+110×106×4+16×106×280×106=64×10680×106=0.8<0

For the program to run two times faster, we must improve the CPI of L/S instruction as,

Given CPI of L/S instruction= 4

40.8=5

Therefore, CPI of L/S instructions must improve by 5 times

04

Determine the execution time of the program if CPI is reduced

Calculate CPI for floating point (FP), Integer (INT), Load/Store (L/S), and Branch instructions.

Reduce 40% on Floating point,

CPIFP=1-1×0.4=0.6

Reduce 40% on INT,

CPIINT=1-1×0.4=0.6

Reduce 30% on load Load/Store,

CPIL/S=4-4×0.3=2.8

Now calculate clock cycles,

clockcycle=InstructionCount×CPI

Clockcycle=50×106×0.6+110×106×0.6+80×106×2.8+16×106×1.4=342.4×106

Initial Execution time is,

=342.4×1062×109=171.2×10-3

The performances for 16 processors are,

Old execution time =256×10-3sec

Execution time after reducing CPI =171.2×10-3sec

Improving execution time of program=0.2560.171=1.497times

times

Time improvement 1.497 times

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

The eight great ideas in computer architecture are similar to ideas from other fields. Match the eight ideas from computer architecture, “Design for Moore’s Law”, “Use Abstraction to Simplify Design”, “Make the Common Case Fast”, “Performance via Parallelism”, “Performance via Pipelining”, “Performance via Prediction”, “Hierarchy of Memories”, and “Dependability via Redundancy” to the following ideas from other fields:

a. Assembly lines in automobile manufacturing

b. Suspension bridge cables

c. Aircraft and marine navigation systems that incorporate wind information

d. Express elevators in buildings

e. Library reserve desk

f. Increasing the gate area on a CMOS transistor to decrease its switching time

g. Adding electromagnetic aircraft catapults (which are electrically-powered as opposed to current steam-powered models), allowed by the increased power generation offerred by the new reactor technology

h. Building self-driving cars whose control systems partially rely on existing sensor systems already installed into the base vehicle, such as lane departure systems and smart cruise control systems

Prove that the NOR gate is universal by showing how to build the AND, OR, and NOT functions using a two-input NOR gate.

Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5.P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2.

a. Which processor has the highest performance expressed in instructions per second?

b. f the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions.

c. We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction?

Assume a program requires the execution of 50×106FP instructions, 110×106INT instructions,80×106L/S instructions, and16×106branch instructions. The CPI for each type of instruction is 1, 1, 4, and 2, respectively. Assume that the processor has a 2 GHz clock rate:

1.14.1 By how much must we improve the CPI of FP instructions if we want the program to run two times faster?

1.14.2 By how much must we improve the CPI of L/S instructions if we want the program to run two times faster?

1.14.3 By how much is the execution time of the program improved if the CPI of INT and FP instructions is reduced by 40%and the CPI of L/S and Branch is reduced by 30%?

Assume that X consists of 3 bits : x2, x1, x0. Write four logic functions that are true if and only if

  • X contains only one 0
  • X contains an even number of 0s
  • X when interpreted as an unsigned binary number is less than 4
  • X when interpreted as a signed (two’s complement) number is negative.
See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free