19

Re complete

Embed Size (px)

DESCRIPTION

Lahore Leads University 923224907404

Citation preview

Page 1: Re complete
Page 2: Re complete

Introduction :

Name : Muhammad Ashib Altaf.

Registration number : F12-1028-(A)

Page 3: Re complete

Presentation Topics

Central Processing Unit (CPU)

Control Unit (CU)

Arithmetic Logic Unit (ALU)

Registers

Instruction Set

Processor Speed

Types of Processor

Page 4: Re complete

Central Processing Unit (CPU)

• The brain of computer system.

• Performs all major calculations and comparisons.

• Activates and controls the operations of other units of a computer system.

• Two basic components are:

1. Arithmetic Logic Unit (ALU)2. Control Unit (CU)

Page 5: Re complete

Arithmetic Logic Unit (ALU) :

• In computing, an arithmetic logic unit (ALU) is a digital circuit that performs arithmetic and logical operations.

• Now, modern microprocessors, microcontrollers and CPUs have very powerful and very complex ALUs, also a CPU may contain up to more than 4 ALUs.

Page 6: Re complete

Operations of Arithmetic Logic Unit (ALU) :

• The ALU (Arithmetic/Logic Unit) performs.

• Mathematical operations (+, -, x, /, ^,…)

• Logic operations (=, <, >, and, or, not, ...)

Page 7: Re complete

Control Unit:

• One of the two basic components of CPU.

• Acts as the central nervous system of a computer system.

• Selects and interprets program instructions, and coordinates execution.

• Has some special purpose registers and a decoder to perform these activities.

Page 8: Re complete

Basic Cycle of Control Unit :

Page 9: Re complete

Structure of the Control Unit :

• PC (Program Counter):◦stores the address of next instruction to fetch

• IR (Instruction Register):◦stores the current instruction.

• Instruction Decoder:◦Decodes instruction and activates

necessary circuitry

Page 10: Re complete

Functions of the control unit

Page 11: Re complete

Registers:

• Special memory units , called registers are used to hold information on a temporary bases as the instructions are interpreted and executed by the CPU.

• Registers are part of the CPU of a computer.

• The length of a register , also known Word Size , equals the numbers of bits it can store.

• CPU with 32bit register can process data twice larger than one with 16bit register.

Page 12: Re complete

Functions of commonly used Registers:

Page 13: Re complete

CPU and main memory connected via a bus

2-13

Page 14: Re complete

Processor Speed:

• A computer has a built-in system Clock that emits millions of regularly spaced electric pulses per second(known as clock cycles)

• It takes one cycle to perform a basic operation, such as moving a byte of data from one memory location to another.

Page 15: Re complete

Processor Speed:

• Normally, several clock cycles are required to Fetch, Decode, and Execute a single program instruction.

• Shorter the clock cycle, Faster the processor.

Page 16: Re complete

Types of Processor:

Page 17: Re complete

Types of Processor:

Page 18: Re complete

Types of Processor:

Page 19: Re complete