instruction cycle
The instruction cycle (also known as the fetch–decode–execute cycle, or simply the fetch–execute cycle) is the cycle that the central processing unit (CPU) follows from boot-up until the computer has shut down in order to process instructions.[src] It is composed of three main stages: the fetch stage, the decode stage, and the execute stage.[src] In simpler CPUs, the instruction cycle is executed sequentially, each instruction being processed before the next one is started.[src] In most modern CPUs, the instruction cycles are instead executed concurrently, and often in parallel, through an instruction pipeline: the next instruction starts being processed before the previous instruction has finished, which is possible because the cycle is broken up into separate steps.[src]
The instruction cycle (also known as the fetch–decode–execute cycle, or simply the fetch–execute cycle) is the cycle that the central processing unit (CPU) follows from boot-up until the computer has shut down in order to process instructions.[src] It is composed of three main stages: the fetch stage, the decode stage, and the execute stage.[src] In simpler CPUs, the instruction cycle is executed sequentially, each instruction being processed before the next one is started.[src] In most modern CPUs, the instruction cycles are instead executed concurrently, and often in parallel, through an instruction pipeline: the next instruction starts being processed before the previous instruction has finished, which is possible because the cycle is broken up into separate steps.[src] ==Role of components== ==Summary of stages== Each computer's CPU can have different cycles based on different instruction sets, but will be similar to the following cycle: Fetch stage: The fetch stage initiates the instruction cycle by retrieving the next instruction from memory.[src] During this stage, the PC is polled for the address of the instruction in memory (using the MAR).[src] Then the instruction is stored from the MDR into the CIR.[src] At the end of this stage, the PC points to the next instruction that will be read at the next cycle.[src] Decode stage: During this stage, the encoded instruction in the CIR is interpreted by the CU.[src] It determines what operations and additional operands are required for execution and sends respective signals to respective components within the CPU, such as the ALU or FPU, to prepare for the execution of the instruction.[src] Execute stage: This is the stage where the actual operation specified by the instruction is carried out by the relevant functional units of the CPU.[src] Logical or arithmetic operations may be run by the ALU, data may be read from or written to memory, and the results are stored in registers or memory as required by the instruction.[src] Based on output from the ALU, the PC might branch.[src] Repeat cycle In addition, on most processors, interrupts can occur.[src] This will cause the CPU to jump to an interrupt service routine, execute that, and then return to the instruction it was meant to be executing.[src] In some cases, the instruction can be interrupted in the middle, but there will be no effect, and the instruction will be re-executed after return from the interrupt.[src] ==Initiation== The first instruction cycle begins as soon as power is applied to the system, with an initial PC value that is predefined by the system's architecture (for instance, in Intel IA-32 CPUs, the predefined PC value is 0xfffffff0 whereas for ARM architecture CPUs, it is 0x00000000 .) Typically, this address points to a set of instructions in read-only memory (ROM), which begins the process of loading (or booting) the operating system.[src] ==Fetch stage== The fetch stage is the same for each instruction: The PC contains the address of the instruction to be fetched.[src] This address is copied to the MAR, where this address is used to poll for the location of the instruction in memory.[src] The CU sends a signal to the control bus to read the memory at the address in MAR - the data read is placed in the data bus.[src] The data is transferred to the CPU via the data bus, where it's loaded into the MDR - at this stage, the PC increments by one.[src] The contents (instruction to-be-executed) of the MDR are copied into the CIR (where the instruction opcode and data operand can be decoded).[src] ==Decode stage== The decoding process allows the processor to determine what instruction is to be performed so that the CPU can tell how many operands it needs to fetch in order to perform the instruction.[src] The opcode fetched from the memory is decoded for the next steps and moved to the appropriate registers.[src] The decoding is typically performed by binary decoders in the CPU's CU.[src] ==Execute stage== The CPU sends the decoded instruction (decoded from the CU) as a set of control signals to corresponding components.[src] Depending on the type of instruction, any of these can happen: Arithmetic/logical operations can be executed by the ALU (for example, ADD, SUB, AND, OR) Read/writes from memory can be executed (for example, loading/storing bytes) Control flow alterations can be executed (for example, jumps or branches) - at this stage, if a jump were to occur, instead of the PC incrementing to the adjacent pointer, it would jump to the pointer specified in the instruction This is the only stage of the instruction cycle that is useful from the perspective of the end-user.[src] Everything else is overhead required to make the execute step happen.[src] ==See also== Time slice, unit of operating system scheduling Classic RISC pipeline Complex instruction set computer Cycles per instruction Branch predictor Instruction set architecture ==References==[src]
33 sentences · 33 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"instruction cycle." encyclopegia.org, 2026, https://encyclopegia.org/wiki/instruction-cycle. Accessed 26 November 2026.
Chicago
"instruction cycle." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/instruction-cycle.
APA
encyclopegia.org. (2026). instruction cycle. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/instruction-cycle
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON