Docsity

Latches-Digital Logic Design-Lecture Slides, Slides of Digital Logic Design and Programming

Partial preview of the text

Download Latches-Digital Logic Design-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!

EE -

Sequential Circuits: Latches

^

Circuits require memory to storeintermediate data

^

Sequential circuits use a periodic signal todetermine when to store values.^ ^

A^

clock

signal can determine storage times

EE -

^ A

clock

signal can determine storage times

^ Clock signals are periodic

^

Single bit storage element is a flip flop

^

A basic type of flip flop is a latch

^

Latches are made from logic gates^ ^

NAND, NOR, AND, OR, Inverter

Combinational

circuit

FlipFlops

Outputs

Inputs

Nextstate

Presentstate

Timing signal

(clock)

Clock

Clock a periodic external event (input)^ synchronizes when current state changes happen

keeps system well-behaved

makes it easier to design and build large systems

^

A stable value can be stored at inverteroutputs

State 1

State 2

S R

Q Q’

S^

R^

Q^

Q’

Set

1

Store

0

Reset

1

Not allowed

^

Latch made from cross-coupled NANDs

^

Sometimes called S’-R’ latch

^

Usually S=1 and R=

^

S=0 and R=0 generates unpredictableresults

S-R

Latches

R’^

Q

C’

Latch is level-sensitive, in regards to CLatch is level-sensitive, in regards to C

Only stores data if C’ = 0Only stores data if C’ = 0

Latch operationLatch operation

enabled byenabled by

CC

S’ Input samplingenabled by gates

Q’

C’

Outputs changeOutputs changewhen C is low:when C is low:RESET and SETRESET and SETOtherwise: HOLDOtherwise: HOLD

Q Q’

C

D^

S

X

^

Q

indicates the previous state (the previously 0 stored value)

Q’

R

Y

X^

Y^

C^

Q^

Q’

Q^0

Q

’ Store 0

Reset

Set

Disallowed

X^

X^

Q^0

Q

’ Store 0

X^

Q^0

Q

D^

C^

Q^

Q’

  • EE -
  • EE -

^

Latches are based on combinational gates (e.g.NAND, NOR) ^

Latches store data even after data input has beenremoved ^

S-R latches operate like cross-coupled inverterswith control inputs (S = set, R = reset) EE -

with control inputs (S = set, R = reset) ^

With additional gates, an S-R latch can beconverted to a D latch (D stands for data) ^

D latch is simple to understand conceptually^ ^

When C = 1, data input D stored in latch and output as Q  When C = 0, data input D ignored and previous latchvalue output at Q