Clearly there are at any rate two stages in the pattern of a guidance: get (for example the guidance is brought into CPU, all the more definitely into IR) and execute.
Virgil Bistriceanu
Illinois Institute of Technology
At a more intensive look a few substeps can be seen:
1. Instruction Bring Step: MAR PC
IR M [MAR]
The substance of PC is moved into MAR; at that point the guidance at address MAR is brought into IR.
2. Instruction Decipher/Register Bring Step:
Interpreting the guidance is the progression when the control chooses what ought to be done straightaway; on the off chance that the guidance has a fixed fields position, at that point the substance of registers indicated in the guidance can be added something extra to An and B simultaneously with the unraveling.
It is additionally in this stage PC must be refreshed; what amount is to be added to the PC so as to get the new PC (for example the location of next guidance to be executed)? Different elements are to be thought of, similar to guidance width, byte/word addressable memory, memory arrangement.
3. Execution
On account of a math rationale activity whose operands are in registers the activity is performed.
In the event that the guidance is a heap/store, at that point the location must be figured and at exactly that point the activity can be performed.
On account of a branch/bounce activity the objective location must be figured and, for a restrictive branch/hop, PC might be refreshed or not relying upon the banner (condition) being tried.
The execution step could be additionally separated into explicit substeps for every guidance or class of directions.
No comments:
Post a Comment