Successfully reported this slideshow.

Cpu and its execution of statements


Published on

Published in: Technology, Travel
  • Be the first to comment

  • Be the first to like this

Cpu and its execution of statements

  1. 1. 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
  2. 2. Week Target Achieved 1 17wpm 2 18wpm 3 20wpm Typing Speed
  3. 3. CPU and its execution of statements Yasir musthafa pp sthafa pp thafa pp 8891396749
  4. 4. CPU • Interaction between functional blocks • Blocks of Computer System • Functions of CPU
  5. 5. 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
  6. 6. 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.
  7. 7. 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
  8. 8. 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
  9. 9. Blocks of CPU
  10. 10. CPU (Central Processing Unit) ALU (Arithmetic & Logical Unit)  It performs two types of operations 1. Arithmetic Operations. 2. Logical Operations.
  11. 11. ALU (Arithmetic & Logical Unit) Operation : Symbol Addition : + Subtraction : - Multiplication : * Division : /
  12. 12. Logical Operations • Logical AND • Logical OR • Logical NOT • Logical EXCLUSIVE OR
  13. 13. 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.
  14. 14. 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.
  15. 15. 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
  16. 16. Hierarchy of registers
  17. 17. 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
  18. 18. 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
  19. 19. How does CPU execute instructions? • High level language can be converted to machine language by compiler or interpreter
  20. 20. 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
  21. 21. If this presentation helped you, please visit our page and like it. Thanks in advance. | |
  22. 22. 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: IKK Road, East Hill, Kozhikode Kerala, India. Ph: + 91 – 495 30 63 624 NIT-TBI, NIT Campus, Kozhikode, Kerala, India.