SlideShare a Scribd company logo
ANKUR SRIVASTAVA
Assistant Professor
Dept of CSE
JETGI, Barabanki
CONTROL UNIT
UNIT-2
• Basic Concepts
• Micro-Instruction Sequencing
• Micro- Instruction Execution
Control Systems
• Two types of control systems
▫ Hardwired Control Systems
▫ Micro-Programmed Control Systems
Hardwired Control
• A special digital circuit that uses
▫ The bits from the opcode field in our instructions
▫ Bits from the Flags
▫ Signals from the bus
▫ Signals from the Clock
Hardwire Control
• Advantages
▫ Speed
• Disadvantages
▫ Instruction set and Control logic are directly tied
together using complicated circuits that are
difficult to design and modify.
Micro Program Control
• Developed by M.V. Wilkes in
the early 1950’s
• Proposed an idea that was
organized and systematic and
avoided the complications of
hardwired implementation.
http://www.cl.cam.ac.uk/R
elics/jpegs/edsac99.11.jpg
Micro-Progammed Control Basic
Concepts
• Use sequences of instructions to control complex
operations
• Called micro-programming or firmware
• Microprogram is an interpreter written in
microcode that is stored in
firmware(ROM,PROM,EEPROM) which is often
called the control store. The program converts
zero’s and one’s into control signals.
Functioning of Micro programmed
Control Unit
Micro-Program Control
• Advantages
▫ Only thing that needs to be modified is the micro-
code. No hardware modification is needed.
▫ Microprogramming is flexible and easy to design.
▫ Allows for convenient hardware/software trade
offs. If something you want is not implemented in
hardware it can be implemented in software.
Micro-Program Control
• Disadvantages
▫ All instructions must go through an additional
level of interpretation, slowing down the program
execution.
▫ Development is expensive due to software tools.
What is MicroInstruction
Sequencing?
• Getting the next instruction from the control
memory
MicroCode
• Stored in high speed memory, CONTROL
STORE
• Could be ROM or Read/Write
• Read/Write allows for debugging
• Uses very wide, bit-wise, instructions
• Designed for fastest possible execution
Implementation
• Each microinstruction provides the bits that
control the elements of a CPU
• Turns extremely complex electrical design into
less difficult programming design
Two Concerns
• Two main concerns in designing a sequence:
▫ Size of MicroInstruction
▫ Address-Generation Time
Sequencing Techniques
• Two address fields
• Single address field
• Variable Format
Branch Control Logic, Two Address Fields
Address Generation
Branch Instruction
• Depends on:
▫ ALU Flags
▫ Part of the opcode or address mode fields of the
instruction
▫ Parts of a selected register
▫ Status bits within the control unit
Execution
• Once an instruction has been loaded into the instruction
register (IR), and the control unit (CU) has examined and
decoded the fetched instruction and determined the required
course of action to take, the execution cycle can commence.
• Unlike the fetch cycle and the interrupt cycle, both of which
have a set instruction sequence, the execute cycle can
comprise some complex operations (commonly called
opcodes).
Execute cycle
• The Fetch-Execute cycle in Transfer
Notation
• MAR<-[PC]
• MDR<-[Memory Location]
• PC<-[PC]+1
• IR<-[MDR]
• CU<-IR
Execute
• Microinstruction organized as set of fields
• Each field contains code
• Activates one or more control signals
• Organize format into independent fields
▫ Field depicts set of actions (pattern of control signals)
▫ Actions from different fields can occur simultaneously
• Alternative actions that can be specified by a field are
mutually exclusive
▫ Only one action specified for field could occur at a time
Execute Cycle
Execute cycle
• The first step of the execute cycle is the Process-
Memory. Data is transferred between the CPU and the
I/O module.
• Next is the Data-Processing uses mathematical
operations as well as logical operations in reference to
data.
• Central alterations is the next step, is a sequence of
operations, for example a jump operation. The last
step is a combined operation from all the other steps.
Execute Cycle
• The actions within the execution cycle can be categorized into the
following four groups:
• CPU - Memory: Data may be transferred from memory to the CPU
or from the CPU to memory.
• CPU - I/O: Data may be transferred from an I/O module to the CPU
or from the CPU to an I/O module.
• Data Processing: The CPU may perform some arithmetic or logic
operation on data via the arithmetic-logic unit (ALU).
• Control: An instruction may specify that the sequence of operation
may be altered. For example, the program counter (PC) may be
updated with a new memory address to reflect that the next
instruction fetched, should be read from this new location.
How Prefetching Works?
Questions
• 1. What are two types of Control Systems?
• 2. What is the difference between hardwired and micro
programmed control systems?
• 3. What are the advantages and disadvantages of Hardwired and
Micro programmed controlled systems?
• 4. In how many actions can the execute cycle be categorized?
• 5. How are micro-Instructions Organized?
• 6. What is the role of the control Unit?
• 7. What is Micro-Instruction Sequencing?
• 8. What are the 2 main concerns of designing?
• 9. What are the 3 types of sequencing techniques?
• 10. What are the two types of address generation techniques?

More Related Content

What's hot

Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
Kamal Acharya
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unitAshim Saha
 
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
Jay Patel
 
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
Jay Patel
 
Control unit design
Control unit designControl unit design
Control unit design
Dhaval Bagal
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
Siddique Ibrahim
 
Microinstruction sequencing new
Microinstruction sequencing newMicroinstruction sequencing new
Microinstruction sequencing newMahesh Kumar Attri
 
Control unit
Control  unitControl  unit
Control unit
Sameer Patil
 
MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .
Muhammad Umar
 
Control unit design(1)
Control unit design(1)Control unit design(1)
Control unit design(1)
Nazir Ahmed
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
Shashank Singh
 
Control Memory
Control MemoryControl Memory
Control Memory
mahesh kumar prajapat
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
Destro Destro
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
Syed Zaid Irshad
 
Control unit
Control unitControl unit
Control unit
Syed Zaid Irshad
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
Siddique Ibrahim
 
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
Jay Patel
 
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
Rai University
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuit
Rajan Shah
 

What's hot (20)

Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 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
 
Ch7 official
Ch7 officialCh7 official
Ch7 official
 
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
 
Control unit design
Control unit designControl unit design
Control unit design
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Microinstruction sequencing new
Microinstruction sequencing newMicroinstruction sequencing new
Microinstruction sequencing new
 
Control unit
Control  unitControl  unit
Control unit
 
MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .
 
Control unit design(1)
Control unit design(1)Control unit design(1)
Control unit design(1)
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
 
Control Memory
Control MemoryControl Memory
Control Memory
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
Control unit
Control unitControl unit
Control unit
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
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
 
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
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuit
 

Similar to Unit 2 ca- control unit

Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
NeerajaBhukya
 
Control unit
Control unit Control unit
Control unit
ssuser8643db
 
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
jbri1395
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
Harshal Vaidya
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptx
Shubham014
 
Sandeeprana
SandeepranaSandeeprana
Sandeeprana
Sandeep Rana
 
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
Asst.prof M.Gokilavani
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
dilip kumar
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
NidaKhan232565
 
SOC System Design Approach
SOC System Design ApproachSOC System Design Approach
SOC System Design Approach
A B Shinde
 
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)
RuchitaMaaran
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
Amr Rashed
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
AmrutaMehata
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLC
Veerakumar S
 
Dp&amp;co
Dp&amp;coDp&amp;co
Dp&amp;co
SangeethaSasi1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
maziyahump
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
AmrutaMehata
 
7 processor
7 processor7 processor
7 processor
BaliThorat1
 

Similar to Unit 2 ca- control unit (20)

Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
Control unit
Control unit Control unit
Control unit
 
1564.pptx
1564.pptx1564.pptx
1564.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
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptx
 
Sandeeprana
SandeepranaSandeeprana
Sandeeprana
 
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
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
 
SOC System Design Approach
SOC System Design ApproachSOC System Design Approach
SOC System Design Approach
 
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)
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLC
 
Lecture 28
Lecture 28Lecture 28
Lecture 28
 
Dp&amp;co
Dp&amp;coDp&amp;co
Dp&amp;co
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
 
7 processor
7 processor7 processor
7 processor
 

More from BBDITM LUCKNOW

Unit 5 cspc
Unit 5 cspcUnit 5 cspc
Unit 5 cspc
BBDITM LUCKNOW
 
Unit 4 cspc
Unit 4 cspcUnit 4 cspc
Unit 4 cspc
BBDITM LUCKNOW
 
Unit3 cspc
Unit3 cspcUnit3 cspc
Unit3 cspc
BBDITM LUCKNOW
 
Cse ppt 2018
Cse ppt 2018Cse ppt 2018
Cse ppt 2018
BBDITM LUCKNOW
 
Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
BBDITM LUCKNOW
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-output
BBDITM LUCKNOW
 
Unit 3 ca-memory
Unit 3 ca-memoryUnit 3 ca-memory
Unit 3 ca-memory
BBDITM LUCKNOW
 
Unit 1 ca-introduction
Unit 1 ca-introductionUnit 1 ca-introduction
Unit 1 ca-introduction
BBDITM LUCKNOW
 
Yacc
YaccYacc
Bnf and ambiquity
Bnf and ambiquityBnf and ambiquity
Bnf and ambiquity
BBDITM LUCKNOW
 
Lex
LexLex
Minimization of dfa
Minimization of dfaMinimization of dfa
Minimization of dfa
BBDITM LUCKNOW
 
Passescd
PassescdPassescd
Passescd
BBDITM LUCKNOW
 
Compiler unit 4
Compiler unit 4Compiler unit 4
Compiler unit 4
BBDITM LUCKNOW
 
Compiler unit 2&3
Compiler unit 2&3Compiler unit 2&3
Compiler unit 2&3
BBDITM LUCKNOW
 
Compiler unit 1
Compiler unit 1Compiler unit 1
Compiler unit 1
BBDITM LUCKNOW
 
Compiler unit 5
Compiler  unit 5Compiler  unit 5
Compiler unit 5
BBDITM LUCKNOW
 
Cspc final
Cspc finalCspc final
Cspc final
BBDITM LUCKNOW
 
Validation based protocol
Validation based protocolValidation based protocol
Validation based protocol
BBDITM LUCKNOW
 

More from BBDITM LUCKNOW (20)

Unit 5 cspc
Unit 5 cspcUnit 5 cspc
Unit 5 cspc
 
Unit 4 cspc
Unit 4 cspcUnit 4 cspc
Unit 4 cspc
 
Unit3 cspc
Unit3 cspcUnit3 cspc
Unit3 cspc
 
Cse ppt 2018
Cse ppt 2018Cse ppt 2018
Cse ppt 2018
 
Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-output
 
Unit 3 ca-memory
Unit 3 ca-memoryUnit 3 ca-memory
Unit 3 ca-memory
 
Unit 1 ca-introduction
Unit 1 ca-introductionUnit 1 ca-introduction
Unit 1 ca-introduction
 
Yacc
YaccYacc
Yacc
 
Bnf and ambiquity
Bnf and ambiquityBnf and ambiquity
Bnf and ambiquity
 
Lex
LexLex
Lex
 
Minimization of dfa
Minimization of dfaMinimization of dfa
Minimization of dfa
 
Passescd
PassescdPassescd
Passescd
 
Compiler unit 4
Compiler unit 4Compiler unit 4
Compiler unit 4
 
Compiler unit 2&3
Compiler unit 2&3Compiler unit 2&3
Compiler unit 2&3
 
Compiler unit 1
Compiler unit 1Compiler unit 1
Compiler unit 1
 
Compiler unit 5
Compiler  unit 5Compiler  unit 5
Compiler unit 5
 
Cspc final
Cspc finalCspc final
Cspc final
 
Cd2 [autosaved]
Cd2 [autosaved]Cd2 [autosaved]
Cd2 [autosaved]
 
Validation based protocol
Validation based protocolValidation based protocol
Validation based protocol
 

Recently uploaded

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
ambekarshweta25
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 

Recently uploaded (20)

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 

Unit 2 ca- control unit

  • 1. ANKUR SRIVASTAVA Assistant Professor Dept of CSE JETGI, Barabanki CONTROL UNIT UNIT-2
  • 2. • Basic Concepts • Micro-Instruction Sequencing • Micro- Instruction Execution
  • 3. Control Systems • Two types of control systems ▫ Hardwired Control Systems ▫ Micro-Programmed Control Systems
  • 4. Hardwired Control • A special digital circuit that uses ▫ The bits from the opcode field in our instructions ▫ Bits from the Flags ▫ Signals from the bus ▫ Signals from the Clock
  • 5. Hardwire Control • Advantages ▫ Speed • Disadvantages ▫ Instruction set and Control logic are directly tied together using complicated circuits that are difficult to design and modify.
  • 6. Micro Program Control • Developed by M.V. Wilkes in the early 1950’s • Proposed an idea that was organized and systematic and avoided the complications of hardwired implementation. http://www.cl.cam.ac.uk/R elics/jpegs/edsac99.11.jpg
  • 7. Micro-Progammed Control Basic Concepts • Use sequences of instructions to control complex operations • Called micro-programming or firmware • Microprogram is an interpreter written in microcode that is stored in firmware(ROM,PROM,EEPROM) which is often called the control store. The program converts zero’s and one’s into control signals.
  • 8. Functioning of Micro programmed Control Unit
  • 9. Micro-Program Control • Advantages ▫ Only thing that needs to be modified is the micro- code. No hardware modification is needed. ▫ Microprogramming is flexible and easy to design. ▫ Allows for convenient hardware/software trade offs. If something you want is not implemented in hardware it can be implemented in software.
  • 10. Micro-Program Control • Disadvantages ▫ All instructions must go through an additional level of interpretation, slowing down the program execution. ▫ Development is expensive due to software tools.
  • 11. What is MicroInstruction Sequencing? • Getting the next instruction from the control memory
  • 12. MicroCode • Stored in high speed memory, CONTROL STORE • Could be ROM or Read/Write • Read/Write allows for debugging • Uses very wide, bit-wise, instructions • Designed for fastest possible execution
  • 13. Implementation • Each microinstruction provides the bits that control the elements of a CPU • Turns extremely complex electrical design into less difficult programming design
  • 14. Two Concerns • Two main concerns in designing a sequence: ▫ Size of MicroInstruction ▫ Address-Generation Time
  • 15. Sequencing Techniques • Two address fields • Single address field • Variable Format
  • 16. Branch Control Logic, Two Address Fields
  • 18. Branch Instruction • Depends on: ▫ ALU Flags ▫ Part of the opcode or address mode fields of the instruction ▫ Parts of a selected register ▫ Status bits within the control unit
  • 19.
  • 20. Execution • Once an instruction has been loaded into the instruction register (IR), and the control unit (CU) has examined and decoded the fetched instruction and determined the required course of action to take, the execution cycle can commence. • Unlike the fetch cycle and the interrupt cycle, both of which have a set instruction sequence, the execute cycle can comprise some complex operations (commonly called opcodes).
  • 21. Execute cycle • The Fetch-Execute cycle in Transfer Notation • MAR<-[PC] • MDR<-[Memory Location] • PC<-[PC]+1 • IR<-[MDR] • CU<-IR
  • 22. Execute • Microinstruction organized as set of fields • Each field contains code • Activates one or more control signals • Organize format into independent fields ▫ Field depicts set of actions (pattern of control signals) ▫ Actions from different fields can occur simultaneously • Alternative actions that can be specified by a field are mutually exclusive ▫ Only one action specified for field could occur at a time
  • 24. Execute cycle • The first step of the execute cycle is the Process- Memory. Data is transferred between the CPU and the I/O module. • Next is the Data-Processing uses mathematical operations as well as logical operations in reference to data. • Central alterations is the next step, is a sequence of operations, for example a jump operation. The last step is a combined operation from all the other steps.
  • 25. Execute Cycle • The actions within the execution cycle can be categorized into the following four groups: • CPU - Memory: Data may be transferred from memory to the CPU or from the CPU to memory. • CPU - I/O: Data may be transferred from an I/O module to the CPU or from the CPU to an I/O module. • Data Processing: The CPU may perform some arithmetic or logic operation on data via the arithmetic-logic unit (ALU). • Control: An instruction may specify that the sequence of operation may be altered. For example, the program counter (PC) may be updated with a new memory address to reflect that the next instruction fetched, should be read from this new location.
  • 27. Questions • 1. What are two types of Control Systems? • 2. What is the difference between hardwired and micro programmed control systems? • 3. What are the advantages and disadvantages of Hardwired and Micro programmed controlled systems? • 4. In how many actions can the execute cycle be categorized? • 5. How are micro-Instructions Organized? • 6. What is the role of the control Unit? • 7. What is Micro-Instruction Sequencing? • 8. What are the 2 main concerns of designing? • 9. What are the 3 types of sequencing techniques? • 10. What are the two types of address generation techniques?