Skip to content

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:
    1. SR Latch,

    2. D Latch

  • Built using NAND/NOR gates

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:

  1. NOR-based SR latch (active-HIGH)
    • S = 1 β†’ Set
    • R = 1 β†’ Reset
    • S = R = 0 β†’ Hold
    • S = R = 1 β†’ Invalid
  2. 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):

SRQ(next)Qβ€²(next)Operation
11Q(prev)Qβ€²(prev)Hold
0110Set
1001Reset
00XXInvalid

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.

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 **

  1. (NOR-based, active-HIGH SR core):
    • S = D Β· E
    • R = DΜ… Β· E
  2. (NAND-based, active-LOW SR core):
    • SΜ… = (D Β· E)Μ…
    • RΜ… = (DΜ… Β· E)Μ…

Operation:

  1. (NOR-based, active-HIGH SR core):
    • E = 1 β†’ Q follows D (Transparent mode)
    • E = 0 β†’ Q holds previous value
  2. (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:

EDQ(next)
0XQ(prev)
100
111

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

FeatureSR LatchD Latch
InputsS, RD, E
Invalid StateYesNo
Ease of useLowHigh
Practical useRareCommon

Best opinion: SR latch is conceptual, D latch is practical. Real systems almost always use D-based storage.

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 EdgeDQ(next)
↑00
↑11
  • 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

  • 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

  • Input: D
  • Output follows input on clock edge
  • Operation: Q = D
  • Advantage: Simple, widely used
  • Application: Registers, memory elements
  • Input: T
  • Operation
    • T=0 β†’ No change

    • T=1 β†’ Toggle

  • Application: Counters

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 CLK

Summary Table:

DeviceBits StoredTriggeringUse Case
Latch1LevelSimple data storage
Flip-Flop1EdgeRegisters, counters
Shift RegisternEdge (Clock)Data shift, storage, I/O