What are the components that make up a CPU?
The components that make up the CPU include "calculator" and "controller". The CPU (Central Processing Unit) mainly consists of two parts: 1. The arithmetic unit refers to the component in the computer that performs various arithmetic and logical operations, among which the arithmetic logic unit is part of the central processing core; 2. The controller refers to A master device that changes the wiring of the main circuit or control circuit in a predetermined sequence and changes the resistance value in the circuit to control the starting, speed regulation, braking and reverse direction of the motor.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The components that make up the CPU include "calculator" and "controller".
The central processing unit (CPU), as the computing and control core of the computer system, is the final execution unit for information processing and program execution. Since its creation, CPU has made great progress in logical structure, operating efficiency and function extension.
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. The central processing unit mainly consists of two parts, namely the controller and the arithmetic unit, which plays an important role in improving the overall function of the computer and can realize the proliferation of multiple functions such as register control, logical operations, and signal transmission and reception. , laying a good foundation for improving computer performance.
Operator
Operator refers to the component in the computer that performs various arithmetic and logical operations. 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. [2]
(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 is the nerve center of the computer, directing all components in the entire machine to work in automated coordination. Under the control of the controller, the computer can automatically perform a series of operations according to the steps set by the program to complete specific tasks.
The controller refers to a master device that changes the wiring of the main circuit or control circuit in a predetermined sequence and changes the resistance value in the circuit to control the starting, speed regulation, braking and reverse direction of the motor. 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.
The main components inside the controller are as follows:
①Instruction register: stores instructions obtained from memory.
②Decoder: Translate the operation code in the instruction into a control signal.
③ Timing beat generator: Generates timing pulse beat signals to make the computer work rhythmically and orderly.
④ Operation control components: combine control signals to control each component to complete the corresponding operation.
⑤Instruction counter: Calculate and point out the address of the next instruction.
Extended knowledge: How the CPU works
The Von Neumann architecture is the foundation of modern computers. Under this architecture, programs and data are stored uniformly. Instructions and data need to be accessed from the same storage space and transmitted through the same bus, and cannot be executed overlappingly. According to the von Neumann system, the work of the CPU is divided into the following five stages: instruction fetch stage, instruction decoding stage, instruction execution stage, memory access and result write back.
Instruction fetch (IF, instruction fetch) is the process of fetching an instruction from the main memory to the instruction register. The value in the program counter indicates the location of the current instruction in main memory. When an instruction is fetched, the value in the program counter (PC) is automatically incremented according to the instruction word length.
Instruction decoding stage (ID, instruction decode), after fetching the instruction, the instruction decoder splits and interprets the fetched instruction according to the predetermined instruction format, and identifies and distinguishes it. Different instruction categories and various methods of obtaining operands are presented. Modern CISC processors use splitting to improve parallelism and efficiency.
Execution instruction phase (EX, execute), specifically implements the function of the instruction. Different parts of the CPU are connected to perform the required operations.
Access and access phase (MEM, memory), according to the instruction needs to access the main memory and read the operand, the CPU gets the address of the operand in the main memory, and reads the operand from the main memory The operand is read in and used for operation. Some instructions do not require access to main memory, so this stage can be skipped.
Result write back stage (WB, write back), as the last stage, the result write back stage "writes back" the running result data of the execution instruction stage to some storage form. The result data is generally written to the internal register of the CPU so that it can be quickly accessed by subsequent instructions; many instructions also change the status of the flag bits in the program status word register. These flag bits identify different operation results and can be Used to affect program actions.
After the instruction is executed and the result data is written back, if no unexpected events (such as result overflow, etc.) occur, the computer will obtain the next instruction address from the program counter and start a new instruction. After a round of looping, the next instruction will be fetched sequentially in the next instruction cycle. Many complex CPUs can fetch multiple instructions at once, decode them, and execute them simultaneously.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What are the components that make up a CPU?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

It's common for games to slow down your computer because they consume a lot of resources. It's crucial to understand your CPU usage when gaming so you can avoid overloading it. Therefore, keeping track of appropriate CPU usage is key to keeping your gaming experience smooth. In this article, we'll look at the appropriate CPU usage you should achieve while your game is running. CPU utilization during gaming CPU utilization is an important indicator of processor workload and depends on the performance specifications of the CPU. More powerful CPUs generally have higher usage. A CPU with more cores and threads can improve the overall performance of your system. Multi-threading support helps unleash the full potential of your CPU. In games, CPU usage depends on processor utilization, which can affect the game

Many users find that the computer is not running smoothly enough when using the Win11 system. They want to improve CPU performance, but they don't know how to do it. The following will introduce in detail how to set the CPU performance to the highest level in Win11 system to make your computer more efficient. Setting method: 1. Right-click "This PC" on the desktop and select "Properties" in the option list. 2. After entering the new interface, click "Advanced System Settings" in "Related Links". 3. In the window that opens, click the "Advanced" tab at the top, then click the & at the bottom of "Performance"

Windows Remote Desktop Service allows users to access computers remotely, which is very convenient for people who need to work remotely. However, problems can be encountered when users cannot connect to the remote computer or when Remote Desktop cannot authenticate the computer's identity. This may be caused by network connection issues or certificate verification failure. In this case, the user may need to check the network connection, ensure that the remote computer is online, and try to reconnect. Also, ensuring that the remote computer's authentication options are configured correctly is key to resolving the issue. Such problems with Windows Remote Desktop Services can usually be resolved by carefully checking and adjusting settings. Remote Desktop cannot verify the identity of the remote computer due to a time or date difference. Please make sure your calculations

The 2024CSRankings National Computer Science Major Rankings have just been released! This year, in the ranking of the best CS universities in the United States, Carnegie Mellon University (CMU) ranks among the best in the country and in the field of CS, while the University of Illinois at Urbana-Champaign (UIUC) has been ranked second for six consecutive years. Georgia Tech ranked third. Then, Stanford University, University of California at San Diego, University of Michigan, and University of Washington tied for fourth place in the world. It is worth noting that MIT's ranking fell and fell out of the top five. CSRankings is a global university ranking project in the field of computer science initiated by Professor Emery Berger of the School of Computer and Information Sciences at the University of Massachusetts Amherst. The ranking is based on objective

How to Overclock Computer CPUs With the continuous advancement of technology, people's demand for computer performance is also getting higher and higher. An effective way to improve computer performance is to increase the CPU's operating frequency through overclocking. Overclocking allows the CPU to process data faster, providing higher computing power. So, how to overclock a computer CPU? The following will introduce you to the basic principles and specific operation methods of overclocking. First, let's understand how overclocking works. The operating frequency of the CPU is determined by the crystal oscillator on the motherboard

Intel XTU is a powerful application that allows you to easily manage your computer's performance. You can fix overheating issues by adjusting the CPU voltage, or boost performance by overclocking. In this article, we'll look at how you can take advantage of Intel XTU to optimize your computer's performance, whether that's adjusting voltage or overclocking. What effect do undervolting and overclocking have on the CPU? Before we move on to learning how to undervolt and overclock a CPU, we first have to understand what they are. Undervolting refers to gradually reducing the voltage required by the CPU. This process helps reduce heat emissions, as high voltage results in higher temperatures. By reducing the voltage supply to the CPU, the temperature can be effectively reduced. If your laptop starts to slow down after getting hot, you should solve the problem promptly.

1. First, we right-click the blank space of the taskbar and select the [Task Manager] option, or right-click the start logo, and then select the [Task Manager] option. 2. In the opened Task Manager interface, we click the [Services] tab on the far right. 3. In the opened [Service] tab, click the [Open Service] option below. 4. In the [Services] window that opens, right-click the [InternetConnectionSharing(ICS)] service, and then select the [Properties] option. 5. In the properties window that opens, change [Open with] to [Disabled], click [Apply] and then click [OK]. 6. Click the start logo, then click the shutdown button, select [Restart], and complete the computer restart.

According to news from this website on July 28, foreign media TechRader reported that Fujitsu introduced in detail the FUJITSU-MONAKA (hereinafter referred to as MONAKA) processor planned to be shipped in 2027. MONAKACPU is based on the "cloud native 3D many-core" architecture and adopts the Arm instruction set. It is oriented to the data center, edge and telecommunications fields. It is suitable for AI computing and can realize mainframe-level RAS1. Fujitsu said that MONAKA will achieve a leap in energy efficiency and performance: thanks to technologies such as ultra-low voltage (ULV) technology, the CPU can achieve 2 times the energy efficiency of competing products in 2027, and cooling does not require water cooling; in addition, the application performance of the processor It can also reach twice as much as your opponent. In terms of instructions, MONAKA is equipped with vector