Edge Triggered Flip Flop
Edge Triggered Flip Flop
Edge Triggered Flip Flop
D Q
D S
C
C Q
Clock R
Symbol
Symbol of edge-triggered D flip-flop
D D
C C
Clock
ts th
tp
Sequential Circuit Description
Input Equations
State Table
State Diagram
Well use the following example
Sequential Circuit Description
X A
D
C A
D B
C B
Clock
Y
Sequential Circuit Description
Next state Present state
X A
D
input C A
D B
C B
Clock
Y output
At the clock trigger, the next state
will be read and transferred to the
present state
Input Equations
A B X A B Y
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 0 0 1
0 1 1 1 1 0
1 0 0 0 0 1
1 0 1 1 0 0
1 1 0 0 0 1
1 1 1 1 0 0
State Diagram
1/0
0/0
00 01
0/1
0/1 1/0
0/1
10 11
1/0
1/0
Mealy and Moore Models
C Anext = Apresent + XY
Z = Apresent
Clock
X Y Apresent Anext
0 0 0 0 11
00,01,10
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
0/0 1/1
1 0 1 1
1 1 0 1
1 1 1 1 00,01,10,11
Moore Model
Some
Inputs Some Combinational
Combinational Circuit
Circuit Outputs
Flip-flops
Mealy Model
Some
Inputs Some Combinational
Combinational Circuit
Circuit Outputs
Flip-flops
Mealy and Moore Model
State Diagrams
1/0
0/0
00 01
Moore input
0/1
0/1 1/0
input 0/1
output
11 10 11
00,01,10 1/0
1/0
0/0 1/1 state
0/0 1/0
0/0 1/1
0/0
Assign States
4 states, so we need 2 bits
0/0 1/0
0/0 1/1
0/0
State Table
A B X A B Y
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 0 0 0
0 1 1 1 0 0
1 0 0 1 1 0
1 0 1 1 0 0
1 1 0 0 0 0
1 1 1 0 1 1
Input Equations
Anext = ABX + AB
Y = ABX
Circuit Diagram
X A
D
C A
Exercise: D B
Fill in the input to
Flip-Flop B
C B
Clock