SlideShare a Scribd company logo
1 of 17
Control Unit 1
Overview
 Control Memory
 Comparison of Implementations
Sequencing Microinstructions
Design of Control Unit
 Address Sequencer
Control Unit 2
Control Unit
 Control unit (CU) of a processor translates from machine
instructions to the control signals for the microoperations
that implement them
 Control units are implemented in one of two ways
Hardwired Control
CU is made up of sequential and combinational circuits to generate
the control signals
- expensive, complex, no flexibility
- high-speed (optimized to provide fast mode of operations)
-ex Intel 8085, Motorola 6802, Zilog 80, RISC CPUs
Microprogrammed Control
A control memory on the processor contains microprograms that
activate the necessary control signals
- Ex Intel 8080, Motorola 68000, CISC
Control Unit 3
Control Unit Implementations
Combinational Logic Circuits (Hard-wired)
Microprogram
I R Status F/Fs
Control Data
Combinational
Logic Circuits
Control
Points
CPU
Memory
Timing State
Ins. Cycle State
Control Unit's State
Status F/Fs
Control Data
Next Address
Generation
Logic
C
S
A
R
Control
Storage
(-program
memory)
M
e
m
o
r
y
I R
C
S
D
R
C
P
s
CPUD
}
Control Unit 5
Terminology
Microprogram
- Program stored in memory that generates all the control signals required
to execute the instruction set correctly
- Consists of microinstructions
Microinstruction
- Contains a control word and a sequencing word
Control Word - All the control information required for one clock cycle
Sequencing Word - Information needed to decide
the next microinstruction address
- Vocabulary to write a microprogram
Control Memory(Control Storage: CS)
- Storage in the microprogrammed control unit to store the microprogram
Writeable Control Memory(Writeable Control Storage: WCS)
- CS whose contents can be modified
-> Allows the microprogram can be changed
-> Instruction set can be changed or modified
Dynamic Microprogramming
- Computer system whose control unit is implemented with
a microprogram in WCS
- Microprogram can be changed by a systems programmer or a user
Control Unit 6
Terminology
Sequencer (Microprogram Sequencer)
The next address generator is sometimes known as microprogram
sequencer
A Microprogram Control Unit that determines the Microinstruction Address to
be executed in the next clock cycle
- increment the control address register by 1
- loading into control AR an address from control memory
- Transferring and external address
- loading an initial address to start control operation
Control Data Register:
- sometimes known as pipeline register .
- allows execution of microoperations specified by control word
simultaneously with generation of next microinstruction
Control Unit 7
Terminology
Advantage of Microprogram Control
- Once hardware configuration is established no need to further h/w or wiring
change
- only thing to change is microprogram residing in control memory.
RISC Architecture concept:
- Reduced Instruction Set Computer (RISC) system used hardwire control
rather than microprogram control
Control Unit 8
Address Sequencing
Microinstructions are stored in control memory in groups with each
specifying a routine.
Each instruction has its own microprogram routine in control memory to
generate microoperation that generate instructions.
(1) Initial address is loaded into CAR when power is turned on.
- the address of the first microinstruction that activates instruction
fetch (End instn in IR)
(2) Control memory next must go through routine that determines the
effective address of the operand (End : operand in MAR)
(3) Next step is to generate the microoperations that execute the
instruction fetched from memory.
The transformation from the instruction code bits to an address in control
memory where routine is located is referred to as mapping
Control Unit 10
Micro Instruction Sequencing
Sequencing Capabilities Required in a Control Storage
- Incrementing of the control address register
- Unconditional and conditional branches
- A mapping process from the bits of the machine instruction to an address for control memory
- A facility for subroutine call and return
Instruction code
Mapping
logic
Multiplexers
Control memory (ROM)
Subroutine
register
(SBR)
Branch
logic
Status
bits
Microoperations
Control address register
(CAR)
Incrementer
MUX
select
select a status
bit
Branch address
Control Unit 11
Micro Instruction Format
Microinstruction Format
Symbol OP-code Description
ADD 0000 AC  AC + M[EA]
BRANCH 0001 if (AC < 0) then (PC  EA)
STORE 0010 M[EA]  AC
EXCHANGE 0011 AC  M[EA], M[EA]  AC
Machine instruction format
I Opcode
15 14 11 10
Address
0
Sample machine instructions
F1 F2 F3 CD BR AD
3 3 3 2 2 7
F1, F2, F3: Microoperation fields
CD: Condition for branching
BR: Branch field
AD: Address field
Control Unit 12
Micro Instruction Format
F1 symbol
000 NOP
001 ADD
010 CLRAC
011 INCAC
100 DRTAC
101 DRTAR
110 PCTAR
111 WRITE
F2 symbol
000 NOP
001 SUB
010 OR
011 AND
100 READ
101 ACTDR
110 INCDR
111 PCTDR
F3 symbol
000 NOP
001 XOR
010 COM
011 SHL
100 SHR
101 INCPC
110 ARTPC
111 Reserved
Control Unit 13
Micro Instruction Format
CD symbol Condition
00 U Always 1
01 I DR (15)
10 S AC (15)
11 Z AC = 0
BR symbol Function
00 JMP CAR  AD if Condition=1
else CAR  CAR + 1 if condition = 0
01 CALL CAR  AD, SBR  CAR +1 if condition =1
else CAR  CAR + 1 if condition = 0
10 RET CAR  SBR
11 MAP CAR(2-5)  DR (11-14), CAR(0,1,6) 0
Control Unit 14
Design of Control Unit
microoperation fields
3 x 8 decoder
7 6 5 4 3 2 1 0
F1
3 x 8 decoder
7 6 5 4 3 2 1 0
F2
3 x 8 decoder
7 6 5 4 3 2 1 0
F3
Arithmetic
logic and
shift unit
AND
ADD
DRTAC
AC
Load
From
PC
From
DR(0-10)
Select
0 1
Multiplexers
AR
Load Clock
AC
DR
DRTAR
PCTAR
Control Unit 15
Address Sequencer
Control Memory
Control Memory

More Related Content

What's hot

Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationMOHIT AGARWAL
 
8086 assembly language
8086 assembly language8086 assembly language
8086 assembly languageMir Majid
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controllerabhikalmegh
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREINTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREVENNILAV6
 
Dma transfer
Dma transferDma transfer
Dma transfergmnithya
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
Logical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorLogical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorRabin BK
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSGeorge Thomas
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 
Internal architecture-of-8086
Internal architecture-of-8086Internal architecture-of-8086
Internal architecture-of-8086Estiak Khan
 
Assembly Language and microprocessor
Assembly Language and microprocessorAssembly Language and microprocessor
Assembly Language and microprocessorKhaled Sany
 

What's hot (20)

Computer registers
Computer registersComputer registers
Computer registers
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output Organization
 
8086 assembly language
8086 assembly language8086 assembly language
8086 assembly language
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREINTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTURE
 
Dma transfer
Dma transferDma transfer
Dma transfer
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Logical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorLogical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessor
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONS
 
Control Memory.pptx
Control Memory.pptxControl Memory.pptx
Control Memory.pptx
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
Internal architecture-of-8086
Internal architecture-of-8086Internal architecture-of-8086
Internal architecture-of-8086
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Assembly Language and microprocessor
Assembly Language and microprocessorAssembly Language and microprocessor
Assembly Language and microprocessor
 

Similar to Control Memory

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
 
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
 
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
 
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 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
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptxShubham014
 
MICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxMICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxPhoenixEagles
 
Chapter7.pptx
Chapter7.pptxChapter7.pptx
Chapter7.pptxradhushri
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unitDeepak John
 
computer architecture
computer architecture computer architecture
computer architecture Dr.Umadevi V
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptxPerumalPitchandi
 

Similar to Control Memory (20)

Lecture 20
Lecture 20Lecture 20
Lecture 20
 
4876238.ppt
4876238.ppt4876238.ppt
4876238.ppt
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
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
 
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
 
2.computer org.
2.computer org.2.computer org.
2.computer org.
 
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
 
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
 
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 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
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Design of control unit.pptx
Design of control unit.pptxDesign of control unit.pptx
Design of control unit.pptx
 
MICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxMICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptx
 
Chapter7.pptx
Chapter7.pptxChapter7.pptx
Chapter7.pptx
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
 
computer architecture
computer architecture computer architecture
computer architecture
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 

More from mahesh kumar prajapat (16)

Parallel processing and pipelining
Parallel processing and pipeliningParallel processing and pipelining
Parallel processing and pipelining
 
Basic computer organization and design
Basic computer organization and designBasic computer organization and design
Basic computer organization and design
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperations
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
 
Cpu unit
Cpu unitCpu unit
Cpu unit
 
Multiprocessors
MultiprocessorsMultiprocessors
Multiprocessors
 
Peripheral devices
Peripheral devicesPeripheral devices
Peripheral devices
 
computer arithmatic
computer arithmaticcomputer arithmatic
computer arithmatic
 
Register Transfer Language
Register Transfer LanguageRegister Transfer Language
Register Transfer Language
 
Computer Organization and Design Chapter2
Computer Organization and Design Chapter2Computer Organization and Design Chapter2
Computer Organization and Design Chapter2
 
Arithmetic micro Operations
Arithmetic micro OperationsArithmetic micro Operations
Arithmetic micro Operations
 
Bus and Memory transfer
Bus and Memory transferBus and Memory transfer
Bus and Memory transfer
 
Logic Micro Operation
Logic Micro OperationLogic Micro Operation
Logic Micro Operation
 
Computer Organization and Design Chapter1
 Computer Organization and Design Chapter1 Computer Organization and Design Chapter1
Computer Organization and Design Chapter1
 

Recently uploaded

Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementDr. Deepak Mudgal
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelDrAjayKumarYadav4
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxhublikarsn
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)ChandrakantDivate1
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257subhasishdas79
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsmeharikiros2
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 

Recently uploaded (20)

Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 

Control Memory

  • 1. Control Unit 1 Overview  Control Memory  Comparison of Implementations Sequencing Microinstructions Design of Control Unit  Address Sequencer
  • 2. Control Unit 2 Control Unit  Control unit (CU) of a processor translates from machine instructions to the control signals for the microoperations that implement them  Control units are implemented in one of two ways Hardwired Control CU is made up of sequential and combinational circuits to generate the control signals - expensive, complex, no flexibility - high-speed (optimized to provide fast mode of operations) -ex Intel 8085, Motorola 6802, Zilog 80, RISC CPUs Microprogrammed Control A control memory on the processor contains microprograms that activate the necessary control signals - Ex Intel 8080, Motorola 68000, CISC
  • 3. Control Unit 3 Control Unit Implementations Combinational Logic Circuits (Hard-wired) Microprogram I R Status F/Fs Control Data Combinational Logic Circuits Control Points CPU Memory Timing State Ins. Cycle State Control Unit's State Status F/Fs Control Data Next Address Generation Logic C S A R Control Storage (-program memory) M e m o r y I R C S D R C P s CPUD }
  • 4.
  • 5. Control Unit 5 Terminology Microprogram - Program stored in memory that generates all the control signals required to execute the instruction set correctly - Consists of microinstructions Microinstruction - Contains a control word and a sequencing word Control Word - All the control information required for one clock cycle Sequencing Word - Information needed to decide the next microinstruction address - Vocabulary to write a microprogram Control Memory(Control Storage: CS) - Storage in the microprogrammed control unit to store the microprogram Writeable Control Memory(Writeable Control Storage: WCS) - CS whose contents can be modified -> Allows the microprogram can be changed -> Instruction set can be changed or modified Dynamic Microprogramming - Computer system whose control unit is implemented with a microprogram in WCS - Microprogram can be changed by a systems programmer or a user
  • 6. Control Unit 6 Terminology Sequencer (Microprogram Sequencer) The next address generator is sometimes known as microprogram sequencer A Microprogram Control Unit that determines the Microinstruction Address to be executed in the next clock cycle - increment the control address register by 1 - loading into control AR an address from control memory - Transferring and external address - loading an initial address to start control operation Control Data Register: - sometimes known as pipeline register . - allows execution of microoperations specified by control word simultaneously with generation of next microinstruction
  • 7. Control Unit 7 Terminology Advantage of Microprogram Control - Once hardware configuration is established no need to further h/w or wiring change - only thing to change is microprogram residing in control memory. RISC Architecture concept: - Reduced Instruction Set Computer (RISC) system used hardwire control rather than microprogram control
  • 8. Control Unit 8 Address Sequencing Microinstructions are stored in control memory in groups with each specifying a routine. Each instruction has its own microprogram routine in control memory to generate microoperation that generate instructions. (1) Initial address is loaded into CAR when power is turned on. - the address of the first microinstruction that activates instruction fetch (End instn in IR) (2) Control memory next must go through routine that determines the effective address of the operand (End : operand in MAR) (3) Next step is to generate the microoperations that execute the instruction fetched from memory. The transformation from the instruction code bits to an address in control memory where routine is located is referred to as mapping
  • 9.
  • 10. Control Unit 10 Micro Instruction Sequencing Sequencing Capabilities Required in a Control Storage - Incrementing of the control address register - Unconditional and conditional branches - A mapping process from the bits of the machine instruction to an address for control memory - A facility for subroutine call and return Instruction code Mapping logic Multiplexers Control memory (ROM) Subroutine register (SBR) Branch logic Status bits Microoperations Control address register (CAR) Incrementer MUX select select a status bit Branch address
  • 11. Control Unit 11 Micro Instruction Format Microinstruction Format Symbol OP-code Description ADD 0000 AC  AC + M[EA] BRANCH 0001 if (AC < 0) then (PC  EA) STORE 0010 M[EA]  AC EXCHANGE 0011 AC  M[EA], M[EA]  AC Machine instruction format I Opcode 15 14 11 10 Address 0 Sample machine instructions F1 F2 F3 CD BR AD 3 3 3 2 2 7 F1, F2, F3: Microoperation fields CD: Condition for branching BR: Branch field AD: Address field
  • 12. Control Unit 12 Micro Instruction Format F1 symbol 000 NOP 001 ADD 010 CLRAC 011 INCAC 100 DRTAC 101 DRTAR 110 PCTAR 111 WRITE F2 symbol 000 NOP 001 SUB 010 OR 011 AND 100 READ 101 ACTDR 110 INCDR 111 PCTDR F3 symbol 000 NOP 001 XOR 010 COM 011 SHL 100 SHR 101 INCPC 110 ARTPC 111 Reserved
  • 13. Control Unit 13 Micro Instruction Format CD symbol Condition 00 U Always 1 01 I DR (15) 10 S AC (15) 11 Z AC = 0 BR symbol Function 00 JMP CAR  AD if Condition=1 else CAR  CAR + 1 if condition = 0 01 CALL CAR  AD, SBR  CAR +1 if condition =1 else CAR  CAR + 1 if condition = 0 10 RET CAR  SBR 11 MAP CAR(2-5)  DR (11-14), CAR(0,1,6) 0
  • 14. Control Unit 14 Design of Control Unit microoperation fields 3 x 8 decoder 7 6 5 4 3 2 1 0 F1 3 x 8 decoder 7 6 5 4 3 2 1 0 F2 3 x 8 decoder 7 6 5 4 3 2 1 0 F3 Arithmetic logic and shift unit AND ADD DRTAC AC Load From PC From DR(0-10) Select 0 1 Multiplexers AR Load Clock AC DR DRTAR PCTAR