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
hellooooo guyssssddddddsss i was talking to some people help me find them if you are them tell me and tyyyyyyyyyyyyyyyyyyyyyyyyy
mash [69]
Huh





hmmm

Mmmmmmmmmmmmmm
5 0
3 years ago
Read 2 more answers
Air is compressed adiabatically from p1 1 bar, T1 300 K to p2 15 bar, v2 0.1227 m3 /kg. The air is then cooled at constant volum
sashaice [31]

Answer:

Work done for the adiabatic process = -247873.6 J/kg = - 247.9 KJ/kg

Heat transfer for the constant volume process = - 244.91 KJ/kg

Explanation:

For the first State,

P₁ = 1 bar = 10⁵ Pa

T₁ = 300 K

V₁ = ?

Second state

P₂ = 15 bar = 15 × 10⁵ Pa

T₂ = ?

V₂ = 0.1227 m³/kg

Third state

P₃ = ?

T₃ = 300 K

V₃ = ?

We require the workdone for step 1-2 (which is adiabatic)

And heat transferred for steps 2-3 (which is isochoric/constant volume)

Work done for an adiabatic process is given by

W = K(V₂¹⁻ʸ - V₁¹⁻ʸ)/(1 - γ)

where γ = ratio of specific heats = 1.4 for air since air is mostly diatomic

K = PVʸ

Using state 2 to calculate for k

K = P₂V₂ʸ = (15 × 10⁵)(0.1227)¹•⁴ = 79519.5

We also need V₁

For an adiabatic process

P₁V₁ʸ = P₂V₂ʸ = K

P₁V₁ʸ = K

(10⁵) (V₁¹•⁴) = 79519.5

V₁ = 0.849 m³/kg

W = K(V₂¹⁻ʸ - V₁¹⁻ʸ)/(1 - γ)

W = 79519.5 [(0.1227)⁻⁰•⁴ - (0.849)⁻⁰•⁴]/(1 - 1.4)

W = (79519.5 × 1.247)/(-0.4) = - 247873.6 J/kg = - 247.9 KJ/kg

To calculate the heat transferred for the constant volume process

Heat transferred = Cᵥ (ΔT)

where Cᵥ = specific heat capacity at constant volume for air = 0.718 KJ/kgK

ΔT = T₃ - T₂

We need to calculate for T₂

Assuming air is an ideal gas,

PV = mRT

T = PV/mR

At state 2,

V/m = 0.1227 m³/kg

P₂ = 15 bar = 15 × 10⁵ Pa

R = gas constant for air = 287.1 J/kgK

T₂ = 15 × 10⁵ × 0.1227/287.1 = 641.1 K

Q = 0.718 (300 - 641.1) = - 244.91 KJ/kg

7 0
3 years ago
A wheel has an initial clockwise angular velocity of 10 rad/sec and a constant angular acceleration of 3 rad/sec2. What time is
tino4ka555 [31]
0 duuuuuuuuuuuuuuuuuuuuh
7 0
3 years ago
What can electricity from solar power be used for?<br><br>please someone help​
ollegr [7]

Answer:

Swimming pools are one of the greatest joys of summer for children and parents alike. Everyone is excited the first day the pool is opened—except when the pool is just too cold to jump into it. To fix that problem, you can add a solar blanket that will warm the water. The basic floating blanket is a passive heating device that works simply by absorbing the sun's heat and transmitting it to the water.

Explanation:

5 0
3 years ago
In a foundry, metal castings are cooled by quenching in an oil bath. Typically, a casting weighting 20 kg and at a temperature o
Irina18 [472]

Answer:

4.18 J/KgK

Explanation:

Equilibrium point is reached when

m₁*c₁(T₁-T) = m₂*c₂(T -t₂)

m1 = 20

c1 = 0.5

T1 = 450

m2 = 150 kg

c2 = 2.6

T2 = 50

putting these values into the formula

20*0.5 (450-T) = 150*2.6(T  - 50)

4500 - 10T = 390T<em> - 19500</em>

4500 + 19500 = 390T + 10T

24,000 = 400T

T = 24000/400

= 60⁰C

ΔSmetal = m1*c1In[t + 273]/[T1+273]

= 20*0.5 In (60+273)/450+273

= 10 ln(333/723)

= 10 * -0.7752

= -7.752

ΔS/oil =

m2*s2(60 + 273)/50 + 273)

= 150*2.6ln(333/323)

= 390 * 0.03048

= 11.88j/KgK

Δ<em>total = -7.7+11.8</em>

<em>= </em><em>4.18J/KgK</em>

this is the enthropy change

5 0
3 years ago
Other questions:
  • A 20.0 µF capacitor is charged to a potential difference of 800 V. The terminals of the charged capacitor are then connected to
    12·1 answer
  • Determine the angles made by the vector V = - 36i + 15j with the positive x- and y-axes. Write the unit vector n in the directio
    11·1 answer
  • Which phrase best describes a safety-critical system?
    15·1 answer
  • A classroom that normally contains 40 people is to be air-conditioned with window air-conditioning units of 5 kW cooling capacit
    6·1 answer
  • True False. First angle projection type used in United states.
    15·1 answer
  • An organization is struggling to differentiate threats from normal traffic and access to systems. A security engineer has been a
    12·1 answer
  • An alloy has a yield strength of 41 ksi, a tensile strength of 57 ksi, and an elastic modulus of 16 * 106 psi. A cylindrical spe
    5·1 answer
  • Taking the convection heat transfer coefficient on both sides of the plate to be 860 W/m2 ·K, deter- mine the temperature of the
    10·1 answer
  • Segment AB is congruent to segment AB.<br><br> This statement shows the ______ property.
    7·1 answer
  • A vehicle is towed into a shop with a thrown serpentine belt.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!