SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Sreyachandran v
sreya.chandran31@gmail.com
www.facebook.com/username
twitter.com/username
in.linkedin.com/in/profilename
9747751364
cpu and execution of instruction.
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
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
Instruction Cycle
Fetch Decode
ExecuteWrite Back
Example program : Addition of two numbers
LOAD A,2000
LOAD B,2004
ADD A,B,C
STORE C,2008
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
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
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
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
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
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
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
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
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
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
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
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
Registers
• Instruction decoder
• Program counter(PC)
• Instruction register(IR)
• Process status register
• Accumulator
• General purpose register
• Memory address register
• Memory data register
• Address decoder
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.
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

Weitere ähnliche Inhalte

Ähnlich wie Cpu and execution of instruction.

laptop repairing institute
laptop repairing institutelaptop repairing institute
laptop repairing institute
chiptroniks
 
laptop repairing institute
laptop repairing institutelaptop repairing institute
laptop repairing institute
chiptroniks
 
Revision week
Revision weekRevision week
Revision week
fizahPhd
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Swati Watve-Phadke
 

Ähnlich wie Cpu and execution of instruction. (20)

ECET 330 Massive Success--snaptutorial.com
ECET 330 Massive Success--snaptutorial.comECET 330 Massive Success--snaptutorial.com
ECET 330 Massive Success--snaptutorial.com
 
Ecet 330 Success Begins / snaptutorial.com
Ecet 330 Success Begins / snaptutorial.comEcet 330 Success Begins / snaptutorial.com
Ecet 330 Success Begins / snaptutorial.com
 
Ecet 330 Enthusiastic Study / snaptutorial.com
Ecet 330 Enthusiastic Study / snaptutorial.comEcet 330 Enthusiastic Study / snaptutorial.com
Ecet 330 Enthusiastic Study / snaptutorial.com
 
ECET 330 Technology levels--snaptutorial.com
ECET 330 Technology levels--snaptutorial.comECET 330 Technology levels--snaptutorial.com
ECET 330 Technology levels--snaptutorial.com
 
CHAPTER 2_INTRO TO COMPUTER SYSTEM.pptx
CHAPTER 2_INTRO TO COMPUTER SYSTEM.pptxCHAPTER 2_INTRO TO COMPUTER SYSTEM.pptx
CHAPTER 2_INTRO TO COMPUTER SYSTEM.pptx
 
Laptop Chip level repairing(CPU section)
Laptop Chip level repairing(CPU section)Laptop Chip level repairing(CPU section)
Laptop Chip level repairing(CPU section)
 
laptop repairing institute
laptop repairing institutelaptop repairing institute
laptop repairing institute
 
laptop repairing institute
laptop repairing institutelaptop repairing institute
laptop repairing institute
 
laptop repairing course in delhi
laptop repairing course in delhilaptop repairing course in delhi
laptop repairing course in delhi
 
Laptop syllabus 1 month
Laptop syllabus 1 monthLaptop syllabus 1 month
Laptop syllabus 1 month
 
Controller Implementation in Verilog
Controller Implementation in VerilogController Implementation in Verilog
Controller Implementation in Verilog
 
Revision week
Revision weekRevision week
Revision week
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
Week 2.1 Data Transfer Instructions (Copy/Move)
Week 2.1 Data Transfer Instructions (Copy/Move)Week 2.1 Data Transfer Instructions (Copy/Move)
Week 2.1 Data Transfer Instructions (Copy/Move)
 
Unit1_Basic_Structure_of_Computer-7-11-2022-11am.ppt.pdf
Unit1_Basic_Structure_of_Computer-7-11-2022-11am.ppt.pdfUnit1_Basic_Structure_of_Computer-7-11-2022-11am.ppt.pdf
Unit1_Basic_Structure_of_Computer-7-11-2022-11am.ppt.pdf
 
ECET 340 Entire Course NEW
ECET 340 Entire Course NEWECET 340 Entire Course NEW
ECET 340 Entire Course NEW
 
Architecture of 8085
Architecture of  8085Architecture of  8085
Architecture of 8085
 
20130729 advantech bios-training
20130729 advantech bios-training20130729 advantech bios-training
20130729 advantech bios-training
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 

Mehr von baabtra.com - No. 1 supplier of quality freshers

Mehr von baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

Cpu and execution of instruction.

  • 1.
  • 3. 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
  • 4. 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
  • 6. Example program : Addition of two numbers LOAD A,2000 LOAD B,2004 ADD A,B,C STORE C,2008
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. 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
  • 12. 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
  • 13. 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
  • 14. 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
  • 15. 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
  • 16. 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
  • 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 2000 2008 2004 Memory location PC IR A B C ALU Step 11
  • 18. 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
  • 19. Registers • Instruction decoder • Program counter(PC) • Instruction register(IR) • Process status register • Accumulator • General purpose register • Memory address register • Memory data register • Address decoder
  • 20. 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.
  • 21. 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