Control Logic Design
Control Logic Design
Control Logic Design
of CSE, KUET
2
Dept. of CSE, KUET
Introduction
Control over a system is mandatory
Control is require for any vehicle, from bicycles to aircrafts
Introduction
Data processor
A general-purpose
processing unit
Consists of individual
registers
and associated digital
Control Logic
functions
Generates the signals for
sequencing the
microoperations
Sequential circuit whose
internal states dictate the
control functions
At any given time the state of
the sequential control initiates
Control logic provides
a prescribed set of a time sequence of signals for initiating
the microoperations in the data-processor.
microoperations. 4
Dept. of CSE, KUET
Control Organization
5
Dept. of CSE, KUET
Control Organization
6
Dept. of CSE, KUET
PLA
Remember PLA?
9
Dept. of CSE, KUET
PLA Control
Microprogram Control
Control unit initiates a series of sequential steps of
microoperations.
The control variables at any given time can be represented by
a strings of 1’s and 0’s called a control word.
A control unit whose control variables are stored in a memory
is called a microprogrammed control unit. Each word of
memory is called a microinstruction.
11
Dept. of CSE, KUET
12
Dept. of CSE, KUET
2. Equipment configuration
n-1 bit
13
Dept. of CSE, KUET
Having different
sign
if A=>B
if A<B (+ A) + (- B) =
+ (A - B) = - (B - A)
(- A) + (+ B) = - (A
- B) = + (B - A)
15
Subtract smaller one from the larger
Dept. of CSE, KUET
16
Dept. of CSE, KUET
ALU and its Function Table (from Ch09)
14
17
Dept. of CSE, KUET
18
Dept. of CSE, KUET
19
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
20
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Contents
Problem Statement
Flowchart , State Diagram & Sequence of
Microoperations
Microprogram Controller Design
Conclusions
21
Dept. of CSE, KUET
23
Dept. of CSE, KUET
Microprogram Control
In a Microprogram Controller
Control variables are stored in memory, usually ROM.
After each operation control unit must determine its next address.
Contain additional bits with bits for microoperations and a special
circuit.
A microinstruction =
bits for initiating microoperations
+ bits to determine next address.
Require Capabilities
25
Dept. of CSE, KUET
Recogniz
e
qa or qs.
Block Diagram
consecutive
Sequencing
addresses
26
Dept. of CSE, KUET
The Microprogram
Load External
Address
S=1
E=1
27
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Conclusions
28
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
29
Dept. of CSE, KUET
The Microprogram
Controller for
Addition and
Subtraction
30
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
A General-Purpose
Microprogram Control Unit
Requirements:
Have a large control memory
Include all possible control variables
Initiate many operations
31
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Counting the Number of 1’s in a register
If R1=00110101 then
R2 will be 100 (4 in binary )
32
Dept. of CSE, KUET
30
Processor Unit
(from Ch09)
33
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Microprogram
(e.g., Z)
C -> Carry
Z -> Zero
S -> Sign
V ->
Overflow
Cin 34
The microprogram method sometimes referred as
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
35
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Sign-magnitude Multiplication
Equipment Configuration
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Sign-magnitude Multiplication
Derivation of Algorithm
40
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Sign-magnitude Multiplication
Data-Processor Specification
Derivation of Algorithm
41
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Sign-magnitude Multiplication
Control Specifications
the control.
PLA is programmed to provide the control outputs and the next
state for the sequence register.
PLA method should be used if the state table contains many don’t care
entries; otherwise, it may be advantageous to use a ROM instead of a PLA.
43
DDeepptt.. ooff
Review of PLA CCSSEE,,
KKUUEETT
44
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
Control Circuit for Multiplication with PLA
45
DDeepptt.. ooff
CCSSEE,,
KKUUEETT
PLA Program Table from State Table
State Table for PLA
PLA
Five inputs and Seven outputs.
Seven product terms, one for
each row in the state table. 46
Dept. of CSE, KUET
Exercise
49
Dept. of CSE, KUET
Exercise
50
Dept. of CSE, KUET
Exercise
51
Dept. of CSE, KUET
Exercise
52