SlideShare a Scribd company logo
1 of 19
CPU
CONTROL UNIT
CONTROL UNIT
• KEY POINTS
• The execution of an instruction involves the
execution of a sequence of substeps, generally
called cycles. For example, an execution may
consist of fetch, execute, and interrupt cycles. Each
cycle is in turn made up of a sequence of more
fundamental operations, called micro-operations. A
single micro-operation generally involves a transfer
between registers, a transfe between a register and
an external bus, or a simple ALU operation.
CONTROL UNIT
• KEY POINTS
• The control unit of a processor performs two tasks:
(1) It causes the processor to ste through a series of
micro-operations in the proper sequence, based on
the program being executed, and (2) it generates the
contro signals that cause each micro-operation to be
executed.
CONTROL UNIT
• KEY POINTS
• The control signals generated by the control unit
cause the opening and closing of logic gates,
resulting in the transfer of data to and from registers
and the operation of the ALU.
• each of the smaller cycles involves a series of steps,
each of which involves the processor registers. We
will refer to these steps as micro-operations.
The Fetch Cycle
• Four registers are involved:
1. Memory address register (MAR): Is connected to
the address lines of the system bus. It specifies the
address in memory for a read or write operation.
2. • Memory buffer register (MBR): Is connected to the
data lines of the system bus. It contains the value
to be stored in memory or the last value read from
memory.
3. • Program counter (PC): Holds the address of the
next instruction to be fetched.
4. • Instruction register (IR): Holds the last instruction
fetched
The Fetch Cycle
• Steps
1. the address of the next instruction to be executed is in the
program counter (PC);
2. move that address to the memory address register (MAR)
3. bring in the instruction:The desired address (in the MAR) is
placed on the address bus, the control unit issues a READ
command on the control bus, and the result appears on the
data bus and is copied into the memory buffer register (MBR)
4. increment the PC by the instruction length to get ready for the
next instruction.(Because these two actions (read word from
memory, increment PC) do not interfere with each other, we
can do them simultaneously to save time.)
5. move the contents of the MBR to the instruction register (IR).
The Fetch Cycle
The Execute Cycle
• there are a number of different sequences of micro-
operations that can occur , due to the variety opcodes.
• ADD R1, X
• t1: MAR ← (IR(address))
• t2: MBR ← Memory
• t3: R1 ← (R1) + (MBR)
micro-operations
• micro-operations fall in to one of the following
categories:
1. Transfer data from one register to another.
2. Transfer data from a register to an external
interface (e.g., system bus).
3. Transfer data from an external interface to a
register.
4. Perform an arithmetic or logic operation, using
registers for input and output
tasks
• The control unit performs two basic tasks:
• Sequencing: The control unit causes the processor
to step through a series of micro-operations in the
proper sequence, based on the program being
executed.
• Execution: The control unit causes each micro-
operation to be performed.
Interfaces
Interfaces
Three types of control signals are used: those
1. that activate an ALU function,
2. those that activate a data path,
3. and those that are signals on the external system
bus or other external interface.
All of these signals are ultimately applied directly as
binary inputs to individual logic gates.
• E.g : to transfer the contents of the PC to the MAR.
The control unit does this by activating the control
signal that opens the gates between the bits of the
PC and the bits of the MAR.
HARDWIRED
IMPLEMENTATION
HARDWIRED
IMPLEMENTATION
• To simplify the control unit logic, there should be a
unique logic input for each opcode This function can
be performed by a decoder, which takes an encoded
input and produces a single output.
• Timing Generator: generate timing signal consist of
counter and decoder ,with pulse there is single
timing signal.
HARDWIRED
IMPLEMENTATION
• Consider I0 required the following sequence of
control signal
• C7 = t2  I0 C3 = t1  I0
HARDWIRED
IMPLEMENTATION
• Consider I9 required the following sequence of
control signal
HARDWIRED
IMPLEMENTATION
CISC & RISC
• Complex instruction set computers (CISC)
o These machines provided a variety of
instructions that may perform very
complex tasks
o To ease task for programmers
o Use large numbers of addressing modes
o Require many clock cycles per instruction
o Used a number of different instruction
formats of varying lengths
CISC & RISC
• Reduced instruction set computers (RISC)
o Fewer and simpler instructions
o Few instruction formats
o Few cycle per instruction
o Large number of internal CPU registers
o Best suited with pipeline processors

More Related Content

Similar to Control unit

assignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instructionassignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instructionChHusnainHassanI
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unitBBDITM LUCKNOW
 
computer architecture
computer architecturecomputer architecture
computer architecturePandiya Rajan
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unitDeepak John
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed controldilip kumar
 
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 .pdfAsst.prof M.Gokilavani
 
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnnchapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnnNineTo1
 
310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organizationsrinoni
 
COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7Dr.MAYA NAYAK
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfDrKalaavathiBuvanesh
 
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)guptakrishns23
 
Computer Organization
Computer OrganizationComputer Organization
Computer OrganizationAnish Goel
 
3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organizationJay Patel
 

Similar to Control unit (20)

assignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instructionassignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instruction
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unit
 
computer architecture
computer architecturecomputer architecture
computer architecture
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
 
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
 
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnnchapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
 
310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization
 
COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7
 
Control unit
Control unitControl unit
Control unit
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
 
Central processing unit i
Central processing unit iCentral processing unit i
Central processing unit i
 
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)
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization
 
Micro controller
Micro controllerMicro controller
Micro controller
 

Recently uploaded

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

Control unit

  • 2. CONTROL UNIT • KEY POINTS • The execution of an instruction involves the execution of a sequence of substeps, generally called cycles. For example, an execution may consist of fetch, execute, and interrupt cycles. Each cycle is in turn made up of a sequence of more fundamental operations, called micro-operations. A single micro-operation generally involves a transfer between registers, a transfe between a register and an external bus, or a simple ALU operation.
  • 3. CONTROL UNIT • KEY POINTS • The control unit of a processor performs two tasks: (1) It causes the processor to ste through a series of micro-operations in the proper sequence, based on the program being executed, and (2) it generates the contro signals that cause each micro-operation to be executed.
  • 4. CONTROL UNIT • KEY POINTS • The control signals generated by the control unit cause the opening and closing of logic gates, resulting in the transfer of data to and from registers and the operation of the ALU. • each of the smaller cycles involves a series of steps, each of which involves the processor registers. We will refer to these steps as micro-operations.
  • 5. The Fetch Cycle • Four registers are involved: 1. Memory address register (MAR): Is connected to the address lines of the system bus. It specifies the address in memory for a read or write operation. 2. • Memory buffer register (MBR): Is connected to the data lines of the system bus. It contains the value to be stored in memory or the last value read from memory. 3. • Program counter (PC): Holds the address of the next instruction to be fetched. 4. • Instruction register (IR): Holds the last instruction fetched
  • 6. The Fetch Cycle • Steps 1. the address of the next instruction to be executed is in the program counter (PC); 2. move that address to the memory address register (MAR) 3. bring in the instruction:The desired address (in the MAR) is placed on the address bus, the control unit issues a READ command on the control bus, and the result appears on the data bus and is copied into the memory buffer register (MBR) 4. increment the PC by the instruction length to get ready for the next instruction.(Because these two actions (read word from memory, increment PC) do not interfere with each other, we can do them simultaneously to save time.) 5. move the contents of the MBR to the instruction register (IR).
  • 8. The Execute Cycle • there are a number of different sequences of micro- operations that can occur , due to the variety opcodes. • ADD R1, X • t1: MAR ← (IR(address)) • t2: MBR ← Memory • t3: R1 ← (R1) + (MBR)
  • 9. micro-operations • micro-operations fall in to one of the following categories: 1. Transfer data from one register to another. 2. Transfer data from a register to an external interface (e.g., system bus). 3. Transfer data from an external interface to a register. 4. Perform an arithmetic or logic operation, using registers for input and output
  • 10. tasks • The control unit performs two basic tasks: • Sequencing: The control unit causes the processor to step through a series of micro-operations in the proper sequence, based on the program being executed. • Execution: The control unit causes each micro- operation to be performed.
  • 12. Interfaces Three types of control signals are used: those 1. that activate an ALU function, 2. those that activate a data path, 3. and those that are signals on the external system bus or other external interface. All of these signals are ultimately applied directly as binary inputs to individual logic gates. • E.g : to transfer the contents of the PC to the MAR. The control unit does this by activating the control signal that opens the gates between the bits of the PC and the bits of the MAR.
  • 14. HARDWIRED IMPLEMENTATION • To simplify the control unit logic, there should be a unique logic input for each opcode This function can be performed by a decoder, which takes an encoded input and produces a single output. • Timing Generator: generate timing signal consist of counter and decoder ,with pulse there is single timing signal.
  • 15. HARDWIRED IMPLEMENTATION • Consider I0 required the following sequence of control signal • C7 = t2  I0 C3 = t1  I0
  • 16. HARDWIRED IMPLEMENTATION • Consider I9 required the following sequence of control signal
  • 18. CISC & RISC • Complex instruction set computers (CISC) o These machines provided a variety of instructions that may perform very complex tasks o To ease task for programmers o Use large numbers of addressing modes o Require many clock cycles per instruction o Used a number of different instruction formats of varying lengths
  • 19. CISC & RISC • Reduced instruction set computers (RISC) o Fewer and simpler instructions o Few instruction formats o Few cycle per instruction o Large number of internal CPU registers o Best suited with pipeline processors