The components of a computer that process and process data are usually called arithmetic units. The arithmetic unit is a processing plant where the computer processes data to form information. Its main function is to perform arithmetic operations or logical operations on binary numbers. The arithmetic unit is composed of an arithmetic logic unit, an accumulator, a status register, a general-purpose register group, etc.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The components of a computer that process and process data are usually called arithmetic units. The arithmetic unit is a processing plant where computers process data to form information. Its main function is to perform arithmetic operations or logical operations on binary numbers.
Operator introduction
The operator consists of an arithmetic logic unit (ALU), accumulator, status register, general register group, etc. The basic functions of the Arithmetic Logic Operation Unit (ALU) are the four arithmetic operations of addition, subtraction, multiplication, and division, logical operations such as AND, OR, NOT, and XOR, as well as operations such as shift and complement. When the computer is running, the operations and types of operations of the arithmetic units are determined by the controller. The data processed by the operator comes from the memory; the processed result data is usually sent back to the memory or temporarily stored in the operator. Together with the Control Unit, it forms the core part of the CPU.
The calculator is a functional component in the computer that processes data. Data processing mainly includes arithmetic operations on data and logical operations on logical data. Therefore, realizing arithmetic and logical operations on data is the core function of the arithmetic unit.
Operation
The number of operations and operating speed that the arithmetic unit can perform indicates the strength of the arithmetic unit, and even the ability of the computer itself. The most basic operation of the arithmetic unit is addition. Adding a number to zero is simply transmitting the number. Completing the code of one number and adding it to another number is equivalent to subtracting the previous number from the latter number. Subtract two numbers to compare their magnitudes.
Left and right shifting is the basic operation of the arithmetic unit. In signed numbers, the sign does not move but only the data bits are shifted, which is called arithmetic shift. If the data is moved together with all bits of the symbol, it is called a logical shift. If the highest bit and lowest bit of data are linked to perform a logical shift, it is called circular shift.
The logical operation of the operator can perform bitwise AND, OR, XOR on two data, and negate each bit of one data. Some operators can also perform 16 logical operations on binary codes.
Multiplication and division operations are more complicated. Many computer arithmetic units can directly complete these operations. The multiplication operation is based on the addition operation. The partial products are generated successively under the decoding control of one or more bits of the multiplier, and the partial products are added to obtain the product. The division method is often based on multiplication, that is, a number of factors are selected to be multiplied by the divisor to make it approximately 1. When these factors are multiplied by the dividend, the quotient is obtained. Computers that do not have the hardware to perform multiplication and division can use programs to perform multiplication and division, but at a much slower speed. Some operators can also perform complex operations such as finding the maximum number in a batch of numbers, continuously performing the same operation on a batch of data, and finding square roots.
Recommended: "Programming Video"
The above is the detailed content of What are the components of computers that process and process data usually called?. For more information, please follow other related articles on the PHP Chinese website!