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

  How the adoption of the technology affects

Your mandate as VP of Technology is to keep the regular projects strong and growing, plan for TechnoSeniors, and overhaul the AllTechComm intranet. Your must make the intranet one in which volunteers could sign up and manage their schedules, profi..

  Show an appropriate message regarding the bonus

show an appropriate message regarding the bonus when the QuarterlySales for the SalesPerson falls within these ranges.

  Make application that will read and process customer history

making a file that Develop an application that would read and process customer history order information from a file.

  Express limitations and current research trends in the area

Autonomous (intelligent) software agents are used in Artificial Intelligence to solve an increasing number of complex problems. explain their main applicability as well as their advantages, limitations and current research trends in the area.

  Program to count the number of times page is opened

Generate a page in order to count the number of times the page is viewed by the user in a single session. Each time page is refreshed or opened in the browser during the session counts as 1 page view.

  Use the queue to reverse the elements of the stack

Write down a function template, reverseStack, that takes a parameter a stack object and a queue object whose elements are of the same type. The function reverseStack uses the queue to reverse the elements of the stack.

  What does the name ajax stand for

What does the name Ajax stand for? What is Ajax, and what does it do? Give an example of how Netflix® uses Ajax, and define why this makes the Web site faster.

  Create the following symbolic equations

Create the following symbolic equations.

  Soda vending machine design

Soda Vending Machine Design,    A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Writing down the code

Suppose that the a, b and c are char variables has been declared. Write some code which reads the first character of next line into a.

  Write program that librarian use to enter a book checkout

Write your class, using your class write a program that a librarian can use to enter a book checkout, remove a checkout when a book is returned, or prints out all the books on loan. check outs should be stored in a list.

  Software driver that will implement a byte-wide data

Design the hardware and software driver that will implement a byte-wide data transfer from your processor to a peripheral device. Each transfer must be accompanied by a strobe to deskew the data. Draw the UML sequence diagram and the timing diagra..

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