Docsity

Notes on Sequential Logic, Flip-Flops | PHYS 3610, Study notes of Physics

Partial preview of the text

Download Notes on Sequential Logic, Flip-Flops | PHYS 3610 and more Study notes Physics in PDF only on Docsity!

Lecture 9-Sequential Logic

Sequential LogicFlip-Flops

Sequential Logic

z

m

z

1

y

r

Clock

y

1

Memory

Combinational

logic

x

n

x 1 Y r Y 1

Clock

State

Input

x

Output

z

0

1

A

C

T

T

T

T

T

T

A

B

C

A

A 1

0

1

0

0

1

0

1

0

0

R-S Flip-Flop

R

_

_

Clocked R-S Flip-Flop

_

_

D-Latch ( Data Latch):

Q C D

Enabled

Hold

Enabled

Hold

Enabled

(b)

(c)

(a)

Q

C D

1 0 D

1 1 C

1 0 Q

x

0

last Q

0 1

D

Q Q

C

QN

QN

last QN

Copyright © 2000 by Prentice Hall, Inc.

Digital Design Principles and Practices, 3/e

D-Latch: Timing Constraints

t w

Minimum enable

pulse

width

Q D C

D

may not

change

Setup time

violation

Hold time violation

t

su

(setup)

t

su

Unknown state

t h

(hold)

t

h

Latches vs. Flip-Flops

both:

 output = stored value

no need to ask for permission to look at value… !!!

Latch:

(and clock is asserted)output changes when input changes

Flip-Flop:

output changes only on clock edge

clocking methodology

D-latch vs. D-FF:

D-latch:

Q

D C

Q_

Q C D

Q C D

Q

Q

Q_

Q Q_

D

latch

C D

D

latch

D

D

C

C

D-FF:

(time delay)

(falling edge)

D-latch vs. D-FF:

D-latch:

Q

D C

Q_

Q C D

Q C D

Q

Q

Q_

Q Q_

D

latch

C D

D

latch

D

D

C

C

D-FF:

(time delay)

(falling edge)

D-Flip-Flop:

“Memory”

(b) (a)

Combinational logic

Memory

Clock

D

C

Q Q

Q Q C D

0

1

2

3

4



D

t

t/D

t^

y y

Y

x

z

R-S Latch

vs. J-K Flip-Flop:

0

1

0

0

0 0 1 0

Q

0

1

1

1

0

1

0

1

0

1

0

0

Q

S

R

R S

Q Q

Q = Q ?!?

(b)

(c)

(a)

QN Q

J

C

C

0 K

Q

last Q

last QN

QN

(^0) J

x

0

last Q

last QN

x

1

0

1

0

0

1

0

1

1

last QN

last Q

1

K

S

Q Q

R C

S

Q Q

R C

J

Q Q

K C

QM

QM_L

Copyright © 2000 by Prentice Hall, Inc.

Digital Design Principles and Practices, 3/e

J=K=1 J-K = R-S, except:



toggle output…

J-K Flip-Flop 1:

(b)

(c)

(a)

QN Q

J

C

C

0 K

Q

last Q

last QN

QN

(^0) J

x

0

last Q

last QN

x

1

0

1

0

0

1

0

1

1

last QN

last Q

1

K

S

Q Q

R C

S

Q Q

R C

J

Q Q

K C

QM

QM_L

Copyright © 2000 by Prentice Hall, Inc.

Digital Design Principles and Practices, 3/e

Master/Slave configuration