15

presentation on timing diagram

Embed Size (px)

DESCRIPTION

this presentation will tell you about opcode fetch ,memory read &memory write

Citation preview

Page 1: presentation on timing diagram
Page 2: presentation on timing diagram

An instruction is a command given to the computer to perform a specified operation on a given data.

To perform a particular task a programmer writes a sequence of instructions called a program.

Page 3: presentation on timing diagram

The CPU fetches one instruction from the memory at a time and execute it . It executes all the instructions of a program one by one to produce to the final result .

Instruction cycle consist of fetch and execute cycle.In fetch cycle a CPU fetches opcode from the memory.Specific operation in an instruction constitute an execute

cycle.

IC=FC+EC

Page 4: presentation on timing diagram

T3T1 T2 T2T1T4T3

Instruction Cycle

Opcode Fetch Execute

Page 5: presentation on timing diagram

The necessary steps carried out to perform the operation of accessing either memory or I/O device, constitute a machine cycle.

Necessary steps carried out to perform a fetch, a read or write operation constitute a machine cycle.

One basic operation such as opcode fetch, memory read, memory write ,I/O read , or I/O write.

Instruction cycle consist of several machine cycle.

Page 6: presentation on timing diagram

One subdivision of an operation performed in one clock cycle is called a state or T-state.

The subdivisions are internal states synchronized with the system clock .

So one clock cycle of the system is referred to as a state.

Page 7: presentation on timing diagram

T3T1 T2 T2T1T4T3

Instruction Cycle

Opcode Fetch ExecuteM1 M2

Nextinstruction cycle

Page 8: presentation on timing diagram

The necessary steps which are carried out in a machine cycle can be represented graphically . Such a representation is called timing diagram.

Timing diagram: Opcode fetch Memory read Memory write I/O Read I/O write

Page 9: presentation on timing diagram

In a fetch cycle the microprocessor fetches the opcode of an instruction from the memory

Page 10: presentation on timing diagram

T1 T2 T3 T4

Page 11: presentation on timing diagram

In a memory read cycle the microprocessor reads the content of a memory location.

The content is then placed either in the accumulator or any other register of the CPU.

Page 12: presentation on timing diagram
Page 13: presentation on timing diagram

In a memory write cycle the CPU sends data from the accumulator or any other register to the memory.

Page 14: presentation on timing diagram
Page 15: presentation on timing diagram