Sequential Circuits Flip-Flops: Lecture 5 - 1.6-1.7
Sequential Circuits Flip-Flops: Lecture 5 - 1.6-1.7
sequential circuits
• adding state to combinational circuits
• clocks
Flip flops and flip-flops
sequential circuits •
•
a state-holding component
there are several of them: SR,D,JK and T
Lecture 5 — § 1.6-1.7 • excitation tables
Computer Science 218 designing a sequential circuit
• state tables and diagrams
Mike Feeley • some examples
S Q
• a bit better
• S – y = x´, x = y´ y x
>C
R – possible states are xy=01 or 10
•
– can’t set values
• D D Q
>C how about this?
• • if S=0 and R=0
• JK J Q
– x=Q´, Q=x´ S x
>C • if S=1 and R=0 what if S=1 and R=1?
• K
– Q = (R+x)´ = (R + (S+Q)´)´ = 1 Q Q = (1 + (1 + Q)´)´ = 0
R
– S→0, value is saved x = (1 + (1 + x)´)´ = 0
• T T Q
>C • if S=0 and R=1 don’t do this
– Q = (R+x)´ = (R + (S+Q)´)´ = 0
3 – R→0, value is saved 4
SR flip flop Edge-triggered flip flops
characteristic table S Q most common way to build synchronized flip-flop
>C
S R Q(t+1) • flip-flop latches on rising (falling) edge of clock
R
0 0 Q(t) S = set – rising edge is called positive, falling edge is called negative
0 1 0 R = reset
• holds value until clock starts next rise (or fall for negative)
1 0 1
1 1 ? how the flip flop latches
• setup time – before transition when input cannot change
add a clock S x • threshold voltage – transition
• so we can ignore propagation delays • hold time – after transition when input cannot change
C Q
• but when C=1, have the same problem R
• Q(t+1) = D
to leave state unchanged
• don’t pulse the clock
9 10
J
T Q Q(t) Q(t+1) J K Q(t) Q(t+1) T
K >C 0 0 0 x 0 0 0
0 1 1 x 0 1 1
1 0 x 1 1 0 1
1 1 x 0 1 1 0
13 14