As the name tells us the alu performs arithmetic and logic operations on two numbers in a CPU.
I am answering assuming atleast some knowledge on the functionning of binary logic and computational science.
A basic ALU has two input buses for the operators and one input bus for the selection of the operation. The selection is done via a MUX/DEMUX circuit.
It's pretty straightforward...
Arithmetic logic unit
The Arithmetic Logic Unit as suggested by the name carries out the arithmetic calculations of the computer.
The arithmetic logic unit or ALU performs arithmetic, logic, and integer operations. ALU was created by mathematician John von Neumann in 1945.
The ALU performs arithmetic and logic operations. ALU stands for Arithmetic Logic Unit.
arithmetic logic unit
The "arithmetic logic unit" performs these operations in classical standard microprocessor architectures
That's done by the ALU (arithmetic and logic unit).
CPU
There is a special part of the CPU that performs Arithmetic and Logical calculations. Its called Arithmetic Logic Unit ( ALU ).
The arithmetic and logic unit (ALU) within the computer's central processing unit (CPU) carries out arithmetic operations. Some designs also support a dedicated floating-point processing unit (FPU), which carries out arithmetic, trigonometric and logic operations based on floating-point variable types.
Arithmetic Logic UnitControl Unit
Arithmetic Logic UnitControl Unit