What is Instruction Cycle in Computer Architecture?

Computer ArchitectureComputer ScienceNetwork

A program consisting of the memory unit of the computer includes a series of instructions. The program is implemented on the computer by going through a cycle for each instruction.

In the basic computer, each instruction cycle includes the following procedures −

  • It can fetch instruction from memory.
  • It is used to decode the instruction.
  • It can read the effective address from memory if the instruction has an indirect address.
  • It can execute the instruction.

After the following four procedures are done, the control switches back to the first step and repeats the similar process for the next instruction. Therefore, the cycle continues until a Halt condition is met. The figure shows the phases contained in the instruction cycle.

As display in the figure, the halt condition appears when the device receive turned off, on the circumstance of unrecoverable errors, etc.

Fetch Cycle

The address instruction to be implemented is held at the program counter. The processor fetches the instruction from the memory that is pointed by the PC.

Next, the PC is incremented to display the address of the next instruction. This instruction is loaded onto the instruction register. The processor reads the instruction and executes the important procedures.

Execute Cycle

The data transfer for implementation takes place in two methods are as follows −

  • Processor-memory − The data sent from the processor to memory or from memory to processor.
  • Processor-Input/Output − The data can be transferred to or from a peripheral device by the transfer between a processor and an I/O device.

In the execute cycle, the processor implements the important operations on the information, and consistently the control calls for the modification in the sequence of data implementation. These two methods associate and complete the execute cycle.

State Diagram for Instruction Cycle

The figure provides a large aspect of the instruction cycle of a basic computer, which is in the design of a state diagram. For an instruction cycle, various states can be null, while others can be visited more than once.

  • Instruction Address Calculation − The address of the next instruction is computed. A permanent number is inserted to the address of the earlier instruction.
  • Instruction Fetch − The instruction is read from its specific memory location to the processor.
  • Instruction Operation Decoding − The instruction is interpreted and the type of operation to be implemented and the operand(s) to be used are decided.
  • Operand Address Calculation − The address of the operand is evaluated if it has a reference to an operand in memory or is applicable through the Input/Output.
  • Operand Fetch − The operand is read from the memory or the I/O.
  • Data Operation − The actual operation that the instruction contains is executed.
  • Store Operands − It can store the result acquired in the memory or transfer it to the I/O.
raja
Published on 24-Jul-2021 09:39:07
Advertisements