Monday, 21 March 2011

Definitions of (a) Instruction Cycle (b) M/c cycle (c) T-state

Define: (a) Instruction Cycle (b) M/c cycle (c) T-state.

Instruction Cycle:

The time period during which one instruction is fetched from memory and executed when a computer is given an instruction in machine language. There are typically four stages of an instruction cycle that the CPU carries out:

1. Fetch the instruction from memory. This step brings the instruction into the instruction register, a circuit that holds the instruction so that it can be decoded and executed.

2. Decode the instruction.

3. Read the effective address from memory if the instruction has an indirect address.

4. Execute the instruction.

M/C CYCLE:

The processor cycle or machine cycle is the basic operation performed by the processor. To execute an instruction, the processor will run one or more machine cycles in a particular order.

T-state:

For any instruction cycle, Opcode fetch is the first machine cycle. We know that each machine cycle may have 3 to 6 T-states. This Opcode fetch machine cycle consists of 4 T-states.

T1 State:

During the T1 state, the contents of the program counter are placed on the 16 bit address bus.

T2 State:

opcode is placed on D0-D7 of the Address/Data bus.

T3 State:

the Opcode of the A/D bus is transferred to the instruction register of the microprocessor.

T4 State:

In this state the Opcode which was fetched from the memory is decoded.

8 comments: