The basic operation of most CPUS, regardless of the physical form, is making a series of scripts that are stored, called program. The command code wait for this implementation are kept in some kind of computer memory. Almost all of the CPU has the steps: get information, decode and execute the command when the operation, and are referred to as command cycle.After making an order, the whole process repeats, with the next order cycle are often retrieved the next command in the sequence because of the increased value of the pointer register command. If a command is performed, the jumping cursor commands will be modified to contain the address of the order have changed and make the program continues as normal. In more complex CPUs, multiple commands can be downloaded, decoded, and executed at the same time. This section describes what is generally referred to as the "classic RISC pipeline," which is quite popular among the simple CPUS used in many electronic devices (often called microcontroller). It largely ignores the important role of CPU cache, and therefore ignore the outreach phase of the pipeline.Some commands to manipulate the program counter rather than generate direct results data; such orders are often called "jump command" and allow the program to run iteration loops, conditional program execution (through the use of a conditional jump), and the ability to write the program. [c] In some processors, some other command changes the status of the bits in a bar inscribed "flag". The flag can be used to change the behavior of the program, since they often indicate the outcome of the various operators. For example, in the processor when a command "compare" reviews of the two values, we delete the bits in the flags register to the specified number is greater than number, or two numbers being compared are equal; one of the this flag could then be a jump command used to define branching depending on the comparison result.
đang được dịch, vui lòng đợi..
