Article Directory
5.1.1 Function of CPU
1) 指令控制
Fetch instructions, analyze instructions, and execute instructions.
2) 操作控制
Send the operation signal to the corresponding component.
3) 时间控制
4) 数据加工
Arithmetic and logical operations.
5) 中断处理
Deal with computer abnormalities.
5.1.2 CPU structure
1. Operator
1) Arithmetic logic unit
2) Temporary storage register(对应用程序员透明)
3) Accumulation register
4) General register group(存放源操作数、目的操作数、各种地址信息)
The length is equal to the machine word length for easy operation
5) Program status word register
6) Shifter
7) Counter
2. Controller
1) Program counter存储后继指令内存单元地址
Stored is the address of the memory, the length is related to the memory capacityPC->MAR
2) Instruction registerLength depends on instruction length
3) Instruction decoder
4) Memory address register
5) Memory data register
6) Timing system
7) Micro-operation signal generator
例题