Home>Article> Where is the arithmetic unit located in a microcomputer?

Where is the arithmetic unit located in a microcomputer?

青灯夜游
青灯夜游 Original
2022-07-22 13:49:40 6017browse

The location of the arithmetic unit in the microcomputer is "CPU". When the computer is running, the operation and type of operation of the arithmetic unit are determined by the controller. The data processed by the arithmetic unit comes from the memory, and the processed result data is usually sent back to the memory or temporarily stored in the arithmetic unit; the controller and the arithmetic unit together form The core part of the CPU.

Where is the arithmetic unit located in a microcomputer?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The location of the arithmetic unit in the microcomputer is "CPU".

The arithmetic unit consists of an arithmetic logic unit (ALU), an accumulator, a status register, a general-purpose 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 operation and type of operation of the arithmetic unit are determined by the controller. The data processed by the arithmetic unit comes from the memory. The processed result data is usually sent back to the memory or temporarily stored in the arithmetic unit;The controller and the arithmetic unit together form the core part of the CPU.

Central processing unit (CPU) is one of the main devices of electronic computers and the core component of computers. Its function is mainly to interpret computer instructions and process data in computer software. The CPU is the core component of the computer that reads instructions, decodes them, and executes them.

Generally speaking, the structure of the CPU can be roughly divided into operational logic components, register components and control components. The so-called arithmetic logic component can mainly perform related logical operations, such as: it can perform shift operations and logical operations. In addition, it can also perform fixed-point or floating-point arithmetic operations, address operations, conversion and other commands. It is a multi-purpose Functional arithmetic unit. The register component is used to temporarily store instructions, data and addresses. The control component is mainly used to analyze instructions and issue corresponding control signals.

For the central processing unit, it can be regarded as a large-scale integrated circuit, and its main task is to process and process various data. The storage capacity of traditional computers is relatively small, which makes it difficult to process large-scale data, and the processing effect is relatively low. With the rapid development of my country's information technology level, high-configuration processor computers have emerged. High-configuration processors are used as control centers and play an important role in improving the structure and function of computer CPUs.

The core part of the central processing unit is the controller and arithmetic unit, which plays an important role in improving the overall function of the computer. It can realize the proliferation of multiple functions such as register control, logical operations, and signal transmission and reception. It provides Lay a good foundation for improving computer performance.

The core part of the CPU

  • Operator

The operator refers to the computer that performs various tasks A component that operates arithmetic and logical operations, where the arithmetic logic unit is part of the central processing core.

(1) Arithmetic logic unit (ALU). Arithmetic logic unit refers to a combinational logic circuit that can realize multiple sets of arithmetic operations and logical operations. It is an important part of central processing. The operations of the arithmetic logic unit are mainly two-bit arithmetic operations, such as addition, subtraction, and multiplication. During the operation process, the arithmetic logic unit mainly performs arithmetic and logical operations using computer instructions. Generally speaking, the ALU can play the role of direct read-in and read-out, which is specifically reflected in the processor controller, memory and input and output devices. , input and output are implemented based on the bus. The input command contains an instruction word, including operation code, format code, etc.

(2) Intermediate register (IR). Its length is 128 bits, and its actual length is determined by the operands. IR plays an important role in the "push and fetch" instruction. During the execution of this instruction, the content of ACC is sent to IR, then the operand is fetched to ACC, and then the content of IR is pushed onto the stack.

(3) Operation accumulator (ACC). Current registers are generally single accumulators with a length of 128 bits. For ACC, it can be regarded as a variable-length accumulator. In the process of describing instructions, the expression of ACC length is generally based on the value of ACS, and the ACS length is directly related to the ACC length. Doubling or halving the ACS length can also be regarded as doubling or halving the ACC length.

(4) Descriptor register (DR). It is mainly used to store and modify descriptors. The length of DR is 64 bits. In order to simplify data structure processing, the use of descriptors plays an important role.

(5)B register. It plays an important role in the modification of instructions. The length of the B register is 32 bits. It can save the address modification amount during the address modification process. The main memory address can only be modified using descriptors. The descriptor points to the first element in the array, so accessing other elements in the array should require modifiers. For arrays, they are composed of data of the same size or elements of the same size and are stored continuously. The common access method is the vector descriptor, because the address in the vector descriptor is a byte address, so when proceeding During the conversion process, the base addresses should first be added. For the conversion work, it is mainly implemented automatically by the hardware. In this process, special attention must be paid to alignment to avoid exceeding the array boundaries.

  • Controller

The controller refers to changing the wiring of the main circuit or control circuit in a predetermined sequence and changing the resistance value in the circuit to control the motor. The main command device for starting, speed regulation, braking and reverse. The controller is composed of program status register PSR, system status register SSR, program counter PC, instruction register, etc. As a "decision-making mechanism", its main task is to issue commands and play a coordination and command role in the operation of the entire computer system. There are two main categories of control: combinational logic controllers and microprogrammed controllers. Both parts have their own advantages and disadvantages. Among them, the structure of the combinational logic controller is relatively complex, but its advantage is that it is faster; the microprogrammed controller design has a simple structure, but when modifying the function of a machine instruction, the entire microprogram needs to be reprogrammed.

For more related knowledge, please visit theFAQcolumn!

The above is the detailed content of Where is the arithmetic unit located in a microcomputer?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn