Cpu and execution of instruction.

302
-1

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
302
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cpu and execution of instruction.

  1. 1. Sreyachandran v sreya.chandran31@gmail.com www.facebook.com/username twitter.com/username in.linkedin.com/in/profilename 9747751364 cpu and execution of instruction.
  2. 2. 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
  3. 3. CPU CPU is the brain of computer where most calculations are take place. CPU carries out the instructions of a computer program to perform the basic arithmetical , logical and input output operation of the system. Control Unit ALU Memory Unit Input Devices Output Devices
  4. 4. Instruction Cycle Fetch Decode ExecuteWrite Back
  5. 5. Example program : Addition of two numbers LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008
  6. 6. 100 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 Instruction address 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 1
  7. 7. 100 LOAD A,2000 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 2
  8. 8. 100 LOAD A ,2000 100 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 3
  9. 9. 104 100 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 4
  10. 10. 104 LOAD B,2004 100 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 5
  11. 11. 104 LOAD B,2004 100 50 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 6
  12. 12. 108 100 50 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 7
  13. 13. 108 ADD A,B,C 100 50 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 8
  14. 14. 108 ADD A,B,C 100 50 150 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 9
  15. 15. 112 100 50 150 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 10
  16. 16. 112 STORE C,2008 100 50 150 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 2000 2008 2004 Memory location PC IR A B C ALU Step 11
  17. 17. 112 STORE C,2008 100 50 150 LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008 100 104 108 112 100 50 150 2000 2008 2004 Memory location PC IR A B C ALU Step 12
  18. 18. Registers • Instruction decoder • Program counter(PC) • Instruction register(IR) • Process status register • Accumulator • General purpose register • Memory address register • Memory data register • Address decoder
  19. 19. Want to learn more about programming or Looking to become a good programmer? Are you wasting time on searching so many contents online? Do you want to learn things quickly? Tired of spending huge amount of money to become a Software professional? Do an online course @ baabtra.com We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.
  20. 20. 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 Cafit Square, Hilite Business Park, Near Pantheerankavu, Kozhikode Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com Contact Us
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×