Synchronous Sequential Logic
Synchronous Sequential Logic
D=JQ′+K′Q
When J=1 and K=0, D=Q′+Q=1, so the next clock edge sets the output
to 1.
When J=0 and K=1, D=0, so the next clock edge resets the output to 0.
When both J=K=1 and D=Q′ the next clock edge complements the
output.
When both J=K=0 and D=Q, the clock edge leaves the output
unchanged.
T Flip-Flop (Toggle)
The T (toggle) flip-flop is a complementing flip-flop and can be
obtained from a JK flip-flop when inputs J and K are tied together.
When T=0 (J=K=0), a clock edge does not change the output.
When T=1 (J=K=1), a clock edge complements the output.
The complementing flip-flop is useful for designing binary counters.
The T flip-flop can be constructed with a D flip-flop and an exclusive-
OR Gate.
The expression for the D input is
D=T⊕Q=TQ′+T′Q
When T=0, D=Q and there is no change in the output.
When T=1, D=Q′ and the output complements.
The graphic symbol for this flip-flop has a T symbol in the input.
Characteristic Tables
A characteristic table defines the logical properties of a flip-flop by
describing its operation in tabular form.
They define the next state (i.e., the state that results from a clock transition)
as a function of the inputs and the present state.
Q(n) refers to the present state (i.e., the state present prior to the application
of a clock edge).
Q(n+1) is the next state one clock period later.
Note: The clock edge input is not included in the characteristic table, but is
implied to occur between times n and n+1.
Thus, Q(n) denotes the state of the flip-flop immediately before the clock
edge,
and Q(n+1) denotes the state that results from the clock transition.
JK Flip-Flop Characteristic table
D Flip-Flop Characteristic table
D Qn Qn+1
0 0 0
1 1 1
T Qn Qn+1
0 0 0
1 1 0
Characteristic Equations
The logical properties of a flip-flop can be expressed algebraically with
a characteristic equation.
• For the D flip-flop, Q(t+1)=D.
• For the JK flip-flop, Q(t+1)=JQ′+K′Q, derived from the characteristic
table
• For the T flip-flop, Q(t+1)=T⊕Q=TQ′+T′Q
Direct Inputs
Some flip-flops have asynchronous inputs that are used to force the flip
flop to a particular state independently of the clock.
• The input that sets the flip-flop to 1 is called preset or direct set.
• The input that clears the flip-flop to 0 is called clear or direct reset.
• When power is turned on in a digital system, the state of the flip-flops
is unknown. The direct inputs are useful for bringing all flip-flops in
the system to a known starting state prior to the clocked operation.
A positive-edge-triggered D flip-flop with active-low asynchronous
reset is shown
The graphic symbol for the D flip-flop with a direct reset has an
additional input marked with R.
The bubble along the input indicates that the reset is active at the logic-0
level.
Flip-flops with a direct set use the symbol S for the asynchronous set
input.
• When R=0, the output is reset to 0. This state is independent of the
values of D or Clk.
• Normal clock operation can proceed only after the reset input goes to
logic 1.
• The value in D is transferred to Q with every positive-edge clock
signal, provided that R=1.