SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Introduction of CPU
• The part of the computer that performs the
bulk of data-processing operations is called
the central processing unit.
• The CPU is made up of three major parts:
The register set
Control Unit
ALU
• The register set: It stores intermediate data used
during the execution of the instructions.
• The arithmetic logic unit (ALU): It performs the
required microoperations for executing the
instructions.
• The control unit: It supervises the transfer of
information among the registers and instructs the
ALU as to which operation to perform.
Major components of CPU
Computer architecture
• Computer architecture is defined as the
computer structure and behavior as seen by
the programmer that uses machine language
instructions. This includes the instruction
formats, addressing modes, the instruction
set, and the general organization of the CPU
registers.
Control Memory
• The function of the control unit in a digital
computer is to initiate sequences of
microoperations.
• When the control signals are generated by
hardware using conventional logic design
techniques, the control unit is said to be
hardwired.
• A control unit whose binary control variables
are stored in memory is called a
microprogrammed control unit .
• The microinstruction specifies one or more
microoperations for the system.
• A sequence of microinstructions constitutes a
microprogram.
• A computer that employs a microprogrammed
control unit will have two separate memories:
a main memory and a control memory.
• The main memory is available to the user for
storing the programs.
• The contents of main memory may alter.
• In contrast, the control memory holds a fixed
microprogram that cannot be altered by the
occasional user.
• The user who programs the computer in
machine or assembly language must be aware
of the register set, the memory structure, the
type of data supported by the instructions,
and the function that each instruction
performs.
General Register Organization
• We know that memory locations are needed
for storing pointers, counters, return
addresses, temporary results, and partial
products during multiplication.
• It is more convenient and more efficient to
store these intermediate values in processor
registers.
• Hence it is necessary to provide a common
unit that can perform all the arithmetic, logic,
and shift micro operations in the processor.
Microprogrammed control
organization.
A bus organization for seven CPU registers is shown in Figure
For example,
• To perform the operation R 1 <-- R2 + R3 the
control must provide binary selection variables to
the following selector inputs:
1. MUX A selector (SELA): to place the content of
R2 into bus A .
2 . MUX B selector (SELB): to place the content o f R
3 into bus B .
3 . ALU operation selector (OPR): to provide the
arithmetic addition A + B .
4. Decoder destination selector (SELD): to transfer
the content of the output bus into R1 .
Control Word
• There are 14 binary selection inputs in the
unit, and their combined value specifies a
control word. The 14-bit control word is
defined as:
• It consists of four fields.
• The three bits of SELA select a source register for
the A input of the ALU.
• The three bits of SELB select a register for the B
input of the ALU.
• The three bits of SELD select a destination
register using the decoder and its seven load
outputs.
• The five bits of OPR select one of the operations
in the ALU.
The encoding of the register selections is specified in
given Table
In addition, the CPU must provide shift operations. The encoding
of the ALU operations for the CPU is specified in given Table:
Examples of Micro operations
• For example, the subtract micro operation
given by the statement
R 1 <- R 2 - R3
• A control word of 14 bits is needed to specify
a micro operation in the CPU.
The corresponding binary value for each
field(subtract micro operation) is as follows:
• The direct transfer from input to output is
accomplished with a control word of all 0' s
(making the B field 000).
• A register can be cleared to 0 with an
exclusive-OR operation. This is because x EXOR
x = 0.
• A memory unit that stores control words is
referred to as a control memory.
• By reading consecutive control words from
memory, it is possible to initiate the desired
sequence of Micro operations for the CPU.
This type of control is referred to as micro
programmed Control.

Weitere ähnliche Inhalte

Ähnlich wie Introduction of CPU.pptx

Ähnlich wie Introduction of CPU.pptx (20)

Chapter 8
Chapter 8Chapter 8
Chapter 8
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
 
THE PROCESSOR
THE PROCESSORTHE PROCESSOR
THE PROCESSOR
 
Basic non pipelined cpu architecture
Basic non pipelined cpu architectureBasic non pipelined cpu architecture
Basic non pipelined cpu architecture
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
Mod3
Mod3Mod3
Mod3
 
Unit 3 The processor
Unit 3 The processorUnit 3 The processor
Unit 3 The processor
 
Digital-Unit-III.ppt
Digital-Unit-III.pptDigital-Unit-III.ppt
Digital-Unit-III.ppt
 
Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2
 
SUDHARSAN.V.pptx
SUDHARSAN.V.pptxSUDHARSAN.V.pptx
SUDHARSAN.V.pptx
 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
 
conrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptxconrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptx
 
DG M 4 ppt.pptx
DG M 4 ppt.pptxDG M 4 ppt.pptx
DG M 4 ppt.pptx
 
mod 3-1.pptx
mod 3-1.pptxmod 3-1.pptx
mod 3-1.pptx
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
 
CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)
 
2.computer org.
2.computer org.2.computer org.
2.computer org.
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
CS304PC:Computer Organization and Architecture UNIT II .pdf
CS304PC:Computer Organization and Architecture UNIT II .pdfCS304PC:Computer Organization and Architecture UNIT II .pdf
CS304PC:Computer Organization and Architecture UNIT II .pdf
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Introduction of CPU.pptx

  • 1. Introduction of CPU • The part of the computer that performs the bulk of data-processing operations is called the central processing unit. • The CPU is made up of three major parts: The register set Control Unit ALU
  • 2. • The register set: It stores intermediate data used during the execution of the instructions. • The arithmetic logic unit (ALU): It performs the required microoperations for executing the instructions. • The control unit: It supervises the transfer of information among the registers and instructs the ALU as to which operation to perform.
  • 4. Computer architecture • Computer architecture is defined as the computer structure and behavior as seen by the programmer that uses machine language instructions. This includes the instruction formats, addressing modes, the instruction set, and the general organization of the CPU registers.
  • 5. Control Memory • The function of the control unit in a digital computer is to initiate sequences of microoperations. • When the control signals are generated by hardware using conventional logic design techniques, the control unit is said to be hardwired.
  • 6. • A control unit whose binary control variables are stored in memory is called a microprogrammed control unit . • The microinstruction specifies one or more microoperations for the system. • A sequence of microinstructions constitutes a microprogram.
  • 7. • A computer that employs a microprogrammed control unit will have two separate memories: a main memory and a control memory. • The main memory is available to the user for storing the programs. • The contents of main memory may alter.
  • 8. • In contrast, the control memory holds a fixed microprogram that cannot be altered by the occasional user.
  • 9. • The user who programs the computer in machine or assembly language must be aware of the register set, the memory structure, the type of data supported by the instructions, and the function that each instruction performs.
  • 10. General Register Organization • We know that memory locations are needed for storing pointers, counters, return addresses, temporary results, and partial products during multiplication. • It is more convenient and more efficient to store these intermediate values in processor registers.
  • 11. • Hence it is necessary to provide a common unit that can perform all the arithmetic, logic, and shift micro operations in the processor.
  • 13. A bus organization for seven CPU registers is shown in Figure
  • 14. For example, • To perform the operation R 1 <-- R2 + R3 the control must provide binary selection variables to the following selector inputs: 1. MUX A selector (SELA): to place the content of R2 into bus A . 2 . MUX B selector (SELB): to place the content o f R 3 into bus B . 3 . ALU operation selector (OPR): to provide the arithmetic addition A + B . 4. Decoder destination selector (SELD): to transfer the content of the output bus into R1 .
  • 15. Control Word • There are 14 binary selection inputs in the unit, and their combined value specifies a control word. The 14-bit control word is defined as:
  • 16. • It consists of four fields. • The three bits of SELA select a source register for the A input of the ALU. • The three bits of SELB select a register for the B input of the ALU. • The three bits of SELD select a destination register using the decoder and its seven load outputs. • The five bits of OPR select one of the operations in the ALU.
  • 17. The encoding of the register selections is specified in given Table
  • 18. In addition, the CPU must provide shift operations. The encoding of the ALU operations for the CPU is specified in given Table:
  • 19. Examples of Micro operations • For example, the subtract micro operation given by the statement R 1 <- R 2 - R3 • A control word of 14 bits is needed to specify a micro operation in the CPU.
  • 20. The corresponding binary value for each field(subtract micro operation) is as follows:
  • 21.
  • 22. • The direct transfer from input to output is accomplished with a control word of all 0' s (making the B field 000). • A register can be cleared to 0 with an exclusive-OR operation. This is because x EXOR x = 0.
  • 23. • A memory unit that stores control words is referred to as a control memory. • By reading consecutive control words from memory, it is possible to initiate the desired sequence of Micro operations for the CPU. This type of control is referred to as micro programmed Control.