SlideShare a Scribd company logo
CPU EXECUTION OFSTATEMENTS
ARUNRJ
rjarun08@gmail.com
FacebookProfile
TwitterProfile
Linkedin/ARUNRJ
Disclaimer: This presentation is prepared by trainees of
baabtra.com as a part of mentoring program. This is not
official document of baabtra.com – Mentoring Partner
CPU
• CPU or central processing unit is the brain of all computer.
ALU
Arithematic or Logic unit contains electronic circuitry that
executes all arithematic and logic operations
CONTROL UNIT
• Control unit of the cpu contains circitry that uses electrical
signals to direct the entire computer system to carry out or
execute stored program instructions
• The control unit must communicate with both the ALU and
memory
SYSTEM BUS
CONTROL BUS
The control bus is used by the computer to direct and
monitor the actions of the the other functional areas of the
computer
ADDRESS BUS
Address bus consists of all the signals to define any of the
memory location in the computer
DATA BUS
The bi directional data bus carries all data and instructions
between functional areas of computer
REGISTERS
GENERAL PURPOSE REGISTERS
A general purpose register is amemory cell
Each general purpose register has aunique name
It is used to store intrmediate result of complex computation
ACCUMULATOR
This register is used for storing the results those are
produced by the register
INSTRUCTION REGISTER
IR contains the current instructions being executed by the
cpu
The CPU will perform the operation indicated by the
instruction code contained in the IR
MAR(MEMORY ADDRESS REGISTER)
This register holds the memory address of data and
instructions.
This register is used to access data and instructions from
memory during the execution of an instruction.
MDR(MEMORY DATA REGISTER)
It is the register that contain the data to be stored in the
computer storage or data after a fetch from the computer
storage
It acts like a buffer and holds anything that is copied from the
memory ready for the processor to use it.
INDEX REGISTER
A hardware element which holds a number that can be
added to the address portion of a computer instruction to
form an effective address
An index registrer in a cpu is a register used for modifying
operand address during the run of a program
DATA REGISTER
A register used in microcomputers to temporarily store data
being transmitted to or from a peripheral device
PROGRAM COUNTER
This register contains the address of next instruction
The value in the program counter will be increased after the
cpu finishes executing one instruction
PROCESS STATUS REGISTER
This register contains the various information about the cpu.
For example the result of a comparison operation.
When cpu compares 2 numbers a and b the outcome of
comparison is stored in the PSR.
The outcome of a compare operation will allow the cpu to
determine the following fact between a and b.
equal
not equal
greater than
greater than or equal
less than
less than or equal
PRO
INSTRUCTION EXECUTION CYCLE
FETCH THE INSTRUCTION
DECODE THE INSTRUCTION
EXECUTE THE INSTRUCTION
STORE THE INSTRUCTION
FETCH
1 Load the address of next instruction in the PC to MAR,so
that the control unit can fetch the instruction from right part
of the memory
2 Copy the instruction/data that is in the memory address
given by the MAR into the MDR
3 Increment the PC by 1,so thaat it contains address of next
instruction,assuming that the instructions are in consequtive
location
4 Load the instruction or data that is in the MDR into the IR
EXECUTE
If the instruction is jump instruction then,load the address
part of the instruction in IR into PC
If the instruction is an input or load(directly) instruction then
take input and place in accumulator
If the instruction is an a load(from memory) instruction then
take input and place in accumulator
copy address of the instruction(to load from)in the IR into MAR
copy data from memory address held in MAR to MDR
copy data in MDR into accumulator
• Execute contd
If the instruction is a store instruction then:
Copy address part of the instruction (to store in) in the IR in to
MAR.
Copy data in to accumulator to MDR.
Copy data in to MDR in to memory address held in MAR.
If the instruction is a add instruction then:
Copy address part of the instruction (of number to add ) in the
IR in to MAR.
Copy number from memory address held in MAR in to MDR.
Add number in MDR to number in accumulater.
If the instruction is an output (from memory) instruction
then:
Copy address part of the instruction (of data to output) in the IR
into MAR.
Output contents of MDR.
STORE THE OUTPUT
Result of calculations in CPU stored in main memory or sent
to output devices
Program counter could be updated to a new address
THANK YOU
Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
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

More Related Content

What's hot

Lecture 34
Lecture 34Lecture 34
Lecture 34
RahulRathi94
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
neclinux
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
chidabdu
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
RahulRathi94
 
Program control
Program controlProgram control
Program control
Rahul Narang
 
CPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulationCPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulation
NITISH KUMAR
 
Lecture 27
Lecture 27Lecture 27
Lecture 27
RahulRathi94
 
Embedded system software
Embedded system softwareEmbedded system software
Embedded system software
Jamia Hamdard
 
Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &
Sudhanshu Janwadkar
 
Counit2 2
Counit2 2Counit2 2
Counit2 2
Himanshu Dua
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
Dr.MAYA NAYAK
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unit
Ashim Saha
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
Subhasis Dash
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
Kamal Acharya
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
RahulRathi94
 
Lecture 36
Lecture 36Lecture 36
Lecture 36
RahulRathi94
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecture
vikram patel
 
Co m1-1
Co m1-1Co m1-1
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
Kumar
 
Lecture 38
Lecture 38Lecture 38
Lecture 38
RahulRathi94
 

What's hot (20)

Lecture 34
Lecture 34Lecture 34
Lecture 34
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
 
Program control
Program controlProgram control
Program control
 
CPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulationCPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulation
 
Lecture 27
Lecture 27Lecture 27
Lecture 27
 
Embedded system software
Embedded system softwareEmbedded system software
Embedded system software
 
Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &
 
Counit2 2
Counit2 2Counit2 2
Counit2 2
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unit
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 
Lecture 36
Lecture 36Lecture 36
Lecture 36
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecture
 
Co m1-1
Co m1-1Co m1-1
Co m1-1
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Lecture 38
Lecture 38Lecture 38
Lecture 38
 

Viewers also liked

Li fi
Li fiLi fi
File handling in cpp
File handling in cppFile handling in cpp
Transactions
TransactionsTransactions
Master page
Master pageMaster page
E paper
E paperE paper
Fitness band
Fitness bandFitness band
Oop concepts
Oop conceptsOop concepts
Jquery
JqueryJquery
Scope of variables
Scope of variablesScope of variables
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
baabtra.com - No. 1 supplier of quality freshers
 
First android app for workshop using android studio
First android app for workshop using android studio First android app for workshop using android studio
First android app for workshop using android studio
baabtra.com - No. 1 supplier of quality freshers
 
Oops
OopsOops
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
baabtra.com - No. 1 supplier of quality freshers
 
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
baabtra.com - No. 1 supplier of quality freshers
 
Google loon - baabtra.com
Google loon - baabtra.comGoogle loon - baabtra.com
File handling in c++
File handling in c++File handling in c++
How to create a chat application on Android platform?
How to create a chat application on Android platform? How to create a chat application on Android platform?
How to create a chat application on Android platform?
baabtra.com - No. 1 supplier of quality freshers
 

Viewers also liked (17)

Li fi
Li fiLi fi
Li fi
 
File handling in cpp
File handling in cppFile handling in cpp
File handling in cpp
 
Transactions
TransactionsTransactions
Transactions
 
Master page
Master pageMaster page
Master page
 
E paper
E paperE paper
E paper
 
Fitness band
Fitness bandFitness band
Fitness band
 
Oop concepts
Oop conceptsOop concepts
Oop concepts
 
Jquery
JqueryJquery
Jquery
 
Scope of variables
Scope of variablesScope of variables
Scope of variables
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
First android app for workshop using android studio
First android app for workshop using android studio First android app for workshop using android studio
First android app for workshop using android studio
 
Oops
OopsOops
Oops
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
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
 
Google loon - baabtra.com
Google loon - baabtra.comGoogle loon - baabtra.com
Google loon - baabtra.com
 
File handling in c++
File handling in c++File handling in c++
File handling in c++
 
How to create a chat application on Android platform?
How to create a chat application on Android platform? How to create a chat application on Android platform?
How to create a chat application on Android platform?
 

Similar to Cpu execution

Cpu & its execution of instruction
Cpu & its execution of instructionCpu & its execution of instruction
Cpu & its execution of instruction
baabtra.com - No. 1 supplier of quality freshers
 
computer architecture and the fetch execute cycle By ZAK
computer architecture and the fetch execute cycle By ZAKcomputer architecture and the fetch execute cycle By ZAK
computer architecture and the fetch execute cycle By ZAK
Tabsheer Hasan
 
1.3.2 computer architecture and the fetch execute cycle By ZAK
1.3.2 computer architecture and the fetch execute cycle By ZAK1.3.2 computer architecture and the fetch execute cycle By ZAK
1.3.2 computer architecture and the fetch execute cycle By ZAK
Tabsheer Hasan
 
Cpu & its execution of instruction
Cpu & its execution of instructionCpu & its execution of instruction
Cpu & its execution of instruction
baabtra.com - No. 1 supplier of quality freshers
 
embedded system and computer architecure
embedded system and computer architecureembedded system and computer architecure
embedded system and computer architecure
madhulbtech23
 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycle
chantellemallia
 
CH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdfCH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdf
cauuthovohoaichau
 
CAO-Unit-I.pptx
CAO-Unit-I.pptxCAO-Unit-I.pptx
CAO-Unit-I.pptx
ClassicFUKRA
 
Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2
parthivrathodlits
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
Anjaan Gajendra
 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
sukhpreetsingh295239
 
Bc0040
Bc0040Bc0040
Bc0040
hayerpa
 
Chapter 1 basic structure of computers
Chapter 1  basic structure of computersChapter 1  basic structure of computers
Chapter 1 basic structure of computers
Gurpreet Singh
 
Processor organization & register organization
Processor organization & register organizationProcessor organization & register organization
Processor organization & register organization
Ghanshyam Patel
 
chapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.pptchapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.ppt
sandeepPingili1
 
UNIT I.ppt
UNIT I.pptUNIT I.ppt
UNIT I.ppt
JEEVANANTHAMG6
 
chapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.pptchapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.ppt
KarrarIbrahimAbdAlam
 
Basic structure of computers by aniket bhute
Basic structure of computers by aniket bhuteBasic structure of computers by aniket bhute
Basic structure of computers by aniket bhute
Aniket Bhute
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
Lucky Sithole
 
4bit PC report
4bit PC report4bit PC report
4bit PC report
tanvin
 

Similar to Cpu execution (20)

Cpu & its execution of instruction
Cpu & its execution of instructionCpu & its execution of instruction
Cpu & its execution of instruction
 
computer architecture and the fetch execute cycle By ZAK
computer architecture and the fetch execute cycle By ZAKcomputer architecture and the fetch execute cycle By ZAK
computer architecture and the fetch execute cycle By ZAK
 
1.3.2 computer architecture and the fetch execute cycle By ZAK
1.3.2 computer architecture and the fetch execute cycle By ZAK1.3.2 computer architecture and the fetch execute cycle By ZAK
1.3.2 computer architecture and the fetch execute cycle By ZAK
 
Cpu & its execution of instruction
Cpu & its execution of instructionCpu & its execution of instruction
Cpu & its execution of instruction
 
embedded system and computer architecure
embedded system and computer architecureembedded system and computer architecure
embedded system and computer architecure
 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycle
 
CH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdfCH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdf
 
CAO-Unit-I.pptx
CAO-Unit-I.pptxCAO-Unit-I.pptx
CAO-Unit-I.pptx
 
Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
 
Bc0040
Bc0040Bc0040
Bc0040
 
Chapter 1 basic structure of computers
Chapter 1  basic structure of computersChapter 1  basic structure of computers
Chapter 1 basic structure of computers
 
Processor organization & register organization
Processor organization & register organizationProcessor organization & register organization
Processor organization & register organization
 
chapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.pptchapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.ppt
 
UNIT I.ppt
UNIT I.pptUNIT I.ppt
UNIT I.ppt
 
chapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.pptchapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.ppt
 
Basic structure of computers by aniket bhute
Basic structure of computers by aniket bhuteBasic structure of computers by aniket bhute
Basic structure of computers by aniket bhute
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
 
4bit PC report
4bit PC report4bit PC report
4bit PC report
 

More from baabtra.com - No. 1 supplier of quality freshers

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
baabtra.com - No. 1 supplier of quality freshers
 
Best coding practices
Best coding practicesBest coding practices
Core java - baabtra
Core java - baabtraCore 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 - No. 1 supplier of quality freshers
 
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
baabtra.com - No. 1 supplier of quality freshers
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php database connectivity
Php database connectivityPhp database connectivity
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Blue brain
Blue brainBlue brain
5g
5g5g
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Gd baabtra
Gd baabtraGd baabtra
Baabtra soft skills
Baabtra soft skillsBaabtra soft skills
Cell phone jammer
Cell phone jammerCell phone jammer

More from 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
 
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 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
 
Baabtra soft skills
Baabtra soft skillsBaabtra soft skills
Baabtra soft skills
 
Cell phone jammer
Cell phone jammerCell phone jammer
Cell phone jammer
 

Cpu execution

  • 1.
  • 3. Disclaimer: This presentation is prepared by trainees of baabtra.com as a part of mentoring program. This is not official document of baabtra.com – Mentoring Partner
  • 4. CPU • CPU or central processing unit is the brain of all computer.
  • 5. ALU Arithematic or Logic unit contains electronic circuitry that executes all arithematic and logic operations CONTROL UNIT • Control unit of the cpu contains circitry that uses electrical signals to direct the entire computer system to carry out or execute stored program instructions • The control unit must communicate with both the ALU and memory
  • 6. SYSTEM BUS CONTROL BUS The control bus is used by the computer to direct and monitor the actions of the the other functional areas of the computer ADDRESS BUS Address bus consists of all the signals to define any of the memory location in the computer
  • 7. DATA BUS The bi directional data bus carries all data and instructions between functional areas of computer
  • 8. REGISTERS GENERAL PURPOSE REGISTERS A general purpose register is amemory cell Each general purpose register has aunique name It is used to store intrmediate result of complex computation ACCUMULATOR This register is used for storing the results those are produced by the register
  • 9. INSTRUCTION REGISTER IR contains the current instructions being executed by the cpu The CPU will perform the operation indicated by the instruction code contained in the IR MAR(MEMORY ADDRESS REGISTER) This register holds the memory address of data and instructions. This register is used to access data and instructions from memory during the execution of an instruction.
  • 10. MDR(MEMORY DATA REGISTER) It is the register that contain the data to be stored in the computer storage or data after a fetch from the computer storage It acts like a buffer and holds anything that is copied from the memory ready for the processor to use it. INDEX REGISTER A hardware element which holds a number that can be added to the address portion of a computer instruction to form an effective address An index registrer in a cpu is a register used for modifying operand address during the run of a program
  • 11. DATA REGISTER A register used in microcomputers to temporarily store data being transmitted to or from a peripheral device PROGRAM COUNTER This register contains the address of next instruction The value in the program counter will be increased after the cpu finishes executing one instruction
  • 12. PROCESS STATUS REGISTER This register contains the various information about the cpu. For example the result of a comparison operation. When cpu compares 2 numbers a and b the outcome of comparison is stored in the PSR. The outcome of a compare operation will allow the cpu to determine the following fact between a and b. equal not equal greater than greater than or equal less than less than or equal PRO
  • 13. INSTRUCTION EXECUTION CYCLE FETCH THE INSTRUCTION DECODE THE INSTRUCTION EXECUTE THE INSTRUCTION STORE THE INSTRUCTION
  • 14. FETCH 1 Load the address of next instruction in the PC to MAR,so that the control unit can fetch the instruction from right part of the memory 2 Copy the instruction/data that is in the memory address given by the MAR into the MDR 3 Increment the PC by 1,so thaat it contains address of next instruction,assuming that the instructions are in consequtive location 4 Load the instruction or data that is in the MDR into the IR
  • 15. EXECUTE If the instruction is jump instruction then,load the address part of the instruction in IR into PC If the instruction is an input or load(directly) instruction then take input and place in accumulator If the instruction is an a load(from memory) instruction then take input and place in accumulator copy address of the instruction(to load from)in the IR into MAR copy data from memory address held in MAR to MDR copy data in MDR into accumulator
  • 16. • Execute contd If the instruction is a store instruction then: Copy address part of the instruction (to store in) in the IR in to MAR. Copy data in to accumulator to MDR. Copy data in to MDR in to memory address held in MAR. If the instruction is a add instruction then: Copy address part of the instruction (of number to add ) in the IR in to MAR. Copy number from memory address held in MAR in to MDR. Add number in MDR to number in accumulater.
  • 17. If the instruction is an output (from memory) instruction then: Copy address part of the instruction (of data to output) in the IR into MAR. Output contents of MDR.
  • 18. STORE THE OUTPUT Result of calculations in CPU stored in main memory or sent to output devices Program counter could be updated to a new address
  • 20. Follow us @ twitter.com/baabtra Like us @ facebook.com/baabtra Subscribe to us @ youtube.com/baabtra Become a follower @ slideshare.net/BaabtraMentoringPartner Connect to us @ in.linkedin.com/in/baabtra Give a feedback @ massbaab.com/baabtra Thanks in advance www.baabtra.com | www.massbaab.com |www.baabte.com
  • 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