1 / 19
Digital Logic Design (DLD)

Latches

Memory Elements in Sequential Circuits

Group Presentation
Faiza Jamil 055
Hashir Ahmed 048
Asbah Khan 034
Mustafa 029
Fasi Uddin 007
Irfan Jameel 011
Welcome slide. Presenter: Faiza Jamil begins the presentation.
Faiza Jamil BDA-25F-055 Introduction to Latches
01

Introduction to Latches

  • A latch is a temporary storage device
  • Stores 1 bit of data
  • Has two stable states — bistable
  • It is a sequential circuit
  • Output depends on:
    • Present input
    • Previous stored value
Definition

"A latch is a basic memory device used in digital electronics."

State 0
State 1
Good morning everyone. Today our topic is Latches in Digital Logic Design. A latch is a temporary memory device used to store one bit of data. It is called a bistable device because it has two stable states, either 0 or 1. Latches are sequential circuits because their output depends on both current input and previous stored value.
Faiza Jamil BDA-25F-055 Introduction to Latches
02

Why We Use Latches

💾
Temporary Data Storage
Hold data for short durations during processing
🔄
Holding Previous Values
Remember last state even after input changes
Synchronization
Align data flow between circuit stages
🧠
Memory Systems
Building blocks of RAM and registers
📦
Data Buffering
Smooth data transfer between components
Main Purpose
To remember data temporarily
We use latches because digital systems need memory elements. Latches store data temporarily and help circuits remember information even after input changes.
Faiza Jamil BDA-25F-055 Introduction to Latches
03

Types & Characteristics

SR SR Latch — Set Reset
GSR Gated SR Latch
D D Latch — Data Latch
JK JK Latch
T T Latch — Toggle
  • Sequential circuit
  • Level triggered
  • Fast operation
  • Simple design
There are different types of latches used in digital systems. Each type performs a different function. Latches are simple and fast memory devices used in many electronic circuits.
Hashir Ahmed Hashmi BDA-25F-048 SR Latch
04

SR Latch

Set-Reset Latch
Inputs
SSet — forces output to 1
RReset — forces output to 0
Outputs
QNormal output
Complement output
SR Latch (NOR-based)
NOR NOR S R Q
SR latch is the simplest type of latch. SR stands for Set and Reset. It has two inputs called Set and Reset and two outputs called Q and Q bar.
Hashir Ahmed Hashmi BDA-25F-048 SR Latch
05

Working of SR Latch

SET Condition
S=1, R=0 → Q=1
Output is forced HIGH
RESET Condition
S=0, R=1 → Q=0
Output is forced LOW
NO CHANGE
S=0, R=0 → Q=Q
Previous value is retained
⚠ INVALID
S=1, R=1 → Undefined
Forbidden state — avoid!
When Set is 1, output becomes 1. When Reset is 1, output becomes 0. If both inputs are 0, previous value remains stored. If both inputs become 1, the state becomes invalid.
Hashir Ahmed Hashmi BDA-25F-048 SR Latch
06

SR Latch — Truth Table

S R Q (next) Condition
00No ChangeHold
010Reset
101Set
11Invalid⚠ Forbidden
This truth table explains the operation of SR latch under different input conditions.
Hashir Ahmed Hashmi BDA-25F-048 SR Latch
07

SR Latch — Timing Diagram

t1 t2 t3 t4 t5 t6 S R Q SET RESET SET RESET SET HIGH LOW
This waveform shows how output changes according to Set and Reset inputs over time.
Asbah Khan BDA-25F-034 Gated SR Latch
08

Gated SR Latch

  • Has an additional Enable (EN) input
  • EN = 1 → Latch is Active
  • EN = 0 → Stores previous value
  • Provides control over when latch responds
  • More reliable than basic SR latch
✦ Improvement over basic SR Latch
Gated SR Latch
AND AND SR Latch S R EN Q
A gated SR latch is an improved SR latch that works only when Enable is active.
Asbah Khan BDA-25F-034 Gated SR Latch
09

Gated SR Latch — Truth Table

EN S R Q (next) Condition
0XXNo ChangeDisabled
100No ChangeHold
1010Reset
1101Set
111Invalid⚠ Forbidden
EN = 0 → Latch is disabled, stores previous value regardless of S and R
When Enable is OFF, the latch stores previous data. When Enable is ON, it follows Set and Reset inputs.
Asbah Khan BDA-25F-034 Gated SR Latch
10

Applications of Latches

🖥️
Registers
Temporary data storage inside CPUs
⚙️
CPUs
Processor pipeline and control logic
💽
Memory Systems
SRAM cells and cache memory
📊
Data Storage
Holding bits during computation
🎛️
Control Systems
State machines and controllers
Latches are used in computers, processors, memory circuits, and many digital systems.
Mustafa BDA-25F-029 D Latch
11

D Latch

Data Latch
Inputs
DData — the bit to store
ENEnable — activates the latch
Outputs
QNormal output
Complement output
✦ Eliminates the invalid state of SR Latch
Key Purpose

The D latch solves the forbidden state problem of SR latch by ensuring S and R are always complementary.

S = D    R = D̄
D latch is an improved version of SR latch that removes the invalid condition.
Mustafa BDA-25F-029 D Latch
12

Construction of D Latch

1 SR Latch (core memory)
2 NOT Gate (creates complement)
3 AND Gates (enable control)
S =D
R =D̄ (NOT D)
S and R are always opposite → no invalid state
D Latch Circuit
NOT AND AND SR Latch D EN Q
The D latch is built using SR latch and logic gates. The NOT gate creates complement input automatically.
Mustafa BDA-25F-029 D Latch
13

D Latch — Inputs & Outputs

Signal Type Meaning Role
D INPUT Data Input The bit value to be stored
EN INPUT Enable Controls when latch is active
Q OUTPUT Normal Output Stored bit value
OUTPUT Complement Output Inverted stored value
These are the inputs and outputs of D latch.
Mustafa BDA-25F-029 D Latch
14

Working of D Latch

EN = 1 (Active)
Q = D
Output follows the Data input. Whatever D is, Q becomes the same.
D = 0Q = 0
D = 1Q = 1
EN = 0 (Disabled)
Q = Qprev
Output holds the last stored value. D input is ignored.
D = XQ = Last Q
When Enable is active, output follows input D. When Enable is OFF, the previous value is stored.
Fasi Uddin BDA-25F-007 Truth Table & Characteristics
15

D Latch — Truth Table

EN D Q (next) Operation
0XNo ChangeHold / Disabled
100Store 0
111Store 1
No invalid state! — D latch eliminates the forbidden condition of SR latch.
This truth table explains how D latch behaves according to Enable and Data input.
Fasi Uddin BDA-25F-007 Truth Table & Characteristics
16

Characteristics of Latches

🔁
Sequential Circuit
Output depends on both current input and past state
🧩
Temporary Memory
Stores data only while power is supplied
📶
Level Triggered
Responds to the level (HIGH/LOW) of enable signal
Fast Response
Propagation delay is very small — nanoseconds
🔧
Simple Design
Requires very few logic gates to implement
These are the important characteristics of latches.
Fasi Uddin BDA-25F-007 Truth Table & Characteristics
17

Advantages & Disadvantages

✅ Advantages
+
Simple Design
Easy to implement with few gates
+
Faster Operation
No clock edge dependency
+
Fewer Gates
Lower hardware cost
❌ Disadvantages
Timing Problems
Transparent latch can cause glitches
Less Stable
Sensitive to input changes during enable
Noise Sensitive
Spurious signals can corrupt stored data
Latches are simple and fast but they can face timing and stability problems.
Irfan Jameel Ansari BDA-25F-011 Real-Life Uses & Conclusion
18

Real-Life Uses of Latches

💻
Computers
CPU registers, cache memory, data buses
📱
Smartphones
Mobile processors and display controllers
🕐
Digital Clocks
Storing time digits for display
🛗
Elevators
Floor selection and door control logic
🚦
Traffic Systems
Signal state memory and timing control
Latches are used in many devices around us including computers and digital systems.
Irfan Jameel Ansari BDA-25F-011 Real-Life Uses & Conclusion
19

Latch vs Flip-Flop

Feature ⬡ Latch ⬡ Flip-Flop
Triggering Level Triggered Edge Triggered
Complexity Simple Complex
Speed Faster Slower
Clock Dependency Not required Required
Stability Less stable More stable
Gate Count Fewer gates More gates
Latches work during the whole enable signal while flip-flops work only at clock edges.
Irfan Jameel Ansari BDA-25F-011 Conclusion
20

Conclusion

01Latches are fundamental temporary memory devices in digital electronics
02They store 1 bit of data and have two stable states
03Used extensively in CPUs, memory systems, and digital circuits
04D Latch improves SR Latch by eliminating the invalid state
Thank You
Questions Welcome
Group BDA-25F | Digital Logic Design
In conclusion, latches are very important memory devices used in modern digital electronics. Thank you.