Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

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

Have any Question?


Related Questions in Computer Engineering

The cost of a new piece of equipment is 42000 it is

The cost of a new piece of equipment is $42000. It is expected that the new piece of equipment will lead to cash flows of $17000, $29000, and $40000 over the next three years. Discount rate is 12% what is the net present ...

Show that the set alldfa and allnfa is complete for one of

Show that the set ALLdfa and ALLnfa is COMPLETE for one of the main complexity classes ( P, NP , PSPACE etc)? Do we need to show 2 things for proving it is complete? Meaning for eg: If ALLdfa is in P and all other sets i ...

Dud bolt is preparing for the boonta eve classic speeder

Dud Bolt is preparing for the Boonta Eve Classic speeder race and has to make a decision about which racer to bet on. He has calculated his potential payoffs and narrowed it down to two racers shown in the following tabl ...

A simple substitution cipher can be created by shifting a

A simple substitution cipher can be created by shifting a letter n positions in alphabetic order. For example, if the possible characters are the list [A...Za...z], a shift of three would translate A to D and Z to c. The ...

When we look at the ease to enter the different market

When we look at the ease to enter the different market structure, there is no doubt that 'monopoly' is the hardest. Why? -- There is only ONE firm that has established 'economies of scale' with the production of their go ...

At a certain temperature the equilibrium constant kc for

At a certain temperature, the equilibrium constant, Kc, for this reaction is 53.3. H2(g) + I2 (g) ------> 2HI(g) Kc = 53.3 At this temperature, 0.700 mol of H2 and 0.700 mol of I2 were placed in a 1.00-L container to rea ...

Not all context free grammars define regular languages

Not all context free grammars define regular languages. However, the following two DO define regular languages. For each grammar below, (a) describe the corresponding language and (b) draw the corresponding finite state ...

Many high school students take the ap tests in different

Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year, of the 211,693 students who took the calcu ...

Suppose that a data warehouse consists of the four

Suppose that a data warehouse consists of the four dimensions date, spectator, location, and game, and the two measures count and charge, where charge is the fare that a spectator pays when watching a game on a given dat ...

Question review ram flash memory magnetic and optical

Question : Review RAM, Flash Memory, Magnetic and Optical storage technologies concerning their placement in the usage hierarchy of contemporary computer systems. Include size, speed and cost considerations at each level ...

  • 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