The CPU now carries out the instruction.
Fetch brought the instruction into the CPU. Decode worked out what it meant.
Execute is the stage where the instruction is finally carried out.
β
Decode
β
Execute
Understand how the CPU carries out a decoded instruction and stores the result before the FetchβDecodeβExecute cycle repeats.
Fetch brought the instruction into the CPU. Decode worked out what it meant.
Execute is the stage where the instruction is finally carried out.
Once the instruction has been decoded, the Control Unit sends control signals to the correct CPU components.
These signals tell the CPU what needs to happen next.
The chef has read the recipe card and understood the instruction.
Now they actually do it: chop, mix, add, compare, or store something for later.
If the instruction needs arithmetic or logic, the ALU does the work.
ALU means Arithmetic Logic Unit. The result is stored in the ACC, the Accumulator.
Not every instruction is a calculation. Some instructions load data from memory or store data back into memory.
The Control Unit sends signals so data moves between RAM, the MDR and the CPU.
The ALU performs arithmetic and logical operations.
The ACC stores the result of those operations.
Students often write that the accumulator calculates the answer.
That is not correct. The accumulator stores the result after the ALU has done the work.
During execute, the Control Unit sends signals to carry out the decoded instruction.
The ALU may perform arithmetic or logical operations, and the ACC stores the result. Then the FDE cycle repeats.
Now that you understand Fetch, Decode and Execute, the next lesson explores what affects CPU performance.