SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Similar a 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
 

Similar a 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
 

Más de baabtra.com - No. 1 supplier of quality freshers

Más de 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
 

Último

Último (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

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