Sequential circuits are digital circuits whose output depends on both the present inputs and the previous state stored in memory elements. The stored state determines the circuit's next state, allowing it to remember past behaviour.
- The memory elements are implemented using flip-flops and latches, which store binary values and maintain their state even when the inputs change.
- Feedback is used to pass the stored state back into the logic along with the new inputs.
- They are commonly used to implement state machines, timers, counters, registers and memory elements, and are essential components in digital systems design.

Sequential Circuit Basics
Combinational vs Sequential Circuits: Combinational circuits have no memory and depend only on current inputs, while sequential circuits use storage to depend on past inputs as well.
Memory Elements
Circuits that store a single bit and form the building blocks of sequential logic.
- Latches: Level-sensitive storage elements that hold one bit and change state whenever the enable input is active, built from cross-coupled gates.
- One bit memory cell: A basic bistable element made of two cross-coupled inverters that holds a stable 0 or 1 until it is deliberately changed.
Flip-Flops
Flip-Flops (Types and Conversions) are edge-triggered one-bit storage elements. They are classified by how the inputs control the output:

- SR Flip-Flops: Sets or resets the output using the S and R inputs and holds its state when both are 0, while S=R=1 is an invalid condition.
- JK Flip-Flops: Removes the invalid state of the SR flip-flop by toggling the output when J=K=1, making it the most versatile flip-flop.
- D Flip-Flops: Transfers the D input to the output on the clock edge, storing one bit and avoiding invalid input combinations.
- T Flip-Flops: Toggles its output on every clock pulse when T=1 and holds it when T=0, which makes it ideal for counters.
- Master Slave JK Flip Flop: Uses two cascaded latches on opposite clock levels to avoid the race-around condition of a JK flip-flop when J=K=1.
Types of Sequential Circuits
- Synchronous Sequential Circuits: State changes only at clock pulses, with flip-flops driven by a common clock, which keeps timing predictable and design simpler.
- Asynchronous Sequential Circuits: State changes immediately as inputs change, with no clock signal, making it faster but more prone to hazards and race conditions.
- Synchronous vs Asynchronous Sequential Circuits: Compares clocked and unclocked circuits in terms of speed, design complexity, and reliability.
Design
State Reduction and State Assignment: Removes redundant states from a state table to reduce the number of flip-flops, then assigns binary codes to the remaining states.
Quiz:Sequential Circuits

