search
HomeCommon ProblemWhat are the components that make up a CPU?
What are the components that make up a CPU?Jul 19, 2022 pm 04:33 PM
computercpucontrolleroperator

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.

What are the components that make up a CPU?

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!

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
Windows 11 上正确校准 Xbox One 控制器的方法Windows 11 上正确校准 Xbox One 控制器的方法Sep 21, 2023 pm 09:09 PM

由于Windows已成为首选的游戏平台,因此确定其面向游戏的功能就显得尤为重要。其中之一是能够在Windows11上校准XboxOne控制器。借助内置的手动校准,您可以摆脱漂移、随机移动或性能问题,并有效地对齐X、Y和Z轴。如果可用选项不起作用,您可以随时使用第三方XboxOne控制器校准工具。让我们来了解一下!如何在Windows11上校准我的Xbox控制器?在继续操作之前,请确保将控制器连接到电脑并更新XboxOne控制器的驱动程序。当您使用它时,还要安装任何可用的固件更新。1.使用Wind

从零开始学习Laravel:控制器方法调用详解从零开始学习Laravel:控制器方法调用详解Mar 10, 2024 pm 05:03 PM

从零开始学习Laravel:控制器方法调用详解在Laravel的开发中,控制器是一个非常重要的概念。控制器起到了连接模型和视图的桥梁作用,负责处理来自路由的请求,并返回相应的数据给视图展示。控制器中的方法可以被路由调用,这篇文章将详细介绍如何编写并调用控制器中的方法,同时会提供具体的代码示例。首先,我们需要创建一个控制器。可以使用Artisan命令行工具来生

运算器能够进行什么和逻辑运算运算器能够进行什么和逻辑运算Aug 26, 2022 am 11:40 AM

运算器能够进行算术运算和逻辑运算。运算器的基本功能是完成对各种数据的加工处理,例如算术四则运算,与、或、求反等逻辑运算,算术和逻辑移位操作,比较数值,变更符号,计算主存地址等。运算器是计算机中处理数据的功能部件,对数据处理主要包括数据的算术运算和逻辑数据的逻辑操作;因此,实现对数据的算术与逻辑运算是运算器的核心功能。

微机的字长是4个字节这意味着什么微机的字长是4个字节这意味着什么Jul 08, 2022 pm 12:04 PM

微机的字长是4个字节意味着:在CPU中整体传输和处理的二进制数为32位。因为一个字节是8位长(字长),所以4个字节就是32位了,也就是说cpu中能够同时处理32位的二进制数据。在计算机领域,字是用来表示一次性处理事务的固定长度;一个字的位数,即字长,是计算机一次可处理的二进制数字的数目。

什么叫laravel控制器什么叫laravel控制器Jan 14, 2023 am 11:16 AM

在laravel中,控制器(Controller)是一个类,用于实现一定的功能;控制器能将相关的请求处理逻辑组成一个单独的类。控制器中存放中一些方法,实现一定的功能,通过路由调用控制器,不再使用回调函数;控制器被存放在“app/Http/Controllers”目录中。

php如何使用CodeIgniter4框架?php如何使用CodeIgniter4框架?May 31, 2023 pm 02:51 PM

PHP是一种非常流行的编程语言,而CodeIgniter4是一种常用的PHP框架。在开发Web应用程序时,使用框架是非常有帮助的,它可以加速开发过程、提高代码质量、降低维护成本。本文将介绍如何使用CodeIgniter4框架。安装CodeIgniter4框架CodeIgniter4框架可以从官方网站(https://codeigniter.com/)下载。下

Laravel学习指南:控制器方法调用的最佳实践Laravel学习指南:控制器方法调用的最佳实践Mar 11, 2024 am 08:27 AM

在Laravel学习指南中,控制器方法的调用是一个非常重要的主题。控制器扮演着连接路由和模型的桥梁的角色,在应用程序中起着至关重要的作用。本文将介绍控制器方法调用的最佳实践,并提供具体的代码示例帮助读者更好地理解。首先,让我们来了解控制器方法的基本结构。在Laravel中,控制器类通常存放在app/Http/Controllers目录下,每个控制器类包含多个

世界上第一台计算机的电子元器件是啥世界上第一台计算机的电子元器件是啥Jul 05, 2022 am 10:37 AM

世界上第一台计算机的电子元器件是“电子真空管”。世界上第一台计算机是“阿塔纳索夫-贝瑞计算机”,通常简称ABC计算机,采用电子真空管作为电子元件;该计算机电路系统中装有300个电子真空管执行数字计算与逻辑运算,机器使用电容器来进行数值存储,数据输入采用打孔读卡方法,还采用了二进位制。

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor