Question: You need to design, simulate, and implement a simple arithmetic logic unit ( ALU ) that will compute the addition, subtraction, or multiplication of two
You need to design, simulate, and implement a simple arithmetic logic unit ALU that will compute the addition, subtraction, or multiplication of two input signals. If you are not doing the extra credit, the inputs will be assumed to be signed numbers. The system has four control signals: add switch ie the leftmost switch subtract switch multiply switch Yes I know it is wasteful, ie we could get away with only two input signals, but I wanted to make it easier to use, not necessarily to implement. The two bit inputs, num and num are as follows: numswitches numswitches The output should be bits wide and shown in LEDs The output will correspond to the following: num num if add input is If add input is then... num num if subtract input is If subtract input is then... num num if multiply input is If multiply input is then... the output should be blank, ie I do expect the arithmetic operations to be performed by using the addition, subtraction, and multiplication operators defined in the numericstd package discussed in class.
All inputs and outputs are assumed to be signed numbers. Of course, this assumes we are using twos complement notation. Remember that in twos complement notation, the MSB tells us whether the number is positive MSB or negative MSB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
