1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Reil [10]
3 years ago
15

Assume a program requires the execution of 50 x 106 FP instructions, 110 x 106 INT instructions, 80 x 106 L/S instructions, and

16 x 106 branch 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. By how much must we improve the CPI of FP instructions if we want the program to run two times faster? 2. By how much must we improve the CPI of L/S instructions if we want the program to run two times faster? 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%?
Engineering
1 answer:
Pavlova-9 [17]3 years ago
8 0

Answer:

Part A:

1.3568*10^{-5}=\frac{5300* New\  CPI_1+11660*1+8480*4+1696*2}{2*10^9\ Hz} \\ New\ CPI_1=-4.12

CPI cannot be negative so it is not possible to for program to run two times faster.

Part B:

1.3568*10^{-5}=\frac{5300*1+11660*1+8480*New\ CPI_3+1696*2}{2*10^9\ Hz} \\ New\ CPI_3=0.8

CPI reduced by 1-\frac{0.8}{4} = 0.80=80%

Part C:

New Execution Time=\frac{5300*0.6+11660*0.6+8480*2.8+1696*1.4}{2*10^9\ Hz}=1.81472*10^{-5}\ s

Increase in speed=1-\frac{1.81472*10^{-5}}{2.7136*10^{-5}} =0.33125= 33.125\%

Explanation:

FP Instructions=50*106=5300

INT  Instructions=110*106=11660

L/S  Instructions=80*106=8480

Branch  Instructions=16*106=1696

Calculating Execution Time:

Execution Time=\frac{\sum^4_{i=1} Number\ of\ Instruction*\ CPI_{i}}{Clock\ Rate}

Execution Time=\frac{5300*1+11660*1+8480*4+1696*2}{2*10^9\ Hz}

Execution Time=2.7136*10^{-5}\ s

Part A:

For Program to run two times faster,Execution Time (Calculated above) is reduced to half.

New Execution Time=\frac{2.7136*10^{-5}}{2}=1.3568*10^{-5}\ s

1.3568*10^{-5}=\frac{5300* New\  CPI_1+11660*1+8480*4+1696*2}{2*10^9\ Hz} \\ New\ CPI_1=-4.12

CPI cannot be negative so it is not possible to for program to run two times faster.

Part B:

For Program to run two times faster,Execution Time (Calculated above) is reduced to half.

New Execution Time=\frac{2.7136*10^{-5}}{2}=1.3568*10^{-5}\ s

1.3568*10^{-5}=\frac{5300*1+11660*1+8480*New\ CPI_3+1696*2}{2*10^9\ Hz} \\ New\ CPI_3=0.8

CPI reduced by 1-\frac{0.8}{4} = 0.80=80%

Part C:

New\ CPI_1=0.6*Old\ CPI_1=0.6*1=0.6\\New\ CPI_2=0.6*Old\ CPI_2=0.6*1=0.6\\New\ CPI_3=0.7*Old\ CPI_3=0.7*4=2.8\\New\ CPI_4=0.7*Old\ CPI_4=0.7*2=1.4

New Execution Time=\frac{\sum^4_{i=1} Number\ of\ Instruction*\ CPI_{i}}{Clock\ Rate}

New Execution Time=\frac{5300*0.6+11660*0.6+8480*2.8+1696*1.4}{2*10^9\ Hz}=1.81472*10^{-5}\ s

Increase in speed=1-\frac{1.81472*10^{-5}}{2.7136*10^{-5}} =0.33125= 33.125\%

You might be interested in
Here you go!!!!!!!!!!!!!!!!!1
sweet [91]

Answer:

Im confused, what does this mean

Explanation:

i mean, thx lol

3 0
3 years ago
What should -7/56 BE DIVIDE TO GET -1/8​
aivan3 [116]

Answer:

7/7

Explanation:

7/56 ÷1

7/56÷ 7/7

7/56 ×7/7

1/8

5 0
3 years ago
Read 2 more answers
What's the third pedal for in a vehicle​
pshichka [43]

Manual Transmission Cars typically have 3 pedals which are

1) Brake Pedal

2) Gas / Acceleration Pedal

3) Clutch Pedal

6 0
3 years ago
The steel 4140 steel contains 0.4% C, however, it shows higher yield strength and ultimate strength than that of the 1045 (0.45%
Aleonysh [2.5K]

Answer:

4140 steel contains 0.4% C  having higher yield strength and ultimate strength than the 1045 steel contains 0.45% C

Explanation:

we have given 4140 steel contains 0.4% C

we know here that 4140 steel is low steel alloy , and it have low amount of chromium , manganese etc alloying element

and these elements which are present in 4140 steel they increase yield strength and ultimate strength of steel

while in 1045 steel contains 0.45 % c is plain carbon steel

and it do not contain any alloying element

so that 4140 steel contains 0.4% C  having higher yield strength and ultimate strength than the 1045 steel contains 0.45% C

4 0
3 years ago
11. Which of these is NOT true when dealing with refrigerants?
Alexus [3.1K]
Answer is an increase in pressure will cause an decrease in the pressure
4 0
3 years ago
Other questions:
  • Refectories are one of the types of ceramics that have low melting temperature. a)-True b)-False
    7·1 answer
  • In order to avoid slipping in the shop, your footwear should __
    10·2 answers
  • Question 11 (1 point)
    12·1 answer
  • 21.13 The index of refraction of corundum (Al2O3) is anisotropic. Suppose that visible light is passing from one grain to anothe
    5·1 answer
  • A force is a push or pull in? A.a circle B.an arc C.a straight line
    5·1 answer
  • What is the maximum fine for knowingly refilling a disposable refrigerant drum?
    11·1 answer
  • An individual is planning to take an 800-mile trip between two large cities. Three pos-sibilities exist: air, rail, or auto. The
    8·1 answer
  • In a device to produce drinking water, humid air at 320C, 90% relative humidity and 1 atm is cooled to 50C at constant pressure.
    14·1 answer
  • What invention of the Middle Ages contributed to making books easily available?
    15·1 answer
  • What are the two (2) different design elements of scratch?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!