Related Concepts: 5.01 Sequential Logic Fundamentals, Latches & Flip-Flops (SR & JK) | 5.02 Flip-Flop Variants (Master-Slave JK, T & D Flip-Flops) & Triggering Mechanics | 5.08 Flip-Flop Mathematical Derivations & Transformation Proofs
5.07 Sequential Architecture, Triggering Mechanics & Race-Around Analysis
Overview
Sequential circuits combine combinational logic with memory storage elements in a closed feedback loop. Understanding the internal gate-level construction of edge-triggered devices, clock setup/hold windows, and eliminating the unstable Race-Around Condition via Master-Slave architectures is fundamental to digital system design.
1. Generic Sequential Circuit Architecture [PYQ: 2017, 2019]
A sequential circuit consists of a Combinational Logic Block and Memory Elements (latches or flip-flops) connected in a closed feedback loop.
+---------------------------------------+
| COMBINATIONAL LOGIC BLOCK |
External Inputs -⇒| |-⇒ External Outputs
X(t) | Next-State Equations Y(t) = f(X, Q) | Z(t) = g(X, Q)
+---------------------------------------+
| ^
| Next State | Present State
v Y(t) | Q(t)
+---------------------------------------+
| MEMORY ELEMENTS |
System Clock ----⇒| (Flip-Flops / Latches) |
CLK +---------------------------------------+
1.1 Structural Components
-
- Inputs : External digital signals applied to the circuit.
-
- Combinational Logic: Computes next-state signals and external outputs .
-
- Memory Elements: Array of flip-flops storing the present state .
-
- Feedback Path: Returns to combinational inputs, establishing memory hysteresis.
-
- Clock Line (): Synchronizes state updates across all memory elements.
2. Clock Triggering Mechanics & Setup/Hold Windows
| Triggering Mode | Waveform Condition | Operational Behavior |
|---|---|---|
| Active-HIGH Level | Output continuously tracks inputs while clock is HIGH. | |
| Active-LOW Level | Output continuously tracks inputs while clock is LOW. | |
| Positive Edge (Rising) | Output transitions strictly at the rising edge instant. | |
| Negative Edge (Falling) | Output transitions strictly at the falling edge instant. |
2.1 Setup () and Hold () Time Constraints
Key Exam Checkpoint: Timing Windows
* Setup Time (): Minimum time data input must remain stable BEFORE the active clock edge.
* Hold Time (): Minimum time data input must remain stable AFTER the active clock edge.
* Violation Result: Entering a metastable state where output oscillates unpredictably between and .
3. Internal Gate-Level Construction of Edge-Triggered D Flip-Flop [PYQ: 2015, 2016, 2017, 2019, 2022]
An edge-triggered D flip-flop uses three interconnected NAND-gate latches to sample input strictly during the rising edge of .
+------------+
D —⇒| NAND 1 |----+
| | | +------------+
CLK -⇒| NAND 2 |----+⇒| NAND 3 |---⇒ Output Q
+------------+ | (SR Latch) |
| +------------+
v ^
+------------+ |
| NAND 4 |--------------+---⇒ Output Q’
+------------+
3.1 Operational Phases
-
- : Gates 2 and 3 outputs are held at logic . The output SR latch holds its previous state .
-
- Transition: Gate 2 output drops to if , setting output . Gate 4 output drops to if , resetting output .
-
- (Level Held): Gate 2 or 4 locks out further changes in , rendering the device immune to input noise until the next clock edge.
4. In-Depth Race-Around Condition Analysis [PYQ: 2017, 2020, 2021]
4.1 The Timing Inequality
In a level-triggered JK flip-flop, setting causes output to toggle (). If clock pulse width exceeds propagation delay :
Output toggles continuously () during . The state when falls to is unpredictable.
4.2 Methods of Elimination
-
- Propagation Delay Increase: Ensure *(unrealistic in high-speed systems)*.
-
- Edge-Triggering: Sample inputs strictly at edge transitions.
-
- Master-Slave Architecture: Isolate input sampling from output updates using dual cross-coupled latches.
5. Master-Slave JK Flip-Flop NAND Logic Schematic [PYQ: 2015, 2019]
+-----------------------+ +-----------------------+
| MASTER LATCH | | SLAVE LATCH |
J -⇒| NAND 3 NAND 1 |---⇒ NAND 7 NAND 5 |---⇒ Q ----+
CLK ⇒| (CLK) | Y | (CLK’) | |
Q’ ⇒| NAND 4 NAND 2 |---⇒ NAND 8 NAND 6 |---⇒ Q’—+ |
+-----------------------+ Y’ +-----------------------+ | |
^ ^ ^ ^ | |
K -------|---------------+ | | | |
+--------------[ NOT Gate ]---+ | | |
(CLK’) +----------------+ |
|
5.1 Step-by-Step Operation Proof
- * (): Master latch active; update based on . Slave latch isolated (). Output remains constant.
- * (): Master latch turns OFF; Slave latch turns ON, loading to final output . Since Master is OFF, output cannot feed back to change , eliminating race-around completely.