SlideShare a Scribd company logo
1 of 27
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 UnitKamal 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-COAJay 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 organizationJay Patel
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 
Microinstruction sequencing new
Microinstruction sequencing newMicroinstruction sequencing new
Microinstruction sequencing newMahesh Kumar Attri
 
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 controlShashank Singh
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unitDestro Destro
 
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-COAJay 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 controlRai University
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuitRajan 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

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.pptxjbri1395
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptxShubham014
 
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
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed controldilip kumar
 
SOC System Design Approach
SOC System Design ApproachSOC System Design Approach
SOC System Design ApproachA 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 presentationAmr 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 organizationAmrutaMehata
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLCVeerakumar S
 
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 MicrocontrollerAmrutaMehata
 

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 (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

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

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?