Traditional Culture Encyclopedia - Traditional stories - Why can software affect hardware, state the principle.

Why can software affect hardware, state the principle.

Oh, it's been a while since I've answered a question, so I'll give you a good one and we'll understand it together.

Software commands (these commands are initially programmed and designed) are ultimately converted into a computer can recognize the machine language, that is, we usually hear 01010101010101, this long string of machine code in the hardware is reflected in electrical impulses or electrical signals, in the super

Large-scale integrated circuits in the implementation of logical operations or operations (specific, that is, circuit knowledge)

The most basic principles are very, very simple, simple to let you surprise, that is, through the circuit, break the circuit), and ultimately the formation of the current computing speed of the amazing computer.

To understand it clearly would require a basic knowledge of several subjects.

You don't understand why software can control hardware, probably because you think software is invisible, how can it control hardware such a tangible entity.

In fact, the problem is very simple, the software is also an entity at work, the essence of the software is the current signal, with the voltage level represents different information, with these current signals to control the logic circuit of the on and off, relying on the logic circuit of the on and off to control the work of the hardware.

In the end, the software is to play a role in switching signals, switches to work, it is necessary to ensure that the hardware is energized, not connected to the power supply of the hardware is unable to control the software. It's like not plugging in the lamp, how you press the switch is not bright.

Any software has to have a physical process of converting it into a current signal before it can run, and the software code you write on paper can never control the hardware. Early computers used manual wiring to enter the program, equivalent to the human body's power to the software code

code materialized into electrical signals; now we use floppy disks, hard disk is through the magnetic head of the program code into electrical signals, CD-ROM needs to be through the optical head of the program code into electrical signals and so on.

This problem seems simple, but in fact involves some very basic content and principles. The reason there is again no way to make sense of it for the average computer enthusiast is that we never consider the physical implementation of the circuit.

Computer software is, in the end, nothing more than a sequence of instructions to guide the work of electronic components, so you must be asking why the electronic components will work according to these sequences? Instruction sequence in the circuit is the essence of some regular and have a certain meaning of electrical impulses, electrical impulses control the various states of electronic components. The working process is very complex. The simplest and most basic is the realization of several logic gate circuits: such as "or" circuit, "and" circuit and so on. By combining and synergizing these logic gates, the overall computing and processing power of the computer can be realized. Because this is a dozen or so orders of magnitude of the basic circuitry of the organic collection of external manifestations, such as the Pentium series CPU integrated hundreds of millions of semiconductor components, to the function of each component

thoroughly cognizant, is very difficult. They can be compared to each person's activities together constitute a society

There are units, there are abstract As an abstract life electricity network, you can use an electrical appliance as an abstract unit, but also a family as an abstract unit, an abstract unit connected to the network, the specific access, the abstract unit is completely by itself to achieve, ideally each functional module that is the abstraction of the unit, there are Ideally each functional module, the abstract unit, would have an interface and become part of the network, providing interfaces to new parts. Ideally the home circuit would have interface modules that could be expanded at will; every but unit would have an in and out, any combination of connections, and the total unit would have an in and an out

Software can send commands

to make a certain pin of the cpu

signal a high or low signal

thereby controlling the hardware

I'm interested in the program. p>

My Thoughts on Programs

I've had this problem and was confused for a long time. Every time I looked on the internet, it didn't say what I wanted it to say, or it said it was in the principle of composition book or something. Now I understand, is according to their own ideas to understand, I hope that like my confused is confused can be here to get the answer to help you

How does the software control the hardware (the following is only my personal understanding, do not guarantee the correct, if wrong hope to be able to get your guidance. Thank you in advance)

Everyone knows. Hardware without software is a pile of scrap metal or "sand". You also know that the cpu has a thing called decoder, you also know that we write the program to go through the compilation ah, assembly ah, connection ah. The last generation can be hardware

executed binary. But the question is, what binary can the hardware recognize. Here's where you might not understand. In fact, the key to interpretation is here. High and low voltage. Pulse of the presence or absence of control hardware you can accept it, and we write the program

Program (software) is actually high and low voltage, pulse of the presence or absence of storage on disk. Or on a CD-ROM in the form of a reflection with or without a pulse. The so-called machine-executable code, which is binary, is understood by the decoder. He understands it, the cpu understands it, and the cpu selects switches to control the hardware according to hardware settings and hardware characteristics. (Can you understand, if you still have any questions leave a message, targeted solutions may be better,)

In fact, the computer will be quite complex problems will eventually be converted into addition (ALU) to realize, (too amazing, I can not understand.)

In fact, the computer will be quite complex problems will eventually be converted into addition (ALU) to achieve, (too amazing, I can not understand. But I know, lol, it helps to understand.

How software controls hardware

Software is also an entity at work, the essence of the software is the current signal, with the voltage level represents different information, with these current signals to control the logic circuitry of the on-off, by the logic circuitry of the on-off to control the work of the hardware.

In the end, the software is to play a role in switching signals, switches to work, it is necessary to ensure that the hardware is energized, not connected to the power supply of the hardware is unable to control the software. It's like not plugging in the lamp, how you press the switch is not bright.

Any software has to have a physical process of converting it into a current signal before it can run, and the software code you write on paper can never control the hardware. Early computers used manual wiring to enter the program, equivalent to the human body's power to the software code

code materialized into electrical signals; now we use floppy disks, hard disk is through the magnetic head of the program code into electrical signals, CD-ROM needs to be through the optical head of the program code into electrical signals and so on.

This problem seems simple, but in fact involves some very basic content and principles. The reason there is again no way to make sense of it for the average computer enthusiast is that we never consider the physical implementation of the circuit.

Computer software is, in the end, nothing more than a sequence of instructions to guide the work of electronic components, so you must be asking why the electronic components will work according to these sequences? Instruction sequence in the circuit is the essence of some regular and have a certain meaning of electrical impulses, electrical impulses control the various states of electronic components. The working process is very complex. The simplest and most basic is the realization of several logic gate circuits: such as "or" circuit, "and" circuit and so on. By combining and synergizing these logic gates, the overall computing and processing power of the computer can be realized. Because this is a dozen or so orders of magnitude of the basic circuitry of the organic collection of external manifestations, such as the Pentium series CPU integrated hundreds of millions of semiconductor components, to the function of each component

thoroughly cognizant, is very difficult. They can be compared to the activities of each person together constitute a society.

Computers are digital circuits, and digital circuits rely on 1,0 to control the circuit. It's the current and the pulses that make it work. Like when you hit a key on your keyboard. The same is by a large string of 00011111111111111100. to generate pulse current on the hardware to send instructions. CPU

is the operation of these data. The CPU

is the one that calculates this data and then sends out the machine language to command the other hardware to work.