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
lesya [120]
3 years ago
12

In this problem, we will explore how deepening the pipeline affects performance in two ways: faster clock cycle and increased st

alls due to data and control hazards. Assume that the original machine is a 5-stage pipeline with a 1 ns clock cycle. The second machine is a 12-stage pipeline with a 0.6 ns clock cycle. The 5-stage pipeline experiences a stall due to a data hazard every five instructions, whereas the 12-stage pipeline experiences three stalls every eight instructions. In addition, branches constitute 20% of the instructions, and the misprediction rate for both machines is 5%.
a. What is the speedup of the 12-stage pipeline over the 5-stage pipeline, taking into account only data hazards?

b. If the branch mispredict penalty for the first machine is 2 cycles but the second machine is 5 cycles, what are the CPIs of each, taking into account the stalls due to branch mispredictions?
Engineering
1 answer:
Nataliya [291]3 years ago
3 0

Answer:

a) the speed up is 1.45

b) the speed up is 1.42

Explanation:

Given

5 stage pipeline = 1 ns clock cycle

12 stage pipeline = 0.6 ns clock cycle

a) The speed up is

speed-upx_{pipeline} =\frac{CPI_{unpipelined} }{CPI_{pipelined} } (\frac{cycle-time_{unpipelined} }{cycle-time_{pipelined} } ) (eq. 1)

The CPIpipelined is

CPI_{pipelined} =CPI_{ideal} +average-stall-cycle/instructions (eq. 2)

The execution time is

execution-time=instruction*CPI_{pipelined} *cycle-time_{unpipelined} (eq. 3)

The CPI for 5-stage pipeline is

CPI = 6/5

cycle time = 1 s

The CPI for 12-stage pipeline is

CPI = 11/8

cycle time = 0.6 s

Replacing values in equation 1

speed-up_{pipeline} =\frac{I*\frac{6}{5}*1 }{I*\frac{11}{8}*0.6 } =\frac{1.2}{1.375*0.6} =1.45

b) The equation for CPI instruction in 5-stage is

CPI_{5} =CPI_{time} +instructions-of-5-stage*cycletime*number-of-cycles=\frac{6}{5} +(\frac{20}{100} )*0.05*2=1.22

For CPI instruction in 12-stage is

CPI_{12} =\frac{11}{8} +(\frac{20}{100} )*0.05*5=1.43

The speed up is using the equation 1

speed-up=\frac{1*1.22*1}{1*1.43*0.6} =1.42

You might be interested in
You are considering building a residential wind power system to produce 6,000 kWh of electricity each year. The installed cost o
alisha [4.7K]

Answer:

leveled cost of electricity LCOE is 0.1159/kwh

Explanation:

given data:

installation cost of system = $1.50/winstalled

capacity factor = 22%

life = 10 year

rate of interest 8%

operation and maintenance cost = $0.04 / kwh generated

capcaitence recovery factorCRF = \frac{i(i+1)^n}{(i+1)^n -1}

i= rate of interest

n = annuity period

CRF = \frac{0.08(1+0.08)^10}}{(1+0.08)^{10} -1} = 0.14903

LCOE = \frac{cost\ of \installation \times CRF}{hours/ available \times capacity\ factor} + variable\ o&M\ cost

=  \frac{1.50\times 1000/kw \times 0.14903}{8760\times 0.22} + 0.04/kwh

          = 0.1159/kwh + 0.04 /kwh

          = 0.1559 /kwh

8 0
3 years ago
1) Which step in the Design Process utilizes technical drawings to provide information necessary to
Natalija [7]

Answer: produce a product

Explanation:

7 0
2 years ago
g Calculate a better value for the convection coefficient using resources from heat transfer. Assume forced convection of the ai
ollegr [7]

Answer:results for h should on the same order of magnitude of the value I provided. If it isn't, check your units. Update to you calculated values for h and resolve your model.

Explanation:

4 0
3 years ago
Name three functions of anti-rust engine additive.
Dmitry_Shevchenko [17]

Answer:

Prevent rust in the cooling system, prevent a clogged heater core, and to prevent the water pump from seizing.

Explanation:

5 0
3 years ago
All of these are true about steel EXCEPT that:
natta225 [31]

Answer:B) heat tends to strengthen high-strength steel.

Explanation: You are right it is B

3 0
2 years ago
Other questions:
  • Bananas are to be cooled from 28°C to 12°C at a rate of 1140 kg/h by a refrigerator that operates on a vapor-compression refrige
    6·1 answer
  • N2 flows through an insulated horizontal tube at steady state. With an inlet temperature of 150°C and a velocity change from 2 m
    11·1 answer
  • Consider a rectangular wing mounted in a full-scale wind tunnel. The wing model completely spans the test section so that the fl
    6·1 answer
  • How do people eat with there noses shut
    12·2 answers
  • A misfire code is a type ____ DTC<br> A) 1 or 2<br> B) a or b<br> C) c or d<br> D l or ll
    15·1 answer
  • Select the correct answer from each drop-down menu.
    14·1 answer
  • Consider an infinite lattice with coordination number z in which every site is occupied by a molecule. (As a reminder, the coord
    5·1 answer
  • Select the correct answer. which process involves creating a product by heating metals and changing their shape through the appl
    13·1 answer
  • Visual perception is a mental process that is non selective<br> True<br> False
    14·1 answer
  • Never operate electric tools outdoors or in wet conditions unless circuit is protected by what?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!