SlideShare a Scribd company logo
1 of 22
North Western University, Khulna
Digital System Design
EEE-3201
Presentation Topic : Control Unit
Presented by :
Md. Mozammel Haque
The Control Unit was historically defined as one distinct part of the 1946
reference model of Von Neumann architecture.
The function of control unit is to generate relevant timing and control signals to
all operations in the computer.
Control Unit is “the brain within the brain”.
It controls the flow of data between the processor and memory and peripherals.
The examples of devices that require a control unit are CPUs and graphics
processing units (GPUs).
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 2
FUNCTIONS
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 3
 The control unit directs the entire computer system to carry out stored
program instructions.
 The control unit must communicate with both the arithmetic logic unit
(ALU) and main memory.
 The control unit instructs the arithmetic logic unit that which logical or
arithmetic operation is to be performed.
 The control unit co-ordinates the activities of the other two units as well
as all peripherals and auxiliary storage devices linked to the computer.
TYPES
COMPUTER ORGANIZATION AND ARCHITECTURE 4
Control unit generates control signals using one of the two
organizations :
 Hardwired Control Unit.
 Micro-programmed Control Unit.
07-June-21
Hardwired Control Unit
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 5
 Hardwired control units are implemented through use of sequential
logic units or circuits like gates , fliflops , decoders in hardware.
 Hardwired control units are generally faster than micro-programmed
designs.
 This architecture is preferred in reduced instruction set computers (RISC)
as they use a simpler instruction set.
 The hardwired approach has become less popular as computers have
evolved as at one time, control units for CPUs were ad-hoc logic, and they
were difficult to design.
ADVANTAGES
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 6
 Hardwired Control Unit is fast because control signals are generated by
combinational circuits.
 The delay in generation of control signals depends upon the number of
gates.
 The performances is high as compared to micro-programmed control unit.
DISADVANTAGES
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 7
 The control signals required by the CPU will be more complex
 Modifications in control signal are very difficult. That means it requires
rearranging of wires in the hardware circuit.
 It is difficult to correct mistake in original design or adding new features
in existing design of control unit.
CONSIST OF:
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 8
Control unit consist of a:
 Instruction Register
 Number of Control Logic Gates,
 Two Decoders
 4-bit Sequence Counter
ARCHITECTURE
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 9
 An instruction read from memory is placed in the instruction register (IR).
 The instruction register is divided into three parts: the I bit, operation
code, and address part.
 First 12-bits (0-11) to specify an address, next 3-bits specify the
operation code (opcode) field of the instruction and last left most bit
specify the addressing mode I.
 I = 0 for direct address
 I = 1 for indirect address
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 10
 First 12-bits (0-11) are applied to the control logic gates.
 The operation code bits (12 – 14) are decoded with a 3 x 8 decoder.
 The eight outputs ( D0 through D7) from a decoder goes to the control
logic gates to perform specific operation.
 Last bit 15 is transferred to a I flip-flop designated by symbol I.
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 11
 The 4-bit sequence counter SC can count in binary from 0 through 15.
 The counter output is decoded into 16 timing pulses T0 through T15.
 The sequence counter can be incremented by INR.
 input or clear by CLR input synchronously.
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 12
MICRO-PROGRAMMED
CONTROL UNIT
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 13
 The idea of microprogramming was introduced by Maurice Wilkes in 1951.
 Micro-programs were organized as a sequence of microinstructions and
stored in special control memory.
 The main advantage of the micro-program control unit is the simplicity
of its structure.
 Outputs of the controller are organized in microinstructions and they can
be easily replaced
 A micro-programmed control unit is implemented using programming
approach. A sequence of micro operations are carried out by executing a
program consisting of micro-instructions.
 Micro-program, consisting of micro-instructions is stored in the control
memory of the control unit.
 Execution of a micro-instruction is responsible for generation of a set
of control signals.
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 14
 Micro-Programs: Microprogramming is the concept for generating
control signals using programs. These programs are called micro -
programs.
 Micro-Instructions: The instructions that make micro-program are called
micro-instructions.
 Micro-Code: Micro-program is a group of microinstructions. The
micro- program can also be termed as micro-code.
 Control Memory: Micro-programs are stored in the read only
memory (ROM). That memory is called control memory.
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 15
ADVANTAGES
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 16
 The design of micro-program control unit is less complex because micro-
programs are implemented using software routines.
 The micro-programmed control unit is more flexible because design
modifications, correction and enhancement is easily possible.
 The new or modified instruction set of CPU can be easily implemented by
simply rewriting or modifying the contents of control memory.
 The fault can be easily diagnosed in the micro-program control unit using
diagnostics tools by maintaining the contents of flags, registers and
counters.
DISADVANTAGES
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 17
 The micro-program control unit is slower than hardwired control unit.
 That means to execute an instruction in micro-program control unit
requires more time.
 The micro-program control unit is expensive than hardwired control unit
in case of limited hardware resources.
 The design duration of micro-program control unit is more than
hardwired control unit for smaller CPU.
CONSIST OF :
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 18
Control unit consist of a :
 Next address generator
 Control address register
 Control memory
 Control data register
ARCHITECTURE
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 19
 The address of micro-instruction that is to be executed is stored in the
control address register (CAR).
 Micro-instruction corresponding to the address stored in CAR is fetched
from control memory and is stored in the control data register (CDR).
 This micro-instruction contains control word to execute one or more
micro-operations.
 After the execution of all micro-operations of micro-instruction, the
address of next micro-instruction is located.
07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 20
COMPARISON BETWEEN HARDWIRED AND MICROPRGRAMMED
CONTROL UNIT
ATTRIBUTE HARDWIRED CONTROL
UNIT
MICRO-PROGRAMMED
CONTROL UNIT
SPEED F
AST SLOW
COST OF
IMPLEMENTATION
MORE CHEAPER
FLEXIBILITY NOT FLEXIBLE, DIFFICULT
TO MODIFY FOR NEW
INSTRUCTION
FLEXIBLE, NEW
INSTRUCTIONS CAN BE
ADDED
ABILITY TO HANDLE
COMPLEX INSTRUCTION
DIFFICULT EASIER
DECODING COMPLEX EASY
APPLICATION RISC MICROPROCESSOR CISC MICROPROCESSOR
INSTRUCTION SET SIZE SMALL LARGE
CONTROL MEMORY ABSENT PRESENT
CHIP AREA REQUIRED LESS MORE
21
THANK YOU
22
COMPUTER ORGANIZATION AND ARCHITECTURE
07-June-21

More Related Content

What's hot

Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organizationMazin Alwaaly
 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycleMkaur01
 
Computer architecture
Computer architectureComputer architecture
Computer architectureZuhaib Zaroon
 
Principles of I/O Hardware and Software
Principles of I/O Hardware and SoftwarePrinciples of I/O Hardware and Software
Principles of I/O Hardware and SoftwareKarandeep Singh Sehgal
 
Types of rom
Types of romTypes of rom
Types of romalldesign
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationAmrutaMehata
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-busAnuj Modi
 
CS304PC: Computer Organization and Architecture Session 27 priority interrupt...
CS304PC: Computer Organization and Architecture Session 27 priority interrupt...CS304PC: Computer Organization and Architecture Session 27 priority interrupt...
CS304PC: Computer Organization and Architecture Session 27 priority interrupt...Asst.prof M.Gokilavani
 
Processor Organization
Processor OrganizationProcessor Organization
Processor OrganizationDominik Salvet
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 
Computer registers
Computer registersComputer registers
Computer registersJatin Grover
 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
 
Microprocessor Fundamentals
Microprocessor FundamentalsMicroprocessor Fundamentals
Microprocessor FundamentalsDiwaker Pant
 
Unit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationUnit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationBalaji Vignesh
 
N301 Von Neumann Architecture
N301 Von Neumann ArchitectureN301 Von Neumann Architecture
N301 Von Neumann Architectureguest3b9707
 
6 multiprogramming & time sharing
6 multiprogramming & time sharing6 multiprogramming & time sharing
6 multiprogramming & time sharingmyrajendra
 
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
8259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R28259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R2
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2Aisu
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 

What's hot (20)

Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycle
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Principles of I/O Hardware and Software
Principles of I/O Hardware and SoftwarePrinciples of I/O Hardware and Software
Principles of I/O Hardware and Software
 
Types of rom
Types of romTypes of rom
Types of rom
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
CS304PC: Computer Organization and Architecture Session 27 priority interrupt...
CS304PC: Computer Organization and Architecture Session 27 priority interrupt...CS304PC: Computer Organization and Architecture Session 27 priority interrupt...
CS304PC: Computer Organization and Architecture Session 27 priority interrupt...
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Processor Organization
Processor OrganizationProcessor Organization
Processor Organization
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 
Computer registers
Computer registersComputer registers
Computer registers
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Microprocessor Fundamentals
Microprocessor FundamentalsMicroprocessor Fundamentals
Microprocessor Fundamentals
 
Unit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationUnit IV Memory and I/O Organization
Unit IV Memory and I/O Organization
 
N301 Von Neumann Architecture
N301 Von Neumann ArchitectureN301 Von Neumann Architecture
N301 Von Neumann Architecture
 
6 multiprogramming & time sharing
6 multiprogramming & time sharing6 multiprogramming & time sharing
6 multiprogramming & time sharing
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
8259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R28259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R2
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 

Similar to Control unit

controlunit1a024a025-140520095202-phpapp01.pptx
controlunit1a024a025-140520095202-phpapp01.pptxcontrolunit1a024a025-140520095202-phpapp01.pptx
controlunit1a024a025-140520095202-phpapp01.pptxssuser3b0320
 
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
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLCVeerakumar S
 
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDLIRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDLIRJET Journal
 
Microprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptMicroprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptTALHARIAZ46
 
Fpga implementation of a functional microcontroller
Fpga implementation of a functional microcontrollerFpga implementation of a functional microcontroller
Fpga implementation of a functional microcontrollereSAT Publishing House
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automationAloka Patro
 
Coa module ii Basic Computer Organizations and Design
Coa module ii Basic Computer Organizations and DesignCoa module ii Basic Computer Organizations and Design
Coa module ii Basic Computer Organizations and Designvandanashukla22
 
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdfDesign_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdfssuser1e1bab
 
Simulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCSimulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCIRJET Journal
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsNilesh Bhaskarrao Bahadure
 
Basic Concepts of Control (Digital Logic Fundamentals)
Basic Concepts of Control (Digital Logic Fundamentals)Basic Concepts of Control (Digital Logic Fundamentals)
Basic Concepts of Control (Digital Logic Fundamentals)RuchitaMaaran
 
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdf
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdfAdvanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdf
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdfWiseNaeem
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unitAnuj Modi
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic ControllerJinesh Patel
 

Similar to Control unit (20)

controlunit1a024a025-140520095202-phpapp01.pptx
controlunit1a024a025-140520095202-phpapp01.pptxcontrolunit1a024a025-140520095202-phpapp01.pptx
controlunit1a024a025-140520095202-phpapp01.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
 
Dp&co
Dp&coDp&co
Dp&co
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLC
 
Plc on cnc
Plc on cncPlc on cnc
Plc on cnc
 
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDLIRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
 
Microprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptMicroprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.ppt
 
Fpga implementation of a functional microcontroller
Fpga implementation of a functional microcontrollerFpga implementation of a functional microcontroller
Fpga implementation of a functional microcontroller
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automation
 
Coa module ii Basic Computer Organizations and Design
Coa module ii Basic Computer Organizations and DesignCoa module ii Basic Computer Organizations and Design
Coa module ii Basic Computer Organizations and Design
 
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdfDesign_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
 
Simulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCSimulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLC
 
IJCRT2006062.pdf
IJCRT2006062.pdfIJCRT2006062.pdf
IJCRT2006062.pdf
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basics
 
Basic Concepts of Control (Digital Logic Fundamentals)
Basic Concepts of Control (Digital Logic Fundamentals)Basic Concepts of Control (Digital Logic Fundamentals)
Basic Concepts of Control (Digital Logic Fundamentals)
 
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdf
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdfAdvanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdf
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdf
 
Plc Basics
Plc BasicsPlc Basics
Plc Basics
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unit
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 

More from MdHaque78

Bangabandhu satellite-1
Bangabandhu satellite-1Bangabandhu satellite-1
Bangabandhu satellite-1MdHaque78
 
Si solar cell
Si solar cellSi solar cell
Si solar cellMdHaque78
 
Environmental impact assessment and importance of effective application in ba...
Environmental impact assessment and importance of effective application in ba...Environmental impact assessment and importance of effective application in ba...
Environmental impact assessment and importance of effective application in ba...MdHaque78
 
8085 mpu bus architecture
8085 mpu bus architecture8085 mpu bus architecture
8085 mpu bus architectureMdHaque78
 
Different multiple access technologies.
Different multiple access technologies.Different multiple access technologies.
Different multiple access technologies.MdHaque78
 
Colpitts oscillator
Colpitts oscillatorColpitts oscillator
Colpitts oscillatorMdHaque78
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equationsMdHaque78
 
Project goal setting trends
Project goal setting trendsProject goal setting trends
Project goal setting trendsMdHaque78
 

More from MdHaque78 (9)

Bangabandhu satellite-1
Bangabandhu satellite-1Bangabandhu satellite-1
Bangabandhu satellite-1
 
Si solar cell
Si solar cellSi solar cell
Si solar cell
 
Environmental impact assessment and importance of effective application in ba...
Environmental impact assessment and importance of effective application in ba...Environmental impact assessment and importance of effective application in ba...
Environmental impact assessment and importance of effective application in ba...
 
8085 mpu bus architecture
8085 mpu bus architecture8085 mpu bus architecture
8085 mpu bus architecture
 
Different multiple access technologies.
Different multiple access technologies.Different multiple access technologies.
Different multiple access technologies.
 
Colpitts oscillator
Colpitts oscillatorColpitts oscillator
Colpitts oscillator
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equations
 
Motivation
MotivationMotivation
Motivation
 
Project goal setting trends
Project goal setting trendsProject goal setting trends
Project goal setting trends
 

Recently uploaded

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
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesRashidFaridChishti
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
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
 
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
 
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
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...ronahami
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptAfnanAhmad53
 
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
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...manju garg
 
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
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information SystemsAnge Felix NSANZIYERA
 

Recently uploaded (20)

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
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
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
 
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...
 
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
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
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
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
 
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
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 

Control unit

  • 1. North Western University, Khulna Digital System Design EEE-3201 Presentation Topic : Control Unit Presented by : Md. Mozammel Haque
  • 2. The Control Unit was historically defined as one distinct part of the 1946 reference model of Von Neumann architecture. The function of control unit is to generate relevant timing and control signals to all operations in the computer. Control Unit is “the brain within the brain”. It controls the flow of data between the processor and memory and peripherals. The examples of devices that require a control unit are CPUs and graphics processing units (GPUs). 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 2
  • 3. FUNCTIONS 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 3  The control unit directs the entire computer system to carry out stored program instructions.  The control unit must communicate with both the arithmetic logic unit (ALU) and main memory.  The control unit instructs the arithmetic logic unit that which logical or arithmetic operation is to be performed.  The control unit co-ordinates the activities of the other two units as well as all peripherals and auxiliary storage devices linked to the computer.
  • 4. TYPES COMPUTER ORGANIZATION AND ARCHITECTURE 4 Control unit generates control signals using one of the two organizations :  Hardwired Control Unit.  Micro-programmed Control Unit. 07-June-21
  • 5. Hardwired Control Unit 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 5  Hardwired control units are implemented through use of sequential logic units or circuits like gates , fliflops , decoders in hardware.  Hardwired control units are generally faster than micro-programmed designs.  This architecture is preferred in reduced instruction set computers (RISC) as they use a simpler instruction set.  The hardwired approach has become less popular as computers have evolved as at one time, control units for CPUs were ad-hoc logic, and they were difficult to design.
  • 6. ADVANTAGES 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 6  Hardwired Control Unit is fast because control signals are generated by combinational circuits.  The delay in generation of control signals depends upon the number of gates.  The performances is high as compared to micro-programmed control unit.
  • 7. DISADVANTAGES 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 7  The control signals required by the CPU will be more complex  Modifications in control signal are very difficult. That means it requires rearranging of wires in the hardware circuit.  It is difficult to correct mistake in original design or adding new features in existing design of control unit.
  • 8. CONSIST OF: 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 8 Control unit consist of a:  Instruction Register  Number of Control Logic Gates,  Two Decoders  4-bit Sequence Counter
  • 10.  An instruction read from memory is placed in the instruction register (IR).  The instruction register is divided into three parts: the I bit, operation code, and address part.  First 12-bits (0-11) to specify an address, next 3-bits specify the operation code (opcode) field of the instruction and last left most bit specify the addressing mode I.  I = 0 for direct address  I = 1 for indirect address 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 10
  • 11.  First 12-bits (0-11) are applied to the control logic gates.  The operation code bits (12 – 14) are decoded with a 3 x 8 decoder.  The eight outputs ( D0 through D7) from a decoder goes to the control logic gates to perform specific operation.  Last bit 15 is transferred to a I flip-flop designated by symbol I. 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 11
  • 12.  The 4-bit sequence counter SC can count in binary from 0 through 15.  The counter output is decoded into 16 timing pulses T0 through T15.  The sequence counter can be incremented by INR.  input or clear by CLR input synchronously. 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 12
  • 13. MICRO-PROGRAMMED CONTROL UNIT 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 13  The idea of microprogramming was introduced by Maurice Wilkes in 1951.  Micro-programs were organized as a sequence of microinstructions and stored in special control memory.  The main advantage of the micro-program control unit is the simplicity of its structure.  Outputs of the controller are organized in microinstructions and they can be easily replaced
  • 14.  A micro-programmed control unit is implemented using programming approach. A sequence of micro operations are carried out by executing a program consisting of micro-instructions.  Micro-program, consisting of micro-instructions is stored in the control memory of the control unit.  Execution of a micro-instruction is responsible for generation of a set of control signals. 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 14
  • 15.  Micro-Programs: Microprogramming is the concept for generating control signals using programs. These programs are called micro - programs.  Micro-Instructions: The instructions that make micro-program are called micro-instructions.  Micro-Code: Micro-program is a group of microinstructions. The micro- program can also be termed as micro-code.  Control Memory: Micro-programs are stored in the read only memory (ROM). That memory is called control memory. 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 15
  • 16. ADVANTAGES 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 16  The design of micro-program control unit is less complex because micro- programs are implemented using software routines.  The micro-programmed control unit is more flexible because design modifications, correction and enhancement is easily possible.  The new or modified instruction set of CPU can be easily implemented by simply rewriting or modifying the contents of control memory.  The fault can be easily diagnosed in the micro-program control unit using diagnostics tools by maintaining the contents of flags, registers and counters.
  • 17. DISADVANTAGES 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 17  The micro-program control unit is slower than hardwired control unit.  That means to execute an instruction in micro-program control unit requires more time.  The micro-program control unit is expensive than hardwired control unit in case of limited hardware resources.  The design duration of micro-program control unit is more than hardwired control unit for smaller CPU.
  • 18. CONSIST OF : 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 18 Control unit consist of a :  Next address generator  Control address register  Control memory  Control data register
  • 19. ARCHITECTURE 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 19  The address of micro-instruction that is to be executed is stored in the control address register (CAR).  Micro-instruction corresponding to the address stored in CAR is fetched from control memory and is stored in the control data register (CDR).  This micro-instruction contains control word to execute one or more micro-operations.  After the execution of all micro-operations of micro-instruction, the address of next micro-instruction is located.
  • 20. 07-June-21 COMPUTER ORGANIZATION AND ARCHITECTURE 20
  • 21. COMPARISON BETWEEN HARDWIRED AND MICROPRGRAMMED CONTROL UNIT ATTRIBUTE HARDWIRED CONTROL UNIT MICRO-PROGRAMMED CONTROL UNIT SPEED F AST SLOW COST OF IMPLEMENTATION MORE CHEAPER FLEXIBILITY NOT FLEXIBLE, DIFFICULT TO MODIFY FOR NEW INSTRUCTION FLEXIBLE, NEW INSTRUCTIONS CAN BE ADDED ABILITY TO HANDLE COMPLEX INSTRUCTION DIFFICULT EASIER DECODING COMPLEX EASY APPLICATION RISC MICROPROCESSOR CISC MICROPROCESSOR INSTRUCTION SET SIZE SMALL LARGE CONTROL MEMORY ABSENT PRESENT CHIP AREA REQUIRED LESS MORE 21
  • 22. THANK YOU 22 COMPUTER ORGANIZATION AND ARCHITECTURE 07-June-21