CPU is the core component of the computer, and the two major components of the CPU are the arithmetic unit and the controller.
1. The internal structure of CPU can be roughly divided into control unit, computing unit, storage unit and clock
2. Arithmetic unit is the center of computer processing data. It is mainly composed of ALU (Arithmetic and Logic Unit), register group and status register. ALU mainly completes fixed-point arithmetic operation, logic operation and various shift operations for binary information. The general register group is used to save the operands involved in the operation and the intermediate results of the operation. The status register has different provisions in different machines. In the program, the status bit is usually used as the judgment condition of the transfer instruction
3. The controller is the control center of the computer, which determines the automation of the computer operation process. It should not only ensure the correct execution of the program, but also be able to handle exceptional events. The controller generally includes instruction control logic, timing control logic, bus control logic, interrupt control logic, etc