当前位置:网站首页>Brief description of CPU
Brief description of CPU
2022-04-23 08:08:00 【Playful wood】
a central processor (CPU,Central Processing Unit): It is mainly composed of arithmetic unit 、 The controller and the register consist of .CPU It's a very large scale integrated circuit , It is the core of computer operation and control ,CPU Its main function is to interpret computer instructions and process data .
32 Bit structured CPU The data bus width is 32 position , Every time you can transmit 32 Bit data , You can calculate 4 Bytes of data .
64 Bit structured CPU The data bus width is 64 position , Every time you can transmit 64 Bit data , You can calculate 8 Bytes of data .
1 byte (Byte) be equal to 8 position (bit)
CPU The composition of
Arithmetic unit
Including arithmetic logic operation unit (ALU,Arithmetic Logic Unit) And registers , As a whole CPU Command and control center , Its basic function is to fetch instructions from memory 、 Analyze instructions and execute instructions .
controller
The controller consists of program counter (PC,Program Counter)、 Instruction register (IR,Instruction Register)、 Instruction decoder (ID,Instruction Decoder)、 Timing generator (Timing Generator)、 Operating the controller (Control Unit) form .
register
register (Register), yes CPU Small internal storage areas for storing data , It is used to temporarily store the data and results involved in the operation .
stay CPU There must be at least six types of registers in the : Instruction register (IR)、 Program counter (PC)、 Address register (AR)、 Data register (DR)、 Accumulation register (AC)、 Program status word register (PSW). These registers are used to temporarily store a computer word , Its number can be expanded as needed .
32/64 position CPU The specific difference
- faster . Because if a machine instruction is 32 Bit , that 64 Bit register can take two instructions at a time .
- Can handle larger numbers .32 The integer range that the bit can handle is ±21 Billion , If you need to deal with numbers that are out of range , You need to store data with two instructions , And you need to use additional instructions to process data .
- Control more address buses , Addressing larger memory space .(32 Bits can only be used at most 4G Memory , and 64 Bits can theoretically be used 16777216TB Memory )
CPU Instruction cycle of
Clock cycle :CPU It is driven by converting the pulse generated by quartz crystal into clock signal , Each high-low level conversion of clock signal is a cycle , We call it a clock cycle .
Instruction cycle : from PC Pointer read instruction 、 To carry out 、 Go to the next instruction , Form a cycle , This continuous cycle is called CPU Instruction cycle of .
The clock signal is 1GHz Of CPU, Represents the execution of... Per second 10 100 million clock cycles (1G by 10 Of 9 Power , namely 10 Billion ), Therefore, one cycle of the clock signal is 1/10 Million seconds . And the speed of light is 3×10 Of 8 Cubic meter per second , Namely 3 Million meters per second . So in one cycle , Light can only move forward 30 centimeter .
CPU One or more instructions can be executed in each clock cycle , It depends on the type of processor . Early computer processors and slower CPU Only one instruction can be executed in each clock cycle , Modern processors can execute multiple instructions per clock cycle ( Multicore ).
One CPU The execution cycle of is to extract the first instruction from memory 、 Decode and determine its type and operands , perform , Then extract 、 Decoding to execute subsequent instructions .
- Fetch, Take command . First CPU adopt PC The pointer reads the instruction corresponding to the memory address .
- Decode, Analysis instructions .CPU Decoding instructions .
- Execute, Execution instruction .CPU Execution instruction .
- Store, Memory instruction .CPU Save the result back to the register or store the register in memory .
CPU Set of instructions
Our common x86(32 position )/x64(64 position ) Refer to CPU Set of instructions .
The instruction set is CPU The medium of software directing hardware execution , Each assembly statement corresponds to a CPU Instructions , The set of instructions is called CPU Set of instructions .
64 The program of bit instruction cannot be in 32 Bit machine , because 32 Bit registers can't hold 64 Bit instruction .
The operating system is also a program ,64 Bit operating system uses 64 Bit instruction , Can't be installed in 32 On the bit machine .
版权声明
本文为[Playful wood]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230642171614.html
边栏推荐
- Intranet penetration series: pingtunnel of Intranet tunnel
- MYSQL——第一章节(数据类型2)
- 惨了,搞坏了领导的机密文件,吐血分享备份文件的代码技巧
- 数据库之MySQL——基础篇
- Smart business card applet business card details page function implementation key code
- [problem solving] vs2019 solves the problem that the EXE file generated by compilation cannot be opened
- upload-labs 靶场练习
- AAAI 2022招募讲者啦!!
- php高精度计算
- Redis -- why is the string length of string emstr the upper limit of 44 bytes?
猜你喜欢
随机推荐
Buuctf misc brush questions
C 输出一种二维数组,特点如下。
Codeforces Round #784 (Div. 4)
Dvwa 靶场练习记录
nacos源码分析思路
The displayed amount of ABAP ALV is inconsistent with the exported amount
随笔(不定时更新)
【问题解决】VS2019解决编译生成的exe文件打不开的情况
智能名片小程序名片详情页功能实现关键代码
SAP tr manual import system operation manual
SAP self created table log function is enabled
Guoji Beisheng openstack container cloud environment construction
Summary of facial classics
数据安全问题已成隐患,看vivo如何让“用户数据”重新披甲
How does feign integrate hystrix
CTF攻防世界刷题51-
【编程实践/嵌入式比赛】嵌入式比赛学习记录(一):TCP服务器和web界面的建立
AAAI 2022招募讲者啦!!
BUUCTF MISC刷題
PHP generates short links: convert numbers to letters and letters to numbers