- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is Instruction Cycle in Computer Architecture?
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.
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.
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.
- What is Instruction Mapping in Computer Architecture?
- What is Instruction Pipeline in Computer Architecture?
- What is data transfer instruction process in Computer Architecture?
- What are Instruction Cycles in computer architecture?
- What is the layout of Pipelined Instruction in computer architecture?
- What are Instruction Codes and Operands in Computer Architecture?
- What is computer architecture?
- Implementation of Global Instruction Scheduling in computer architecture
- What is Computer Network Architecture?
- What is Pipelining in Computer Architecture?
- What is Latches in Computer Architecture?
- What is Hector in Computer Architecture?
- What is an instruction set in a computer?
- Instruction cycle in 8085 Microprocessor
- What is Dispatch policy in Computer Architecture?