SlideShare a Scribd company logo
1 of 31
Working of CPU
The CPU
CPU
The CPU
 CPU stands for central processing unit. it is brain of computer
 It is most important component of the computer. it is also
called processor.
 Converts data into information
 It continually receives instructions to execute. Each instruction
tells CPU to process data.
 CPU performs all operations on data according to the given
instructions.
It executes instructions and tells other parts of computers what
to do.
Most of the work consists of calculations and data transfer.
Two parts
Control Unit (CU)
Arithmetic and Logic Unit (ALU)
Control Unit
CU
 Control Unit is an important component of CPU. It
acts Like a supervisor of the computer.
 It controls all activities of the computer system
 All the computers resources are managed from the
control unit.
 Think of the control unit as a traffic signal directing
the flow of data through the CPU.
 The CPU´s instruction for carrying out
commands are built into the control unit.
 The instruction or instruction set, list all the
operations that the CPU can perform.
 Each instruction in the instruction set is
expressed in microcode– a series of basic
directions that tell the CPU how to execute more
complex operations.
Control Unit
CU
 It performs the following operations:
1. It fetches(makes) or retrieve instruction from main
memory.
2. It interprets9understands) the instruction to find what
operation is to be performed.
3. It controls the execution of instruction. The control unit
determines the sequence in which computer programs
and instructions are executed
Arithmetic / Logic Unit
ALU
ALU is a part of CPU. Actual Execution of instructions takes place in
this part. All Arithmetic and Logical operations are performed in ALU.
It consists of two units
 Arithmetic Unit
Performs arithmetic operations
 Logic Unit
Performs logical operations
Arithmetic Operations
Addition
Subtraction
Multiplication
Division
Logical Operations
 Evaluates conditions
 Makes comparisons
 Can compare
 Numbers
 Letters
 Special characters
ALU
 Many instructions carried out by the control unit involve
simply moving data from one place to another.
 From memory to storage, from memory to the printer, and so
on.
 When the control unit encounters an instruction that involves
arithmetic or logic , however, it passes that instruction to the
second component of the CPU, the ALU.
ALU
 The ALU performs these operations.
 ALU includes a group of registers--- high speed memory
locations built directly into the CPU that are used to hold the
data currently being processed.
 ALU will use the register to hold the data currently being used
for calculation.
For example
 CU might load two numbers from memory into the registers in
the ALU.
 Then it might tell the ALU divide the two numbers (an
arithmetic operation) or to see whether the numbers are equal
(a logical operation).
 The answer to this calculation will be stored in another register
before being sent out of the CPU.
What is the Information Processing
Cycle?
 These are the steps that are taken to convert raw facts,
which is data, into information. It starts with data
collection.
 The 4 basic operations of the information processing
cycle are input, processing, output, storage and/or
distribution.
 A computer is the machine that performs the cycle.
16
IP Cycle:
17
Machine cycles
 Each time the CPU executes an instruction, it takes a series
of steps.
 The completed series of steps is called machine cycles.
 A machine cycle itself can be broken down into two smaller
cycles-
1. Instruction cycle
2. Execution cycle
Machine cycle - fetch► decode► execute► store
Instruction Execution Cycle
 The CPU continuously transfer data to and from memory
 Data transfer is done in units called instruction or words
 When computer is switched on, the CPU continuously
goes through a process called Fetch-Decode-Execute-Store.
Example
 What happens when you load up a game from disk into
your computer? The program is stored as data, for example
on a disc. You have to read that data, and store it in the
memory of your computer. When you have done that, you
can treat it as a program, (i.e. as a set of instructions) and
run (execute) it.
Instruction Execution Cycle
At the beginning of machine cycle (that is during the
instruction cycle), The CPU takes two steps:
INSTRUCTION CYCLE
1. FETCHING:
 Before CPU can execute an instruction ,the control unit must
retrieve a command or data from the computer’s memory.
2. DECODING:
 Before a command can be executed ,the control unit must break
down (or decode) the command into instruction that
correspond to those in the CPU’ s instruction set
Execution Cycle
At this point, the CPU is ready to begin the execution cycle:
Execution Cycle
1. Executing:
 When the command is executed, the CPU carries out the
instructions in order by converting them into microcode.
2. Storing:
 The CPU may be required to store the results of an instruction in
memory (but this condition is not always required).
Multiplication of two numbers:
Steps of Machine Cycle
Computer Buses
 BUS - Physically a set of wires. The components of the
Computer are connected to these buses.
 Buses are electrical paths or lines inside computers.
 Buses are used to carry electrical signals between
components of computer.
 One line of wire can carry one bit at a time.
 The capacity of computer bus depends on the number of
data lines it contains.
 An 8-bit bus can carry 8 bits of data from one component
to other at a time.
Types of buses
There are two types of buses
 System Buses
 Expansion Buses
System Buses
System bus is a type of computer bus that is used
to connect the main components of a computer
such as CPU and main memory.
Computers normally have system bus of 70-100
lines.
Different types of system buses are as follows:
 Address Bus
 Data Bus
 Control Bus
Data Bus
 The electrical path through which data is
transferred between components of a computer.
 The data bus consists of 8,16,32 or 64 separate lines.
 The data bus lines are bi-directional
1. Read data from memory using these lines
2. Write data to memory locations using these lines
Basic block diagram of a typical computer system including common peripherals.
The computer itself is shown within the gray block.
Address Bus
 Many components are connected to one another through buses.
 Each component is assigned a unique ID.This Id is called address of
that component.
 Each I/O devices has a unique address. (monitor, mouse, CD-ROM)
 If a component wants to communicate with another component, it uses
address of that component.
 The address bus is uni-directional.
 It can carry information only in one direction.
 It carries address of memory location from microprocessor to the main
memory
Control Bus
 Collection of individual control signals.
 Whether the CPU will read or write data.
 CPU is accessing memory or an I/O device.
 Memory or I/O is ready to transfer data.
 For example, If CPU wants to read data from main
memory ,it uses control bus to send the memory read
command to the main memory of the computer.
Expansion Buses
Expansion bus is a type of computer that is used to
connect CPU with peripheral devices such as mouse,
Keyboard , Scanners, Printers etc

More Related Content

Similar to Comp App Lect 2 System Unit.pptx

Fundamental units of computer
Fundamental units of computerFundamental units of computer
Fundamental units of computerSandeep Menon
 
Basic organisation of computer system
Basic organisation of computer systemBasic organisation of computer system
Basic organisation of computer systemParvathy Ashok
 
Components of computer hardware
Components of computer hardwareComponents of computer hardware
Components of computer hardwareA. S. M. Shafi
 
Components Of Computer unit-2
Components Of Computer  unit-2Components Of Computer  unit-2
Components Of Computer unit-2Amit Chandra
 
Computer Architecture Design (CAD)
Computer Architecture Design (CAD)Computer Architecture Design (CAD)
Computer Architecture Design (CAD)Saira Kanwal
 
Lesson 1 anatomy of a digital computer (230 kb)
Lesson 1  anatomy of a digital computer (230 kb)Lesson 1  anatomy of a digital computer (230 kb)
Lesson 1 anatomy of a digital computer (230 kb)IMRAN KHAN
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architectureraksharao
 
Chapter 1 computer fundamentals
Chapter 1 computer fundamentals Chapter 1 computer fundamentals
Chapter 1 computer fundamentals SAURABH BAKSHI
 
Basic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxBasic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxhasanbashar400
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csaAnjaan Gajendra
 
In the heart of computers
In the heart of computersIn the heart of computers
In the heart of computersCintia Santos
 
(2) The CPU incorporates several major components (as shown in Fig. d.docx
 (2) The CPU incorporates several major components (as shown in Fig. d.docx (2) The CPU incorporates several major components (as shown in Fig. d.docx
(2) The CPU incorporates several major components (as shown in Fig. d.docxajoy21
 

Similar to Comp App Lect 2 System Unit.pptx (20)

Fp203 chp1.1
Fp203 chp1.1Fp203 chp1.1
Fp203 chp1.1
 
Architecture
ArchitectureArchitecture
Architecture
 
Control unit
Control  unitControl  unit
Control unit
 
Fundamental units of computer
Fundamental units of computerFundamental units of computer
Fundamental units of computer
 
Basic organisation of computer system
Basic organisation of computer systemBasic organisation of computer system
Basic organisation of computer system
 
Components of computer hardware
Components of computer hardwareComponents of computer hardware
Components of computer hardware
 
Components Of Computer unit-2
Components Of Computer  unit-2Components Of Computer  unit-2
Components Of Computer unit-2
 
Computer Architecture Design (CAD)
Computer Architecture Design (CAD)Computer Architecture Design (CAD)
Computer Architecture Design (CAD)
 
Lesson 1 anatomy of a digital computer (230 kb)
Lesson 1  anatomy of a digital computer (230 kb)Lesson 1  anatomy of a digital computer (230 kb)
Lesson 1 anatomy of a digital computer (230 kb)
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architecture
 
Processing Devices
Processing DevicesProcessing Devices
Processing Devices
 
Chapter 1 computer fundamentals
Chapter 1 computer fundamentals Chapter 1 computer fundamentals
Chapter 1 computer fundamentals
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Intro to cao &store program
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
 
Basic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxBasic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptx
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
FUNCTIONAL UNIT
FUNCTIONAL UNITFUNCTIONAL UNIT
FUNCTIONAL UNIT
 
In the heart of computers
In the heart of computersIn the heart of computers
In the heart of computers
 
Cpu
CpuCpu
Cpu
 
(2) The CPU incorporates several major components (as shown in Fig. d.docx
 (2) The CPU incorporates several major components (as shown in Fig. d.docx (2) The CPU incorporates several major components (as shown in Fig. d.docx
(2) The CPU incorporates several major components (as shown in Fig. d.docx
 

More from MehwishKanwal14

CS410 Visual Programming Master of Information Technology VU University Past ...
CS410 Visual Programming Master of Information Technology VU University Past ...CS410 Visual Programming Master of Information Technology VU University Past ...
CS410 Visual Programming Master of Information Technology VU University Past ...MehwishKanwal14
 
14420-Article Text-17938-1-2-20201228.pdf
14420-Article Text-17938-1-2-20201228.pdf14420-Article Text-17938-1-2-20201228.pdf
14420-Article Text-17938-1-2-20201228.pdfMehwishKanwal14
 
Wajid Shah-MCS143027.pdf
Wajid Shah-MCS143027.pdfWajid Shah-MCS143027.pdf
Wajid Shah-MCS143027.pdfMehwishKanwal14
 
Comp App Lect 5 part 2.pptx
Comp App  Lect 5 part 2.pptxComp App  Lect 5 part 2.pptx
Comp App Lect 5 part 2.pptxMehwishKanwal14
 
Comp App lect 3 (Software).ppt
Comp App lect 3 (Software).pptComp App lect 3 (Software).ppt
Comp App lect 3 (Software).pptMehwishKanwal14
 
C# console applications.docx
C# console applications.docxC# console applications.docx
C# console applications.docxMehwishKanwal14
 

More from MehwishKanwal14 (10)

CS410 Visual Programming Master of Information Technology VU University Past ...
CS410 Visual Programming Master of Information Technology VU University Past ...CS410 Visual Programming Master of Information Technology VU University Past ...
CS410 Visual Programming Master of Information Technology VU University Past ...
 
14420-Article Text-17938-1-2-20201228.pdf
14420-Article Text-17938-1-2-20201228.pdf14420-Article Text-17938-1-2-20201228.pdf
14420-Article Text-17938-1-2-20201228.pdf
 
projects2021C3.pdf
projects2021C3.pdfprojects2021C3.pdf
projects2021C3.pdf
 
Wajid Shah-MCS143027.pdf
Wajid Shah-MCS143027.pdfWajid Shah-MCS143027.pdf
Wajid Shah-MCS143027.pdf
 
Comp App Lect 5 part 2.pptx
Comp App  Lect 5 part 2.pptxComp App  Lect 5 part 2.pptx
Comp App Lect 5 part 2.pptx
 
Comp App Lect 4.pptx
Comp App Lect 4.pptxComp App Lect 4.pptx
Comp App Lect 4.pptx
 
Comp App Lect 1.ppt
Comp App Lect 1.pptComp App Lect 1.ppt
Comp App Lect 1.ppt
 
Comp App Lect 3.pptx
Comp App Lect 3.pptxComp App Lect 3.pptx
Comp App Lect 3.pptx
 
Comp App lect 3 (Software).ppt
Comp App lect 3 (Software).pptComp App lect 3 (Software).ppt
Comp App lect 3 (Software).ppt
 
C# console applications.docx
C# console applications.docxC# console applications.docx
C# console applications.docx
 

Recently uploaded

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 

Recently uploaded (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 

Comp App Lect 2 System Unit.pptx

  • 3. CPU
  • 4. The CPU  CPU stands for central processing unit. it is brain of computer  It is most important component of the computer. it is also called processor.  Converts data into information  It continually receives instructions to execute. Each instruction tells CPU to process data.  CPU performs all operations on data according to the given instructions.
  • 5. It executes instructions and tells other parts of computers what to do. Most of the work consists of calculations and data transfer. Two parts Control Unit (CU) Arithmetic and Logic Unit (ALU)
  • 6. Control Unit CU  Control Unit is an important component of CPU. It acts Like a supervisor of the computer.  It controls all activities of the computer system  All the computers resources are managed from the control unit.  Think of the control unit as a traffic signal directing the flow of data through the CPU.
  • 7.  The CPU´s instruction for carrying out commands are built into the control unit.  The instruction or instruction set, list all the operations that the CPU can perform.  Each instruction in the instruction set is expressed in microcode– a series of basic directions that tell the CPU how to execute more complex operations.
  • 8. Control Unit CU  It performs the following operations: 1. It fetches(makes) or retrieve instruction from main memory. 2. It interprets9understands) the instruction to find what operation is to be performed. 3. It controls the execution of instruction. The control unit determines the sequence in which computer programs and instructions are executed
  • 9. Arithmetic / Logic Unit ALU ALU is a part of CPU. Actual Execution of instructions takes place in this part. All Arithmetic and Logical operations are performed in ALU. It consists of two units  Arithmetic Unit Performs arithmetic operations  Logic Unit Performs logical operations
  • 11. Logical Operations  Evaluates conditions  Makes comparisons  Can compare  Numbers  Letters  Special characters
  • 12. ALU  Many instructions carried out by the control unit involve simply moving data from one place to another.  From memory to storage, from memory to the printer, and so on.  When the control unit encounters an instruction that involves arithmetic or logic , however, it passes that instruction to the second component of the CPU, the ALU.
  • 13. ALU  The ALU performs these operations.  ALU includes a group of registers--- high speed memory locations built directly into the CPU that are used to hold the data currently being processed.  ALU will use the register to hold the data currently being used for calculation.
  • 14. For example  CU might load two numbers from memory into the registers in the ALU.  Then it might tell the ALU divide the two numbers (an arithmetic operation) or to see whether the numbers are equal (a logical operation).  The answer to this calculation will be stored in another register before being sent out of the CPU.
  • 15.
  • 16. What is the Information Processing Cycle?  These are the steps that are taken to convert raw facts, which is data, into information. It starts with data collection.  The 4 basic operations of the information processing cycle are input, processing, output, storage and/or distribution.  A computer is the machine that performs the cycle. 16
  • 18. Machine cycles  Each time the CPU executes an instruction, it takes a series of steps.  The completed series of steps is called machine cycles.  A machine cycle itself can be broken down into two smaller cycles- 1. Instruction cycle 2. Execution cycle Machine cycle - fetch► decode► execute► store
  • 19. Instruction Execution Cycle  The CPU continuously transfer data to and from memory  Data transfer is done in units called instruction or words  When computer is switched on, the CPU continuously goes through a process called Fetch-Decode-Execute-Store.
  • 20. Example  What happens when you load up a game from disk into your computer? The program is stored as data, for example on a disc. You have to read that data, and store it in the memory of your computer. When you have done that, you can treat it as a program, (i.e. as a set of instructions) and run (execute) it.
  • 21. Instruction Execution Cycle At the beginning of machine cycle (that is during the instruction cycle), The CPU takes two steps: INSTRUCTION CYCLE 1. FETCHING:  Before CPU can execute an instruction ,the control unit must retrieve a command or data from the computer’s memory. 2. DECODING:  Before a command can be executed ,the control unit must break down (or decode) the command into instruction that correspond to those in the CPU’ s instruction set
  • 22. Execution Cycle At this point, the CPU is ready to begin the execution cycle: Execution Cycle 1. Executing:  When the command is executed, the CPU carries out the instructions in order by converting them into microcode. 2. Storing:  The CPU may be required to store the results of an instruction in memory (but this condition is not always required).
  • 23. Multiplication of two numbers: Steps of Machine Cycle
  • 24. Computer Buses  BUS - Physically a set of wires. The components of the Computer are connected to these buses.  Buses are electrical paths or lines inside computers.  Buses are used to carry electrical signals between components of computer.  One line of wire can carry one bit at a time.  The capacity of computer bus depends on the number of data lines it contains.  An 8-bit bus can carry 8 bits of data from one component to other at a time.
  • 25. Types of buses There are two types of buses  System Buses  Expansion Buses
  • 26. System Buses System bus is a type of computer bus that is used to connect the main components of a computer such as CPU and main memory. Computers normally have system bus of 70-100 lines. Different types of system buses are as follows:  Address Bus  Data Bus  Control Bus
  • 27. Data Bus  The electrical path through which data is transferred between components of a computer.  The data bus consists of 8,16,32 or 64 separate lines.  The data bus lines are bi-directional 1. Read data from memory using these lines 2. Write data to memory locations using these lines
  • 28. Basic block diagram of a typical computer system including common peripherals. The computer itself is shown within the gray block.
  • 29. Address Bus  Many components are connected to one another through buses.  Each component is assigned a unique ID.This Id is called address of that component.  Each I/O devices has a unique address. (monitor, mouse, CD-ROM)  If a component wants to communicate with another component, it uses address of that component.  The address bus is uni-directional.  It can carry information only in one direction.  It carries address of memory location from microprocessor to the main memory
  • 30. Control Bus  Collection of individual control signals.  Whether the CPU will read or write data.  CPU is accessing memory or an I/O device.  Memory or I/O is ready to transfer data.  For example, If CPU wants to read data from main memory ,it uses control bus to send the memory read command to the main memory of the computer.
  • 31. Expansion Buses Expansion bus is a type of computer that is used to connect CPU with peripheral devices such as mouse, Keyboard , Scanners, Printers etc