SlideShare a Scribd company logo
1 of 36
Chapter 16
Control Unit Implemntation
A Basic Computer Model
Example Simple Processor & Data Paths
MIPS Data Paths with
Generation of Control Signals
Note: This figure does not show J (jump) type
instruction Data Paths
A Simple Computer & its Control Unit
Control Signal Sources
• Clock
— One micro-instruction (or set of parallel micro-instructions)
per clock cycle
• Instruction Register
— Op-code for current instruction
— Determines which micro-instructions are performed
• Flags
— State of CPU
— Results of previous operations
• From Control Bus
— Interrupts / Bus Requests
— Acknowledgements
Control Signals Outputs
• Within CPU
—Cause data movement
—Activate specific functions
• Via Main Bus
—To memory
—To I/O modules
Control Signals
The Internal Bus ?
Example Simple Processor & Data Paths
Example Simple Processor & Data Paths
State Machine for Example Simple Processor
http://highered.mcgraw-hill.com/sites/dl/premium/0072467509/instructor/104653/figurec9.xls
Control Unit with Decoded Inputs
MIPS Instruction Formats
MIPS Data Paths with
Generation of Control Signals
Note: This figure does not show J (jump) type
instruction Data Paths
MIPs Pipelined Machine with Controls
IF | ID | EX | MEM | WB
(64 bits)
(142 bits)
(107 bits)
(71 bits)
Problems With Hard Wired Designs
• Sequencing & micro-operation logic gets complex
• Difficult to design, prototype, and test
• Resultant design is inflexible, and difficult to build upon
(Pipeline, multiple computation units, etc.)
• Adding new instructions requires major design and adds
complexity quickly
Chapter 17
Micro-Programmed Control
Example Simple Processor Micro-Programed Control
Control Unit Organization
Tasks of Control Unit:
• Microinstruction sequencing
• Microinstruction execution
The Control Memory contains
sequences of microinstructions
that provide the control signals
to execute instruction cycles,
e.g. Fetch, Indirect, Execute,
and Interrupt.
May be expected to complete
instruction execution in “1” clock
cycle. How is this possible?
Recall: Micro-sequencing
Example of Control Memory Organization
Microinstructions:
• Generate Control Signals
• Provide Branching
Horizontal vs Vertical Microprogramming
Horizontal Microprogrammed or
— Unpacked
— Hard
— Direct
Vertical Microprogrammed or
— Packed
— Soft
— Indirect
Microinstruction Encoding - Direct Encoding
Microinstruction Encoding - Indirect Encoding
Horizontal Micro-programming
• Wide control memory word
• High degree of parallel operations possible
• Little encoding of control information
• Faster
Vertical Micro-programming
• Width can be much narrower
• Control signals encoded into function codes –
need to be decoded
• More complex, more complicated to program,
less flexibility
• More difficult to modify
• Slower
Typical Microinstruction Formats
Example Microprogramming Formats
• MicroProgram Counter
• Subroutines
• Stack
• Control Register (MicroProgram Format)
Next Address Decision
• Depending on ALU flags and control buffer register:
— Get next instruction
– Add 1 to control address register
— Jump to new routine based on jump microinstruction
– Load address field of control buffer register into control address
register
— Jump to machine instruction routine
– Load control address register based on opcode in IR
Microprogrammed Control Unit
Design Considerations
• Necessity of speed
• Size of Microinstructions
• Address generation
—Branches
– Both conditional and unconditional
– Based on current microinstruction, condition flags,
contents of IR
– Based on format of address information
+ Two address fields
+ Single address field
+ Variable format
Branch Control: Two Address Fields
Branch based upon:
• Instruction Opcode
• Address 1
• Address 2
Does require a wide
microinstruction, but no
address calculation is needed
Branch Control: Single Address Field
Branch based upon:
• Next instruction
• Address
• Opcode
Does require more
circuitry, e.g. adder
Branch Control: Variable Format
One bit determines
microinstruction
format:
• Control signal format
• Branch format
Does require even
more circuitry, and is
slowest.
Advantages and Disadvantages of
Microprogramming
Advantage:
• Simplifies design of control unit
— Cheaper to design
— Less error-prone
— Much easier to modify
— Supports having multiple versions / models
Disadvantage:
• Slower
• More expensive to produce in quantities

More Related Content

What's hot

Hypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenariosHypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenariosMunaam Munawar
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitabdosaidgkv
 
UNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINESUNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINESDr.YNM
 
Interrupts programming in embedded C using 8051
Interrupts programming in embedded C using 8051Interrupts programming in embedded C using 8051
Interrupts programming in embedded C using 8051Vikas Dongre
 
Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system ali jawad
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
 
Arithmetic Logic Unit .
Arithmetic Logic Unit .Arithmetic Logic Unit .
Arithmetic Logic Unit .Deyaa Ahmed
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontrollerSiva Kumar
 
System On Chip
System On ChipSystem On Chip
System On Chipanishgoel
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unitAnuj Modi
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentationAmr Rashed
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 

What's hot (20)

Hypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenariosHypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenarios
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
UNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINESUNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINES
 
Interrupts programming in embedded C using 8051
Interrupts programming in embedded C using 8051Interrupts programming in embedded C using 8051
Interrupts programming in embedded C using 8051
 
7 Segment Decoder
7 Segment Decoder7 Segment Decoder
7 Segment Decoder
 
Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Arithmetic Logic Unit .
Arithmetic Logic Unit .Arithmetic Logic Unit .
Arithmetic Logic Unit .
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
System On Chip
System On ChipSystem On Chip
System On Chip
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unit
 
SHLD and LHLD instruction
SHLD and LHLD instructionSHLD and LHLD instruction
SHLD and LHLD instruction
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
8251 USART
8251 USART8251 USART
8251 USART
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 

Viewers also liked

MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .Muhammad Umar
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed controlShashank Singh
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control UnitKamal Acharya
 
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
 
Computer architecture
Computer architectureComputer architecture
Computer architectureneclinux
 
Origin of Microprocessor and Classification of Microprocessor
Origin of Microprocessor and  Classification of Microprocessor Origin of Microprocessor and  Classification of Microprocessor
Origin of Microprocessor and Classification of Microprocessor Vijay Kumar
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructionsihsanjamil
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
 

Viewers also liked (9)

MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
 
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
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Origin of Microprocessor and Classification of Microprocessor
Origin of Microprocessor and  Classification of Microprocessor Origin of Microprocessor and  Classification of Microprocessor
Origin of Microprocessor and Classification of Microprocessor
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 

Similar to 15 control-computer organization and archietecture-CO-COA

Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecturemeashi
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unitBBDITM LUCKNOW
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptxShubham014
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed controldilip kumar
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnectionSher Shah Merkhel
 
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
 
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
 
PLC Introduction Details
PLC Introduction DetailsPLC Introduction Details
PLC Introduction Detailssuhaskhadake
 
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
 
03_top-level-view-of-computer-function-and-interconnection.ppt
03_top-level-view-of-computer-function-and-interconnection.ppt03_top-level-view-of-computer-function-and-interconnection.ppt
03_top-level-view-of-computer-function-and-interconnection.pptAmirZaman21
 
PLC basic concepts
PLC  basic conceptsPLC  basic concepts
PLC basic conceptsYasir Hashmi
 
Computer Architecture and Organization
Computer Architecture and OrganizationComputer Architecture and Organization
Computer Architecture and Organizationssuserdfc773
 
Report in SAD
Report in SADReport in SAD
Report in SADjesseledm
 
Session 07 - PLC Architecture
Session 07 - PLC ArchitectureSession 07 - PLC Architecture
Session 07 - PLC ArchitectureVidyaIA
 

Similar to 15 control-computer organization and archietecture-CO-COA (20)

Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecture
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unit
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptx
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
 
Control unit design
Control unit designControl unit design
Control unit design
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnection
 
Ch7 official
Ch7 officialCh7 official
Ch7 official
 
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
 
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
 
PLC Introduction Details
PLC Introduction DetailsPLC Introduction Details
PLC Introduction Details
 
CPU Architecture
CPU ArchitectureCPU Architecture
CPU Architecture
 
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
 
03_top-level-view-of-computer-function-and-interconnection.ppt
03_top-level-view-of-computer-function-and-interconnection.ppt03_top-level-view-of-computer-function-and-interconnection.ppt
03_top-level-view-of-computer-function-and-interconnection.ppt
 
Processors selection
Processors selectionProcessors selection
Processors selection
 
03_Buses (1).ppt
03_Buses (1).ppt03_Buses (1).ppt
03_Buses (1).ppt
 
PLC basic concepts
PLC  basic conceptsPLC  basic concepts
PLC basic concepts
 
Computer Architecture and Organization
Computer Architecture and OrganizationComputer Architecture and Organization
Computer Architecture and Organization
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
Session 07 - PLC Architecture
Session 07 - PLC ArchitectureSession 07 - PLC Architecture
Session 07 - PLC Architecture
 

More from Jay Patel

Motivational hindi cpd ppt sem 2
Motivational hindi cpd ppt sem 2Motivational hindi cpd ppt sem 2
Motivational hindi cpd ppt sem 2Jay Patel
 
Cpd- Contributor and Personality Development
Cpd- Contributor and Personality DevelopmentCpd- Contributor and Personality Development
Cpd- Contributor and Personality DevelopmentJay Patel
 
Cpd- Contributor and Personality Development
Cpd- Contributor and Personality DevelopmentCpd- Contributor and Personality Development
Cpd- Contributor and Personality DevelopmentJay Patel
 
Cpd- Contribution and Personality Development
Cpd- Contribution and Personality DevelopmentCpd- Contribution and Personality Development
Cpd- Contribution and Personality DevelopmentJay Patel
 
Coa 09-36-computer organization and archietecture-CO-COA
Coa 09-36-computer organization and archietecture-CO-COACoa 09-36-computer organization and archietecture-CO-COA
Coa 09-36-computer organization and archietecture-CO-COAJay Patel
 
9 36-computer organization and archietecture- CO- COA
9 36-computer organization and archietecture- CO- COA9 36-computer organization and archietecture- CO- COA
9 36-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
 
Cn 04,32,36-Cn all chapters1- computer networks- gtu
Cn 04,32,36-Cn all chapters1- computer networks- gtuCn 04,32,36-Cn all chapters1- computer networks- gtu
Cn 04,32,36-Cn all chapters1- computer networks- gtuJay Patel
 
Greedy Algorithm-Dijkstra's algo
Greedy Algorithm-Dijkstra's algoGreedy Algorithm-Dijkstra's algo
Greedy Algorithm-Dijkstra's algoJay Patel
 
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sGreedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sJay Patel
 

More from Jay Patel (11)

Motivational hindi cpd ppt sem 2
Motivational hindi cpd ppt sem 2Motivational hindi cpd ppt sem 2
Motivational hindi cpd ppt sem 2
 
Cpp (C++)
Cpp (C++)Cpp (C++)
Cpp (C++)
 
Cpd- Contributor and Personality Development
Cpd- Contributor and Personality DevelopmentCpd- Contributor and Personality Development
Cpd- Contributor and Personality Development
 
Cpd- Contributor and Personality Development
Cpd- Contributor and Personality DevelopmentCpd- Contributor and Personality Development
Cpd- Contributor and Personality Development
 
Cpd- Contribution and Personality Development
Cpd- Contribution and Personality DevelopmentCpd- Contribution and Personality Development
Cpd- Contribution and Personality Development
 
Coa 09-36-computer organization and archietecture-CO-COA
Coa 09-36-computer organization and archietecture-CO-COACoa 09-36-computer organization and archietecture-CO-COA
Coa 09-36-computer organization and archietecture-CO-COA
 
9 36-computer organization and archietecture- CO- COA
9 36-computer organization and archietecture- CO- COA9 36-computer organization and archietecture- CO- COA
9 36-computer organization and archietecture- CO- COA
 
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
 
Cn 04,32,36-Cn all chapters1- computer networks- gtu
Cn 04,32,36-Cn all chapters1- computer networks- gtuCn 04,32,36-Cn all chapters1- computer networks- gtu
Cn 04,32,36-Cn all chapters1- computer networks- gtu
 
Greedy Algorithm-Dijkstra's algo
Greedy Algorithm-Dijkstra's algoGreedy Algorithm-Dijkstra's algo
Greedy Algorithm-Dijkstra's algo
 
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sGreedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
 

Recently uploaded

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
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
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
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
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
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
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

15 control-computer organization and archietecture-CO-COA

  • 1. Chapter 16 Control Unit Implemntation
  • 4. MIPS Data Paths with Generation of Control Signals Note: This figure does not show J (jump) type instruction Data Paths
  • 5. A Simple Computer & its Control Unit
  • 6. Control Signal Sources • Clock — One micro-instruction (or set of parallel micro-instructions) per clock cycle • Instruction Register — Op-code for current instruction — Determines which micro-instructions are performed • Flags — State of CPU — Results of previous operations • From Control Bus — Interrupts / Bus Requests — Acknowledgements
  • 7. Control Signals Outputs • Within CPU —Cause data movement —Activate specific functions • Via Main Bus —To memory —To I/O modules
  • 10. Example Simple Processor & Data Paths
  • 11. Example Simple Processor & Data Paths
  • 12. State Machine for Example Simple Processor http://highered.mcgraw-hill.com/sites/dl/premium/0072467509/instructor/104653/figurec9.xls
  • 13. Control Unit with Decoded Inputs
  • 15. MIPS Data Paths with Generation of Control Signals Note: This figure does not show J (jump) type instruction Data Paths
  • 16. MIPs Pipelined Machine with Controls IF | ID | EX | MEM | WB (64 bits) (142 bits) (107 bits) (71 bits)
  • 17. Problems With Hard Wired Designs • Sequencing & micro-operation logic gets complex • Difficult to design, prototype, and test • Resultant design is inflexible, and difficult to build upon (Pipeline, multiple computation units, etc.) • Adding new instructions requires major design and adds complexity quickly
  • 19. Example Simple Processor Micro-Programed Control
  • 20. Control Unit Organization Tasks of Control Unit: • Microinstruction sequencing • Microinstruction execution The Control Memory contains sequences of microinstructions that provide the control signals to execute instruction cycles, e.g. Fetch, Indirect, Execute, and Interrupt. May be expected to complete instruction execution in “1” clock cycle. How is this possible?
  • 22. Example of Control Memory Organization Microinstructions: • Generate Control Signals • Provide Branching
  • 23. Horizontal vs Vertical Microprogramming Horizontal Microprogrammed or — Unpacked — Hard — Direct Vertical Microprogrammed or — Packed — Soft — Indirect
  • 24. Microinstruction Encoding - Direct Encoding
  • 25. Microinstruction Encoding - Indirect Encoding
  • 26. Horizontal Micro-programming • Wide control memory word • High degree of parallel operations possible • Little encoding of control information • Faster
  • 27. Vertical Micro-programming • Width can be much narrower • Control signals encoded into function codes – need to be decoded • More complex, more complicated to program, less flexibility • More difficult to modify • Slower
  • 29. Example Microprogramming Formats • MicroProgram Counter • Subroutines • Stack • Control Register (MicroProgram Format)
  • 30. Next Address Decision • Depending on ALU flags and control buffer register: — Get next instruction – Add 1 to control address register — Jump to new routine based on jump microinstruction – Load address field of control buffer register into control address register — Jump to machine instruction routine – Load control address register based on opcode in IR
  • 32. Design Considerations • Necessity of speed • Size of Microinstructions • Address generation —Branches – Both conditional and unconditional – Based on current microinstruction, condition flags, contents of IR – Based on format of address information + Two address fields + Single address field + Variable format
  • 33. Branch Control: Two Address Fields Branch based upon: • Instruction Opcode • Address 1 • Address 2 Does require a wide microinstruction, but no address calculation is needed
  • 34. Branch Control: Single Address Field Branch based upon: • Next instruction • Address • Opcode Does require more circuitry, e.g. adder
  • 35. Branch Control: Variable Format One bit determines microinstruction format: • Control signal format • Branch format Does require even more circuitry, and is slowest.
  • 36. Advantages and Disadvantages of Microprogramming Advantage: • Simplifies design of control unit — Cheaper to design — Less error-prone — Much easier to modify — Supports having multiple versions / models Disadvantage: • Slower • More expensive to produce in quantities