Arithmetic unit and related self testing in mips

Assignment Help Basic Computer Science
Reference no: EM13934795

Write an arithmetic unit and related self testing in MIPS assembly as following. Put all the source codes in a directory and compress them into a zip file and upload. Grader should be able to download your zip file, unzip it and directly load it into MARS for final machine code generation and run - without any error. 1. The over all program should ask user for two integer numbers (a, b) and target arithmetic operation (+,-,*./) and will print the result of the operation with a comment if the result produced is correct or not. 2. Write add_normal, sub_normal, mul_normal and div_normal procedures which all takes $a0 and $a1 as two argument integers and returns the operation results in $v0 (and in $v1 for Hi result in mul or div). All these *_normal uses only native arithmetic operation of MIPS. 3. Write add_logic, sub_logic, mul_logic and div_logic procedures which all takes $a0 and $a1 and two argument integer and returns the operation results in $v0 (and in $v1 for Hi result in mul or div). All these *_logic uses only native logic operation of MIPS. They implement arithmetic operation using logic algorithm taught in CS47. 4. Write two procedure au_normal and au_logic which takes two integers and one operation code for +,-,* and / in $a0, $a1 and $a2. These two procedure returns results in $v0 and $v1 ($v1 contains the Hi value of the result from * or /). The main program (Label must be 'main') calls au_logic to determine the result and print the result as it gets back from the au_logic. This au_logic uses all the *_logic procedures implemented in #3. The main program also calls au_normal procedure to determine golden result and compare it with the result obtained from au_logic to determine pass or fail. It prints the result pass / fail. This au_normal uses all the *_normal procedure implemented in #2.

Reference no: EM13934795

Questions Cloud

Clarify analysis what sort of people were likely to survive : In this challenge, we ask you to complete the analysis of what sorts of people were likely to survive. In particular, we ask you to apply the tools of machine learning to predict which passengers survived the tragedy.
Write a program which randomly chooses an integer : Write a program which randomly chooses an integer from 1 to 100. The program should then tell the user.The program should then ask the user to complete the puzzle such that each row and each column consists of the letters
Research and development project scheduled : Your program has a research and development project scheduled to start in January 2017 which is expected to take 40 months to complete. The project is expected to cost a total of $150 million (then-year dollars), with cost expected to be incurred as ..
Aircraft production contract planned for award fiscal year : Time now is February 2015. You have been asked to determine the amount that should be included in the Air Force's FY 2017 budget request for an aircraft production contract planned for award in that fiscal year. The contractor estimates that the cost..
Arithmetic unit and related self testing in mips : Write an arithmetic unit and related self testing in MIPS assembly as following. Put all the source codes in a directory and compress them into a zip file and upload. Grader should be able to download your zip file, unzip it and directly load it i..
Explain the basis for its ability to cause weight loss : The molecule 2, 4 -dinitrophenol (DNP) is an uncoupler of oxidative phosphorylation. For a short period of time, it was prescribed clinically as a pill for weight reduction (against the advice of ssientists). Explain the basis for its ability to c..
Create web pages : What are some of the important features of these programs that assist a novice like Juan learn how to create web pages?
Leadership and health service workforce issues : For this assignment you are required to identify, critically analyse and address two of the leadership and health service workforce issues that commonly exist in healthcare systems across the world.
Technology be harnessed to improve business strategy : In what ways can technology be harnessed to improve business strategy?  Some argue that too much technology takes away from the personal nature of a small business.  Where do you stand and why?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a code fragment that adds even numbers from 0 to 10

Write a code fragment that adds the even numbers from 0 to 10

  What are ids and ips

Write a 2-3 page paper that fully answers the questions.

  What is x after the following if-else statement is executed

What is x after the following if-else statement is executed? Use a switch statement to rewrite it and draw the flowchart for the new switch statement.

  Calculate and display the total income of the abc car shop

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found at http://www.unf.edu/~broggio/cop2221/2221pseu.htm.

  What is wrong with how gold coast advertising measures

1. What is wrong with how Gold Coast Advertising measures its quality? Explain why Gold Coast should ask its customers about how they define quality.

  Initial value problem and plot its graph

Find the solution for the given initial value problem and plot its graph y"'-y"+y'-y=0; y(0)=2, y'(0)=-1, y"(0)=-2

  How many leaves does the tree have

Label and find the number of edges, degrees and vertex in the above digraph and find the corresponding matrix of the digraph above - How many leaves does the tree have?

  Describe database elements primary key foreign key metadata

Describe a database and its various elements. Define Primary Key, foreign key, and metadata.

  How many block of main memory is needed-direct mapped cache

Suppose a computer using direct mapped cache has 2^32 words of main memory and a cache of 1024 blocks, where each cache block contains 32 words. How many block of main memory are there?

  Create your own function that accepts one input parameter

create your own function that accepts one input parameter and returns a float number. You decide the theme.

  Proposal for implementation of information technology

Investigate and present a proposal for the implementation of an Information Technology (IT) system for a small (4-user) business section (for example, Human Resources) of an organization of your choice (real or fictitious).

  Compare the constructs and measures of intelligence

Compare the constructs and measures of intelligence and achievement with a reference Powerpoint presentation

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