Machine cycle

Updated: 02/07/2022 by Computer Hope

The steps performed by the computer processor for each machine language instruction received. The machine cycle is a four-process cycle that includes reading and interpreting the machine language, executing the code, and then storing that code.

Computer machine cycle

Tip

The process of cycling instructions may also be known as the E-cycle (execution cycle), I-cycle (instruction cycle), fetch-decode-execute cycle, or fetch-execute cycle.

Four steps of the machine cycle

  1. Fetch - Retrieve an instruction from memory.
  2. Decode - Translate the retrieved instruction into computer commands.
  3. Execute - Execute the computer commands.
  4. Store - Send and write the results back in memory.

Example of a machine cycle

Below is an example of a machine cycle performing the steps mentioned above for a math problem.

  1. The computer user enters a math problem that's stored in memory. The computer fetches that instruction from memory.
  2. The control unit decodes that math problem into instructions the computer understands.
  3. The ALU (arithmetic logic unit) executes the instructions to get the answer to the math problem.
  4. The problem's answer is sent to and stored in memory where it can be accessed and displayed to the user.

Improvements with pipelining

Early computer processors needed to wait until an instruction completed all four stages before beginning work on the next instruction. However, today's computers use pipelining, which allows the processor to begin fetching a second instruction before it has completed the machine cycle for another instruction.

ALU, Control Unit, CPU terms, Cycle, Instruction, Machine, Machine language, Program counter