Digital Logic Systems Unit 5: Sequential Circuits
Subject: Digital Logic Systems
Examine level vs. edge triggering, SR/JK/D/T flip-flops, Master-Slave JK race-around resolution, registers (SISO, SIPO, PISO, PIPO), Ring/Johnson counters, synchronous counter design flow, and Mealy/Moore FSMs.
Concept Summary
Key Revision Rules & Formulas
- Latches (level-sensitive, transparent) vs. Flip-Flops (edge-triggered).
- Flip-flop characteristics: SR (unstable at 11), JK (toggles at 11, subject to race-around), D (copies input), T (toggles).
- Master-Slave JK: resolves race-around by decoupling input sampling (master, clock high) and output updates (slave, clock low).
- Shift register counters: Ring Counter (N states) vs. Johnson Counter (2N states).
- Synchronous counter design: Present/Next State Table -> Excitation mapping -> K-map minimization -> Logic implementation.
- Finite State Machines (FSM): Mealy outputs depend on state + inputs; Moore outputs depend on state only.
Common Exam Pitfalls
- Unused states lockout: not checking if unused power-up states lead back to the main cycle (self-starting check).
- Mealy output glitches: Mealy machine outputs are sensitive to input noise spikes, unlike Moore machines.
Sample Practice Questions
Question 1: The main difference between a latch and a flip-flop is:
- Latches have no feedback loops.
- Latches are level-sensitive, whereas flip-flops are edge-triggered.
- Flip-flops are combinational, whereas latches are sequential.
- Latches require a high-frequency clock.
Explanation: A latch monitors its inputs and updates its output continuously as long as the enable/clock signal is at a active level. A flip-flop only updates its output at the rising or falling edge of the clock signal.
Question 2: What is the invalid state for an SR Latch?
- $S=0, R=0$
- $S=0, R=1$
- $S=1, R=0$
- $S=1, R=1$
Explanation: When both $S$ and $R$ are active ($1$), both outputs $Q$ and $Q'$ are forced Low simultaneously, violating the complementary relationship $Q = (Q')'$. When inputs go back to $0$, the final state is unpredictable (race condition).
Question 3: The characteristic equation of the SR flip-flop is:
- $Q_{next} = S + R'Q$
- $Q_{next} = S' + RQ$
- $Q_{next} = S + RQ'$
- $Q_{next} = S \oplus R \oplus Q$
Explanation: $Q_{next} = S + R'Q$. If $S=1, R=0$, $Q_{next}=1$. If $S=0, R=1$, $Q_{next}=0$. If $S=0, R=0$, $Q_{next}=Q$. (Note: $SR=0$ must be satisfied).
Question 4: Which flip-flop resolves the invalid state of the SR flip-flop by toggling the output?
- D Flip-Flop
- T Flip-Flop
- JK Flip-Flop
- Master-Slave SR Flip-Flop
Explanation: The JK flip-flop uses feedback connections so that when $J=K=1$, the output toggles to its complement: $Q_{next} = Q'$.
Question 5: The characteristic equation of the JK flip-flop is:
- $Q_{next} = JQ' + K'Q$
- $Q_{next} = J'Q + KQ'$
- $Q_{next} = JQ + K'Q'$
- $Q_{next} = J \oplus K \oplus Q$
Explanation: $Q_{next} = JQ' + K'Q$. When $J=K=1$, $Q_{next} = 1\cdot Q' + 0\cdot Q = Q'$ (toggles). When $J=K=0$, $Q_{next} = 0\cdot Q' + 1\cdot Q = Q$ (holds).
Question 6: The race-around condition occurs in a level-triggered JK flip-flop when:
- $J=0, K=0$
- $J=1, K=1$ and clock pulse width $t_w >$ propagation delay $t_{pd}$ of the gates.
- The clock frequency is too low.
- The supply voltage drops.
Explanation: If the clock pulse remains High ($t_w$) longer than the propagation delay of the gates, the toggled output will feed back and toggle again, repeating continuously and resulting in an unpredictable final state.
Question 7: How does a Master-Slave JK Flip-Flop eliminate the race-around condition?
- By using a delay line.
- By ensuring the slave only updates its state when the clock pulse goes Low, isolating inputs from outputs during the transition.
- By running at lower voltages.
- By disabling the feedback path.
Explanation: The Master-Slave JK FF operates in two steps. The Master accepts inputs when the clock is High, but the Slave output is isolated because it is driven by the inverted clock. When the clock goes Low, the Master is disabled, and the Slave copies the Master's state. The output can change at most once per clock cycle.
Question 8: The characteristic equation of the D flip-flop is:
- $Q_{next} = D$
- $Q_{next} = D'$
- $Q_{next} = DQ + D'Q'$
- $Q_{next} = D \oplus Q$
Explanation: The D (Data or Delay) flip-flop transfers its input $D$ to the output $Q_{next}$ at the clock edge: $Q_{next} = D$.
Question 9: The characteristic equation of the T flip-flop is:
- $Q_{next} = T$
- $Q_{next} = T \oplus Q$
- $Q_{next} = TQ$
- $Q_{next} = T'Q$
Explanation: The T (Toggle) flip-flop holds state if $T=0$ ($Q_{next}=Q$) and complements state if $T=1$ ($Q_{next}=Q'$). This is represented by the XOR gate: $T \oplus Q = TQ' + T'Q$.
Question 10: What are the excitation values $S$ and $R$ required to transition a flip-flop from state $Q=0$ to $Q_{next}=0$?
- $S=0, R=X$
- $S=X, R=0$
- $S=0, R=1$
- $S=1, R=0$
Explanation: To keep a state at $0$, we can either apply a Hold ($S=0, R=0$) or a Reset ($S=0, R=1$). Thus, $S$ must be $0$, while $R$ can be either $0$ or $1$ (represented as Don't Care $X$). Hence, $S=0, R=X$.