Design the algorithm for this adder implement this


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

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design the algorithm for this adder implement this
Reference No:- TGS0935662

Expected delivery within 24 Hours