What is the instruction execution cycle

instruction cycle



By Vangie Beal

The time period during which one instruction is fetched from memory and executed when a computer is given an instruction in machine language. There are typically four stages of an instruction cycle that the CPU carries out:

  1. Fetch the instruction from memory. This step brings the instruction into the instruction register, a circuit that holds the instruction so that it can be decoded and executed.
  2. Decode the instruction.
  3. Read the effective address from memory if the instruction has an indirect address.
  4. Execute the instruction.

Steps 1 and 2 are called the fetch cycle and are the same for each instruction. Steps 3 and 4 are called the execute cycle and will change with each instruction.

The term refers to both the series of four steps and also the amount of time that it takes to carry out the four steps.

An instruction cycle also is called machine cycle.









WEBOPEDIA NEWS

Stay up to date on the latest developments in Internet terminology with a free newsletter from Webopedia. Join to subscribe now.