Docsity

Understanding Memory Devices: Capacitive Loads, SR Latches, and Flip-Flops, Slides of Digital Systems Design

Partial preview of the text

Download Understanding Memory Devices: Capacitive Loads, SR Latches, and Flip-Flops and more Slides Digital Systems Design in PDF only on Docsity!

Sequential Networks

Part II. Sequential Networks (Ch. 3)

Memory / Timesteps

Clock

Memory: Flip flopsSpecification: Finite State Machines

Implementation: Excitation Tables

xi si yi

ysi=fi(St,X)

it+1=gi(St,X)

Memory Storage: Capacitive Loads

  • Fundamental building block of other state elements
  • Two outputs: Q , Q
  • No inputs
Q Q Q
Q
I
I
I2 I

Capacitive Loads

Q Q

I I

0 1

1 0

• Consider the two possible cases:

– Q = 0: then Q’ = 1 and Q = 0 (consistent)

– Q = 1: then Q ’ = 0 and Q = 1 (consistent)

– Bistable circuit stores 1 bit of state in the state variable, Q (or Q’ )

• But there are no inputs to control the state

Q Q

I I

1 0

0 1

SR Latch Analysis

– S = 1, R = 0: then Q = 1 and Q = 0

– S = 0, R = 1: then Q = 0 and Q = 1

R
S
Q
Q
N
N

R S

Q Q

N N

1 0

SR Latch Analysis

– S = 1, R = 0: then Q = 1 and Q = 0

– S = 0, R = 1: then Q = 0 and Q = 1

R
S
Q
Q
N
N

R S

Q Q

N N

1 0

0 (^01)

1

S

R

y

Q Q = (R+y)’

y = (S+Q)’

Flip-flop Components

S

R

SR F-F (Set-Reset)

Inputs: S, R State: (Q, y)

y

Q

CASES: SR=01, (Q,y) = (0,1)

SR=10, (Q,y) = (1,0)SR=11, (Q,y) = (0,0)

SR = 00 => if (Q,y) = (0,0) or (1,1), the output keeps changing Solutions: 1) SR = (0,0), or

2) SR = (1,1).

PS 01 01 00 11 - -

inputs 00 01 10 11

State table

Q(t+1)

SR Characteristic Expression Q(t+1) = S(t)+R’(t)Q(t)

NS (next state)

Q(t)

SR Latch Analysis

– S (memory!) = 0, R = 0: then Q = Qprev and Q = Qprev

– S state: = 1, QR ≠ NOT= 1: then Q ) Q = 0 and Q = 0 (invalid

R
S
Q
Q
N
N

R S

Q Q

N N

0 0

1 (^10)

R 0 S

Q Q

N N

0 0

0 (^01)

1

Qprev = 0 Qprev = 1

D Latch

D LatchSymbol

CLK

D Q

Q

• Two inputs: CLK , D

– – CLKD (the data input): controls: controls when the output changes what the

output changes to

• Function

– When (the latch is CLK = 1, transparent D passes through to) Q

– Whenvalue (the latch is CLK = 0, Q opaque holds its previous)

• Avoids invalid case when Q ≠ NOT Q

D Latch Internal Circuit

S

R Q Q

Q D Q

CLK (^) D R S

CLK D Q Q CLK 0 D X S R Q Q (^11 )

D

D Flip-Flop

• Two inputs: CLK , D

• Function

– The flip-edge of CLK flop “samples” D on the rising

  • When to Q CLK rises from 0 to 1, D passes through

– Q^ •^ changes only on the rising edge ofOtherwise,^ Q^ holds its previous value CLK

• A flip-flop is called an device because it is activated on the edge-triggered

clock edge

D Flip-FlopSymbols

D Q

Q

D Flip-Flop vs. D Latch

CLK D Q Q

D Q Q

CLK D Q (latch) Q (flop)