大象传媒

The CPU - EduqasThe fetch-decode-execute cycle

Most general purpose computers are based on von Neumann architecture. This includes using the fetch-decode-execute cycle to process program instructions. Computer performance depends on cache size, clock speed and the number of cores.

Part of Computer ScienceUnderstanding Computer Science

The fetch-decode-execute cycle

The fetch-decode-execute cycle is a key feature of the and consists of seven stages:

  1. The address held in the program counter (PC) is copied into the memory address register (MAR).
  2. The address in the program counter is incremented (increased) by one. The program counter now holds the address of the next to be .
  3. The processor sends a signal along the address to the memory address held in the MAR.
  4. The instruction or held in that memory address is sent along the data bus to the memory data register (MDR).
  5. The instruction or data held in the MDR is copied into the current instruction register (CIR).
  6. The instruction or data held in the CIR is and then . Results of processing are stored in the .
  7. The cycle returns to step one.

The principles of the fetch-decode-execute cycle