21

Processor structure and funtions

Embed Size (px)

Citation preview

Page 1: Processor structure and funtions
Page 2: Processor structure and funtions

-:TITLE :-

COMPUTER STRUCTURE AND

FUNCTIONS

Page 3: Processor structure and funtions

Usman Saeed (-074)Muhammad Ishaq (-080)Shahroz Ahmed (-084)

GROUP MEMBERS

Page 4: Processor structure and funtions

Contents:

Processor OrganizationRegister OrganizationInstruction Cycle

Page 5: Processor structure and funtions

Processor Organization Things that a processor must do: Fetch DataReading data from memory or I/O module. Process DataExecution of instruction may require performing some arithmetic or logical operation on data. Write Data

Result of execution may require writing data to memory of I/O module.

Page 6: Processor structure and funtions

Processor Organization(continue…)

To do these things, the processor needs to store some data temporarily.

It needs to store instructions and data temporarily while an instruction is being executed.

The processor needs a small internal memory.

Page 7: Processor structure and funtions

Processor Organization(continue…)Components of the processor:Arithmetic logic unit(ALU)

The ALU does the actual computation or processing of data.Control Unit(CU)

The control unit controls the movement of data and instructions into and out of the processor and controls the operation of the ALU.

Page 8: Processor structure and funtions

The CPU with the System Bus

Page 9: Processor structure and funtions

Internal Structure of the CPU

Page 10: Processor structure and funtions

Register Organization User-visible registers: Enable the machine-or assembly language programmer to minimize main memory references by optimizing use of registers. Control and status registers:

Used by the control unit to control the operation of the processor and by privileged, operating system programs to control the execution of programs.

Page 11: Processor structure and funtions

User visible register

Page 12: Processor structure and funtions

Instruction Cycle

An instruction cycle includes the following stages:

Fetch: Read the next instruction from

memory into the processor. Execute:

Interpret the opcode and perform the indicated operation.

Interrupt: If interrupts are enabled and an

interrupt has occurred, save the current process state and service the interrupt.

Page 13: Processor structure and funtions

The Instruction Cycle

Page 14: Processor structure and funtions

The Indirect Cycle The execution of an instruction may

involve one or more operands in memory, each of which requires a memory access. If indirect addressing is used, then additional memory accesses are required. The fetching of indirect addresses require one more instruction stages.

After an instruction is fetched, it is examined to determine if any indirect addressing is involved. Then the required operands are fetched using indirect addressing.

Page 15: Processor structure and funtions

Instruction Cycle State Diagram

Page 16: Processor structure and funtions

Data flow , Fetch cycle

Page 17: Processor structure and funtions

Data Flow, Indirect Cycle

Page 18: Processor structure and funtions

Data Flow, Interrupt Cycle

Page 19: Processor structure and funtions

ANY

QUESTION

PLz…???

NODepartment of Computer Science

Page 20: Processor structure and funtions

ANY

QUESTIONPLz…??? NOw

Department of Computer Science

Page 21: Processor structure and funtions

THANK -YOU