Digital Electronics and Computer Organization Digital Design … Materils for Digital... ·...

17
CKV Digital Electronics and Computer Organization Lecture 16 : D-Latches and D-Flipflops Digital Design 10/1/2020 1

Transcript of Digital Electronics and Computer Organization Digital Design … Materils for Digital... ·...

Page 1: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Digital Electronics and Computer Organization

Lecture 16 : D-Latches and D-Flipflops

Digital Design

10/1/2020 1

Page 2: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Latches

SR Latch with Enable

S’R’ Latch

10/1/2020 2

Page 3: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Latches

D Flip-flop circuit

S’R’ Latch

SR Latch with Enable

10/1/2020 3

Page 4: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Latches

D Latch with Enable

En D Q Q’

X Q Q’

0 0 1

1 1 0

Reset

No change0

1

1 Set

D = 0 makes S = 0 and R = 1

D = 1 makes S = 1 and R = 0

10/1/2020 4

Page 5: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Latches

D Latch with Asynchronous PRESET and CLEAR

Activating PRESET’ (i.e. 0) makes Q=1. This in turn maintains Q’=0

Activating CLEAR’ (i.e. 0) makes Q’=1. This in turn maintains Q=0

10/1/2020 5

Page 6: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Latches

SR Latch S’R’ Latch D Latch

Graphic Symbols

S

R

Q

Q’

S

R

Q

Q’

D

En

Q

Q’

Pr’

Cr’

10/1/2020 6

Page 7: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 7

Latch – Responds to change in level of clock pulse

Sequential Circuits

The key to the proper operation of a flip flop is to trigger itonly during signal transition.

Page 8: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

CKV

Race around in Latches

D Latch

D

En

Q

Q’

Pr’

Cr’

10/1/2020 8

XnYn = Xn . Xn-1

Page 9: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 9

Flip-Flops

Two ways to build a flip flop

Special configuration of two latches to isolate the output of flip-flop

Gate based design which triggers only during signal transition ofclock and is disabled during rest of clock pulse

Page 10: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 10

CKV

Master Slave Flip-flop

Edge Triggered D Flip-Flops

If D changes

Y will be affected and not Q

If D changes

Y remains unaffected and Q stable

1

1 2

2

Y passed to Q

-ve Edge Triggered

Page 11: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 11

CKV

Master Slave Flip-flop

Edge Triggered D Flip-Flops

1 2

CLK

D

Page 12: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 12

CKV

Master Slave Flip-flop

Edge Triggered D Flip-Flops

CLK

D

Y

Q Negative Edge Triggered

Page 13: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

S’R’ Latch

10/1/2020 13

CKV

D-type positive edge triggered

Edge Triggered D Flip-Flops

B

ACase I:

CLK = 0

S = 1, R = 1 for S’R’ latch

Hence Previous state of Q and Q’ is maintained

CLK = 0 => S=1, R=1

D = 0 ->1 -> 0

Page 14: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 14

D-type positive edge triggered

Edge Triggered D Flip-Flops

B

A

S’R’ Latch

Case 2:

CLK = 1 , D=0, S=1, R=0B=1, A=0

D -> 0 -> 1 -> 0 B =1 Since R=0

0

0

Hence Initial state of Q and Q’ is maintained

Case 3:

CLK = 1 , D=1, S=0, R=1B=0, A=1 D -> 1 -> 0-> 0 B -> 0-> 1> 0 R=1 Since S=0A=1 Since S=0

Page 15: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 15

D-type positive edge triggered

Edge Triggered D Flip-Flops

B

A

S’R’ Latch

Case 4:

CLK = 0 , D=0, S=1, R=0B=1, A=1, Q=0

D ->1B=0

0

0

CLK->1R=1A=1S=0Q=1

Page 16: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

10/1/2020 16

D-type positive edge triggered

Edge Triggered D Flip-Flops

Page 17: Digital Electronics and Computer Organization Digital Design … Materils for Digital... · 10/1/2020 9 Flip-Flops Two ways to build a flip flop Special configuration of two latches

Thank You

10/1/2020 17