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
Handsaw teeth are very sharp: to avoid being cut by the teeth, keep hands and fingers well away from the
siniylev [52]
Handsaw teeth are very sharp: to avoid being cut by the teeth, keep hands and fingers well away from the
path of the blade
6 0
3 years ago
Read 2 more answers
The most important element of green construction is that it is a(n) __________ approach to building. *
madam [21]
Environmentally friendly


Since it focuses on are sustainable and efficient with and are made with the future in mind.
5 0
3 years ago
Ethane (component A - C2H6) and hydrogen (component B) are fed to a differential reactor where they react on the catalyst to for
Fofino [41]
HELP ILL GIVE MOST BRAINLY AND 50 POINTS
HURRY PLEASE component c it is a compound so it will break
4 0
3 years ago
Tech A states that friction brakes lose energy as heat. Tech B states that a brake-by-wire system converts this energy into usef
hjlf
Tech A.......................
4 0
2 years ago
Technician A say's that The most two-stroke engines have a pressure type lubrication system. Technician be says that four stroke
Paul [167]

Question:Technician A say's that The most two-stroke engines have a pressure type lubrication system. Technician be says that four stroke engines do not require the mixing of oil with gasoline . Which of them is correct ?

Answer: Technician  B is   correct

Explanation: Two types of engines exist , the two stroke (example, used in chainsaws)  is a type of engine that uses two strokes--a compression stroke and a return stroke to produce power in a crankshaft combustion cycle and the  four stroke engines(eg lawnmowers) which  uses four strokes,  2-strokes during  compression and exhaustion accompanied by 2 return strokes for each of the initial process to produce power in a combustion cycle.

While a 2 stroke system engine, requires mixing of oil and fuel to the crankshaft before  forcing  the mixture into the cylinder and do not require a pressurized system.  The 4 stroke system uses a splash and pressurized system where oil is not mixed with gasoline but drawn from the sump and  directed to  the main moving  parts of  crankshaft through its channels.

We can therefore say that Technician A is wrong while Technician B is  correct

6 0
3 years ago
Other questions:
  • "At 195 miles long, and with 7,325 miles of coastline, the Chesapeake Bay is the largest and most complex estuary in the United
    6·1 answer
  • Air modeled as an ideal gas enters a well-insulated diffuser operating at steady state at 270 K with a velocity of 180 m/s and e
    11·1 answer
  • Consider a fully developed laminar flow in a circular pipe. The velocity at R/2 (midway between the wall surface and the centerl
    6·1 answer
  • A 1 m wide continuous footing is designed to support an axial column load of 250 kN per meter of wall length. The footing is pla
    11·1 answer
  • At 45° latitude, the gravitational acceleration as a function of elevation z above sea level is given by g = a − bz , where a =
    9·1 answer
  • What is engine knock? What cause the engine knock problem?
    5·1 answer
  • I'm bored. I want to talk to you humans! weird. STUPID QUARANTINE!!! So. What are yall up to?
    12·1 answer
  • Which is the maximum length for any opening on the surface of a 2G SMAW guided bend test specimen?
    11·1 answer
  • CAN SOMEONE GIVE ME AND ANSWER AND EXPLANTION FOR ALL THESE QUESTIONS PLEASE, I AM STRUGGLING
    15·1 answer
  • a circular pile, 19 m long is driven into a homogeneous sand layer. The piles width is 0.5 m. The standard penetration resistanc
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!