You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

Flip-flops and latches are the building blocks of sequential logic circuits. These devices store and control digital information, allowing circuits to remember previous states and make decisions based on past inputs.

Understanding flip-flops and latches is crucial for designing memory elements and synchronous systems. We'll explore different types, their triggering methods, and timing constraints, which are essential for creating reliable digital circuits.

Latches and Flip-flops

SR Latch

Top images from around the web for SR Latch
Top images from around the web for SR Latch
  • Consists of two cross-coupled NOR gates or NAND gates
  • Has two inputs: Set (S) and Reset (R)
  • When S=1 and R=0, the latch is set (Q=1)
  • When S=0 and R=1, the latch is reset (Q=0)
  • When S=0 and R=0, the latch maintains its previous state
  • Avoid the invalid state where S=1 and R=1, as it leads to an undefined output
  • Used in applications where the output should be maintained even after the inputs are removed

D Latch

  • Has a single data input (D) and an enable input (E)
  • When E=1, the output (Q) follows the input (D)
  • When E=0, the latch maintains its previous state, regardless of changes in D
  • Transparent when E=1, as the output directly reflects the input
  • Used in applications where data needs to be captured and held based on an enable signal

D Flip-flop

  • version of the
  • Captures the input (D) at the rising or falling edge of the
  • Maintains the captured value until the next active clock edge
  • Commonly used in synchronous sequential circuits
  • Provides a stable output during the entire clock cycle

JK Flip-flop

  • Has two inputs: J (set) and K (reset)
  • Behaves similarly to an SR flip-flop, but avoids the invalid state
  • When J=1 and K=0, the flip-flop is set (Q=1) on the active clock edge
  • When J=0 and K=1, the flip-flop is reset (Q=0) on the active clock edge
  • When J=0 and K=0, the flip-flop maintains its previous state
  • When J=1 and K=1, the flip-flop toggles its state on each active clock edge
  • Widely used in and state machines

T Flip-flop

  • Has a single input: T (toggle)
  • Toggles its state (Q) on each active clock edge when T=1
  • Maintains its previous state when T=0
  • Can be constructed using a with J and K connected together
  • Used in frequency dividers and binary counters

Triggering Methods

Edge-Triggered

  • Flip-flops respond to the rising (positive) or falling (negative) edge of the clock signal
  • Rising edge-triggered: Output changes only on the low-to-high transition of the clock
  • Falling edge-triggered: Output changes only on the high-to-low transition of the clock
  • Ensures that the output changes only at specific instances, providing synchronization
  • Commonly used in synchronous sequential circuits

Level-Triggered

  • Latches respond to the level (high or low) of the clock or enable signal
  • When the clock or enable is high, the latch is transparent, and the output follows the input
  • When the clock or enable is low, the latch maintains its previous state
  • Latches are sensitive to input changes throughout the entire clock or enable period
  • Used in asynchronous sequential circuits or for temporary data storage

Clock Signal

  • Periodic signal that controls the timing and synchronization of sequential circuits
  • Determines when flip-flops and latches capture and update their outputs
  • Rising edge: Transition from low to high (0 to 1)
  • Falling edge: Transition from high to low (1 to 0)
  • Clock period: Time between two consecutive rising (or falling) edges
  • Clock frequency: Number of clock cycles per second (measured in Hz)

Timing Constraints

Setup Time

  • Minimum time for which the input data must be stable before the active clock edge arrives
  • Ensures that the input data is properly captured by the flip-flop
  • Violating the can lead to metastability and unpredictable behavior
  • Denoted as tsetupt_{setup} in and specifications
  • Typically in the range of a few nanoseconds (ns) for modern digital circuits

Hold Time

  • Minimum time for which the input data must remain stable after the active clock edge
  • Ensures that the flip-flop has sufficient time to latch the input data
  • Violating the can cause the flip-flop to capture incorrect data
  • Denoted as tholdt_{hold} in timing diagrams and specifications
  • Usually shorter than the setup time, often in the range of picoseconds (ps) to nanoseconds (ns)
  • Meeting setup and hold time requirements is crucial for reliable operation of sequential circuits
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary