Question

In: Electrical Engineering

What are various Pipeline Hazards. Explain each hazard with some common solutions that arebeing employed today?

What are various Pipeline Hazards. Explain each hazard with some common solutions that arebeing employed today?

Solutions

Expert Solution

Given that

Pipeline Hazards:

There are situations, called hazards, that prevent the next instruction in the instruction stream from being executing during its designated clock cycle. Hazards reduce the performance from the ideal speedup gained by pipelining.

Here 3 types of pipeline hazards:

1) Data Hazards

2) Control Hazards or instruction Hazards

3) Structural Hazards

1) Data Hazards:

They arise from the pipelining of branches and other instructions that change the PC.

A data hazard is any condition in which either the source or the destination operands of an instruction are not available at the time expected in the pipeline. As a result of which some operation has to be delayed and the pipeline stalls. Whenever there are two instructions one of which depends on the data obtained from the other.

A=3+A

B=A*4

2) Control Hazards or instruction Hazards:

The instruction fetch unit of the CPU is responsible for providing a stream of instructions to the execution unit. The instructions fetched by the fetch unit are in consecutive memory locations and they are executed.

However the problem arises when one of the instructions is a branching instruction to some other memory location. Thus all the instruction fetched in the pipeline from consecutive memory locations are invalid now and need to removed(also called flushing of the pipeline).This induces a stall till new instructions are again fetched from the memory address specified in the branch instruction.

3)Structural Hazards:

  They arise from resource conflicts when the hardware cannot support all possible combinations of instructions in simultaneous overlapped execution.

This situation arises mainly when two instructions require a given hardware resource at the same time and hence for one of the instructions the pipeline needs to be stalled


Related Solutions

What are the various strategies employed by interest groups to accomplish their goals? Discuss each of...
What are the various strategies employed by interest groups to accomplish their goals? Discuss each of these strategies along with their effectiveness. Which of these strategies are utilized the most and why? Provide examples of each.
1.What is a “structural hazard?” What structural hazards does the MIPS R5000 processor, under discussion, have?...
1.What is a “structural hazard?” What structural hazards does the MIPS R5000 processor, under discussion, have? 2.   Describe the stages of the MIPS R5000 processor 3.Describe the differences between forwarding and stalling 4.Why is pipelining dependent on technology 9.   Describe the choices for multiple instruction issue. 8.   What are “control hazards?” Describe the mechanism presented to avoid them.
A-What characteristics are common between Adverse Selection and Moral Hazard? B. Explain the general argument behind...
A-What characteristics are common between Adverse Selection and Moral Hazard? B. Explain the general argument behind moral hazard. C. How does the price elasticity of demand influence the moral hazard problem? D. Explain how an insurer could reduce the scope of the moral hazard problem by introducing a consumer copayment.
What are the various ways that are employed to forecast exchange rates and comment on their...
What are the various ways that are employed to forecast exchange rates and comment on their strengths and weaknesses? To what extent should the international financial manager take account of these forecasts in carrying out their function? (600 WORDS)
Buffers are solutions that resist changes in pH. find a "common" buffer system and explain what...
Buffers are solutions that resist changes in pH. find a "common" buffer system and explain what the buffering components are. post should be a minimum of 150 words No hand writing please
What are some ways occupational physical, biological, or chemical hazards could be decreased?
What are some ways occupational physical, biological, or chemical hazards could be decreased?
What are some governance problems corporations are facing today? Please list at least 10 common corporate...
What are some governance problems corporations are facing today? Please list at least 10 common corporate governance problems, besides the example below. •Example: Lack of board independence. Possible research resources: •TheIIA.org •The National Association of Corporate Directors (NACD)
1. What are some of the common sources of stress? - explain role theory? -explain exhaustion...
1. What are some of the common sources of stress? - explain role theory? -explain exhaustion of resources and burnout? -explain emotional labor? -explain high demands and low control ? -explain high demands and low control
Define “Financial Value”. Explain how this definition leads to the various mathematical methods that are employed...
Define “Financial Value”. Explain how this definition leads to the various mathematical methods that are employed to estimate the financial value of investment securities. In your answer you may examine the impact of risk and uncertainty in determining a result.
Explain the various methods employed by companies to manipulate the valuation of inventory. Where appropriate provide...
Explain the various methods employed by companies to manipulate the valuation of inventory. Where appropriate provide relevant examples.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT