Explain what the hazard detection unit is doing

Assignment Help Computer Engineering
Reference no: EM13331291

Consider the following code fragment for the MIPS five stage pipelined processor:

instruction1 add $1, $8, $3 //$1 = $8 + $3

instruction2 sub $2, $1, $8 //$2 = $1 - $8

instruction3 add $3, $2, $1 //$3 = $2 + $1

instruction4 sub $5, $1, $2 //$5 = $1 - $2

instruction5 add $4, $2, $1 //$4 = $2 + $1

instruction6 add $9, $12, $11 //$9 = $12 + $11

a) You are to identify the problems, if any, which may be encountered in the pipeline. If you do identify any problems you are to explain them by using the instruction format terms <rd>, <rs>, <rt> for those instructions where there are problems.

b) At the end of clock cycle 6, which registers are being read and which register is being written. You must also identify which registers belong to which instruction in your answer.

b) Explain what the forwarding unit is doing during clock cycle 6. You are to identify which, if any, comparisons are being made in the instruction format terms <rd>, <rs>, <rt> for those instructions where there might be comparisons.

d) The code fragment is now changed to:

instruction1 add $1, $2, $3 //$1 = $2 + $3

instruction2 sub $4, $1, $6 //$4 = $1 - $6

instruction3 add $3, $2, $1 //$3 = $2 + $1

instruction4 lw $6, 8($3) //$6 = Memory[$3 + 8]

instruction5 sub $5, $1, $6 //$5 = $1 - $6

instruction6 add $9, $12, $11 //$9 = $12 + $11

Explain what the hazard detection unit is doing, for this new code fragment, during clock cycle 6 of execution. You are to state any comparisons that are being made in the instruction format terms <rd>, <rs>, <rt> for those instructions that might be compared. You are to state what the hazard unit will do in this case.

Reference no: EM13331291

Questions Cloud

Find the marshallian demand : Suppose that an individual with income I cares about two goods, X and Y. The price of the two goods is Px and Py. The individual has the following utility function:
Why there is a delay through combinational logic : In this representation every instruction takes at most 4 steps to complete a clock cycle. Explain what happens in each step of the clock cycle.
What is the displacement current in the wire at that time : A silver wire has resistivity ? = 1.96 × 10-8 ?·m and a cross-sectional area of 5.00 mm2. What is the displacement current in the wire at that time
What is the price elasticity of demandis it elastic : If the price of a good increases by 8% and the quantity demanded decreases by 12%, what is the price elasticity of demand?is it elastic, inelastic or unitary elastic?
Explain what the hazard detection unit is doing : You are to identify the problems, if any, which may be encountered in the pipeline. If you do identify any problems you are to explain them by using the instruction format terms , , for those instructions where there are problems.
What is its profit maximizing condition if the market price : If the cost function for John's Shoe Repair is C(q) = 100+10q-q^2+(1/3)q^3, what is the firm's marginal cost function? What is its profit maximizing condition if the market price is p? What is its supply curve?
Explain what is the reactant : In the following chemical equation, what is the reactant. CuSO4·5H2O(s) ® CuO(s) + SO3(g) + 5H2O(l)
What are the marginal benefit and marginal cost functions : Assume the only choice variable is x. The total benefit function is B(x) =170x - x2 and the cost function is C(x) = 100 - 10x + 2x2
Gdp a less informative measure of economic well-being : GDP does not include the value of used goods that are resold. Why would including such transactions make GDP a less informative measure of economic well-being?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd