当前位置:网站首页>Basic workflow of CPU
Basic workflow of CPU
2022-04-23 02:51:00 【Bo0o2】
CPU The internal structure of
1、 arithmetic logic unit ALU
ALU It's the core of the arithmetic unit , It is based on the full adder , It is a circuit composed of registers and corresponding control logic , Under the action of the control signal, the addition can be completed 、 reduce 、 ride 、 Divide by four operations and various logical operations , As mentioned just now . This is equivalent to the production line in the factory , Responsible for computing data .
2、 Register group Rs
Rs Is essentially CPU Where data is temporarily stored in , It holds the data waiting to be processed , Or data that has been processed ,CPU It takes less time to access registers than to access memory , Using registers can reduce CPU Number of memory accesses , So as to improve CPU Working speed of , However, due to the limitation of chip area and integration , The capacity of a register group cannot be large , Register group can be divided into special register and through register , The function of special register is fixed , Register the corresponding data separately , The register has a wide range of ways, and its purpose can be specified by the programmer , The number of general purpose registers varies from microprocessor to microprocessor .
3、 control unit
Just like the Logistics Distribution Department of the factory , The control unit is the whole CPU Command and control center , By the instruction register 、 Instruction decoder 、 And operation controller , It is very important to coordinate the orderly work of the whole computer , It's based on the user's pre programmed program , In this way, each instruction is taken from the memory , Put it in the instruction memory and determine what operation should be carried out through the analysis of the instruction decoder , Finally, the controller is operated in time sequence , Send micromanipulation control signals to corresponding components , Operating the controller , It mainly includes Beat generator Control matrix Clock generator , Reset circuit, start stop circuit and other control logic .
4、 Bus
Just like the communication channels between various parts of the factory , A bus is actually a set of wires , It is a collection of various common signal lines , A public highway used to transmit information as all components of a computer , Direct sum CPU Connected bus , These include data bus Address bus Control bus The library bus is used to transmit data information Used to transfer addresses to the bus CPU Address information sent , The control bus is used to transmit control signals , Timing signal and status information, etc .
CPU Workflow process
Program = Instructions + data
working principle :
in general ,cpu Instructions and corresponding data are taken out one by one from memory , According to the instruction opcode , Perform arithmetic processing on data and , Until the program is finished , The specific process can be divided into the following four steps .
1 Take command
cpu The controller reads an instruction from memory and places it in a register
2 Instruction compilation
The instructions in the instruction register are decoded , Feel that you should do that , Where are the operands
3 Execution instruction
The execution of instructions is divided into two steps : Take operands and perform operations .
Fetching operands :CPU Read operands from memory to register through addressing operation , Save it for the time being
Carry out operations : The arithmetic unit passes the opcode in the instruction , Operate on the number in the register
4 Command count
Modify the instruction counter , Determine the address of the next instruction .cpu Repeat the three steps above , The instructions in the memory code segment are executed one by one , Until the end of the program .
版权声明
本文为[Bo0o2]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220717481517.html
边栏推荐
- Rhcsa day 4 operation
- 国产轻量级看板式Scrum敏捷项目管理工具
- Solve the problem that the registered Google email Gmail mobile number cannot be used for verification
- The problem of removing spaces from strings
- Mosaic Routing: implement / home / news
- The shell monitors the depth of the IBM MQ queue and scans it three times in 10s. When the depth value exceeds 5 for more than two times, the queue name and depth value are output.
- php+mysql对下拉框搜索的内容修改
- MySQL function syntax
- 《信息系統項目管理師總結》第六章 項目人力資源管理
- 进阶上将程序员必备素质
猜你喜欢

Devil cold rice 𞓜 078 devil answers the market in Shanghai and Nanjing; Communication and guidance; Winning the country and killing and screening; The purpose of making money; Change other people's op

JVM class loader

How to build an integrated industrial Internet plus hazardous safety production management platform?

Source code and some understanding of employee management system based on polymorphism

Leangoo brain map - shared multi person collaborative mind mapping tool

Android 高阶面试必问:全局业务和项目的架构设计与重构

Store consumption SMS notification template

Error installing Mongo service 'mongodb server' on win10 failed to start

国产轻量级看板式Scrum敏捷项目管理工具

Android high-level interview must ask: overall business and project architecture design and reconstruction
随机推荐
机器学习(周志华) 第十四章概率图模型
基于多态的职工管理系统源码与一些理解
Looking for a job, writing a resume to an interview, this set of information is enough!
Android 高阶面试必问:全局业务和项目的架构设计与重构
What is the difference between varchar and char?
B blocks of the 46th ICPC Asian regional competition (Kunming)
Planning code ROS migration POMDP prediction planning (I)
Modification du contenu de la recherche dans la boîte déroulante par PHP + MySQL
谷雨
Renesas electronic MCU RT thread development and Design Competition
Store consumption SMS notification template
字符串去掉空格问题
《信息系統項目管理師總結》第六章 項目人力資源管理
Huawei machine test question -- deformation of hj53 Yang Hui triangle
Slave should be able to synchronize with the master in tests/integration/replication-psync. tcl
How can enterprises with major hazard installations ensure the completion of the digital construction task of double prevention mechanism by the end of the year
MySQL function syntax
Source code and some understanding of employee management system based on polymorphism
Hack the box optimum
The penultimate K nodes in jz22 linked list