Introduction to Digital logic design lecture notes

ssuser34422b 0 views 48 slides Oct 16, 2025
Slide 1
Slide 1 of 48
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48

About This Presentation

Introduction


Slide Content

Sequential Circuits 1
DIGITAL LOGIC DESIGN
by
Dr. Fenghui Yao
Tennessee State University
Department of Computer Science
Nashville, TN

Sequential Circuits 2
NoteNote
Most of the figures are from your Most of the figures are from your
course bookcourse book

Sequential Circuits 3
Sequential CircuitsSequential Circuits
CombinationalCombinational
The outputs depend only on the current input valuesThe outputs depend only on the current input values

It uses only logic gatesIt uses only logic gates
Sequential Sequential
The outputs depend on the current and past input The outputs depend on the current and past input
valuesvalues

It uses logic gates and storage elementsIt uses logic gates and storage elements

ExampleExample

Vending machineVending machine

They are referred as finite state machines since they They are referred as finite state machines since they
have a finite number of stateshave a finite number of states

Sequential Circuits 4
Block DiagramBlock Diagram
Memory elements can store binary Memory elements can store binary
information information

This information at any given time determines the This information at any given time determines the
state of the circuit at that time state of the circuit at that time

Sequential Circuits 5
Sequential Circuit TypesSequential Circuit Types
Synchronous Synchronous

The circuit behavior is determined by the signals The circuit behavior is determined by the signals
at discrete instants of timeat discrete instants of time

The memory elements are affected only at The memory elements are affected only at
discrete instants of timediscrete instants of time

A clock is used for synchronization A clock is used for synchronization
Memory elements are affected only with the arrival Memory elements are affected only with the arrival
of a clock pulseof a clock pulse
If memory elements use clock pulses in their If memory elements use clock pulses in their
inputs, the circuit is calledinputs, the circuit is called

Clocked sequential circuitClocked sequential circuit

Sequential Circuits 6
Sequential Circuit TypesSequential Circuit Types

ASynchronous ASynchronous

The circuit behavior is determined by the signals The circuit behavior is determined by the signals
at any instant of timeat any instant of time

It is also affected by the order the inputs changeIt is also affected by the order the inputs change

Sequential Circuits 7
ClockClock
It emits a series of pulses with a It emits a series of pulses with a
precise pulse width and precise interval precise pulse width and precise interval
between consecutive pulsesbetween consecutive pulses
Timing interval between the Timing interval between the
corresponding edges of two corresponding edges of two
consecutive pulses is known as the consecutive pulses is known as the
clock cycle time, or periodclock cycle time, or period

Sequential Circuits 8
Flip-FlopsFlip-Flops
They are memory elementsThey are memory elements
They can store binary informationThey can store binary information

Sequential Circuits 9
Flip-FlopsFlip-Flops
Can keep a binary state until an input Can keep a binary state until an input
signal to switch the state is receivedsignal to switch the state is received
There are different types of flip-flops There are different types of flip-flops
depending on the number of inputs and depending on the number of inputs and
how the inputs affect the binary statehow the inputs affect the binary state

Sequential Circuits 10
LatchesLatches

The most basic flip-flopsThe most basic flip-flops

They operate with signal levelsThey operate with signal levels

The flip-flops are constructed from The flip-flops are constructed from
latcheslatches
They are not useful for They are not useful for synchronoussynchronous
sequential circuitssequential circuits
They are useful for They are useful for asynchronousasynchronous
sequential circuitssequential circuits

Sequential Circuits 11
SR Latch with NORSR Latch with NOR

Sequential Circuits 12
SR Latch with NORSR Latch with NOR
1R 1,S avoid ,conditions normalIn
0 set to are Q' and Q undefined, 1R 1,S
statereset 1' ,0
stateset 0' ,1






QQ
QQ
resetR
setS

Sequential Circuits 13
SR Latch with NANDSR Latch with NAND

Sequential Circuits 14
SR Latch with NANDSR Latch with NAND
0R 0,S avoid ,conditions normalIn
1 set to are Q' and Q undefined, 0R 0,S
statereset 0' ,1
stateset 1' ,0






QQ
QQ
resetR
setS

Sequential Circuits 15
SR Latch with Control InputSR Latch with Control Input

Sequential Circuits 16
D LatchD Latch

Sequential Circuits 17
Symbols for LatchesSymbols for Latches

Sequential Circuits 18
NoteNote
The control input changes the state of a The control input changes the state of a
latch or flip-floplatch or flip-flop
The momentary change is called a The momentary change is called a
triggertrigger
Example: D LatchExample: D Latch

It is triggered every time the pulse goes to the It is triggered every time the pulse goes to the
logic level 1logic level 1
As long as the pulse remains at the logic level 1, As long as the pulse remains at the logic level 1,
the change in the data (D) directly affects the the change in the data (D) directly affects the
output (Q)output (Q)

THIS MAY BE A BIG PROBLEM since the state of THIS MAY BE A BIG PROBLEM since the state of
the latch may keep changing depending on the the latch may keep changing depending on the
input (may be coming from a combinational logic input (may be coming from a combinational logic
network)network)

Sequential Circuits 19
How to Solve?How to Solve?
Trigger the flip-flop only during a signal Trigger the flip-flop only during a signal
transitiontransition

Sequential Circuits 20
Edge-Triggered D Flip-FlopEdge-Triggered D Flip-Flop

Sequential Circuits 21
Characteristics of D Flip-Characteristics of D Flip-
Flop Flop
DtQ )1(

Sequential Circuits 22
Edge-Triggered J-K Flip-FlopEdge-Triggered J-K Flip-Flop
QKJQtQ '')1( 
How???????

Sequential Circuits 23
Excitation TableExcitation Table

Sequential Circuits 24
Edge-Triggered T Flip-FlopEdge-Triggered T Flip-Flop
QTTQQTtQ '')1( 
)(' 1
)( 0
)1(
tQ
tQ
tQT 

Sequential Circuits 25
Excitation TableExcitation Table

Sequential Circuits 26
Direct InputsDirect Inputs
You can use asynchronous inputs to You can use asynchronous inputs to
put a flip-flop to a specific state put a flip-flop to a specific state
regardless of the clockregardless of the clock
You can clear the content of a flip-flopYou can clear the content of a flip-flop
The content is changed to zero (0)The content is changed to zero (0)

This is called clear or direct resetThis is called clear or direct reset

This is particularly useful when the power is offThis is particularly useful when the power is off

The state of the flip-flop is set to unknownThe state of the flip-flop is set to unknown

Sequential Circuits 27
D Flip-Flop with D Flip-Flop with
Asynchronous ResetAsynchronous Reset

Sequential Circuits 28
State Equations State Equations
 
')(
')1(
)1(
)(')()()(
)()(')1(
)()()()()1(
xBAy
xAtB
BxAxtA
txtBtAty
txtAtB
txtBtxtAtA






A state equation shows
the next state as a
function of the current
state and inputs

Sequential Circuits 29
State TableState Table

Sequential Circuits 30
State DiagramState Diagram

Sequential Circuits 31
Analysis with D Flip-FlopsAnalysis with D Flip-Flops
yxAtA
yxAD
A


)1(

Sequential Circuits 32
State ReductionState Reduction
Reduce the number of states but keep Reduce the number of states but keep
the input-output requirementsthe input-output requirements
Reducing the number of states may Reducing the number of states may
reduce the number of flip-flopsreduce the number of flip-flops

If there are If there are n n flip-flops, there are 2^flip-flops, there are 2^nn states states
If you have two circuits that produce If you have two circuits that produce
the same output sequence for any the same output sequence for any
given input sequence, the two circuits given input sequence, the two circuits
are equivalentare equivalent

They may replace each otherThey may replace each other

Sequential Circuits 33
State Reduction ExampleState Reduction Example
Find the states for which the
next states and outputs are
the same

Sequential Circuits 34
Example (Cont.)Example (Cont.)
In the next
state, g is
replaced with e
In the next
state, f is
replaced with d

Sequential Circuits 35
Example (Cont.)Example (Cont.)

Sequential Circuits 36
State AssignmentState Assignment
You need to assign binary values for You need to assign binary values for
each state so that they can be each state so that they can be
implementedimplemented
You need to use enough number of bits You need to use enough number of bits
to cover all the statesto cover all the states

Sequential Circuits 37
State AssignmentsState Assignments

Sequential Circuits 38
Design ProcedureDesign Procedure
Derive a state diagramDerive a state diagram
Reduce the number of statesReduce the number of states
Assign binary values to the statesAssign binary values to the states
Obtain binary coded state tableObtain binary coded state table
Choose the type of flip-flop to be usedChoose the type of flip-flop to be used
Derive simplified flip-flop input Derive simplified flip-flop input
equations and output equationsequations and output equations
Draw the logic diagramDraw the logic diagram

Sequential Circuits 39
ExampleExample

Design a circuit (with D flip-flops) that Design a circuit (with D flip-flops) that
detects three or more consecutive 1’s in a detects three or more consecutive 1’s in a
string of bits coming through an input linestring of bits coming through an input line

Sequential Circuits 40
Example (Cont.)Example (Cont.)








7,6),,(
7,5,1),,()1(
7,5,3),,()1(
xBAy
xBADtB
xBADtA
B
A

Sequential Circuits 41
Example (Cont.)Example (Cont.)

Sequential Circuits 42
Example (Cont.)Example (Cont.)

Sequential Circuits 43
ExampleExample

Design a circuit (with JK flip-flops) that Design a circuit (with JK flip-flops) that
detects three or more consecutive 1’s in a detects three or more consecutive 1’s in a
string of bits coming through an input linestring of bits coming through an input line

Sequential Circuits 44
Example (Cont.)Example (Cont.)

Sequential Circuits 45
Example (Cont.)Example (Cont.)

Sequential Circuits 46
Example (Cont.)Example (Cont.)

Sequential Circuits 47
Study ProblemsStudy Problems
Course Book Chapter – 5 ProblemsCourse Book Chapter – 5 Problems

5 – 35 – 3

5 – 55 – 5
5 – 65 – 6

5 – 75 – 7

5 – 105 – 10
5 – 125 – 12

5 – 135 – 13

5 – 195 – 19

Sequential Circuits 48
QuestionsQuestions
Tags