Instruction - Cycle

> Computer System > Instruction (Machine Language)

1 - About

An instruction cycle (sometimes called fetch-decode-execute cycle) is the basic operation cycle of a computer.

The CPU requires a fixed number of clock ticks (or clock cycles) to execute each instruction. The faster the clock, the more instructions the CPU can execute per second.

The implementation from a logical point of view can be seen in the computer organization architecture.

From one CPU model to another, the complete pipeline (included all operations) may varied.

In most modern CPUs, the instruction cycle is instead executed concurrently in parallel, as an instruction pipeline: the next instruction starts being processed before the previous instruction is finished, which is possible because the cycle is broken up into separate steps.


3 - Steps

Each time the processor's clock pulses (ticks), the control unit does these steps:

3.1 - Fetch

3.2 - Decode

  • Decode or identify the instruction,

3.3 - Execute

  • The ALU executes the instruction (and therefore manipulates the registers accordingly).
  • Stores the result.

3.4 - End

4 - Counter

4.1 - TSC (Timestamp counter)

Each core on a moder CPU has a TSC (Timestamp counter) that counts the number of ticks that have transpired. See Tick count

5 - Documentation / Reference

computer/instruction/cycle.txt ยท Last modified: 2019/01/11 17:27 by gerardnico