Computer composition principle-cpu

Source: Internet
Author: User

 

Cpu, Chinese name central processing unit, central processing unit. The core of the system, used for data processing, arithmetic operations, and execution of logical operations and control programs.



Composition


Timer


Literally, it can be understood that the compiler is mainly used for logical and arithmetic operations.

In the memory, it consists of arithmetic logic units, accumulate registers, data buffer registers, and status registers.


See figure



The figure roughly shows the data processing process of the scanner. And how the processors work together to achieve data or logical processing. From the analysis above, we can see that each device has its own role and rationale.


Controller

Instruction register

Command registers are used to store commands read from memory. Then, according to these commands, the cpu is sent to the receiver for processing to control the running of components.

Program counters

The next instruction required by the cpu is always stored here.


Address Register

The memory address read by the cpu is stored.

 

Instruction decoder

 

Here, the Command verification tool mainly consists of two types of operation codes and commands. When the command is an operation code, you need to switch the operation code from the command decoder to the command. In this way, it is sent to the instruction register.


Register


The register here is equivalent to a storage that can be quickly accessed. There are dedicated registers used to store commands and addresses. Some are idle. When a program needs something, it becomes something. This is the same as the reception of special vehicles and taxis. The reception of special vehicles is similar to the special register for someone. Taxis do not have to be dedicated to anyone. It is determined by the people who rent a car, whoever rents a car is who is using it. If you don't rent a car, you will stay idle.

The process of the controller is roughly



The cpu provides the address of the memory to be accessed, and reads the commands to be executed from the memory. The commands are temporarily input into the buffer, and the buffer is converted to the commands through the instruction decoder, the command is returned to the cpu through the instruction register. The cpu sends the command to the worker for processing and finally outputs the command. This process.


Function


Program Control

Main cpu Functions


Time Control

Control Command Execution time


Operation Control

Control the commands that operate those programs.


Data Processing

Processing data and logical operations


All of the above are understandings when learning the cpu. If there is any error, please correct it.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.