The composition of the underlying principles of the computer (CPU)

Foreword

Some time ago Huawei chip sparked heated debate, the United States off for a variety of technology products, Huawei, said: not true, I bought A ## title V8 RM - perpetual copyright CPU architecture, the question is, what is the ARM V8 architecture? What the hell is this, get to know the whole for a few days, the way to learn about the underlying principles of the computer, write to avoid forget, this article is CPU-centric explain.

The composition of the computer

Computer composition is divided into hardware and software, the hardware is divided into input and output devices, is the keyboard, mouse, monitor, hard drive, memory, CPU and so on, the software is the operating system, applications, etc., this is not interpretable, almost everyone understood.

Hardware - five and six arms computers

CPU (Central Processing Unit) processing services

He said CPU is the planet's most cutting-edge technology, no exaggeration! CPU that is the rub sand out of a chip, and then to test can not be used, then the test frequency, parameters, named high and low signal to the CPU based on the parameters in the end come. Incidentally attach CPU processes video address

CPU operating principle is simple, the transistor is connected through the circuit, has power to represent 0 or 1, which is the lowest level of CPU process principles, followed by CPU architecture, CPU architecture what is it? Architecture can give another word easy to understand - the layout, the CPU CPU architecture is to create drawings. ARM to manufacture the CPU to the CPU manufacturing company, you follow the transistor layout architecture diagram of the circuit layout how to manufacture CPU. Then simply pop a little bit, CPU architecture, wrote those places transistor installed in the CPU, how many, how circuits of these transistors are connected. Then there are various architectures unit, logic unit, registers, program counter and the like. Huawei buying this ARM v8 architecture! After do not think has been manufacturing drawings, all companies are able to build on the CPU, the CPU production is very complex, high low-end CPU allocation models are made out to test frequency, processing capacity, high parameter is the high-end chip, the parameters low is the low-end chip. That Huawei why not develop its own CPU architecture it? The ARM architecture is a good company research a few years, only to come out the best layout program in the CPU, you have to look for the best? And finding out yourself, is similar infringement.

With CPU architecture, but also how to run the key, then it is also appropriate to the ARM instruction set, the instruction set is what? This latter level software to tell you.

Keyboard, mouse, monitor, hard drives, memory, motherboard, CPU and other hardware

Here Insert Picture Description

Other hardware are carried out by bridging the motherboard, if the CPU is the brain, and that the motherboard is the nervous, keyboard, mouse, monitor, hard drive, memory, hardware, with the CPU to interact through the bridge of the motherboard, and then complete the complex calculations, storage, display ,input Output. For example: You enter those = 1 + 1 operation, the system occurring in the keyboard. 1, the keyboard 1 + 1 =, keyboard input to be displayed on the display, the keyboard connected to the motherboard, the motherboard to the news to CPU, CPU starts the distribution data, the CPU data tells graphics card start compiling pixels, the screen It came on the show. 2, the input 1 + 1 = you mouse click operation, a mouse click command, reaches the motherboard, the motherboard told CPU "calculating", CPU calculates (specifically how calculation, here it has been omitted, it is advisable Baidu), computed to display the results on the screen, CPU- board - graphics - display, you can see. 3, you want to save the 1 + 1 = 2, and retains instructions - Motherboard -CPU- motherboard - the hard disk, the data thus stored.

It is such a perfect match between hardware, such a powerful computer to appear today, the end of the hardware level.

Software - the perfect interaction between man and machine

Speaking of software, you may know more, QQ, micro letter, nails, etc., all kinds. Here talking about the software, go to our in-depth understanding of the underlying language, how interact with the CPU.

Here Insert Picture Description

Everyone has a computer operating system, CPU and operating system language is direct interaction of it? However, not. CPU only know these two numbers 0/1, while the operating system is a high-level language, such as windows is written in C ++, then the CPU and operating system how to interact with it? High-level language - assembly language - machine language - assembly language - high-level language, which is the order of interaction, machine language is 0/1. The beginning of the computer code programmers write such code is 010110, and later this code, ordinary people difficult to understand, how to do? Introduced assembly language, assembly language syntax is more close to the people, but it is low-level language. Focus here, CPU architecture instruction set mentioned earlier, is to tell you 01 What is the meaning, this figure has 0110010110101010001 What is the meaning, the beginning programmer, is looking at this set of instructions knock 0100001010, and later because of too much trouble not universal, and it is based on machine language instruction set, assembly language developed, more close to the people's assembly language syntax, you can directly enter this text, this text will then convert the assembly language-bit binary format such as 0,101,100, AC to the CPU, thus greatly improving the development programmers have more popularity, while the operating system is the operating system in assembly language on the basis of the development, and the birth of the operating system, making the interaction between man and machine reaches more perfect proportions.

The 2 + 2 = 4 as an example, look at the computer how to handle it: 1, keyboard, mouse, tablet, etc. input data. 2, 1 + 1 = high-level language - assembly language - machine language 001 + 001 =. 3, the bridge motherboard CPU. 4, the data reaches the CPU 001 + 001 =. 5, to start the operation. 6, the operation result binary 100.7, bridging the motherboard, the transmission data. 8, machine language 001 + 001 = 100 - assembly - a high-level language + 1 = 2.9, the data is transmitted through the motherboard to an output device, display screen, RAM memory, hard disk storage.

Epilogue

Articles may be coarser, less detailed. Because most people can not use it in detail, if the problem persists, contact me modify promptly.

Published an original article · won praise 0 · Views 27

Guess you like

Origin blog.csdn.net/foemat/article/details/104430057