The software engineer must know about hardware because software and hardware is related each other. CPU is the brain of the computer. CPU consist of 3 parts
ALU [Arithmetic and Logic Unit] - ALU [Arithmetic and Logic Unit]
- Registers
- Control Unit
The Arithmetic and Logic Unit contains the electronic circuits that execute all arithmatic and logic data.
Arithmetic Unit
The Arithmetic Unit contains the circuitry that is responsible for performing arithmetic calculations such as addition, subtraction, multiplication and division.
Logic Unit
Logic Unit enables the CPU to make logical operations. The operations are logical comparison between data items. Logical Operators are =, <=,>=,etc.
Registers
Registers are special purpose high speed temporary memory units. It holds various types of information such as data, instructions, addresses and intermediate results of calculations. Registers are known as working memory of CPU, because it holds the information that the CPU is currently working on.
Control Unit
The unit checks the correctness of sequence of operation. It contains the circuitry that uses electrical signals to direct the entire computer system carry out or execute stored program instructions. The control unit does not participating any execution process, but is controls everything in a computer.