Sequential Circuits in Digital Electronics
1. Introduction
A sequential circuit is a digital electronic circuit whose output depends on both the current inputs and the previous state of the circuit.
Unlike combinational circuits, sequential circuits have memory elements that allow them to store information. This makes them useful for systems that need to remember data, count events, or perform operations in a particular sequence.
Sequential circuits are used in computers, digital clocks, counters, registers, memory systems, and microcontrollers.
Examples include:
- Latches
- Flip-flops
- Registers
- Counters
- Shift registers
- Sequence detectors
2. Characteristics of Sequential Circuits
The main characteristics of sequential circuits are:
- Memory: They can store binary information.
- State-dependent output: Their output may depend on both current inputs and the stored state.
- Feedback: Internal signals may feed back into the circuit to maintain or update its state.
- Clock operation: Many sequential circuits use a clock signal to control when their state changes.
- State transitions: The circuit moves from one state to another based on its inputs and, in clocked circuits, the active clock event.
3. Block Diagram of a Sequential Circuit
Input Signals
Data and control signals
Combinational Logic
Calculates the next state and output
Memory Elements
Latches or flip-flops store the state
Stored State and Output
The stored state feeds back into the logic to determine future behavior.
The memory elements retain the circuit's state. The combinational logic uses this stored state and the current inputs to determine the next state.
4. Difference Between Combinational and Sequential Circuits
| Feature | Combinational circuit | Sequential circuit |
|---|---|---|
| Output depends on | Current inputs | Current inputs and stored state |
| Memory | No | Yes |
| Feedback | Not required | Commonly used |
| Clock | Not required for logical operation | Used in synchronous circuits |
| Main components | Logic gates | Logic gates and memory elements |
| Examples | Adders, multiplexers, decoders | Flip-flops, counters, registers |
The main difference is that a combinational circuit does not remember previous states, while a sequential circuit can retain information from earlier operations.
5. Types of Sequential Circuits
Sequential circuits are classified into two main types:
- Synchronous sequential circuits: State changes are controlled by a clock signal.
- Asynchronous sequential circuits: State changes occur in response to input changes without waiting for a common clock event.
A. Synchronous sequential circuits
In synchronous circuits, memory elements typically update their state at a specified clock edge, such as the rising or falling edge.
Examples include clocked flip-flops, synchronous counters, and processor registers.
B. Asynchronous sequential circuits
In asynchronous circuits, state changes can occur when inputs change, without being synchronized to a common clock.
These circuits can respond quickly, but they require careful design to avoid timing problems and unwanted state transitions.
6. Latches
A latch is a basic memory circuit that stores one binary bit, either 0 or 1. It is generally level-sensitive, meaning its output can respond to input changes while its enable or control signal is active.
Latches are fundamental building blocks of sequential circuits.
A. SR latch
An SR latch stands for Set-Reset latch. It has two inputs:
- S (Set): Sets the output to
1. - R (Reset): Resets the output to
0.
It stores its state when neither input is activated.
For a conventional NOR-based SR latch, the truth table is:
| S | R | Next output | Operation |
|---|---|---|---|
| 0 | 0 | Previous | Hold |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Invalid | Forbidden condition |
The condition is forbidden for the conventional NOR-based SR latch because both outputs are forced low, violating the normal complementary-output relationship. Other SR latch implementations, such as NAND-based versions, have different input polarities.
B. D latch
A D latch, also called a Data latch, has a data input and an enable input .
- When , the output follows the data input.
- When , the latch holds its previously stored value.
| Enable | Data | Output |
|---|---|---|
| 0 | X | Previous |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Here, X means the data input can be either 0 or 1 because it does not affect the held output.
D latches are used in temporary data storage and in circuits where information must be retained while an enable signal is inactive.
7. Flip-Flops
A flip-flop is a memory element that stores one binary bit. Unlike a level-sensitive latch, a typical edge-triggered flip-flop updates its state at a specific transition of the clock signal.
The clock transition may be:
- Rising edge: Clock changes from
0to1. - Falling edge: Clock changes from
1to0.
Flip-flops are widely used in registers, counters, digital clocks, and processor circuits.
A. SR flip-flop
An SR flip-flop has Set and Reset inputs and usually responds to them at an active clock edge.
| S | R | Next state | Operation |
|---|---|---|---|
| 0 | 0 | Previous | Hold |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Invalid | Forbidden condition |
The exact behavior depends on the flip-flop's implementation and input polarity.
B. D flip-flop
A D flip-flop stores the value present at its data input when the active clock edge occurs.
Its characteristic equation is:
This means the next stored value becomes equal to the data input at the active clock edge.
| D | Next state |
|---|---|
| 0 | 0 |
| 1 | 1 |
D flip-flops are commonly used in data registers, pipeline stages, and memory circuits.
C. JK flip-flop
A JK flip-flop improves on the conventional SR flip-flop by providing a defined behavior when both inputs are 1.
| J | K | Next state | Operation |
|---|---|---|---|
| 0 | 0 | Previous | Hold |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Its characteristic equation is:
When both and are 1, the output changes to its complement at the active clock event. JK flip-flops can therefore be used in counter and control circuits.
D. T flip-flop
A T flip-flop, or Toggle flip-flop, changes its output when and holds its state when .
| T | Next state | Operation |
|---|---|---|
| 0 | Previous | Hold |
| 1 | Toggle |
Its characteristic equation is:
T flip-flops are useful in binary counters and frequency-divider circuits because each active toggle event reverses the output state.
8. Difference Between Latches and Flip-Flops
| Feature | Latch | Flip-flop |
|---|---|---|
| Sensitivity | Level-sensitive | Usually edge-triggered |
| Control | Enable signal | Clock signal |
| State changes | While enabled | At the active clock edge |
| Main use | Temporary storage | Synchronous storage |
| Example | D latch | D flip-flop |
Both latches and flip-flops store one bit, but their timing behavior differs.
9. Registers
A register is a group of flip-flops used to store multiple binary bits. Each flip-flop typically stores one bit, so an -bit register requires flip-flops.
For example, a 4-bit register stores four binary digits:
Input bits: 1 0 1 1
↓ ↓ ↓ ↓
┌─────────────┐
Clock ──────►│ 4-bit │
│ Register │
└─────────────┘
↓ ↓ ↓ ↓
Output bits: 1 0 1 1
When the register's flip-flops receive their active clock edge, they capture their respective input bits, subject to their setup and hold timing requirements.
Registers are used in:
- CPU data storage
- Temporary storage of calculation results
- Instruction processing
- Data transfer between circuit components
- Digital communication systems
10. Shift Registers
A shift register is a sequential circuit that stores binary data and shifts it between flip-flops with each active clock event.
In a typical shift register, the output of one flip-flop connects to the input of the next.
The four common types are:
| Type | Full form | Function |
|---|---|---|
| SISO | Serial-In Serial-Out | Accepts and outputs one bit at a time |
| SIPO | Serial-In Parallel-Out | Accepts serial data and provides parallel outputs |
| PISO | Parallel-In Serial-Out | Accepts parallel data and outputs it serially |
| PIPO | Parallel-In Parallel-Out | Accepts and outputs multiple bits together |
Shift registers are used for serial communication, data conversion, temporary storage, and digital signal processing.
11. Counters
A counter is a sequential circuit that counts clock events or other specified signal transitions. It is constructed using flip-flops and associated logic.
A. Asynchronous counter
An asynchronous counter, also called a ripple counter, uses the output of one flip-flop to trigger the next stage.
The state changes ripple through the stages, so the flip-flops do not all update directly from the same clock signal.
B. Synchronous counter
A synchronous counter supplies a common clock to all its flip-flops. Its state transitions occur together at the active clock edge, although small propagation delays still exist.
Example: 2-bit binary counter
A 2-bit counter has four possible states:
| Clock event | Decimal value | ||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 2 | 1 | 0 | 2 |
| 3 | 1 | 1 | 3 |
| 4 | 0 | 0 | 0 |
The counter repeats the sequence 00 → 01 → 10 → 11 → 00.
A counter with flip-flops can represent up to distinct binary states.
Counters are used in digital clocks, event counters, timers, frequency dividers, and control systems.
12. Timing Concepts in Sequential Circuits
Sequential circuits must meet specific timing requirements to operate reliably.
A. Clock signal
A clock is a repeating digital signal used to coordinate state changes in synchronous circuits.
Clock waveform
A clock alternates between LOW and HIGH levels. Edge-triggered flip-flops respond to the designated edge.
B. Setup time
Setup time is the minimum period for which the input data must remain stable before the active clock edge.
C. Hold time
Hold time is the minimum period for which the input data must remain stable after the active clock edge.
If setup or hold requirements are violated, a flip-flop may enter a metastable state, where its output takes an unpredictable amount of time to settle to a valid logic level.
D. Propagation delay
Propagation delay is the time taken for a change at an input or clock event to produce the corresponding output change.
Propagation delay affects the maximum reliable operating speed of a sequential circuit.
13. Applications of Sequential Circuits
Sequential circuits are essential in digital systems that must store information or maintain a sequence of operations.
- Computers and processors: Registers store data, instructions, and intermediate results.
- Digital clocks: Counters track seconds, minutes, and hours.
- Memory systems: Storage elements retain binary information.
- Communication systems: Shift registers support serial data transfer.
- Automation: State-based controllers manage the sequence of machine operations.
- IoT devices: Counters and registers help track events, store readings, and coordinate operations.
- Traffic-light controllers: State machines sequence the red, yellow, and green lights.
- Frequency division: Flip-flops and counters generate lower-frequency signals from a clock.
14. Summary of Sequential Circuits
| Component | Main function |
|---|---|
| SR latch | Stores one bit using Set and Reset |
| D latch | Stores data while disabled and follows input while enabled |
| SR flip-flop | Stores one bit using Set and Reset inputs |
| D flip-flop | Captures data at an active clock edge |
| JK flip-flop | Supports hold, set, reset, and toggle |
| T flip-flop | Toggles its state when enabled |
| Register | Stores multiple bits |
| Shift register | Shifts stored binary data |
| Counter | Counts clock events or signal transitions |
Key point: A sequential circuit has memory, so its behavior depends on its stored state as well as its current inputs. Flip-flops, registers, counters, and state machines use this property to perform tasks that combinational circuits alone cannot perform.