Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Part 1: Building an ADDER with MIPS

1. Understand the operation of subroutines in MIPS

2. Understand the operation of the stack

3. Manually manipulate the stack

4. Implement sub-routines in MIPS

5. Understand simple Mathematical operations and their relation to the hardwarePart 1: Building an ADDER with MIPS

1. A one-bit full adder simply consists of two XOR gates two AND gates and an OR gate. All of these are provided as MIPS instructions.

2. Suppose that you did not have the benefit of the ADD instructions, you will need to create your own full adder circuit

3. Design the algorithm for a single bit full-adder and implement it as a MIPS sub-routine

4. A single bit adder is not so useful, so using your full-adder algorithm, design the algorithm for a 32-bit adder with overflow detection and code this as a MIPS sub-routine

5. Compare your implementation with the standard ADD instruction

Part 2: Building a Multiplier with MIPS

1. Assuming that your MIPS language had no multiply instruction, you are going to create one using only the ADD, the logic instructions and the shift instructions

2. Use the multiplier design shown below (assume only positive values):

1854_Multiplier with MIPS.png

3. Design the algorithm for this multiplier

a. Use two temp registers to hold the Product, note that on shifting you will have to know what is shifted out of the top one to know what to shift into the bottom one

4. Implement this algorithm as a sub-routine in MIPS the others (using an AND)

a. Remember you need to access specific bits of a register, so you will need to mask out

b. You also need to set/reset specific bits, so again you can use a mask to do this

5. Estimate how long your sub-routine will take based on the instructions it must complete

6. Test your sub-routine against the built-in MIPS instruction

Part 3: Building a Divider with MIPS

1. Assuming that your MIPS language had no divide instruction, you are going to create one using

only the ADD, the logic instructions and the shift instructions

2. Use the divider design shown below (assume only positive values):

2150_Divider with MIPS.png

3. Design the algorithm for this divider

a. Use two temp registers to hold the Remainder

4. Implement this algorithm as a sub-routine in MIPS

a. Remember you need to access specific bits of a register, so you will need to mask out the others (using an AND)

b. You also need to set/reset specific bits, so again you can use a mask to do this (using an OR)

5. Estimate how long your sub-routine will take based on the instructions it must complete

6. Test your sub-routine against the built-in MIPS instruction

Part 4: Handling Floating Point

Many early systems did not include hardware to handle floating point. Today many still include it as a co-processor, FPU (Floating Point Unit).

1. Assuming that your MIPS language had no co-processor for floating point

2. Use the design shown below for a floating point adder (assume only positive values):

1812_Handling Floating Point.png

3. Design the algorithm for this adder

4. Implement this algorithm as a sub-routine in MIPS

5. Estimate how long your sub-routine will take based on the instructions it must complete

6. Test your sub-routine against the built-in MIPS instruction

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91221812

Have any Question?


Related Questions in Computer Engineering

A chest has 3 drawers d1 has two silver coins s d2 has one

A chest has 3 drawers: (D 1 ) has two silver coins (S), (D 2 ) has one silver (S) and one gold (G), and (D 3 ) has two gold (G) coins. The drawer and coin were both randomly selected. Use the law of total probability to ...

Tom works for a fruit company and found that the weights of

Tom works for a fruit company and found that the weights of pineapples are normally distributed with mean = 500 grams and standard deviation = 100 grams. a. If he randomly chooses 16 pineapples and measures their weights ...

Whats your answer about the equilibrium change from an

What's your answer about the equilibrium change from an event which decreases both demand and supply? You don't need to provide graph here. Just describe the curve shifts and how the equilibrium price and equilibrium qua ...

Software engineeringyou are a webapp designer for

Software Engineering You are a WebApp designer for FutureLearning Corporation, a distance learning company. You intend to implement an Internet-based "learning engine" that will enable you to deliver course content to a ...

Question consider how deming and tqm would have dealt with

Question: Consider how Deming and TQM would have dealt with (or avoided) the problems at Boeing. What does a TQM initiative look like in an IT department? How would IT support Total Quality at Boeing? The response must b ...

What does an income statement a balance sheet and a cash

What does an Income Statement, a Balance Sheet and a Cash Flow System intend to show about a company and how would you use the data contained within in making a credit determination?

Question suppose that the tuition for a university is 10000

Question : Suppose that the tuition for a university is $10,000 this year and increases 5% every year. In one year, the tuition will be $10, 500. Write a program that displays the tuition in ten years and the total cost ...

Question list and describe two forms of organizational

Question: List and describe two forms of organizational change. How does organizational change create business innovation? Give an example. Reply substantively to two other learners with thought provoking statements and ...

What are information silos what are the problems caused by

What are information silos? What are the problems caused by information silos? How organizations can solve the problems caused by information silos?

If the probability that an individual suffers from a bad

If the probability that an individual suffers from a bad reaction from an injection of a given serum is 0.001, determine the probability that out of 2000 individuals (a) exactly 3, (b) more than 2 individuals will suffer ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As