Professional Documents
Culture Documents
Chen, Yuanyuan
chenyuanyuan@scu.edu.cn
1
• Examples
2
3
Problem
• Implement a loop counter that counts 0 to 9 and
then goes around. The results are shown by one 7-
segment display.
n-inputs m-outputs
Combinational
Circuit Storage
Elements Present
Next state
state
Sequential Circuit
5
Sequential logic circuit
6
7
Flip-flops
• Flip-flops (latch)
Have two stable states.
It can be used to store state information.
The basic storage element in sequential logic.
• Type of FF
SR
D
JK
T
• Type of triggering
Untriggered (asynchronous)
Level-triggered (C=1)
Edge-triggered (rising or falling edge of Clock)
8
A latch is a temporary storage device that has two
stable states (bistable). It is a basic form of memory.
R S
Q Q
Q Q
S R
NOR Active-HIGH Latch NAND Active-LOW Latch
9
• RS
Logic symbol
“NAND”version
Logic symbol
“NOR”version
10
Edge triggered D Flip-flop
11
• Edge Triggered Flip-flops
• An edge-triggered flip-flop changes states either at the positive edge
(rising edge) or at the negative edge (falling edge) of the clock pulse on
the control input.
e.g.
7 Complete
CPthe positive edge triggered D flip-flop’timing diagram.
8
CP
1 2 3 4
0
t
D
0
t
Q
0
t
Edge triggered T Flip-flop
13
Edge-triggered T Flip flop
15
Edge-triggered JK Flip flop
CP
J
K
Q
Edge triggered SR Flip-flop
17
Characteristic equations compare
19
20
exercise
1. Complete the positive edge triggered D flip-flop’ timing diagram.
CP
Q
exercise
1. Complete the positive edge triggered D flip-flop’ timing diagram.
CP
CP
Q
22