2
Most read
4
Most read
19
Most read
DISCOVER . LEARN . EMPOWER
DESIGN OF CONTROL UNIT
University Institute of Engineering
DEPARTMENT OF COMPUTER SCIENCE
& ENGINEERING
Bachelor of Engineering (Computer Science & Engineering)
Subject Name: Computer Organization & Architecture
Subject Code: CST-252
Contents
• Hardwired control unit
• Micro-Programmed control unit
• Comparative study
2
Introduction-Prerequisites
• Functional Units of the Computer
• CPU, ALU, Memory etc.
• Memory Units and its types
• Main memory
• Secondary memory
• Cache
• Virtual
• Multiprogramming environment
3
CONTROL UNIT: Implementation
• Hardwired
• Micro-programmed
4
Instruction code
Combinational
Logic Circuits
Memory
Sequence Counter
.
.
Control
signals
Control
signals
Next Address
Generator
(sequencer)
CAR Control
Memory
CDR Decoding
Circuit
Memory
.
.
CAR: Control Address Register
CDR: Control Data Register
Instruction code
• Control signals
• Group of bits used to select paths in multiplexers, decoders, arithmetic logic units
• Control variables
• Binary variables specify microoperations
• Certain microoperations initiated while others idle
• Control word
• String of 1’s and 0’s represent control variables
5
MICRO PROGRAMMED CONTROL
UNIT
Contd..
• Control memory
• Memory contains control words
• Microinstructions
• Control words stored in control memory
• Specify control signals for execution of micro operations
• Micro program
• Sequence of microinstructions
6
• Read-only memory (ROM)
• Content of word in ROM at given address specifies microinstruction
• Each computer instruction initiates series of microinstructions (microprogram) in control memory
• These microinstructions generate microoperations to
• Fetch instruction from main memory
• Evaluate effective address
• Execute operation specified by instruction
• Return control to fetch phase for next instruction
7
CONTROL MEMORY
8
Control
word
Next Address
Generator
(sequencer)
CAR
Control
Memory
(ROM)
CDR
External
input
Control memory
Contains microprograms (set of microinstructions)
Microinstruction contains
Bits that initiate microoperations
Bits that determine address of next microinstruction
Control address register (CAR)
Specifies address of next microinstruction
• Next address generator (microprogram sequencer)
• Determines address sequence for control memory
• Micro program sequencer functions
• Increment CAR by one
• Transfer external address into CAR
• Load initial address into CAR to start control operations
9
Contd..
• Control data register (CDR)- or pipeline register
• Holds microinstruction read from control memory
• Allows execution of micro operations specified by control word simultaneously with generation of next
microinstruction
• Control unit can operate without CDR
10
Contd..
Control
word
Next Address
Generator
(sequencer)
CAR
Control
Memory
(ROM)
External
input
• Routine
• Group of microinstructions stored in control memory
• Each computer instruction has its own micro program routine to generate micro operations that execute the
instruction
11
MICRO PROGRAM ROUTINES
DESIGN OF CONTROL UNIT
12
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
13
Input Logic for Micro-program Sequencer
Input
logic
I0
I1
T
MUX2
Select
1
I
S
Z
Test
CD Field of CS
From
CPU BR field
of CS
L(load SBR with PC) for subroutine Call
S0
S1
for next address
selection
I1I0T Meaning Source of Address S1S0 L
000 In-Line CAR+1 00 0
001 JMP CS(AD) 01 0
010 In-Line CAR+1 00 0
011 CALL CS(AD) and SBR <- CAR+1 01 1
10x RET SBR 10 0
11x MAP DR(11-14) 11 0
L
S1 = I1
S0 = I0I1 + I1’T
L = I1’I0T
Input Logic
• Sequencing & micro-operation logic gets complex
• Difficult to design, prototype, and test
• Resultant design is inflexible, and difficult to build upon (Pipeline, multiple computation units, etc.)
• Adding new instructions requires major design and adds complexity quickly
14
Problems with hardwired control unit
Advantage:
• Simplifies design of control unit
• Cheaper
• Less error-prone
• Easier to modify
Disadvantage:
• Slower
15
Advantages and Disadvantages of
Microprogramming
Micro programmed control
• Micro programmed control is a control mechanism to generate control signals by using a memory called control
storage (CS), which contains the control signals. Although micro programmed control seems to be advantageous to
CISC machines, since CISC requires systematic development of sophisticated control signals, there is no intrinsic
difference between these 2 control mechanisms.
Hard-wired control
• Hardwired control is a control mechanism to generate control signals by using appropriate finite state machine (FSM).
The pair of "microinstruction-register" and "control storage address register" can be regarded as a "state register" for
the hardwired control. Note that the control storage can be regarded as a kind of combinational logic circuit. We can
assign any 0, 1 values to each output corresponding to each address, which can be regarded as the input for a
combinational logic circuit. This is a truth table
16
Comparative Study
APPLICATIONS
• Computer organization and architecture course deals with instruction set architecture, micro architecture and
efficient implementation of micro architecture.
• Understanding the computer architecture concepts is essential for students interested in hardware, processor
design, compilers, and operating systems.
17
REFERENCES
Reference Books:
1. J.P. Hayes, “Computer Architecture and Organization”, Third Edition.
2. Mano, M., “Computer System Architecture”, Third Edition, Prentice Hall.
3. Stallings, W., “Computer Organization and Architecture”, Eighth Edition, Pearson Education.
Text Books:
1. Carpinelli J.D,” Computer systems organization &Architecture”, Fourth Edition, Addison Wesley.
2. Patterson and Hennessy, “Computer Architecture” , Fifth Edition Morgaon Kauffman.
Reference Website
1. https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/
18
THANK YOU

More Related Content

PPTX
General register organization (computer organization)
PPTX
Register organization, stack
PPTX
Computer registers
PPTX
Register Organisation of 8086 Microprocessor
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPTX
Register transfer and micro-operation
PPTX
Processor organization &amp; register organization
PDF
Code optimization in compiler design
General register organization (computer organization)
Register organization, stack
Computer registers
Register Organisation of 8086 Microprocessor
Control Units : Microprogrammed and Hardwired:control unit
Register transfer and micro-operation
Processor organization &amp; register organization
Code optimization in compiler design

What's hot (20)

PPTX
Instruction codes
PDF
Processor Organization and Architecture
PPT
DATA REPRESENTATION
PPTX
Direct memory access (dma)
PPTX
Addressing sequencing
PDF
Addressing modes in computer organization
PPTX
Computer architecture instruction formats
PPTX
Computer architecture data representation
PPTX
Instruction sets of 8086
PPTX
CISC & RISC Architecture
PPTX
Basic Computer Organization and Design
PDF
Basic Computer Organization and Design
PPTX
Computer Organisation & Architecture (chapter 1)
PPTX
Register transfer language & its micro operations
PPTX
Interrupts and types of interrupts
PPT
Interrupt
PDF
Computer organisation -morris mano
PPTX
Memory organization in computer architecture
PPTX
Microprogrammed Control Unit
PPTX
Instruction Formats
Instruction codes
Processor Organization and Architecture
DATA REPRESENTATION
Direct memory access (dma)
Addressing sequencing
Addressing modes in computer organization
Computer architecture instruction formats
Computer architecture data representation
Instruction sets of 8086
CISC & RISC Architecture
Basic Computer Organization and Design
Basic Computer Organization and Design
Computer Organisation & Architecture (chapter 1)
Register transfer language & its micro operations
Interrupts and types of interrupts
Interrupt
Computer organisation -morris mano
Memory organization in computer architecture
Microprogrammed Control Unit
Instruction Formats
Ad

Similar to Design of control unit.pptx (20)

PPTX
conrol_Unit_part_of_computer_architecture.pptx
PPTX
controlunit1a024a025-140520095202-phpapp01 (1).pptx
PPTX
controlunit1a024a025-140520095202-phpapp01 (1).pptx
PPTX
Unit 3 CO.pptx
PPTX
computer Ariciteacture and orgnization
PPTX
COMPUTER ARCHITECTURE REGISTER TRAN.pptX
PPTX
Control unit
PPTX
3 4- computer organization and archietecture- COA- CO- Computer organization
PPTX
Hardwires and Microprogrammed Control ,
PPT
Computer Architecture By Beenish lecture 6.ppt
PPTX
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
PPTX
MicroProgrammed Explained .
PPTX
Micro Programmed Control Unit
PPTX
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
PPT
Ch7 official=computer organization and archietectur- CO-COA
PPTX
Micro programmed control
PPTX
CS304PC:Computer Organization and Architecture Session 7 Microprogrammed con...
PPT
Ch7 official
PPTX
controlunit1a024a025-140520095202-phpapp01.pptx
PPS
Timing and-control-unit
conrol_Unit_part_of_computer_architecture.pptx
controlunit1a024a025-140520095202-phpapp01 (1).pptx
controlunit1a024a025-140520095202-phpapp01 (1).pptx
Unit 3 CO.pptx
computer Ariciteacture and orgnization
COMPUTER ARCHITECTURE REGISTER TRAN.pptX
Control unit
3 4- computer organization and archietecture- COA- CO- Computer organization
Hardwires and Microprogrammed Control ,
Computer Architecture By Beenish lecture 6.ppt
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
MicroProgrammed Explained .
Micro Programmed Control Unit
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
Ch7 official=computer organization and archietectur- CO-COA
Micro programmed control
CS304PC:Computer Organization and Architecture Session 7 Microprogrammed con...
Ch7 official
controlunit1a024a025-140520095202-phpapp01.pptx
Timing and-control-unit
Ad

Recently uploaded (20)

PPTX
UNIT_2-__LIPIDS[1].pptx.................
PDF
African Communication Research: A review
PDF
FYJC - Chemistry textbook - standard 11.
PDF
Everyday Spelling and Grammar by Kathi Wyldeck
PPTX
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2013).pdf
PDF
Nurlina - Urban Planner Portfolio (english ver)
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
Solved Past paper of Pediatric Health Nursing PHN BS Nursing 5th Semester
PDF
Laparoscopic Colorectal Surgery at WLH Hospital
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
PPTX
Thinking Routines and Learning Engagements.pptx
PPTX
Diploma pharmaceutics notes..helps diploma students
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
PUBH1000 - Module 6: Global Health Tute Slides
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
Journal of Dental Science - UDMY (2022).pdf
PDF
faiz-khans about Radiotherapy Physics-02.pdf
PPTX
ACFE CERTIFICATION TRAINING ON LAW.pptx
UNIT_2-__LIPIDS[1].pptx.................
African Communication Research: A review
FYJC - Chemistry textbook - standard 11.
Everyday Spelling and Grammar by Kathi Wyldeck
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2013).pdf
Nurlina - Urban Planner Portfolio (english ver)
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Solved Past paper of Pediatric Health Nursing PHN BS Nursing 5th Semester
Laparoscopic Colorectal Surgery at WLH Hospital
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
Thinking Routines and Learning Engagements.pptx
Diploma pharmaceutics notes..helps diploma students
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PUBH1000 - Module 6: Global Health Tute Slides
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Journal of Dental Science - UDMY (2022).pdf
faiz-khans about Radiotherapy Physics-02.pdf
ACFE CERTIFICATION TRAINING ON LAW.pptx

Design of control unit.pptx

  • 1. DISCOVER . LEARN . EMPOWER DESIGN OF CONTROL UNIT University Institute of Engineering DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Bachelor of Engineering (Computer Science & Engineering) Subject Name: Computer Organization & Architecture Subject Code: CST-252
  • 2. Contents • Hardwired control unit • Micro-Programmed control unit • Comparative study 2
  • 3. Introduction-Prerequisites • Functional Units of the Computer • CPU, ALU, Memory etc. • Memory Units and its types • Main memory • Secondary memory • Cache • Virtual • Multiprogramming environment 3
  • 4. CONTROL UNIT: Implementation • Hardwired • Micro-programmed 4 Instruction code Combinational Logic Circuits Memory Sequence Counter . . Control signals Control signals Next Address Generator (sequencer) CAR Control Memory CDR Decoding Circuit Memory . . CAR: Control Address Register CDR: Control Data Register Instruction code
  • 5. • Control signals • Group of bits used to select paths in multiplexers, decoders, arithmetic logic units • Control variables • Binary variables specify microoperations • Certain microoperations initiated while others idle • Control word • String of 1’s and 0’s represent control variables 5 MICRO PROGRAMMED CONTROL UNIT
  • 6. Contd.. • Control memory • Memory contains control words • Microinstructions • Control words stored in control memory • Specify control signals for execution of micro operations • Micro program • Sequence of microinstructions 6
  • 7. • Read-only memory (ROM) • Content of word in ROM at given address specifies microinstruction • Each computer instruction initiates series of microinstructions (microprogram) in control memory • These microinstructions generate microoperations to • Fetch instruction from main memory • Evaluate effective address • Execute operation specified by instruction • Return control to fetch phase for next instruction 7 CONTROL MEMORY
  • 8. 8 Control word Next Address Generator (sequencer) CAR Control Memory (ROM) CDR External input Control memory Contains microprograms (set of microinstructions) Microinstruction contains Bits that initiate microoperations Bits that determine address of next microinstruction Control address register (CAR) Specifies address of next microinstruction
  • 9. • Next address generator (microprogram sequencer) • Determines address sequence for control memory • Micro program sequencer functions • Increment CAR by one • Transfer external address into CAR • Load initial address into CAR to start control operations 9 Contd..
  • 10. • Control data register (CDR)- or pipeline register • Holds microinstruction read from control memory • Allows execution of micro operations specified by control word simultaneously with generation of next microinstruction • Control unit can operate without CDR 10 Contd.. Control word Next Address Generator (sequencer) CAR Control Memory (ROM) External input
  • 11. • Routine • Group of microinstructions stored in control memory • Each computer instruction has its own micro program routine to generate micro operations that execute the instruction 11 MICRO PROGRAM ROUTINES
  • 12. DESIGN OF CONTROL UNIT 12 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
  • 13. 13 Input Logic for Micro-program Sequencer Input logic I0 I1 T MUX2 Select 1 I S Z Test CD Field of CS From CPU BR field of CS L(load SBR with PC) for subroutine Call S0 S1 for next address selection I1I0T Meaning Source of Address S1S0 L 000 In-Line CAR+1 00 0 001 JMP CS(AD) 01 0 010 In-Line CAR+1 00 0 011 CALL CS(AD) and SBR <- CAR+1 01 1 10x RET SBR 10 0 11x MAP DR(11-14) 11 0 L S1 = I1 S0 = I0I1 + I1’T L = I1’I0T Input Logic
  • 14. • Sequencing & micro-operation logic gets complex • Difficult to design, prototype, and test • Resultant design is inflexible, and difficult to build upon (Pipeline, multiple computation units, etc.) • Adding new instructions requires major design and adds complexity quickly 14 Problems with hardwired control unit
  • 15. Advantage: • Simplifies design of control unit • Cheaper • Less error-prone • Easier to modify Disadvantage: • Slower 15 Advantages and Disadvantages of Microprogramming
  • 16. Micro programmed control • Micro programmed control is a control mechanism to generate control signals by using a memory called control storage (CS), which contains the control signals. Although micro programmed control seems to be advantageous to CISC machines, since CISC requires systematic development of sophisticated control signals, there is no intrinsic difference between these 2 control mechanisms. Hard-wired control • Hardwired control is a control mechanism to generate control signals by using appropriate finite state machine (FSM). The pair of "microinstruction-register" and "control storage address register" can be regarded as a "state register" for the hardwired control. Note that the control storage can be regarded as a kind of combinational logic circuit. We can assign any 0, 1 values to each output corresponding to each address, which can be regarded as the input for a combinational logic circuit. This is a truth table 16 Comparative Study
  • 17. APPLICATIONS • Computer organization and architecture course deals with instruction set architecture, micro architecture and efficient implementation of micro architecture. • Understanding the computer architecture concepts is essential for students interested in hardware, processor design, compilers, and operating systems. 17
  • 18. REFERENCES Reference Books: 1. J.P. Hayes, “Computer Architecture and Organization”, Third Edition. 2. Mano, M., “Computer System Architecture”, Third Edition, Prentice Hall. 3. Stallings, W., “Computer Organization and Architecture”, Eighth Edition, Pearson Education. Text Books: 1. Carpinelli J.D,” Computer systems organization &Architecture”, Fourth Edition, Addison Wesley. 2. Patterson and Hennessy, “Computer Architecture” , Fifth Edition Morgaon Kauffman. Reference Website 1. https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/ 18