Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Sequential Circuits

LATCHES

Dr. Mohammed Najm Abdullah

Sequential Circuits
• The output of a Combinatorial Circuit
depends only on the current inputs

• The output of a Sequential Circuit


depends on the current and past inputs

1
Sequential Applications
• Do X, then do Y three times, then do Z
• Take the dot product of two vectors, input one
element at a time
• Control a car wash
– Rinse
– Soap
– Dry
• All of these require memory
– To remember where in the process they are…

2
3
4
5
6
SR Latches
• Illustrate simple notion of bi-stability
– Two stable states
– S and R inputs move latch between them
• A memory
– When Q=1 latch storing a ‘1’
– When Q=0 latch storing a ‘0’
• Will hold its value indefinitely
– As long as circuit is powered

SR Latches–What Are They Used For?


• Mainly to explain simple storage in
digital design textbooks
• Simple SR latch not used by itself in designs very
much
– Due to some timing issues we will learn later…
• Simple SR latch forms basis for most other kinds
of storage elements we will study

7
Gated Latches
SR Latches Always Sampling Inputs
• An SR latch will always respond to S/R input
changes
– ALWAYS!
• Sometimes we want to control when a storage
element changes
– Use a gated latch

8
9
10
11
Gated D Latches
• Sometimes called a transparent latch
– When GATE = 1, the D input propagates
to Q output
• Allows us to control when to store new data
into latch
– D = data to be stored
– GATE = control signal

12
13
14
Toggle Circuit Problem
• As long as GATE = 1, latch will repeatedly load new
values
–0→1→0→1→0→1...
• Wouldn’t it be nice if it just loaded once each time
GATE went high?
• Solution #1:
– Make GATE = 1 for a very short time
– Hard to do reliably
• Solution #2:
– Build a new storage element out of gated D latches
(the flip flop next lecture)

15

You might also like