What is the instruction format class and why

Assignment Help Computer Engineering
Reference no: EM13331272

1.      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.

 

2.        The following diagram reproduces the MIPS Single Cycle Datapath (Figure 5.1) from Computer Organization & Design: The Hardware Software Interface by Patterson and Hennessy.

268_adress.png

a)      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.

 

b)       Clock cycle time = delay through combinational logic + register setup time + clock skew + delay through register. Briefly explain:

i) Why there is a delay through combinational logic.

ii) What the register setup time is.

iii) What clock skew is.

iv) What the delay through register is.

 

c)      What type of MIPS instruction is represented by the diagram below? Provide two examples of this type of MIPS instruction.

Op

Rs

Rt

Rd

Shamt

funt

 

d)     Explain what each field represents in the diagram from part c of this question (except the shamt field). In your explanation include the number of bits that each field requires and show each field's bit representation in the instruction format.

 

3) a) Given the following MIPS machine instructions:

(i) 00010010111110010111111010111001

(ii) 00000000110010010111100000101010

For each machine instruction:

a)      What is the instruction format class and why?

b)      What operation will be performed and how did you identify the operation?

c)      In decimal and in instruction format order, what registers (if any) represent rd, rs, rt? Hint rd is not always used. If you think no registers are used, state it.

d)     What MIPS registers, if any, are used? In the case that MIPS registers are used, name them instruction format order and in terms of $at, $v0, $t0 etc. Hint rd is not always used. If you think no registers are used, state so.

e)      In the case that an immediate value or an address is used, express it in hex. If you think the instruction does not use an immediate or an address, state so.

b) Explain the operation of the 'MIPS andi ' instruction. Illustrate your answer with an appropriate example. In your answer you must provide details of the andi instruction format and of what each field in that instruction format does and how an andi instruction is identified.

4) Explain the operation of the following MIPS assembler instruction as it passes through each stage of the MIPS pipeline. You are to highlight any parallelism and redundancy that may occur as the instruction passes through the various pipeline stages. You are to assume there is no impact on this instruction by previously executed instructions. A diagram is not required.

add $s1, $s2, $s3        //$s1 = $s2 + $s3

Reference no: EM13331272

Questions Cloud

How much more does it create : Assume that the reserve requirement is 5%. All other things equal, will the money supply expand more if the Federal Reserve busy $2,000 worth of bonds or if someone deposits in a bank $2,000 that he had been hiding in his cookie jar? If one creates m..
How much will your payments be? using compound interest : It is May 1. You have just bought $2000 worth of furniture. You will pay for it in 24 equal monthly payments starting at the end of May next year. Interest is 6% nominal per year, compounded monthly. How much will your payments be? Using compound int..
Case study describing one specific issue at the organization : 1. Develop the final project as a case study describing an  organization of your choice/OR an organization you researched using various content from (example: diversity, culture, motivation, leadership).
What is the amount of the united states net exports : Suppose foreigners spend $7 billion on U.S exports in a specific year and Americans spend $5 billion on imports from abroad in the same year, what is the amount of the United States net exports?
What is the instruction format class and why : Explain the operation of the 'MIPS andi ' instruction. Illustrate your answer with an appropriate example. In your answer you must provide details of the andi instruction format and of what each field in that instruction format does and how an and..
What is the most effective way of decreasing the quantity : The demand for illegal drugs is inelastic. Much of the expenditure on illegal drugs comes from crime. Assuming these statements to be correct, What is the most effective way of decreasing the quantity of drugs consumed and decreasing the amount of dr..
State the mechanism for the reaction : Treatment of 1-butanol with phosphoric acid (H3PO4) mixed with sodium chloride should result in the formation of 1-chlorobutane. write the mechanism for this reaction.
What will happen to the amount of crime : The demand for illegal drugs is inelastic. Much of the expenditure on illegal drugs comes from crime. Assuming these statements to be correct, What will happen to the amount of crime?
Find financial statements for any for profit : Find financial statements for any "for profit" company in the computer hardware industry - Complete a ratio analysis for that company's last year's financial data

Reviews

Write a Review

Computer Engineering Questions & Answers

  There are many ways to render an object

There are many ways to render an object and the choice depends on the use the work will be put to.

  Write an int method named sum that accepts an integer array

Write an int method named sum that accepts an integer array , and the number of elements in the array and returns the sum of the elements of the array .

  Advantages of frame delay-atm-ethernet mans

On the basis of the current offerings for frame delay, ATM, and Ethernet MANs, explain the relative advantages of each.

  Program to find smaller between num1 and num2 to output

Program to find smaller between num1 and num2 to output

  Point-to-point communication links

Suppose there is the wide-area network with N nodes, where N ≥ 2. Find out the smallest number of the point-to-point communication links such that each node within the network is able to talk to one another node?

  How to design the network

Pat's Engineering Works is a small company that specializes in complex engineering consulting projects. The projects typically involve one or two engineers who do data intensive analyses for companies.

  Describe the strengths and weaknesses of the information

Prepare a paper identifying and describing how information systems are used to support the business processes in an organization. You can describe the business processes within your current employer or an organization with which you are familiar. ..

  Writing program for rectangle

Write down a program that asks for the length L and the width W of a rectangle, then compute the perimeter and area of the rectangle. Perimeter = (length + width) * 2

  What are techniques for addressing security requirements

What are techniques for addressing security requirements? Which have a business relationship with the company?

  Developing uml one state diagram

How the system responds to the external and/or internal events by developing a UML ONE State Diagram.

  Program on wireless connection technology

Program on wireless connection technology.

  Design a few changes for new features

The existing software has a number of bugs filed against it. How would you go about debugging the existing software to find out the causes of these problems and testing your fixes to see if they really fix the problems?

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