In: Computer Science
You are supposed to build a custom ALU that can perform the following operations:
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
Ans-Multiplication- is complicated than addition.
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.