Instruction Cycle and Timing Diagrams

In this course, we will study what is Instruction Cycle and Timing Diagrams & machine cycle So let us start.

What is an instruction cycle?

The time required for the completion or execution of one instruction is known as the instruction cycle. The instruction cycle consists of a fetch cycle, decode instruction, reading effective address, and execution cycle.

Fetch cycle

The next instruction is fetched by the address stored in the program counter (PC) and then stored in the instruction register.

Decode instruction

Decoder interprets the encoded instruction from the instruction register.

Reading effective address

The address given in instruction is read from the main memory and the required data is fetched. It depends on direct addressing mode or indirect addressing mode.

Execution cycle

It consists of the memory read (MR), memory write (MW), input-output read (IOR) and input-output write (IOW).

What is the Machine Cycle?

What are the T states?

What are the timing diagrams?

The timing diagrams are a graphical representation. It is used for the representation of the execution time taken by each instruction in a graphical format. The t states represent the timing diagrams.

What are the timing diagrams

  1. CLOCK - It is the clock pulse provided to the user.

  2. AD0-AD7 - These are used to carry data and address. It is the lower address bus. The decision when it will carry an address and when it will carry data is made by ALE.

  3. A8-A15- It is used to carry the address bits.

  4. ALE - It provides the signal for multiplexed address and data bus. If the signal is high or 1, a multiplexed address and data bus will be used as an address bus. To fetch a lower bit of address, the signal is 1 so that the multiplexed bus can act as an address bus. If the signal is low or 0, the multiplexed bus will be used as the data bus. When a lower bit of address is fetched then it will act as a data bus as the signal is low.

  5. RD (low active) - If the signal is high or 1, no data is read by the microprocessor. If the signal is low or 0, data is read by the microprocessor.

  6. WR (low active) - If the signal is high or 1, no data is written by the microprocessor. If the signal is low or 0, data is written by the microprocessor.

  7. IO/M (low active) and S1, S0 - If the signal is high or 1, the operation is performing on input-output. If the signal is low or 0, the operation is performing on memory.