Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Digital Design
Flip-Flops
Clocks
Latches
Flip-flops
State diagrams
Topic preview
Boolean
algebra
Finite-state
machine
Logic design
techniques
Sequential design
techniques
RTL Combinatorial
components
RTL storage
components
Binary system
and data
representation
Generalized
finite-state
machines
Register-transfer
design
Processor
components
Copyright 2010-2011 by Daniel D. Gajski
Sequential components
Clock signal
Clock period
Clock
width
Rising edge
Falling edge
Duty cycle is the ratio of the clock width and clock period
Clock signal is active high if the changes occur at the rising edge or during
the clock width
1.4
1.4
(hold)
(hold)
(reset)
(set)
(?)
Logic schematic
Q (next)
Q (next)
Truth table
R
1.4
Undefined
1.4
1.4
2.8
2.8
1.4
t0
1.4
2.8
1.4
t1
t2
t3
t4
t5
t6
Undefined
1.4
2.8
t7
t8 t9
t10
Timing diagram
Copyright 2010-2011 by Daniel D. Gajski
Gated SR-latch
Control signal C activates the latch
C S
0 X
0 X
1 0
1 0
1 0
1 1
1 1
R
S
2.0
Q
C
C
R
2.0
Q
S
Graphic symbol
Logic schematic
R
X
X
0
0
1
0
1
Q Q(next)
0
0
(inactive)
1
1
(inactive)
0
0
(hold)
1
1
(hold)
X
0
(reset)
X
1
(set)
X
NA
(?)
Truth table
reset state
set state
reset state
S
R
Q
2.0
4.0
t0
t1
t2 t3
t4
t5
Timing diagram
4.0
t6
t7
t8 t9
2.0
t13
tsetup thold
EECS31/CSE31, University of California, Irvine
Gated D-latch
C D
0 X
0 X
1 0
1 1
D
D
2.0
2.0
Q
C
Graphic symbol
Truth table
Logic schematic
reset state
Q Q(next)
0
0
1
1
X
0
X
1
set state
reset state
C
D
2.0
4.0
t0
t1
t2
tsetup
t3
4.0
t4
thold
t5
tsetup
t6
thold
t7
3.0
t8
t9
tsetup
thold
Timing diagram
Flip Flops
They are easy to work with though more expensive than latches.
D Q1
D Q2
D Q3
4.0/3.0
4.0/3.0
4.0/3.0
Clk
Logic schematic
Clk
X
Q1
4.0
Q2
3.0
3.0
4.0
Q3
4.0
t0
t1
3.0
t2
t3
t5
t4
t6
t7
Timing diagram
10
Master-slave flip-flop
In a MS flip-flop D is sampled and stored at the rising edge (low-to-high) of the Clk signal
Master
latch
D
Slave
latch
D Qm
4.0/3.0
C
Qs
4.0/3.0
C
Clk
Logic schematic
Clk
Qm
4.0
Qs
4.0
t0
t1
4.0
5.0
3.0
4.0
3.0
t2
t3
t5
t4
t6
t7
t8
t9
Timing diagram
Copyright 2010-2011 by Daniel D. Gajski
11
Master-slave flip-flops
Master-slave flip-flops
X
D Q1n
4.0/3.0
C
Q1s
D Q2n
4.0/3.0
C
4.0/3.0
C
Q2s
4.0/3.0
C
D Q3n
4.0/3.0
C
Q3s
4.0/3.0
C
Clk
Logic schematic
Clk
X
Q1m
3.0
4.0
Q1s
4.0
3.0
Q2m
5.0
4.0
Q2s
4.0
Q3m
3.0
5.0
4.0
Q3s
4.0
t0
t1
t2
t3
t4
t5
t6
t7
Timing diagram
Copyright 2010-2011 by Daniel D. Gajski
12
Flip-flop types
Flip-flop
name
Flip-flop
symbol
SR
Clk
R
Characteristic
table
S
0
0
1
1
R
0
1
0
1
Characteristic
equation
Q(next)
Q
0
1
NA
Q(next)=S+RQ
SR=0
Excitation
table
Q
0
0
1
1
Q(next)
0
1
0
1
S
0
1
0
X
R
X
0
1
0
S,R=1,0
S=0
R=0
State diagram
Q=1
Q=0
S,R=0,1
Q(next)
0
1
0
1
Clk
Q(next)=D
Q
0
0
1
1
Q(next)
0
1
0
1
D
0
1
0
1
D=1
D=0
State diagram
D=1
Q=1
Q=0
D=0
Note: For master-slave flip-flops data inputs must satisfy set-up and hold time constraints.
Copyright 2010-2011 by Daniel D. Gajski
13
PRS
D
Q
CLR
PRS
Graphic symbol
D latch
14
Summary
Characteristic tables
Characteristic equations
State diagrams
Timing diagrams
15