What are component parts of the CPU? Specifically describe how each functions to process program instructions.
The CPU has three parts that include the arithmetic logic unit (ALU), control unit and the register. The ALU is the CPU part which carries out all arithmetic calculations that include division, multiplication, subtraction, and addition. It also executes all logical operations. The Arithmetic logic unit is divided into two sections that include the logic unit to perform logic operations such as greater than, less than, or equal to conditions and arithmetic unit that does normal mathematical operations. The ALU performs by loading data from input registers, the external control unit instructs the ALU on the operation to be carried out on data, and eventually stores the operation outcome in an output register.
The CPU control unit is used for storing or executing the ALU results. It performs the role of storing, executing, decoding, and fetching. It communicates with the memory and the ALU, and factually directs the whole computer system to execute, or carry out stored instructions of a program. Primarily, the control unit retrieves or fetches instruction from the memory and then evaluates it prior to deciding how the instruction should be processed. The control unit then sends the original instruction segments to the suitable processor section based on the required action.
Registers are data or instructions temporary storage sections in the processor. They are primarily special locations of storage which is similar to memory of a computer although it is contained in the processor and it is extremely fast. Registers operate under the guidance of the control unit to transfer, hold and accept data or instruction and perform logical or arithmetic comparison at a high speed rate.