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
Define waves as it applies to electromagnetic fields
julsineya [31]

Waves in the electric and magnetic fields are known as electromagnetic waves. You must first understand what a field is, which is just a technique of giving each square inch of space a numerical value. You may see that as a temperature field, for instance, when you look at the weather predictions and they mention the temperature in several locations. Every location on Earth has a unique temperature that can be quantified. Everywhere on Earth has its own wind velocity, which is another form of field. This field differs somewhat from the temperature field in that the wind velocity has both a direction and a magnitude, whereas the temperature just has a magnitude (how hot it is). A vector is a quantity that has both magnitude and direction, hence a field that contains vectors at every location is referred to as a vector field. Vector fields include the magnetic and electric fields. We may examine what would happen if we placed a charged particle at any given position in space. If the charged particle were to accelerate, we would state that the electric field there is the direction in which the particle is moving. In general, positively charged particles will move in the electric field's direction, whereas negatively charged particles will move in the opposite way. Because it is a vector field, the magnetic field exhibits comparable behavior. We discovered in the 19th century that the same interaction, electromagnetism, really produces both electric and magnetic fields. Like an electromagnet, a changing electric field will produce a magnetic field, and a changing magnetic field will induce an electric field (like in a generator). If your system is configured properly, you may have an electric field that fluctuates, which in turn produces a magnetic field, which in turn induces another electric field, which in turn generates another magnetic field, and so on indefinitely. At the speed of light, this oscillation between a strong magnetic field and strong electric field spreads out indefinitely. In reality, light is an electromagnetic wave—an oscillation in the electromagnetic fields. An electric or magnetic field may exist without a medium since they exist in a vacuum, which implies that waves in these fields don't require a medium like sound to flow through.

5 0
2 years ago
Which type of modeling can create virtual designs that can save clients thousands of dollars?
swat32

Answer:

VR Prototyping

VR Prototyping Can Save you Thousands of Dollars.

Explanation:

there you go lad

8 0
3 years ago
Which of the following ranges depicts the 2% tolerance range to the full 9 digits provided?
Lyrx [107]

Answer:

the only one that meets the requirements is option C .

Explanation:

The tolerance of a quantity is the maximum limit of variation allowed for that quantity.

To find it we must have the value of the magnitude, its closest value is the average value, this value can be given or if it is not known it is calculated with the formula

         x_average = ∑ x_{i} / n

The tolerance or error is the current value over the mean value per 100

         Δx₁ = x₁ / x_average

         tolerance = | 100 -Δx₁  100 |

bars indicate absolute value

let's look for these values ​​for each case

a)

    x_average = (2.1700000+ 2.258571429) / 2

    x_average = 2.2142857145

fluctuation for x₁

        Δx₁ = 2.17000 / 2.2142857145

        Tolerance = 100 - 97.999999991

        Tolerance = 2.000000001%

fluctuation x₂

        Δx₂ = 2.258571429 / 2.2142857145

        Δx2 = 1.02

        tolerance = 100 - 102.000000009

        tolerance 2.000000001%

b)

    x_average = (2.2 + 2.29) / 2

    x_average = 2,245

fluctuation x₁

         Δx₁ = 2.2 / 2.245

         Δx₁ = 0.9799554

         tolerance = 100 - 97,999

         Tolerance = 2.00446%

fluctuation x₂

          Δx₂ = 2.29 / 2.245

          Δx₂ = 1.0200445

          Tolerance = 2.00445%

c)

   x_average = (2.211445 +2.3) / 2

   x_average = 2.2557225

       Δx₁ = 2.211445 / 2.2557225 = 0.9803710

       tolerance = 100 - 98.0371

       tolerance = 1.96%

       Δx₂ = 2.3 / 2.2557225 = 1.024624

       tolerance = 100 -101.962896

       tolerance = 1.96%

d)

   x_average = (2.20144927 + 2.29130435) / 2

   x_average = 2.24637681

       Δx₁ = 2.20144927 / 2.24637681 = 0.98000043

       tolerance = 100 - 98.000043

       tolerance = 2.000002%

       Δx₂ = 2.29130435 / 2.24637681 = 1.0200000017

       tolerance = 2.0000002%

e)

   x_average = (2 +2,3) / 2

   x_average = 2.15

   Δx₁ = 2 / 2.15 = 0.93023

   tolerance = 100 -93.023

   tolerance = 6.98%

   Δx₂ = 2.3 / 2.15 = 1.0698

   tolerance = 6.97%

Let's analyze these results, the result E is clearly not in the requested tolerance range, the other values ​​may be within the desired tolerance range depending on the required precision, for the high precision of this exercise the only one that meets the requirements is option C .

4 0
3 years ago
Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by fi
KATRIN_1 [288]

Answer:

Answer for the question:

"Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by finding a weight vector w whose decision boundary wx. "

is explained in the attachment.

Explanation:

8 0
3 years ago
Which system of linear inequalities is represented by the graph? y > x – 2 and y x + 1 y x + 1 y > x – 2 and y < x + 1
KatRina [158]

Answer:

The graph representing the linear inequalities is attached below.

Explanation:

The inequalities given are :

y>x-2   and y<x+1

For tables for values of x and y and get coordinates to plot for both equation.

In the first equation;

y>x-2

y=x-2

y-x = -2

The table will be :

x    y

-2  -4

-1    -3

0     -2

1      -1

2      0

The coordinates to plot are : (-2,-4) , (-1,-3), (0,-2), (1,-1) ,(2,0)

Use a dotted line and shade the part right hand side of the line.

Do the same for the second inequality equation and plot then shade the part satisfying the inequality.

The graph attached shows results.

5 0
3 years ago
Read 2 more answers
Other questions:
  • Where are revolved sections placed in a print? A) in between break lines B) cutting planes are used to identify their locations
    12·1 answer
  • Let suppose, you are going to develop a web-application for school management system. Then what architectural pattern will you u
    9·1 answer
  • g A plane stress element has components sigma x = 160 MPa, tau xy = 100 MPa (CW). Determine the two values pf sigma y for which
    13·1 answer
  • Determine the Thevenin/Norton Equivalent Circuit with respect to the terminalsa,bas shown in the figure. (Here 1A is an independ
    11·1 answer
  • Is it possible to interface an IC with a different technology such as TTL to HCS12 ports? What are the conditions in terms of el
    10·1 answer
  • Fluid systems can distribute pressure unequally to all points in a system.<br><br> True<br> False
    15·1 answer
  • Technician A says when you push the horn button, electromagnetism moves an iron bar inside the horn, which opens and closes cont
    5·2 answers
  • Which statement is true about the future of space travel?
    15·1 answer
  • 3. Determine the most unfavorable arrangement of the crane loads and
    6·1 answer
  • During welding in the vertical position, the torch angle can be varied to control sagging.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!