Question

In: Computer Science

You are supposed to build a custom ALU that can perform the following operations: Multiplication Addition...

You are supposed to build a custom ALU that can perform the following operations:

  1. Multiplication
  2. Addition
  3. Division
  4. Logical OR

Select all necessary components below, to create this ALU.

Multiplexer

Demultiplexer

OR gate

AND gate

NOT gate

Encoder

Priority Encoder

Decoder

Adder

Subtractor

Multiplier

Divider

Shifter

Register

Register File

Solutions

Expert Solution

Ans-Multiplication- is complicated than addition.

  • more time and more area requried.
  • unsigned multiplication.
  • multiplication is impractical implemented in hardware.
  • Example- 5-bit multiplicand (10001)2 =(17)10
  • 5-bit multipler *(10011) 2= (19)10
  • =(101000011)2= (323)10

Addtion-alu perform logical equestion and truth table.

full adder

half adder

formula- carrayout=(b.carryIn)+(a.carryIn)+(a.b)+(a.b.carrayIn)

where b.carryIn= AND

a.carryIn=OR

Division-division is used to perform Raphson algorithm. division algorithm minimal and maximal error can be achieved by scaling the divisior .it is performed addition and multiplication operation.

Logical OR-

logical OR- is performing OR gate , it is performed arithmetic operation, and logical operation.

select all necessary components-

OR gate- or is performed logical addition.

AND Gate- is performed logical multiplication.

NOT gate- is called inveter it is used 0 convert 1 and 1convert 0.

Adder- is used add two bit and give the result.there are perform two type of adder half adder and full adder.

this is a ripple carray adder.

Subtractor- subtractor is performed subtract of binary digits.

multiplier- is performed multiplication of binary digits.

divider- is performed divisionn of binary digits.


Related Solutions

Write a Behavioral model VHDL code that implements an ALU that can perform addition, subtraction, multiplication,...
Write a Behavioral model VHDL code that implements an ALU that can perform addition, subtraction, multiplication, shift right, shift left, logical NAND, and logical NOR. Write a VHDL test bench to test the ALU with at least one test vector per operation.
Write VHDL code for ALU 32bit. ALU must perform addition and subtraction. You are not allowed...
Write VHDL code for ALU 32bit. ALU must perform addition and subtraction. You are not allowed to use other libraries. Only this libraries are allowed to use: use library ieee; use ieee.std_logic_1164.all; Please do it correctly and include the comments for me to fully understand. Thank you.
Write VHDL code for ALU 32bit. ALU must perform addition and subtraction. You are not allowed...
Write VHDL code for ALU 32bit. ALU must perform addition and subtraction. You are not allowed to use other libraries only this is allowed to use library ieee; use ieee.std_logic_1164.all; Please write the comments for me to fully understand. Thank you.
Problem: Perform following operations in binary using 8-bit addition/subtraction/multiplication. 1. −80 + 42 2. −99 −...
Problem: Perform following operations in binary using 8-bit addition/subtraction/multiplication. 1. −80 + 42 2. −99 − 20 3. 60 − 70 4. −59 × 3 5. 52×−1
Write a Python program that will perform various calculations (addition, subtraction, multiplication, division, and average). The...
Write a Python program that will perform various calculations (addition, subtraction, multiplication, division, and average). The program will add, subtract, multiply, or divide 2 numbers and provide the average of multiple numbers inputted from the user. You need to define a function named performCalculation which takes 1 parameter. The parameter will be the operation being performed (+,-,*,/). This function will perform the given prompt from the user for 2 numbers then perform the expected operation depending on the parameter that’s...
Let Z* denote the ring of integers with new addition and multiplication operations defined by a...
Let Z* denote the ring of integers with new addition and multiplication operations defined by a (+) b = a + b - 1 and a (*) b = a + b - ab. Prove Z (the integers) are isomorphic to Z*. Can someone please explain this to me? I get that f(1) = 0, f(2) = -1 but then f(-1) = -f(1) = 0 and f(2) = -f(2) = 1 but this does not make sense in order to...
Which of the following are groups? + And · denote the usual addition and multiplication of...
Which of the following are groups? + And · denote the usual addition and multiplication of real numbers. (G, +) with G = {2^ n | n ∈ Z}, (G, ·) with G = {2 ^n | n ∈ Z}. Determine all subgroups of the following cyclic group G = {e, a, a^2, a^3, a^4, a^5}. Which of these subgroups is a normal divisor of G?
Which of the following are groups? + And · denote the usual addition and multiplication of...
Which of the following are groups? + And · denote the usual addition and multiplication of real numbers. (G, +) with G = {2 n | n ∈ Z}, (G, ·) with G = {2 n | n ∈ Z}. Determine all subgroups of the following cyclic group G = {e, a, a2, a3, a4, a5}. Which of these subgroups is a normal divisor of G?
1) Perform the following addition and subtraction operations. For subtraction, negate the subtrahend (the second value)...
1) Perform the following addition and subtraction operations. For subtraction, negate the subtrahend (the second value) and add. For each operation, show the interpretation as both unsigned and signed operations. Indicate whether an unsigned or signed overflow has occurred that invalidates the result under that interpretation. Use an eight bit byte for all operations and for the signed interpretation, use two’s complement representation. Spaces are used in the binary values only for readability a. 1001 1111 + 0111 1000 b....
Multiplication can be thought of as repeated addition. Three times four is 4 added to itself...
Multiplication can be thought of as repeated addition. Three times four is 4 added to itself 3 times. 1) Create an assembly program that multiplies two 8 bit integers (2's complement) together in your PIC, using the repeated summation technique. 2) Add a feature to your program that detects if the answer is too big to hold in 8 bit 2's complement notation 3) The repeated summation algorithm is slow. In a previous homework we developed a technique for multiplying...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT