Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
Week Target Achieved
1 17wpm
2 18wpm
3 20wpm
Typing Speed
CPU and its execution of
statements
Yasir musthafa pp
yasirmusthafapp@gmail.com
www.facebook.com/yasirmu
sthafa
twitter.com/yasirmusthafa
pp
in.linkedin.com/in/yasirmus
thafa pp
8891396749
CPU
• Interaction between functional blocks
• Blocks of Computer System
• Functions of CPU
Interaction between functional blocks
MEMORY UNIT OUTPUT UNITINPUT UNIT
CONTROL UNIT ALU
data
instruction read write
result
To user
(Result)
Control
signals
operand
___ data flow
------Control flow
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.
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
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
Blocks of CPU
CPU (Central Processing Unit)
ALU (Arithmetic & Logical Unit)
 It performs two types of operations
1. Arithmetic Operations.
2. Logical Operations.
ALU (Arithmetic & Logical Unit)
Operation : Symbol
Addition : +
Subtraction : -
Multiplication : *
Division : /
Logical Operations
• Logical AND
• Logical OR
• Logical NOT
• Logical EXCLUSIVE OR
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.
Functions of CPU
CPU 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.
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
Hierarchy of registers
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
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
How does CPU execute instructions?
• High level language can be converted to
machine language by compiler or interpreter
Compiler vs interpreter
• Compiler
Software which translate the program as a
whole
Eg:-c compiler
• Interpreter
Software which translate the program line by
line
Eg:-java
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
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
IKK Road,
East Hill, Kozhikode
Kerala, India.
Ph: + 91 – 495 30 63 624
NIT-TBI,
NIT Campus, Kozhikode,
Kerala, India.

Cpu and its execution of statements

  • 2.
    Disclaimer: This presentationis prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3.
    Week Target Achieved 117wpm 2 18wpm 3 20wpm Typing Speed
  • 4.
    CPU and itsexecution of statements Yasir musthafa pp yasirmusthafapp@gmail.com www.facebook.com/yasirmu sthafa twitter.com/yasirmusthafa pp in.linkedin.com/in/yasirmus thafa pp 8891396749
  • 5.
    CPU • Interaction betweenfunctional blocks • Blocks of Computer System • Functions of CPU
  • 6.
    Interaction between functionalblocks MEMORY UNIT OUTPUT UNITINPUT UNIT CONTROL UNIT ALU data instruction read write result To user (Result) Control signals operand ___ data flow ------Control flow
  • 7.
    Interaction between functionalblocks (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.
  • 8.
    Interaction between functionalblocks (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
  • 9.
    Interaction between functionalblocks (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
  • 10.
  • 11.
    CPU (Central ProcessingUnit) ALU (Arithmetic & Logical Unit)  It performs two types of operations 1. Arithmetic Operations. 2. Logical Operations.
  • 12.
    ALU (Arithmetic &Logical Unit) Operation : Symbol Addition : + Subtraction : - Multiplication : * Division : /
  • 13.
    Logical Operations • LogicalAND • Logical OR • Logical NOT • Logical EXCLUSIVE OR
  • 14.
    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.
  • 15.
    Functions of CPU CPUperforms 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.
  • 16.
    registers • small amountof 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
  • 17.
  • 18.
    How does CPUexecute 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
  • 19.
    Example • Let ussay 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
  • 20.
    How does CPUexecute instructions? • High level language can be converted to machine language by compiler or interpreter
  • 21.
    Compiler vs interpreter •Compiler Software which translate the program as a whole Eg:-c compiler • Interpreter Software which translate the program line by line Eg:-java
  • 22.
    If this presentationhelped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  • 23.
    Contact Us Emarald Mall(Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com IKK Road, East Hill, Kozhikode Kerala, India. Ph: + 91 – 495 30 63 624 NIT-TBI, NIT Campus, Kozhikode, Kerala, India.