written 8.5 years ago by | modified 2.9 years ago by |
Mumbai University > Information Technology > Sem 4 > Computer organization and Architecture
Marks: 10M
Year: Dec 2014
written 8.5 years ago by | modified 2.9 years ago by |
Mumbai University > Information Technology > Sem 4 > Computer organization and Architecture
Marks: 10M
Year: Dec 2014
written 8.5 years ago by |
A typical instruction cycle can be split into many sub cycles like Fetch instruction,
Decode instruction, Execute and Store. The instruction cycle and the corresponding sub cycles are performed for each instruction. These sub cycles for different instructions can thus be interleaved or in other words these sub cycles of many instructions can be carried out simultaneously, resulting in reduced overall execution time. This is called instruction pipelining.
Write operand (WO):
Fetch instruction: Instructions are fetched from the memory into a temporary buffer before it gets executed.
Decode instruction: The instruction is decoded by the CPU so that the necessary op codes and operands can be determined.
Calculate operand: Based on the addressing scheme used, either operands are directly provided in the instruction or the effective address has to be calculated.
Fetch Operand: Once the address is calculated, the operands need to be fetched from the address that was calculated. This is done in this phase.
Execute Instruction: The instruction can now be executed.
Write operand: Once the instruction is executed, the result from the execution needs to be stored or written back in the memory.