cpu and its execution of statements

23

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Cpu and its execution of statements
Page 2: Cpu and its execution of statements

Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Page 3: Cpu and its execution of statements

Week Target Achieved

1 17wpm

2 18wpm

3 20wpm

Typing Speed

Page 4: Cpu and its execution of statements

CPU and its execution of statements

Yasir musthafa [email protected]/

yasirmusthafatwitter.com/yasirmusthafappin.linkedin.com/in/

yasirmusthafa pp8891396749

Page 5: Cpu and its execution of statements

CPU

• Interaction between functional blocks• Blocks of Computer System• Functions of CPU

Page 6: Cpu and its execution of statements

Interaction between functional blocks

MEMORY UNITMEMORY UNIT OUTPUT UNITOUTPUT UNITINPUT UNITINPUT UNIT

CONTROL UNITCONTROL UNIT ALUALU

datadata

instructioninstruction readread writewrite

resultresult

To user

(Result)

To user

(Result)

Control signals

Control signals

operandoperand

___ data flow

------Control flow

Page 7: Cpu and its execution of statements

Interaction between functional blocks (contd)

• Data is supplied to the computer through an input device.

• The data is then transferred to memory under the supervision of the control unit.

Page 8: Cpu and its execution of statements

Interaction between functional blocks (contd)

• Each instruction is interpreted before execution

• Control unit informs the ALU of the precise operation to be performed and

• Directs the transfer of operands to the ALU

Page 9: Cpu and its execution of statements

Interaction between functional blocks (contd)

• The ALU then performs all calculations and comparisons needed

• And the results are then passed unto the memory unit, from there to the output unit

Page 10: Cpu and its execution of statements

Blocks of CPU

Page 11: Cpu and its execution of statements

CPU (Central Processing Unit)ALU (Arithmetic & Logical Unit)

It performs two types of operations

1. Arithmetic Operations.

2. Logical Operations.

Page 12: Cpu and its execution of statements

ALU (Arithmetic & Logical Unit)Operation : Symbol

Addition : +

Subtraction : -

Multiplication : *

Division : /

Page 13: Cpu and its execution of statements

Logical Operations

• Logical AND• Logical OR• Logical NOT

• Logical EXCLUSIVE OR

Page 14: Cpu and its execution of statements

CU (Control Unit)

• Controls the operations that takes place in various parts of a computer by sending electronic signals.

• Supervises the flow of data in various parts of computer such as input device, output device, and memory devices.

Page 15: Cpu and its execution of statements

Functions of CPUCPU performs everything in binary form

• It takes the information and process it according to instructions.

• It performs all calculations.

• It takes all decisions.

• It controls all units of computer.

Page 16: Cpu and its execution of statements

registers

• small amount of storage available as part of a CPU

• Mean for the fastest way to access data• registers are normally at the top of the

memory hierarchy

Page 17: Cpu and its execution of statements

Hierarchy of registers

Page 18: Cpu and its execution of statements

How does CPU execute instructions?

• Computer load instruction from RAM to CPU for execution

• Instructions are in the form of 0 and 1 which is called machine language

• CPU only understand machine language

Page 19: Cpu and its execution of statements

Example

• Let us say that an electric pen has a processor and main memory.

• The processor can change color of pen black or blue, and can check the on/off switch

Page 20: Cpu and its execution of statements

How does CPU execute instructions?

• High level language can be converted to machine language by compiler or interpreter

Page 21: Cpu and its execution of statements

Compiler vs interpreter

• CompilerSoftware which translate the program as a

wholeEg:-c compiler• InterpreterSoftware which translate the program line by

line Eg:-java

Page 22: Cpu and its execution of statements

If this presentation helped you, please visit our page facebook.com/baabtra and like it.

Thanks in advance.

www.baabtra.com | www.massbaab.com |www.baabte.com

Page 23: Cpu and its execution of statements

Contact Us

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Start up VillageEranakulam,Kerala, India.

Email: [email protected]

IKK Road,East Hill, KozhikodeKerala, India.Ph: + 91 – 495 30 63 624

NIT-TBI,NIT Campus, Kozhikode,Kerala, India.