First, the main steps of a computer to execute an instruction
First step: Take a finger (fetch)
Step two: Decoding (Decode)
Step Three: Execute (EXECUTE)
Fourth step: Write Back (Write-back)
Ii. examples of execution directives
For example instruction: ADD R0, [6];
instruction function: Adding the data of register R0 and storage unit with address 6 and updating the result to R0
The first step: Take the finger
1. The controller sent the address of the instruction (the contents of the PC) to the memory
2. The memory reads the instruction content at the given address and returns it to the controller (typically stored in the IR register)
3. Update your PC
Part II: Decoding
1. Operation Nature of the controller analysis instructions
2. Control signals required by the controller to issue instructions to the relevant parts
Step Three: Execute
1. The controller removes the operand from the general register or memory
2. The controller command operator operates on instructions specified by the operand
Fourth step: Write Back
Writes the result of the operation to a universal register or memory
The next instruction will be executed automatically (take the value of the PC to continue execution)
1-5 Procedures for computer execution instructions