Building Blocks of Sequential Circuits
In digital systems, we have two types of circuits:
🔹 Combinational circuits → Output depends only on current input. (No memory)
🔹 Sequential circuits → Output depends on current input + past history (needs memory).
To build Sequential Circuits, we need a way to store a bit of information (0 or 1).
That's exactly what Flip-Flops do:
A Flip-Flop is a bistable multivibrator (fancy word meaning it has two stable states, 0 and 1).
✅ Example: If a flip-flop stores 1, it will stay 1 until an input/clock event makes it 0.
Can stay in one of two stable states (0 or 1).
Many flip-flops change state only on clock edges (rising or falling).
Can hold data until explicitly changed.
Registers, RAM, and even CPUs rely on flip-flops.
Inputs: S (Set), R (Reset)
Output: Q, Q′ (always complementary)
| S | R | Q(next) |
|---|---|---|
| 0 | 0 | No change |
| 0 | 1 | Reset (Q=0) |
| 1 | 0 | Set (Q=1) |
| 1 | 1 | Invalid |
👉 Used for simple ON/OFF control.
Improvement of SR (no invalid state)
Inputs: J, K
| J | K | Q(next) |
|---|---|---|
| 0 | 0 | No change |
| 0 | 1 | Reset (Q=0) |
| 1 | 0 | Set (Q=1) |
| 1 | 1 | Toggle |
👉 Very flexible; used in counters.
Simplest and most widely used
Input: D (Data)
Output: follows D on the clock edge
| D | Q(next) |
|---|---|
| 0 | 0 |
| 1 | 1 |
👉 Stores the value of D when clock ticks.
👉 Used in registers and memory.
Input: T
Behavior:
👉 Used in frequency dividers, binary counters.
Group of flip-flops to store multi-bit data (e.g., 8 flip-flops = 1 byte).
Counting clock pulses (digital clocks, timers).
Basis of RAM and cache memory.
Used in finite state machines (FSMs).
Aligning signals with clock cycles.
Think of a Flip-Flop like a light switch:
That's why Flip-Flops are called memory cells of digital circuits.
A Flip-Flop is a 1-bit memory cell used in sequential circuits. It stores a binary value and updates only on certain input/clock conditions. All computer memory, registers, and counters are built using flip-flops.
In digital systems, we need a way to store 1 bit of data (0 or 1).
Combinational circuits cannot store data because they have no memory.
To build memory, we use Sequential Circuits, and the basic building block is the Flip-Flop.
The SR (Set-Reset) Flip-Flop is the simplest type of flip-flop.
It stores one bit and has two main actions:
That's why it's called Set-Reset Flip-Flop.
An SR Flip-Flop is a bistable device (two stable states) that:
Takes two inputs: S (Set) and R (Reset).
Produces two outputs: Q (main output) and Q′ (the complement).
Stores 1 bit of binary data.
👉 If S=1, the flip-flop is set (Q=1).
👉 If R=1, the flip-flop is reset (Q=0).
The SR flip-flop can be built using two cross-coupled NAND gates:
Each gate's output is fed back to the input of the other gate (feedback loop).
This feedback is what gives the flip-flop memory.
âš¡ Inputs: S and R
⚡ Outputs: Q and Q′ (Q-prime, the opposite of Q)
R=1, S=0 → Output Q=1, Q′=0.
This stores a 1.
We say the flip-flop is "Set".
S=1, R=0 → Output Q=0, Q′=1.
This stores a 0.
We say the flip-flop is "Reset".
Both inputs = 1 → Output remains in the previous state.
This is the memory feature: it holds its last value.
Both inputs = 0 → Both outputs become 1 (Q=1, Q′=1), which breaks the rule that Q and Q′ must be opposites.
This is undefined/forbidden.
| S | R | Q (next state) | Q′ (next state) | Description |
|---|---|---|---|---|
| 1 | 1 | No change | No change | Memory (hold) |
| 0 | 1 | 1 | 0 | Set |
| 1 | 0 | 0 | 1 | Reset |
| 0 | 0 | Invalid | Invalid | Forbidden |
Imagine a lamp controlled by SR Flip-Flop:
SR Flip-Flop is the simplest flip-flop (basis of all others).
Has two stable states: Set (Q=1) and Reset (Q=0).
Has one invalid condition (S=R=0).
It is the fundamental storage element in sequential logic.
The SR Flip-Flop is like a switch with memory.
Set = Turn ON (store 1)
Reset = Turn OFF (store 0)
No change = Remember last state
Invalid = Error (don't use)
🔄 Flip-Flops are the basic memory elements in digital systems, storing 1-bit of information.
🔧 SR Flip-Flop is the simplest type, with Set and Reset inputs to control the stored value.
âš¡ All computer memory, registers, and counters are built using flip-flops as the fundamental building blocks.
🧠They enable sequential circuits to have memory, making them essential for building complex digital systems.
Flip-flops bridge the gap between combinational and sequential circuits, providing the memory needed for modern computing systems.