Question

In: Computer Science

The basic pipeline for DLX has five stages IF, ID, MEM, and WB. Assuming all memory...

The basic pipeline for DLX has five stages IF, ID, MEM, and WB. Assuming all memory access takes 1 clock cycle

What is the control hazard of an instruction pipeline? Provide three branches of prediction alternatives to reduce branch hazard

What is the data forwarding scheme used to reduce the data hazard?

Solutions

Expert Solution

Control hazards may cause performance loss to the DLX pipelines. They can arise from the pipelining of the branches as well as from other instructions which can change the PC.

Here are three branches of prediction alternatives that are used to reduce branch hazard:

  • Stall pipeline: this scheme is simple to handle the branches such that it can easily free or freeze the pipeline, deleting or holding any instructions after the branch until branch destination is known.
  • Predict taken: this scheme is used to predict the branch as taken. When the branch is decoded and the target address is computed , the branch is taken and fetching and execution starts to begin at target address.
  • Predict not taken: this is high performance scheme and used to predict those branch which is not taken. It actually allows hardware to continue as if the branch is still not executed

Data forwarding is the technique where the result is not needed by the SUB instructions until the ADD operation is performed. In data forwarding, the ALU result from the MEM register is always fed back to the input latches of ALU. This is how data hazards can be reduced using this technique.


Related Solutions

let's imagine a diploid plant cell. a) draw the five stages of mitosis and meiosis assuming...
let's imagine a diploid plant cell. a) draw the five stages of mitosis and meiosis assuming N=3 b) briefly explain each step of mitosis and meiosis.
Assuming that you are the potential customer, analyse FIVE (5) stages of buying process you go...
Assuming that you are the potential customer, analyse FIVE (5) stages of buying process you go through before making decision.
Develop a list of five criteria for a CEO assuming that he or she has effective...
Develop a list of five criteria for a CEO assuming that he or she has effective diversity management and inclusion as a strategic goal.
Explain all 5 (FIVE) stages of Systems Development Life Cycle (SDLC) when developing an accounting system....
Explain all 5 (FIVE) stages of Systems Development Life Cycle (SDLC) when developing an accounting system. In addition, describe the accountant’s roles in each of the phase. (Hint: 25 marks for explanation of SDLC phases + 5 marks for description of accountant’s roles in each phase = 25 marks. Hence a total of 50 marks)
Explain all 5 (FIVE) stages of Systems Development Life Cycle (SDLC) when developing an accounting system....
Explain all 5 (FIVE) stages of Systems Development Life Cycle (SDLC) when developing an accounting system. In addition, describe the accountant’s roles in each of the phase. (Hint: 25 marks for explanation of SDLC phases + 5 marks for description of accountant’s roles in each phase = 25 marks. Hence a total of 50 marks) 5 stages which is 1. system analysis 2. conceptual design 3. physical design 4. implementation and conversion 5. operation and maintenance not less than 1600...
Explain all 5 (FIVE) stages of Systems Development Life Cycle (SDLC) when developing an accounting system....
Explain all 5 (FIVE) stages of Systems Development Life Cycle (SDLC) when developing an accounting system. In addition, describe the accountant’s roles in each of the phase. 5 stages 1. planning 2. analysis 3. design 4. implementation 5. maintenance
All this focus on protecting cash has jogged Mark’s memory and he recalls working on Cash...
All this focus on protecting cash has jogged Mark’s memory and he recalls working on Cash Flow Statements and Cash Budgets while at University. Mark would like you to explain to him the role of these two items in the protection and management of cash.
Katrupi, Inc., has five departments that handle all sales, billing, and collection processes. The five departments...
Katrupi, Inc., has five departments that handle all sales, billing, and collection processes. The five departments are sales, billing, accounts receivable, warehouse, and general ledger. These processes occur as follows: a. A customer mails a purchase order to Katrupi, and it is forwarded to the sales department. b. A sales clerk in the sales department prepares a four‐copy sales order. Two copies are forwarded to billing, one copy to the warehouse, and one copy to general ledger. The sales clerk...
The government has decided to increase the basic business tax of all firms by 5%. Once...
The government has decided to increase the basic business tax of all firms by 5%. Once again, you are hired as a consultant to a firm, but this firm cannot pass along the cost of the tax increase to its customers by way of a price increase of its product because most customers will significantly reduce their purchases. Based on what you have learned in your study of microeconomics:    A. Set forth and describe 2 general courses of action...
(d) A company has got “low” in all five forces when performing Porter’s Five Forces Model...
(d) A company has got “low” in all five forces when performing Porter’s Five Forces Model analysis. Is it a good sign from the company’s perspective? Explain why. (e) How is computer literacy related to information technology? (f) What IT job position is responsible to take the necessary security measures to safeguard the use of personal data in an organization?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT