Principles of Computer Organization
Explanation: The general principle of logic realization of digital computer hardware system
Lecture content
- The structure and organization of the basic components
- Principles of operation of basic operations
- Design ideas of basic components and units
Article Directory
- Principles of Computer Organization
-
- 1. Introduction to Computer System
- 2. The basic composition of a computer
-
- 2.1 Features of Von Neumann Computer
- 2.2 Solve von Neumann computer problems ==> modern computers
- 2.3 Use computers to solve real-world problems
- 2.4 The basic composition of the memory
- 2.5 Calculator
-
- 2.5.1 Basic composition
- [External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-Gwn6fe5j-1614954486806) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305201114290 .png)]
- 2.5.2 Operation
- 2.5.3 Addition operation process
- 2.5.4 Subtraction operation process
- 2.5.5 Multiplication operation process
- 2.5.6 Division operation process
- 2.6 Controller
- 2.7 The process of the host completing an instruction
- 2.8 Comprehensive case
- 3. The main technical indicators of computer hardware
1. Introduction to Computer System
HPC : A great computer
1.1 The software and hardware concepts of computer systems
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-ReiX1618-1614954486784) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305110703760.png) ]
1.2 The hierarchical structure of the computer system
- System complexity management method 1: Abstract
9 layers are abstracted according to the physical structure
The hierarchy in the programmer:
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-Zuj4h5eq-1614954486786) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305112259375.png) ]
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-LmaLOqeu-1614954486789) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305112708686.png) ]
1.3 Computer architecture and computer composition
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-MNaZTylp-1614954486791) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305113137027.png) ]
2. The basic composition of a computer
2.1 Features of Von Neumann Computer
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-asy3UnDo-1614954486792)(C:\Users\LENOVO\Desktop\unit\assets\image-20210305114356890.png) ]
Hardware block diagram
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-dyNPQjHE-1614954486795) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305114827487.png) ]
Solid line: data path
Dotted line: control and status feedback path
Calculator: logical operations and mathematical operations
Memory: Store program
Controller: Command the program to run, complete the order of instructions
Input device: Convert information into a form that the computer can recognize
Output device: Convert the computer's processing results into a form that people can recognize
problem
- Taking the arithmetic unit as the core, causing the arithmetic unit to become a development bottleneck
- Chaotic system
2.2 Solve von Neumann computer problems ==> modern computers
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-LaPuN5it-1614954486796) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305115611243.png) ]
But still messy
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-MHSMPUnt-1614954486797) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305115819469.png) ]
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-tkRjuH5P-1614954486798) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305115910163.png) ]
Method 2 of System Complexity Management (3Y):
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-cZv59mO0-1614954486799) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305131401599.png) ]
2.3 Use computers to solve real-world problems
Computability
是否可以用计算机来解决
Computer work steps:
Preparation before boarding
- Build a mathematical model
- Determine the calculation method
- Programming
- Procedure-all steps of calculation
- Instructions-every step
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-tosyBGrn-1614954486800) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305132934706.png) ]
ACC: Register
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-8SWsXtmF-1614954486801) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305133723757.png) ]
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-LWs1fND4-1614954486802) (C:\Users\LENOVO\Desktop\unit\assets\image-20210305134025388.png) ]
2.4 The basic composition of the memory
Instructions and data are stored in the memory
Core structure
Storage body
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-UcCdYAL1-1614954486803) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305164146768 .png)]
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-h0HOvcDg-1614954486804) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305164523758 .png)]
MAR : memory address register: reflect the number of memory cells
MDR : memory data register: response memory word length
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-WTaSZ4oW-1614954486805) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305165153374 .png)]
The data stored in each storage unit is called a storage word
The length of the data stored in each storage unit is called the storage word length
2.5 Calculator
2.5.1 Basic composition
Core : ALU (Arithmetic Logic Operation Unit)
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-Gwn6fe5j-1614954486806) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305201114290 .png)]
The letters in the picture are registers
Note
如果设计的计算机不是累加型的计算机,那么寄存器数量会发生变化。
2.5.2 Operation
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-bLLzVy7g-1614954486807) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305202323126) .png)]
2.5.3 Addition operation process
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-MdkhugWU-1614954486808) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305202629152 .png)]
2.5.4 Subtraction operation process
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-dZ5N4WgE-1614954486808) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305202852638 .png)]
2.5.5 Multiplication operation process
Realized by accumulating and shifting, cleared before accumulating!
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-0d0uLUhv-1614954486809) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305203148524 .png)]
第一个操作和第二个操作顺序可换
Sequence controlled by the controller
2.5.6 Division operation process
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-HSV7vMhu-1614954486810) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305203645703 .png)]
MQ: Multiplying Quotient Register
2.6 Controller
Features:
- Explain the instructions
- Ensure the orderly execution of instructions
Explain (complete) an instruction process:
- Instruction fetch: fetch the instruction stored in the memory unit and send it to the controller
- Analysis instruction: send the operation code part to the control unit for analysis
- Execution instructions: the control unit controls the corresponding components to perform operations
CU is the core
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-LSLKB5dc-1614954486810) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305205443858 .png)]
IR PC is also a register
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-de7zXrjb-1614954486811) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305205512738 .png)]
2.6.1 Exercises
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-wGmhBZEB-1614954486812) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305205708279 .png)]
2.7 The process of the host completing an instruction
Host: arithmetic unit + controller + memory
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-qAU6VBca-1614954486813) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305210017815) .png)]
2.7.1 Take the fetch instruction as an example:
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-zuK9ekT8-1614954486814)(C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305210557419 .png)]
2.7.2 Take the storage instruction as an example:
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-3NNykUQL-1614954486815) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305211319156) .png)]
2.8 Comprehensive case
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-PJTXyxlY-1614954486816) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305212523508 .png)]
每条指令运行结束后,需要对PC进行加一处理
本图片上显示的是取指令,在取——分析——执行过程中,并没有用到PC,所以可以直接在取完指令后进行加一处理
3. The main technical indicators of computer hardware
- Machine word length: The number of bits of data that the CPU can process at a time is related to the number of registers in the CPU. Generally speaking, the longer the machine word length, the better the machine performance
在我们模型机里,机器字长、存储字长、 指令字长都一样
-
calculating speed
- Main frequency
- Number of cores, the number of threads supported by each core
这俩不是机器速度的直接指标
-
Gibson's method f is the frequency of instruction occurrence, t is the time of instruction execution
-
[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-ow7L71ck-1614954486816) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210305215450535 .png)]
-
CPI: The number of clock cycles required to execute an instruction, the reciprocal of which is IPC
-
MIPS: execute millions of instructions per second
-
FLOPS: the number of floating point operations per second
-
Storage capacity: the total number of digits to store binary information
The instruction word length is the same
- 运算速度
- 主频
- 核数,每个核支持的线程数
```这俩不是机器速度的直接指标```
- 吉普森法 f是指令出现的频率、t是指令执行的时间
- [外链图片转存中...(img-ow7L71ck-1614954486816)]
- CPI:执行一条指令所需时钟周期数 它的倒数是IPC
- MIPS:每秒执行百万条指令
- FLOPS:每秒浮点运算次数
- 存储容量:存放二进制信息的总位数
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-TTTx1h73-1614954486817)(C:\Users\LENOVO\Desktop\学习笔记\机组\assets\image-20210305220648939.png)]