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]
2 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]2 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
A heat engine that receives heat from a furnace at 1200°C and rejects waste heat to a river at 20°C has a thermal efficiency of
viktelen [127]

Answer:

second-law efficiency  = 62.42 %

Explanation:

given data

temperature T1 = 1200°C = 1473 K

temperature T2 = 20°C  =  293 K

thermal efficiency η = 50 percent

solution

as we know that thermal efficiency of reversible heat engine between same  temp reservoir

so here

efficiency ( reversible ) η1 = 1 - \frac{T2}{T1}      ............1

efficiency ( reversible ) η1  = 1 - \frac{293}{1473}  

so efficiency ( reversible ) η1  = 0.801

so here second-law efficiency of this power plant is

second-law efficiency = \frac{thernal\ efficiency}{0.801}

second-law efficiency = \frac{50}{0.801}  

second-law efficiency  = 62.42 %

3 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
Assume (for simplicity in this exercise) that only one tuple fits in a block and memory holds at most three blocks. Show the run
den301095 [7]

Answer:

See explaination

Explanation:

Let's define tuple as an immutable list of Python objects which means it can not be changed in any way once it has been created.

Take a look at the attached file for a further detailed and step by step solution of the given problem.

6 0
2 years ago
An excavation is at risk for cave-in and water accumulation because of the excess soil that has accumulated. What type of excava
N76 [4]

Answer:Topographic map. Contour line. Learning Objectives. After completing this chapter, you will be able to: □ Define civil engineering and civil drafting.

Explanation:

4 0
3 years ago
Read 2 more answers
How to make a police car ​
S_A_V [24]

search it and you will get on internet

3 0
2 years ago
Other questions:
  • Air flows through a device such that the stagnation pressure is 0.4 MPa, the stagnation temperature is 400°C, and the velocity i
    8·1 answer
  • Due at 11:59pm please help
    14·1 answer
  • A pressure gage at the inlet to a gas compressor indicates that the gage pressure is 40.0 kPa. Atmospheric pressure is 1.01 bar.
    5·1 answer
  • Complete the following sentence. Engineers explore biology, chemistry, and physics for use in scenarios.
    8·2 answers
  • Which of the following is true Select one: a. HTML stands for Hyper Text Markup Language is a language for describing web pages
    6·1 answer
  • Can someone Please help me..? If I'm your Onii-San then answer. And get brainliest. Make sure to explain why..
    15·1 answer
  • Consider a potato being baked in an oven that is maintained at a constant temperature. the temperature of the potato is observed
    14·1 answer
  • PLEASE HELP
    15·2 answers
  • One of the key characteristics of ________ sessions is that no idea should be immediately accepted or rejected. prototype alpha
    15·1 answer
  • What is the minimum clamp time for gluing a panel?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!