SlideShare a Scribd company logo
1 of 15
Processor Basics
Prof. Anish Goel
CPU Organization
 Fundamentals
 CPU transfers instructions and when necessary, their
input data from main memory to its registers.
 CPU executes the instructions in their stored sequence
except when execution sequence is explicitly altered by
branching instructions.
 When necessary, the CPU transfers the output data from
its registers to the main memory.
Prof. Anish Goel
External Communication
Prof. Anish Goel
User and Supervisor Modes
 The programs executed by GP computer falls into
two broad groups:
 User Programs
 Supervisor Programs.
 A user program is an application program.
 A supervisor program manages the various routine
aspects of the computer system on behalf of its
users.
 It’s a part of computers operating system.
 The CPU continuously switches between a user
program and a supervisor program.
 Interrupt is one such factor causing the switching
from one mode to another.
Prof. Anish Goel
Overview of CPU Behaviour
Prof. Anish Goel
Accumulator Based CPU
Instruction Decoder
IR AR PC
DR AC
System Bus
Arithmetic and Logic Unit
Data Processing
Unit
Program
control
unit
Control Signals
To Memory and IO
devices
Prof. Anish Goel
Instruction Set
Prof. Anish Goel
Type Instruction HDL Format Assembly
Format
Narrative
Format
Data Transfer Load AC:=M(X) LD X Load F from
M into AC
Store M(X):=AC ST X Store
contents of
AC in M as X
Move Reg. DR:=AC MOV DR,AC Copy contents
of AC to DR
Move Reg. AC:=DR MOV AC,RD Copy contents
of DR to AC
Instruction Set
Prof. Anish Goel
Type Instruction HDL Format Assembly
Format
Narrative
Format
Data
Processing
Add AC:=AC+DR ADD Add DR to AC
Subtract AC:=AC-DR SUB Subtract DR
from AC
And AC:= AC and
DR
AND And bitwise
DR to AC
Not AC:=Not(AC) NOT Complement
the contents
of AC
Instruction Set
Prof. Anish Goel
Type Instruction HDL Format Assembly
Format
Narrative
Format
Program
Control
Branch PC:=M(adr) BRA Adr Jump to
Instruction
with address
adr
Branch Zero If AC = 0 then
PC:= M(adr)
BZ adr Jump to
instruction
address adr if
AC = 0
Instructions
 X1 : = fi(X1,X2);
 X1 and X2 denotes CPU registers (AC, DR or PC)
 IR.AR := M(PC);
 IR := op, AR := adr
 Load store instructions
 AC := M(adr);
 M(adr) := AC;
Prof. Anish Goel
Additional Features
 Architecture extensions
 Multipurpose register set for storing data and addresses.
 Additional data, instruction, and address types.
 Register to indicate computation status.
 Program control stack.
 Pipelining.
Prof. Anish Goel
CPU with general register organization
Data
Registe
r
ALU
DPU
PCU
Registe
r File
Status
Registe
r
System Bus
Address
Register
Instruction Register
Address
Generation
Logic
Control Circuits
Program Counter
Stack Pointer
To Memory and IO
devices
Prof. Anish Goel
Instruction Pipeline
Prof. Anish Goel
ALU Design
Prof. Anish Goel
 The various circuits used to execute data-processing
instructions are usually combined in a single circuit
called ALU.
 The complexity of an ALU is determined by the way
in which its arithmetic instructions are realized.
 Simple ALUs that perform fixed-point addition and
subtraction as well as word-based logic operation
can be realized by combinational circuits.
 More extensive data processing and control logic is
necessary to implement floating point arithmetic in
hardware.
Combinational ALU: basic n-bit ALU
Prof. Anish Goel
N-bit
logic unit
N-bit
Adder-
Subtracte
r
2 way n-bit
multiplexer
X
Y
Data in
Data OutZ
Mode MCarry InSelect S
Flags

More Related Content

What's hot

What's hot (19)

Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Counit2 2
Counit2 2Counit2 2
Counit2 2
 
Data Manipulation
Data ManipulationData Manipulation
Data Manipulation
 
Lecture 34
Lecture 34Lecture 34
Lecture 34
 
Computer Evolution
Computer EvolutionComputer Evolution
Computer Evolution
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Computer organization basics
Computer organization  basicsComputer organization  basics
Computer organization basics
 
Design an I/O system
Design an I/O systemDesign an I/O system
Design an I/O system
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
input and output organisation
input and output organisation input and output organisation
input and output organisation
 
Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and Interconection
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Busses
BussesBusses
Busses
 

Similar to Computer Organization

Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
cse211 power point presentation for engineering
cse211 power point presentation for engineeringcse211 power point presentation for engineering
cse211 power point presentation for engineeringVishnuVinay6
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registersmahesh kumar prajapat
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registersmahesh kumar prajapat
 
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptxFatma Sayed Ibrahim
 
Lecture1 - Computer Architecture
Lecture1 - Computer ArchitectureLecture1 - Computer Architecture
Lecture1 - Computer ArchitectureVolodymyr Ushenko
 
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro Pikinfad
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
ICTCoreCh11
ICTCoreCh11ICTCoreCh11
ICTCoreCh11garcons0
 
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.pptSoulReaper21
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and DesignKamal Acharya
 
Arm architecture
Arm architectureArm architecture
Arm architectureMinYeop Na
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
 

Similar to Computer Organization (20)

unit2 (1).ppt
unit2 (1).pptunit2 (1).ppt
unit2 (1).ppt
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
cse211 power point presentation for engineering
cse211 power point presentation for engineeringcse211 power point presentation for engineering
cse211 power point presentation for engineering
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
 
CAO-Unit-I.pptx
CAO-Unit-I.pptxCAO-Unit-I.pptx
CAO-Unit-I.pptx
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
 
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptx
 
Lecture1 - Computer Architecture
Lecture1 - Computer ArchitectureLecture1 - Computer Architecture
Lecture1 - Computer Architecture
 
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro P
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
ICTCoreCh11
ICTCoreCh11ICTCoreCh11
ICTCoreCh11
 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
 
Lec02
Lec02Lec02
Lec02
 
Ca basic computer organization
Ca basic computer organizationCa basic computer organization
Ca basic computer organization
 
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.ppt
 
Lect11 organization
Lect11 organizationLect11 organization
Lect11 organization
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Arm architecture
Arm architectureArm architecture
Arm architecture
 
instruction codes
instruction codesinstruction codes
instruction codes
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 

Recently uploaded

Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Studentskannan348865
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUankushspencer015
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..MaherOthman7
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligencemahaffeycheryld
 
Circuit Breakers for Engineering Students
Circuit Breakers for Engineering StudentsCircuit Breakers for Engineering Students
Circuit Breakers for Engineering Studentskannan348865
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsMathias Magdowski
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsVIEW
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdfKamal Acharya
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfragupathi90
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Toolssoginsider
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docxrahulmanepalli02
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1T.D. Shashikala
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfKira Dess
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfssuser5c9d4b1
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationEmaan Sharma
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniR. Sosa
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 

Recently uploaded (20)

Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
Circuit Breakers for Engineering Students
Circuit Breakers for Engineering StudentsCircuit Breakers for Engineering Students
Circuit Breakers for Engineering Students
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdf
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney Uni
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 

Computer Organization

  • 2. CPU Organization  Fundamentals  CPU transfers instructions and when necessary, their input data from main memory to its registers.  CPU executes the instructions in their stored sequence except when execution sequence is explicitly altered by branching instructions.  When necessary, the CPU transfers the output data from its registers to the main memory. Prof. Anish Goel
  • 4. User and Supervisor Modes  The programs executed by GP computer falls into two broad groups:  User Programs  Supervisor Programs.  A user program is an application program.  A supervisor program manages the various routine aspects of the computer system on behalf of its users.  It’s a part of computers operating system.  The CPU continuously switches between a user program and a supervisor program.  Interrupt is one such factor causing the switching from one mode to another. Prof. Anish Goel
  • 5. Overview of CPU Behaviour Prof. Anish Goel
  • 6. Accumulator Based CPU Instruction Decoder IR AR PC DR AC System Bus Arithmetic and Logic Unit Data Processing Unit Program control unit Control Signals To Memory and IO devices Prof. Anish Goel
  • 7. Instruction Set Prof. Anish Goel Type Instruction HDL Format Assembly Format Narrative Format Data Transfer Load AC:=M(X) LD X Load F from M into AC Store M(X):=AC ST X Store contents of AC in M as X Move Reg. DR:=AC MOV DR,AC Copy contents of AC to DR Move Reg. AC:=DR MOV AC,RD Copy contents of DR to AC
  • 8. Instruction Set Prof. Anish Goel Type Instruction HDL Format Assembly Format Narrative Format Data Processing Add AC:=AC+DR ADD Add DR to AC Subtract AC:=AC-DR SUB Subtract DR from AC And AC:= AC and DR AND And bitwise DR to AC Not AC:=Not(AC) NOT Complement the contents of AC
  • 9. Instruction Set Prof. Anish Goel Type Instruction HDL Format Assembly Format Narrative Format Program Control Branch PC:=M(adr) BRA Adr Jump to Instruction with address adr Branch Zero If AC = 0 then PC:= M(adr) BZ adr Jump to instruction address adr if AC = 0
  • 10. Instructions  X1 : = fi(X1,X2);  X1 and X2 denotes CPU registers (AC, DR or PC)  IR.AR := M(PC);  IR := op, AR := adr  Load store instructions  AC := M(adr);  M(adr) := AC; Prof. Anish Goel
  • 11. Additional Features  Architecture extensions  Multipurpose register set for storing data and addresses.  Additional data, instruction, and address types.  Register to indicate computation status.  Program control stack.  Pipelining. Prof. Anish Goel
  • 12. CPU with general register organization Data Registe r ALU DPU PCU Registe r File Status Registe r System Bus Address Register Instruction Register Address Generation Logic Control Circuits Program Counter Stack Pointer To Memory and IO devices Prof. Anish Goel
  • 14. ALU Design Prof. Anish Goel  The various circuits used to execute data-processing instructions are usually combined in a single circuit called ALU.  The complexity of an ALU is determined by the way in which its arithmetic instructions are realized.  Simple ALUs that perform fixed-point addition and subtraction as well as word-based logic operation can be realized by combinational circuits.  More extensive data processing and control logic is necessary to implement floating point arithmetic in hardware.
  • 15. Combinational ALU: basic n-bit ALU Prof. Anish Goel N-bit logic unit N-bit Adder- Subtracte r 2 way n-bit multiplexer X Y Data in Data OutZ Mode MCarry InSelect S Flags