SlideShare a Scribd company logo
1 of 15
Control Unit
Design
Mohammad Nazir
The Control Unit
– The control unit is responsible for generating control signals as well as the
timing signals.
– Hence the control unit is responsible for the synchronization of internal as well
as external events.
– By means of the control signals, the control unit instructs the data path what to
do in every clock cycle during the execution of instructions.
Control Unit Design
– Since the control unit performs quite complex tasks, its design must be done
very carefully.
– Most errors in processor design are in the Control Unit design phase.
– There are primarily two approaches to design a control unit.
1. Hardwired approach
2. Micro programming
Hardwired approach
– Hardwired approach is relatively faster, however, the final circuit is quite
complex.
– The micro-programmed implementation is usually slow, but it is much more
flexible.
Finite-state machine
– “Finite-state machine” concepts are usually used to represent the CU.
– Every state corresponds to one “clock cycle” i.e., 1 state per clock. In other
words each timing step
– could be considered as just 1 state and therefore from one timing step to other
timing
– step, the state would change
– The complexity of the control is a function of the following
• Number of states
• Number of inputs to the CU
• Number of the outputs generated by the CU
The complexity of the control
unit
Hardwired Implementation of
the Control Unit
– The accompanying block diagram shows the inputs to the control unit. The
output control signals generated from control unit to the various parts of the
processor are also shown in the figure
Microprogrammed Control
– There is an alternative approach by which the control signals required inside the
CPU can be generated . This alternative approach is known as
microprogrammed control unit.
– In microprogrammed control unit , the logic of the control unit is specified by a
microprogram.
– A microprogram consists of a sequence of instructions in a microprogramming
language. These are very instructions that specify microoperations.
Microprogrammed Control
– The concept of microprogram is similar to computer program. In computer
program the complete instructions of the program is stored in main memory
and during execution it fetches the instructions from main memory one after
another. The sequence of instruction fetch is controlled by program counter
(PC)
Difference:
Hardwired control unit
Microprogammed
Advantages & Disadvantages
Advantages & Disadvantages

More Related Content

What's hot

Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecture
meashi
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unit
Ashim Saha
 

What's hot (20)

Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecture
 
control unit
control unitcontrol unit
control unit
 
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
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unit
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
BLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
BLOCK DIAGRAM OF HARDWIRED CONTROL UNITBLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
BLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
 
MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .
 
Ch7 official=computer organization and archietectur- CO-COA
Ch7 official=computer organization and archietectur- CO-COACh7 official=computer organization and archietectur- CO-COA
Ch7 official=computer organization and archietectur- CO-COA
 
Ch7 official
Ch7 officialCh7 official
Ch7 official
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
Control unit
Control unitControl unit
Control unit
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
15 control-computer organization and archietecture-CO-COA
15 control-computer organization and archietecture-CO-COA15 control-computer organization and archietecture-CO-COA
15 control-computer organization and archietecture-CO-COA
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Control unit design
Control unit designControl unit design
Control unit design
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unit
 
Control unit-implementation
Control unit-implementationControl unit-implementation
Control unit-implementation
 
Control Memory
Control MemoryControl Memory
Control Memory
 
Micro program
Micro programMicro program
Micro program
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 

Similar to Control unit design(1)

Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unit
Anuj Modi
 

Similar to Control unit design(1) (20)

Dp&co
Dp&coDp&co
Dp&co
 
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
 
Basic Concepts of Control (Digital Logic Fundamentals)
Basic Concepts of Control (Digital Logic Fundamentals)Basic Concepts of Control (Digital Logic Fundamentals)
Basic Concepts of Control (Digital Logic Fundamentals)
 
computer Ariciteacture and orgnization
computer Ariciteacture and orgnization computer Ariciteacture and orgnization
computer Ariciteacture and orgnization
 
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
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unit
 
Lecture 20
Lecture 20Lecture 20
Lecture 20
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
Thesis1 3-23
Thesis1 3-23Thesis1 3-23
Thesis1 3-23
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
 
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
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Control unit
Control unit Control unit
Control unit
 
computer architecture
computer architecturecomputer architecture
computer architecture
 
Training report
Training reportTraining report
Training report
 
What is Control Unit and types of control unit?
What is Control Unit and types of control unit?What is Control Unit and types of control unit?
What is Control Unit and types of control unit?
 
Modern machine
Modern machineModern machine
Modern machine
 
BHEL CNC MACHINE TRAINING REPORT
BHEL CNC MACHINE TRAINING REPORT BHEL CNC MACHINE TRAINING REPORT
BHEL CNC MACHINE TRAINING REPORT
 

More from Nazir Ahmed

More from Nazir Ahmed (20)

Data structures final lecture 1
Data structures final  lecture 1Data structures final  lecture 1
Data structures final lecture 1
 
Data structures lecture 04
Data structures  lecture 04Data structures  lecture 04
Data structures lecture 04
 
Data structure
Data structureData structure
Data structure
 
Cover letter
Cover letterCover letter
Cover letter
 
Computer architecture mcq (2)
Computer architecture mcq (2)Computer architecture mcq (2)
Computer architecture mcq (2)
 
Complete binary tree and heap
Complete binary tree and heapComplete binary tree and heap
Complete binary tree and heap
 
Clamper clipper(10)
Clamper clipper(10)Clamper clipper(10)
Clamper clipper(10)
 
Cisc mc68000
Cisc mc68000Cisc mc68000
Cisc mc68000
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
Chapter 07 ddl_sql
Chapter 07 ddl_sqlChapter 07 ddl_sql
Chapter 07 ddl_sql
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Chapter 03
Chapter 03Chapter 03
Chapter 03
 
Chapter # 12 er modeling
Chapter # 12 er modelingChapter # 12 er modeling
Chapter # 12 er modeling
 
Chapeter 2
Chapeter 2Chapeter 2
Chapeter 2
 
Ch7 1 v1
Ch7 1 v1Ch7 1 v1
Ch7 1 v1
 
Ch07 deadlocks
Ch07 deadlocksCh07 deadlocks
Ch07 deadlocks
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
 
Ch04 threads
Ch04 threadsCh04 threads
Ch04 threads
 
Ch03 processes
Ch03 processesCh03 processes
Ch03 processes
 
Ch1 v1
Ch1 v1Ch1 v1
Ch1 v1
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 

Recently uploaded (20)

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

Control unit design(1)

  • 2. The Control Unit – The control unit is responsible for generating control signals as well as the timing signals. – Hence the control unit is responsible for the synchronization of internal as well as external events. – By means of the control signals, the control unit instructs the data path what to do in every clock cycle during the execution of instructions.
  • 3. Control Unit Design – Since the control unit performs quite complex tasks, its design must be done very carefully. – Most errors in processor design are in the Control Unit design phase. – There are primarily two approaches to design a control unit. 1. Hardwired approach 2. Micro programming
  • 4. Hardwired approach – Hardwired approach is relatively faster, however, the final circuit is quite complex. – The micro-programmed implementation is usually slow, but it is much more flexible.
  • 5. Finite-state machine – “Finite-state machine” concepts are usually used to represent the CU. – Every state corresponds to one “clock cycle” i.e., 1 state per clock. In other words each timing step – could be considered as just 1 state and therefore from one timing step to other timing – step, the state would change
  • 6. – The complexity of the control is a function of the following • Number of states • Number of inputs to the CU • Number of the outputs generated by the CU The complexity of the control unit
  • 7.
  • 8. Hardwired Implementation of the Control Unit – The accompanying block diagram shows the inputs to the control unit. The output control signals generated from control unit to the various parts of the processor are also shown in the figure
  • 9. Microprogrammed Control – There is an alternative approach by which the control signals required inside the CPU can be generated . This alternative approach is known as microprogrammed control unit. – In microprogrammed control unit , the logic of the control unit is specified by a microprogram. – A microprogram consists of a sequence of instructions in a microprogramming language. These are very instructions that specify microoperations.
  • 10. Microprogrammed Control – The concept of microprogram is similar to computer program. In computer program the complete instructions of the program is stored in main memory and during execution it fetches the instructions from main memory one after another. The sequence of instruction fetch is controlled by program counter (PC)