Sequential Circuit
A Latch is a level-triggered bistable circuit that stores 1 bit of data==. ==Output changes as long as the control signal (Enable) is active.
Key Points:
- Level sensitive (transparent when enabled)
- Basic types:
-
SR Latch,
-
D Latch
-
-
Built using NAND/NOR gates
1. SR Latch
Section titled β1. SR LatchβAn SR Latch is a basic bistable memory circuit formed using cross-coupled NAND or NOR gates. It stores 1 bit of data.
SR Latch (NAND) Diagram:
βββββββββ βββββββββ S ---| |-------| |--- Q | NAND | | NAND | R ---| |---β | | βββββββββ | βββββββββ | β----------- Q'Inputs:
- S (Set) β sets Q = 1
- R (Reset) β resets Q = 0
Operations:
- NOR-based SR latch (active-HIGH)
- S = 1 β Set
- R = 1 β Reset
- S = R = 0 β Hold
- S = R = 1 β Invalid
- NAND-based SR latch (active-LOW) β your table
- S = 0 β Set
- R = 0 β Reset
- S = R = 1 β Hold
- S = R = 0 β Invalid
Truth Table (Nand-Based):
| S | R | Q(next) | Qβ²(next) | Operation |
|---|---|---|---|---|
| 1 | 1 | Q(prev) | Qβ²(prev) | Hold |
| 0 | 1 | 1 | 0 | Set |
| 1 | 0 | 0 | 1 | Reset |
| 0 | 0 | X | X | Invalid |
S-Set R-Reset
Key Points:
- Level sensitive
- Has an invalid condition
- Output depends on present input + previous state
- Used as foundation of all memory elements
SR Latch Significance
-
Basic 1-bit memory element.
- Stores data as long as power is on.
-
Building block for flip-flops and registers.
2. D Latch β (Better than SR Latch)
Section titled β2. D Latch β (Better than SR Latch)βA D Latch is a modified SR latch== that ==eliminates the invalid state by using a single data input (D).
A D Latch stores the value of D when Enable (E) is active, and holds the value when E is inactive.
D Latch (NAND) Diagram:
βββββββββ D ββββ¬βββββ| NAND |ββββββ | βββββββββ | | βΌ | βββββββββ βββββββββ | E βββββ| NAND |-------| NAND |βββ Q | | | | | | βββββββββ ββββ| | | | βββββββββ | βββββββββ | DΜ
βββββ΄ββββ| NAND |ββββββββββββββ βββββββββ β² | βββββββββββββ Q'**Equations **
- (NOR-based, active-HIGH SR core):
- S = D Β· E
- R = DΜ Β· E
- (NAND-based, active-LOW SR core):
- SΜ = (D Β· E)Μ
- RΜ = (DΜ Β· E)Μ
Operation:
- (NOR-based, active-HIGH SR core):
- E = 1 β Q follows D (Transparent mode)
- E = 0 β Q holds previous value
- (NAND-based, active-LOW SR core):
- E = 1 β Q follows D (Transparent mode)
- E = 0 β Q holds previous value
-
External behavior is identical in both cases
- Difference is only **internal active-HIGH vs active-LOW realization
Truth Table:
| E | D | Q(next) |
|---|---|---|
| 0 | X | Q(prev) |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
D-Data/Delay E-Enable/Disable (updating)
Why called D:
- Data β what you want to store
- Delay β output follows input after gate delay when enabled
Key Points:
- No invalid state
- Level sensitive
- More stable than SR latch
-
Used in registers and flip-flops
SR vs D Latch (Why D is Better)
Section titled βSR vs D Latch (Why D is Better)β| Feature | SR Latch | D Latch |
|---|---|---|
| Inputs | S, R | D, E |
| Invalid State | Yes | No |
| Ease of use | Low | High |
| Practical use | Rare | Common |
Best opinion: SR latch is conceptual, D latch is practical. Real systems almost always use D-based storage.
Flip-Flop
Section titled βFlip-FlopβA Flip-Flop is an edge-triggered bistable circuit that stores 1 bit of data== and changes state only on a clock edge (rising or falling). OR A flip-flop is a ==bistable sequential circuit that stores one bit (0 or 1)==. It ==changes state on a clock pulse.
Key Points:
- Edge sensitive (clock controlled)
- Types: SR, JK, D, T Flip-Flop
- Used in counters, registers, memory
Flip-Flop Significance
- Edge-triggered storage element.
-
Used in counters, registers, and sequential circuits.
- Essential for synchronous digital systems.
D Flip-Flop Symbol:
D βββββββββ β βββββββ CLK βββββΊβ DFF ββββ Q βββββββ β βββ Q'Characteristic Table (D Flip-Flop):
| CLK Edge | D | Q(next) |
|---|---|---|
| β | 0 | 0 |
| β | 1 | 1 |
1. SR Flip-Flop ==(SetβReset)==
Section titled β1. SR Flip-Flop ==(SetβReset)==β- Inputs: S (Set), R (Reset)
- Operation
- S=1, R=0 β Set (Q=1)
- S=0, R=1 β Reset (Q=0)
- S=0, R=0 β No change
-
S=1, R=1 β Invalid state
-
Limitation: Invalid input condition
2. JK Flip-Flop ==(J=Set and K=Reset)== β
Section titled β2. JK Flip-Flop ==(J=Set and K=Reset)== ββ- Improvement over SR flip-flop
- Inputs: J, K
- Operation
- J=1, K=0 β Set
- J=0, K=1 β Reset
- J=0, K=0 β No change
-
J=1, K=1 β Toggle
-
Advantage: No invalid state
3. D Flip-Flop ==(Data / Delay)== β
Section titled β3. D Flip-Flop ==(Data / Delay)== ββ- Input: D
- Output follows input on clock edge
- Operation: Q = D
- Advantage: Simple, widely used
- Application: Registers, memory elements
4. T Flip-Flop ==(Toggle)==
Section titled β4. T Flip-Flop ==(Toggle)==β- Input: T
- Operation
-
T=0 β No change
-
T=1 β Toggle
-
- Application: Counters
Shift Register
Section titled βShift RegisterβA Shift Register is a group of flip-flops connected in series, used to store and shift data bits left or right under clock control.
Key Points:
-
Made using D Flip-Flops
- Modes: SISO, SIPO, PISO, PIPO
- Used in data transfer, serialization, delay circuits
Modes:
- SISO β Serial In Serial Out
- SIPO β Serial In Parallel Out
- PISO β Parallel In Serial Out
- PIPO β Parallel In Parallel Out
Shift Register Significance
-
Stores multiple bits and shifts them serially or in parallel.
-
Used for data transfer (serial β parallel), temporary storage, and time delays.
- Common in communication interfaces and digital processing.
4-bit Serial-In Serial-Out (SISO) Diagram:
Data In β [DFF1] β [DFF2] β [DFF3] β [DFF4] β Data Out β β β β CLK CLK CLK CLKSummary Table:
| Device | Bits Stored | Triggering | Use Case |
|---|---|---|---|
| Latch | 1 | Level | Simple data storage |
| Flip-Flop | 1 | Edge | Registers, counters |
| Shift Register | n | Edge (Clock) | Data shift, storage, I/O |