SlideShare a Scribd company logo
1 of 44
+
Control Unit
Lecturer by
Mazin Adnan
+
Outline
 Control Unit
 Control Signals
 Control word
 Control Registers
 Control Cycle
 Control Unit Implementation
 Hardwired Control
 Microprogramed Control
 Horizontal
 Vertical
+
Control Unit
 Control Unit (CU) is a component of a computer's central
processing unit (CPU) that performs two tasks:
1. It causes the processor to step through a series of micro-
operations in the proper sequence, based on the program being
executed.
2. it generates the control signals that cause each micro-operation to
be executed.
+
Control Unit
+
Control Unit
Control Signals
 Group of bits used to opening and closing of logic
gates, resulting in the transfer of data to and from
registers (or memory and I/O modules) and the
operation of the ALU.
Control word
 The combination of bits which each bit represents
one control line.
 Each microoperation represented by a different
pattern of 1s and 0s in the control word
5
1 0 1 0 0 0 1 0
+
Control Signals (The inputs)
1. Clock
 An electronic device in a computer that issues a steady high-
frequency signal that synchronizes all the internal components
2. Instruction register
 The opcode and addressing mode of the current instruction are
used to determine which micro-operations to perform during the
execute cycle
3. Flags
A. State of processor
B. outcome of previous ALU operations
4. From control bus
 portion of the system bus
+
Control Signals (The outputs)
1. Within CPU
A. Cause data movement between registers
B. Activate specific ALU functions
2. Via control bus
A. To memory
B. To I/O modules
+
Control Registers Utilized
Control Cycle
 Program Counter (PC)
 Holds address of next instruction to be fetched
 Memory Address Register (MAR)
 Connected to address bus
 Specifies address for read or write from or to memory
 Memory Buffer Register (MBR)
 Connected to data bus
 Holds data to write or last data read
 Instruction Register (IR)
 Holds last instruction fetched
+
Constituent Elements of Program
Execution
+
Fetch Sequence
 Address of next instruction is in PC
 Address (MAR) is placed on address bus
 Control unit issues READ command
 Result (data from memory) appears on data bus
 Data from data bus copied into MBR
 PC incremented by 1 (in parallel with data fetch from memory)
 Data (instruction) moved from MBR to IR
 MBR is now free for further data fetches
00000000011001000000000001100100
Main Memory
Control Unit
R
0011100001101110
0011100001101110
MAR
MBR
PC
IR
AC
Fetch Cycle
+10000000001100101
t1: MAR <- (PC)
t2: MBR <- (memory)
PC <- (PC) +1
t3: IR <- (MBR)
0000000001100100
+
Fetch Sequence (get data)
 t1: MAR <- (PC)
 t2: MBR <- (memory)
PC <- (PC) +1
 t3: IR <- (MBR)
OR
 t1: MAR <- (PC)
 t2: MBR <- (memory)
 t3: PC <- (PC) +1
IR <- (MBR)
+
Rules for Clock Cycle Grouping
 Proper sequence must be followed
 MAR <- (PC) must precede MBR <- (memory)
 Conflicts must be avoided
 Must not read & write same register at same time
 MBR <- (memory) & IR <- (MBR) must not be in same cycle
 Also: PC <- (PC) +1 involves addition
 Use ALU
 May need additional micro-operations
00000000011001000000000001100100
Main Memory
Control Unit
R
0011100001101110
0011100001101110
MAR
MBR
PC
IR
AC
Indirect Cycle
t1: MAR <- (IR (Address))
t2: MBR <- (memory)
t3: IR (Address) <- MBR
(Address)
0000000001100100
+
Indirect Cycle (get address)
 MAR <- (IRaddress) - address field of IR
 MBR <- (memory)
 IRaddress <- (MBRaddress)
 MBR contains an address
 IR is now in same state as if direct addressing had been used
 (What does this say about IR size?)
0000000001100100
0100101101101001
Main Memory
Control Unit
W
0011100001101110
MAR
MBR
PC
IR
AC
Interrupt Cycle
t1: MBR <-(PC)
t2: MAR <- save-address
PC <- routine-address
t3: memory <- (MBR)
0000000001100100
0000000001100100
+
Interrupt Cycle
 t1: MBR <-(PC)
 t2: MAR <- save-address
 PC <- routine-address
 t3: memory <- (MBR)
 This is a minimum
 May be additional micro-ops to get addresses
00000000011001000000000001100100
Main Memory
Control Unit
R
0011100001101110
MAR
MBR
PC
IR
AC
Execute Cycle (ADD)
t1: MAR <- (IR (Address))
t2: MBR <- (memory)
t3: R1 <- R1 + (MBR)
0000000001100100
0000001101100000R1
+
0011101111001110
+
Execute Cycle (ADD)
 Different for each instruction
 e.g. ADD R1,X - add the contents of location X to Register 1 ,
result in R1
 t1: MAR <- (IRaddress)
 t2: MBR <- (memory)
 t3: R1 <- R1 + (MBR)
+
Control Unit Implementation
 A wide variety of techniques have been used. Most of these
fall into one of two categories:
 Hardwired control:
 Microprogrammed control
20
+
Hardwired control
 The control unit is essentially a state machine circuit. Its
input logic signals are transformed into a set of output
logic signals, which are the control signals
+ 22
Hardwired Control
+
Decoder Table
+
Example
+
Example
C5 = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2
CR = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2
C4 = Fetch ∙ T3 + Indirect ∙ T3 = ( Fetch + Indirect )∙ T3
+
Example
C4
C5 CR
T3
T2
Fetch
Indirect
C5 = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2
CR = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2
C4 = Fetch ∙ T3 + Indirect ∙ T3 = ( Fetch + Indirect )∙ T3
+
 The logic in Micro-programmed control unit is
specified by a microprogram
 Microprogram (Firmware) consists of a sequence of
instructions in a microprogramming language
 Instructions specify set of
micro-operations (microinstructions)
27
Microprogrammed Control
+
Microprogrammed Control
Microprogram
instructions
micro-operations
micro-operations
micro-operations
………
instructions
micro-operations
micro-operations
micro-operations
………
instructions
micro-operations
micro-operations
micro-operations
………
……….
MicroprogrammedControl
MicroprogrammedControl
+
MicroprogrammedControl
+
Organization of Control Memory
•
•
•
Jump to indirect or execute
•
•
•
Jump to execute
•
•
•
Jump to fetch
Jump to opcode routine
•
•
•
Jump to fetch or interrupt
Fetch cycle routine
Indirect cycle routine
Interrupt cycle routine
Execute cycle routine
ADD routine
•
•
•
•
•
•
+ Compare Hard Wired and Microprogramed
Hardwired Microprogrammed
1 Uses logic gates and other digital
circuits
Uses microprogramming
language
2 As the name implies it is a
hardware control unit
As the name implies it is a
software control unit.
3 The decoders and sequencing
logic unit are very complex
pieces of logic
The decoders and sequencing
logic unit
are very simple pieces of logic
4 Difficult to design, test and
implement compared to
microprogrammed
Easy to design, test and
implement compared to
hardwired
+ Compare Hard Wired and Microprogramed
Hardwired Microprogrammed
5 Inflexible to modify Flexible to modify.
6 Expensive and high error prone
to implement
Cheaper and less error prone to
implement
7 Used in RISC processor Used in CISC processor
8 Faster than micro- programmed
control unit
Slower than micro- programmed
control unit
+
Microinstruction Control Signals
for the add Instruction
 Addresses 101–103 are the instruction fetch
 Addresses 200–202 do the add
 Change of control from 103 to 200 uses a kind of branch
.
101
102
103
200
201
202
• • •
• • •
• • •
• • •
• • •
• • •
1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0
0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0
0
0
0 0 1 1 10 0 0 0 0 0 0 0 0 0 0 0
1 1 1 10 0 0 0 0 0 0 00 0 0 0 0
1 0 0 0 0 0 0 0 1 0 0 0 0 0 01 1
+
 In horizontal microcode, each control signal is
represented by a bit in the instruction
 Fewer control store words of more bits per word
 In vertical microcode, a set of true control signals
is represented by a shorter code
 more compact (fewer bits) than horizontal
microinstructions
 small additional amount of logic and time delay
than horizontal microinstructions
Microprogrammed Types
+
Microinstruction Formats
+
Horizontal vs. Vertical
+ Example Microprogramming Formats
Horizontal vs
Vertical
+
horizontal
+
Vertical Microprogramming
000: NO OP
001: PC ABUS
010: IR ABUS
011: MBR MBUS
100: MAR M
101: AC RBUS
110: ALU Res RBUS
00 = Wait
01 = AC<15>
10 = IR<15>
11 = IR<14>
Register Transfer Format
0 Source Destination Operation
1 3 3 3
000: NO OP
001: RBUSAC
010: MBUSIR
011: ABUS MAR
100: M MBR
101: RBUSMBR
110: ABUS PC
111: MBR M
000: NO OP
001: ALU ADD
010: ALU PASS B
011: 0 PC
100: PC + 1PC
101: Read
110: Write
+ Vertical Microprogramming
ROM ADDRESS SYMBOLIC CONTENTS BINARY CONTENTS
000000 RES RT PC  MAR, PC +1  PC 0 001 011 100
000001 IF0 RT MAR  M, Read 0 100 000 101
000010 BJ Wait=0, IF0 1 000 000 001
000011 IF1 RT MAR  M, M  MBR, Read 0 100 100 101
000100 BJ Wait=1, IF1 1 001 000 011
000101 IF2 RT MBR  IR 0 011 010 000
000110 BJ Wait=0, IF2 1 000 000 101
000111 RT IR  MAR 0 010 011 000
001000 OD BJ IR<15>=1, OD1 1 101 010 101
001001 BJ IR<14>=1, ST0 1 111 010 000
001010 LD0 RT MAR  M, Read 0 100 000 101
001011 LD1 RT MAR  M, M  MBR, Read 0 100 100 101
001100 BJ Wait=1, LD1 1 001 001 011
001101 LD2 RT MBR  AC 0 110 001 010
001110 BJ Wait=0, RES 1 000 000 000
001111 BJ Wait=1, RES 1 001 000 000
+ Microprogramms
Horizontal Vertical
1 Longer word Shorter word
2 Little encoding of control information More encoding of control information
3 Micro data hardware path simpler Micro data hardware path more complicated
4 Ex: PowerPC’s employed horizontal code Ex: older IBM main frames (s360/s3670)used
it
5 Big control memory (ROM) word length Small control memory (ROM) word length
6 Less complex, less complicated to program,
more flexibility
More complex, more complicated to
program, less flexibility
7 More easy to modify More difficult to modify
8 Faster Slower
+
Thank you

More Related Content

What's hot

Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer ArchitectureYong Heui Cho
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 
Stack organization
Stack organizationStack organization
Stack organizationchauhankapil
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 
Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecturePiyush Mittal
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREINTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREVENNILAV6
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycleutsav_shah
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Direct memory access
Direct memory accessDirect memory access
Direct memory accessshubham kuwar
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureVinit Raut
 

What's hot (20)

Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer Architecture
 
Computer registers
Computer registersComputer registers
Computer registers
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
Control unit design
Control unit designControl unit design
Control unit design
 
Stack organization
Stack organizationStack organization
Stack organization
 
Interrupts
InterruptsInterrupts
Interrupts
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 
Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecture
 
Cache memory
Cache memoryCache memory
Cache memory
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREINTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTURE
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Control unit
Control unitControl unit
Control unit
 

Similar to Computer architecture control unit

Bca 2nd sem-u-3.2-basic computer programming and micro programmed control
Bca 2nd sem-u-3.2-basic computer programming and micro programmed controlBca 2nd sem-u-3.2-basic computer programming and micro programmed control
Bca 2nd sem-u-3.2-basic computer programming and micro programmed controlRai University
 
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed controlB.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed controlRai University
 
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
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unitDeepak John
 
MICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxMICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxPhoenixEagles
 
Chapter7.pptx
Chapter7.pptxChapter7.pptx
Chapter7.pptxradhushri
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptxPerumalPitchandi
 
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.pptComputer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.pptRafiyaKouser2
 
Microprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptxMicroprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptxSahithBeats
 
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptxCOA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptxSahithBeats
 
Best-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiBest-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiUnmesh Baile
 
Basic processing unit by aniket bhute
Basic processing unit by aniket bhuteBasic processing unit by aniket bhute
Basic processing unit by aniket bhuteAniket Bhute
 
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
 
Control unit-implementation
Control unit-implementationControl unit-implementation
Control unit-implementationWBUTTUTORIALS
 

Similar to Computer architecture control unit (20)

Central processing unit ii
Central processing unit iiCentral processing unit ii
Central processing unit ii
 
Bca 2nd sem-u-3.2-basic computer programming and micro programmed control
Bca 2nd sem-u-3.2-basic computer programming and micro programmed controlBca 2nd sem-u-3.2-basic computer programming and micro programmed control
Bca 2nd sem-u-3.2-basic computer programming and micro programmed control
 
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed controlB.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
 
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
 
Control Memory
Control MemoryControl Memory
Control Memory
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
 
4876238.ppt
4876238.ppt4876238.ppt
4876238.ppt
 
MICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxMICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptx
 
Chapter7.pptx
Chapter7.pptxChapter7.pptx
Chapter7.pptx
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx
 
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.pptComputer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
 
Microprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptxMicroprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptx
 
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptxCOA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
 
Best-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiBest-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbai
 
Basic processing unit by aniket bhute
Basic processing unit by aniket bhuteBasic processing unit by aniket bhute
Basic processing unit by aniket bhute
 
lesson01.ppt
lesson01.pptlesson01.ppt
lesson01.ppt
 
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
 
control unit
control unitcontrol unit
control unit
 
Control unit-implementation
Control unit-implementationControl unit-implementation
Control unit-implementation
 
Hy 523
Hy 523Hy 523
Hy 523
 

More from Mazin Alwaaly

Pattern recognition voice biometrics
Pattern recognition voice biometricsPattern recognition voice biometrics
Pattern recognition voice biometricsMazin Alwaaly
 
Pattern recognition palm print authentication system
Pattern recognition palm print authentication systemPattern recognition palm print authentication system
Pattern recognition palm print authentication systemMazin Alwaaly
 
Pattern recognition on line signature
Pattern recognition on line signaturePattern recognition on line signature
Pattern recognition on line signatureMazin Alwaaly
 
Pattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earPattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earMazin Alwaaly
 
Pattern recognition IRIS recognition
Pattern recognition IRIS recognitionPattern recognition IRIS recognition
Pattern recognition IRIS recognitionMazin Alwaaly
 
Pattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionPattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionMazin Alwaaly
 
Pattern recognition Hand Geometry
Pattern recognition Hand GeometryPattern recognition Hand Geometry
Pattern recognition Hand GeometryMazin Alwaaly
 
Pattern recognition forensic dental identification
Pattern recognition forensic dental identificationPattern recognition forensic dental identification
Pattern recognition forensic dental identificationMazin Alwaaly
 
Pattern recognition fingerprints
Pattern recognition fingerprintsPattern recognition fingerprints
Pattern recognition fingerprintsMazin Alwaaly
 
Pattern recognition facial recognition
Pattern recognition facial recognitionPattern recognition facial recognition
Pattern recognition facial recognitionMazin Alwaaly
 
Pattern recognition ear as a biometric
Pattern recognition ear as a biometricPattern recognition ear as a biometric
Pattern recognition ear as a biometricMazin Alwaaly
 
Pattern recognition 3d face recognition
Pattern recognition 3d face recognitionPattern recognition 3d face recognition
Pattern recognition 3d face recognitionMazin Alwaaly
 
Multimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMultimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMazin Alwaaly
 
Multimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMultimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMazin Alwaaly
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMazin Alwaaly
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithmsMazin Alwaaly
 
Multimedia lossless compression algorithms
Multimedia lossless compression algorithmsMultimedia lossless compression algorithms
Multimedia lossless compression algorithmsMazin Alwaaly
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniquesMazin Alwaaly
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standardsMazin Alwaaly
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in videoMazin Alwaaly
 

More from Mazin Alwaaly (20)

Pattern recognition voice biometrics
Pattern recognition voice biometricsPattern recognition voice biometrics
Pattern recognition voice biometrics
 
Pattern recognition palm print authentication system
Pattern recognition palm print authentication systemPattern recognition palm print authentication system
Pattern recognition palm print authentication system
 
Pattern recognition on line signature
Pattern recognition on line signaturePattern recognition on line signature
Pattern recognition on line signature
 
Pattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earPattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and ear
 
Pattern recognition IRIS recognition
Pattern recognition IRIS recognitionPattern recognition IRIS recognition
Pattern recognition IRIS recognition
 
Pattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionPattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognition
 
Pattern recognition Hand Geometry
Pattern recognition Hand GeometryPattern recognition Hand Geometry
Pattern recognition Hand Geometry
 
Pattern recognition forensic dental identification
Pattern recognition forensic dental identificationPattern recognition forensic dental identification
Pattern recognition forensic dental identification
 
Pattern recognition fingerprints
Pattern recognition fingerprintsPattern recognition fingerprints
Pattern recognition fingerprints
 
Pattern recognition facial recognition
Pattern recognition facial recognitionPattern recognition facial recognition
Pattern recognition facial recognition
 
Pattern recognition ear as a biometric
Pattern recognition ear as a biometricPattern recognition ear as a biometric
Pattern recognition ear as a biometric
 
Pattern recognition 3d face recognition
Pattern recognition 3d face recognitionPattern recognition 3d face recognition
Pattern recognition 3d face recognition
 
Multimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMultimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networks
 
Multimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMultimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communications
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital libraries
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithms
 
Multimedia lossless compression algorithms
Multimedia lossless compression algorithmsMultimedia lossless compression algorithms
Multimedia lossless compression algorithms
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in video
 

Recently uploaded

The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024innovationoecd
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfSwapnil Therkar
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensorsonawaneprad
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxpriyankatabhane
 
zoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzohaibmir069
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
Solution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsSolution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsHajira Mahmood
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantadityabhardwaj282
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |aasikanpl
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxyaramohamed343013
 

Recently uploaded (20)

The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensor
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
Volatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -IVolatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -I
 
zoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistan
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
Solution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsSolution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutions
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are important
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docx
 

Computer architecture control unit

  • 2. + Outline  Control Unit  Control Signals  Control word  Control Registers  Control Cycle  Control Unit Implementation  Hardwired Control  Microprogramed Control  Horizontal  Vertical
  • 3. + Control Unit  Control Unit (CU) is a component of a computer's central processing unit (CPU) that performs two tasks: 1. It causes the processor to step through a series of micro- operations in the proper sequence, based on the program being executed. 2. it generates the control signals that cause each micro-operation to be executed.
  • 5. + Control Unit Control Signals  Group of bits used to opening and closing of logic gates, resulting in the transfer of data to and from registers (or memory and I/O modules) and the operation of the ALU. Control word  The combination of bits which each bit represents one control line.  Each microoperation represented by a different pattern of 1s and 0s in the control word 5 1 0 1 0 0 0 1 0
  • 6. + Control Signals (The inputs) 1. Clock  An electronic device in a computer that issues a steady high- frequency signal that synchronizes all the internal components 2. Instruction register  The opcode and addressing mode of the current instruction are used to determine which micro-operations to perform during the execute cycle 3. Flags A. State of processor B. outcome of previous ALU operations 4. From control bus  portion of the system bus
  • 7. + Control Signals (The outputs) 1. Within CPU A. Cause data movement between registers B. Activate specific ALU functions 2. Via control bus A. To memory B. To I/O modules
  • 8. + Control Registers Utilized Control Cycle  Program Counter (PC)  Holds address of next instruction to be fetched  Memory Address Register (MAR)  Connected to address bus  Specifies address for read or write from or to memory  Memory Buffer Register (MBR)  Connected to data bus  Holds data to write or last data read  Instruction Register (IR)  Holds last instruction fetched
  • 9. + Constituent Elements of Program Execution
  • 10. + Fetch Sequence  Address of next instruction is in PC  Address (MAR) is placed on address bus  Control unit issues READ command  Result (data from memory) appears on data bus  Data from data bus copied into MBR  PC incremented by 1 (in parallel with data fetch from memory)  Data (instruction) moved from MBR to IR  MBR is now free for further data fetches
  • 11. 00000000011001000000000001100100 Main Memory Control Unit R 0011100001101110 0011100001101110 MAR MBR PC IR AC Fetch Cycle +10000000001100101 t1: MAR <- (PC) t2: MBR <- (memory) PC <- (PC) +1 t3: IR <- (MBR) 0000000001100100
  • 12. + Fetch Sequence (get data)  t1: MAR <- (PC)  t2: MBR <- (memory) PC <- (PC) +1  t3: IR <- (MBR) OR  t1: MAR <- (PC)  t2: MBR <- (memory)  t3: PC <- (PC) +1 IR <- (MBR)
  • 13. + Rules for Clock Cycle Grouping  Proper sequence must be followed  MAR <- (PC) must precede MBR <- (memory)  Conflicts must be avoided  Must not read & write same register at same time  MBR <- (memory) & IR <- (MBR) must not be in same cycle  Also: PC <- (PC) +1 involves addition  Use ALU  May need additional micro-operations
  • 14. 00000000011001000000000001100100 Main Memory Control Unit R 0011100001101110 0011100001101110 MAR MBR PC IR AC Indirect Cycle t1: MAR <- (IR (Address)) t2: MBR <- (memory) t3: IR (Address) <- MBR (Address) 0000000001100100
  • 15. + Indirect Cycle (get address)  MAR <- (IRaddress) - address field of IR  MBR <- (memory)  IRaddress <- (MBRaddress)  MBR contains an address  IR is now in same state as if direct addressing had been used  (What does this say about IR size?)
  • 16. 0000000001100100 0100101101101001 Main Memory Control Unit W 0011100001101110 MAR MBR PC IR AC Interrupt Cycle t1: MBR <-(PC) t2: MAR <- save-address PC <- routine-address t3: memory <- (MBR) 0000000001100100 0000000001100100
  • 17. + Interrupt Cycle  t1: MBR <-(PC)  t2: MAR <- save-address  PC <- routine-address  t3: memory <- (MBR)  This is a minimum  May be additional micro-ops to get addresses
  • 18. 00000000011001000000000001100100 Main Memory Control Unit R 0011100001101110 MAR MBR PC IR AC Execute Cycle (ADD) t1: MAR <- (IR (Address)) t2: MBR <- (memory) t3: R1 <- R1 + (MBR) 0000000001100100 0000001101100000R1 + 0011101111001110
  • 19. + Execute Cycle (ADD)  Different for each instruction  e.g. ADD R1,X - add the contents of location X to Register 1 , result in R1  t1: MAR <- (IRaddress)  t2: MBR <- (memory)  t3: R1 <- R1 + (MBR)
  • 20. + Control Unit Implementation  A wide variety of techniques have been used. Most of these fall into one of two categories:  Hardwired control:  Microprogrammed control 20
  • 21. + Hardwired control  The control unit is essentially a state machine circuit. Its input logic signals are transformed into a set of output logic signals, which are the control signals
  • 25. + Example C5 = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2 CR = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2 C4 = Fetch ∙ T3 + Indirect ∙ T3 = ( Fetch + Indirect )∙ T3
  • 26. + Example C4 C5 CR T3 T2 Fetch Indirect C5 = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2 CR = Fetch ∙ T2 + Indirect ∙ T2 = ( Fetch + Indirect )∙ T2 C4 = Fetch ∙ T3 + Indirect ∙ T3 = ( Fetch + Indirect )∙ T3
  • 27. +  The logic in Micro-programmed control unit is specified by a microprogram  Microprogram (Firmware) consists of a sequence of instructions in a microprogramming language  Instructions specify set of micro-operations (microinstructions) 27 Microprogrammed Control
  • 32. + Organization of Control Memory • • • Jump to indirect or execute • • • Jump to execute • • • Jump to fetch Jump to opcode routine • • • Jump to fetch or interrupt Fetch cycle routine Indirect cycle routine Interrupt cycle routine Execute cycle routine ADD routine • • • • • •
  • 33. + Compare Hard Wired and Microprogramed Hardwired Microprogrammed 1 Uses logic gates and other digital circuits Uses microprogramming language 2 As the name implies it is a hardware control unit As the name implies it is a software control unit. 3 The decoders and sequencing logic unit are very complex pieces of logic The decoders and sequencing logic unit are very simple pieces of logic 4 Difficult to design, test and implement compared to microprogrammed Easy to design, test and implement compared to hardwired
  • 34. + Compare Hard Wired and Microprogramed Hardwired Microprogrammed 5 Inflexible to modify Flexible to modify. 6 Expensive and high error prone to implement Cheaper and less error prone to implement 7 Used in RISC processor Used in CISC processor 8 Faster than micro- programmed control unit Slower than micro- programmed control unit
  • 35. + Microinstruction Control Signals for the add Instruction  Addresses 101–103 are the instruction fetch  Addresses 200–202 do the add  Change of control from 103 to 200 uses a kind of branch . 101 102 103 200 201 202 • • • • • • • • • • • • • • • • • • 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 10 0 0 0 0 0 0 0 0 0 0 0 1 1 1 10 0 0 0 0 0 0 00 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 01 1
  • 36. +  In horizontal microcode, each control signal is represented by a bit in the instruction  Fewer control store words of more bits per word  In vertical microcode, a set of true control signals is represented by a shorter code  more compact (fewer bits) than horizontal microinstructions  small additional amount of logic and time delay than horizontal microinstructions Microprogrammed Types
  • 39. + Example Microprogramming Formats Horizontal vs Vertical
  • 41. + Vertical Microprogramming 000: NO OP 001: PC ABUS 010: IR ABUS 011: MBR MBUS 100: MAR M 101: AC RBUS 110: ALU Res RBUS 00 = Wait 01 = AC<15> 10 = IR<15> 11 = IR<14> Register Transfer Format 0 Source Destination Operation 1 3 3 3 000: NO OP 001: RBUSAC 010: MBUSIR 011: ABUS MAR 100: M MBR 101: RBUSMBR 110: ABUS PC 111: MBR M 000: NO OP 001: ALU ADD 010: ALU PASS B 011: 0 PC 100: PC + 1PC 101: Read 110: Write
  • 42. + Vertical Microprogramming ROM ADDRESS SYMBOLIC CONTENTS BINARY CONTENTS 000000 RES RT PC  MAR, PC +1  PC 0 001 011 100 000001 IF0 RT MAR  M, Read 0 100 000 101 000010 BJ Wait=0, IF0 1 000 000 001 000011 IF1 RT MAR  M, M  MBR, Read 0 100 100 101 000100 BJ Wait=1, IF1 1 001 000 011 000101 IF2 RT MBR  IR 0 011 010 000 000110 BJ Wait=0, IF2 1 000 000 101 000111 RT IR  MAR 0 010 011 000 001000 OD BJ IR<15>=1, OD1 1 101 010 101 001001 BJ IR<14>=1, ST0 1 111 010 000 001010 LD0 RT MAR  M, Read 0 100 000 101 001011 LD1 RT MAR  M, M  MBR, Read 0 100 100 101 001100 BJ Wait=1, LD1 1 001 001 011 001101 LD2 RT MBR  AC 0 110 001 010 001110 BJ Wait=0, RES 1 000 000 000 001111 BJ Wait=1, RES 1 001 000 000
  • 43. + Microprogramms Horizontal Vertical 1 Longer word Shorter word 2 Little encoding of control information More encoding of control information 3 Micro data hardware path simpler Micro data hardware path more complicated 4 Ex: PowerPC’s employed horizontal code Ex: older IBM main frames (s360/s3670)used it 5 Big control memory (ROM) word length Small control memory (ROM) word length 6 Less complex, less complicated to program, more flexibility More complex, more complicated to program, less flexibility 7 More easy to modify More difficult to modify 8 Faster Slower