Professional Documents
Culture Documents
Design of Control Unit
Design of Control Unit
Design of Control Unit
• Comparative study
2
Introduction-Prerequisites
• Functional Units of the Computer
• Main memory
• Secondary memory
• Cache
• Virtual
• Multiprogramming environment
3
CONTROL UNIT: Implementation
• Hardwired Memory Instruction code
Combinational . Control
Sequence Counter
Logic Circuits . signals
• Micro-programmed
4
MICRO PROGRAMMED CONTROL UNIT
• Control signals
• Group of bits used to select paths in multiplexers, decoders, arithmetic logic units
• Control variables
• Control word
5
Contd..
• Control memory
• Microinstructions
• Micro program
• Sequence of microinstructions
6
CONTROL MEMORY
• Read-only memory (ROM)
7
External
Next Address Control
input Control
Generator CAR Memory CDR
word
(sequencer) (ROM)
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
8
Contd..
• Next address generator (microprogram sequencer)
9
Contd..
• Control data register (CDR)- or pipeline register
• Allows execution of micro operations specified by control word simultaneously with generation of next
microinstruction
10
MICRO PROGRAM ROUTINES
• Routine
• Each computer instruction has its own micro program routine to generate micro operations that execute the instruction
11
DESIGN OF CONTROL UNIT
microoperation fields
F1 F2 F3
AND
ADD AC
Arithmetic
logic and
DRTAC shift unit DR
From From
PCTAR
DRTAR
PC DR(0-10) Load
AC
Select 0 1
Multiplexers
Load Clock
AR
12
Input Logic for Micro-program Sequencer
1 L L(load SBR with PC) for subroutine Call
From I MUX2 Test
S T
CPU Z Select BR field Input
I0 logic S0 for next address
of CS I1
S1 selection
CD Field of CS
Input Logic
I1I0T Meaning Source of Address S1S0 L
• 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
Advantages and Disadvantages of
Microprogramming
Advantage:
• Cheaper
• Less error-prone
• Easier to modify
Disadvantage:
• Slower
15
Comparative Study
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
APPLICATIONS
• Computer organization and architecture course deals with instruction set architecture, micro architecture and efficient
• Understanding the computer architecture concepts is essential for students interested in hardware, processor design,
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:
4. Carpinelli J.D,” Computer systems organization &Architecture”, Fourth Edition, Addison Wesley.
5. Patterson and Hennessy, “Computer Architecture” , Fifth Edition Morgaon Kauffman.
Reference Website
6. https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/
18
THANK YOU