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

  Efficiency and effectiveness of project communications

An effective communication strategy is absolutely essential for achieving effective project integration management. Any time the aim is to integrate numerous concurrently operating activities, the role of communication becomes central. This is as ..

  Constructing truth table of converter circuit

Construct the truth table of the converter circuit using character a , b, c and d (d represents Least Significant Bit) in order to denote the literals input of BCD. Use w, x, y and z (z as Least Significant Bit) in order to represent the output li..

  The processor save in fraction of its visits to keyboard

In an 8-hour interval, an operator controls systems with 60 commands on an average, entered through a keyboard.

  Define purpose and role of an is steering committee

What is the purpose and role of an IS steering committee, or advisory board.

  Explain the design for the memory subsystem

Explain the design for the memory subsystem

  The shortest path distances between the pair

The shortest path distances between the pair

  What are the kinds of information systems

What are the kinds of information systems

  Why search engines use spiders to help rank internet sites

The article "Browser Wars" provides information on the most commonly used browsers. What is a browser, and what purpose does it serve for Internet users.why Search engines use spiders to help rank Internet sites

  Hardware support to memory management

Study any two multicore processor architecture and discuss the following features briefly

  What is required to maintain the data current

This question in not concerned with the effort to initially build/develop and populate a database, but at the place of the ongoing/long term effort to keep the data and DBMS current (up to date and accurate).

  List and explain each of the seven phases of the systems

List and explain each of the seven phases of the systems

  How to create a driver file theaterreservationdriver

use a simple seat reservation system for a theater in C++. The seats in the theater will be represented with a two dimensional array. The closer the seats are to the stage, the more expensive the seats are. Moreover, within a row, the seats at the..

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