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

  A detailed discussion of current technology

Literature Review & State of the Art - A detailed discussion of current technology and practices and how the problems or issues arise, are solved and/or how the technology is utilized.

  Windows active directory

A research paper on Windows Active Directory and User Access Controls with some additional info about Group Policy Objects and Microsoft Baseline Security Analyzer.

  Demonstrate at least two arithmetic features

Demonstrate at least two arithmetic features and Auto text features of WORD.

  How procuring organization has sorted out problem

You are the engineer involved in development of financial system. Should you simply abandon work until procuring organization has sorted out problem?

  Write a program that reads from the external file

write a program that reads from the external file input.txt, counts the letters in every word , replaces the word by that number and then writes the numbers to an external file output.txt (note: do not forget to copy the blanks

  Develop a computer forensics plan

Explain the processes you would use to seize, search, collect, store, and transport devices and other potential sources of evidence.

  Job hunting plan of action

Use this plan of action as a living document to keep track of your job hunting efforts. The more honest you are in this document, the better you can prioritize your efforts.

  Discuss the right composition of the problem-solving team

What sort of penalties will you ask for violating the conditions of the agreement and who will supposedly represent the opponent? What is his/her/their decisional power in the partner's organisation?

  Salaries and proposed wage increases of your coworkers.

1. Take a position on whether or not you believe most employees abide by their organization's AUP. Support your position with an explanation. Propose ways that an organization can enforce this policy. 2. Suppose your department manager accidentally s..

  Spanning forest is a subset of a graph

a) Assume Ce in Z. Give an algorithm that finds the MSF (minimum spanning forest), show correctness and running time of this algorithm.

  Determining the finding and fixing vulnerabilities

Because modern applications are complex, it is not practical to think about finding and fixing vulnerabilities by simply inspecting the code. Instead, a wide variety of sources-ranging from the government and professional software developers to th..

  An important difference between the i/o requirements

1. An important difference between the I/O requirements of keyboards and disk drives is that a. keyboard input is fast while disk drives are slow. b. keyboards require constant monitoring, while disk drives do not. c. disk drives have I/O controllers..

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