Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 13 Flip-Flops Section 5.4. Schedule 3/10MondayLatches (1)5.1-5.3 3/12WednesdayFlip-flops5.4 3/13ThursdayFlip-flops, D-latch 3/17MondaySpring break.

Similar presentations


Presentation on theme: "Lecture 13 Flip-Flops Section 5.4. Schedule 3/10MondayLatches (1)5.1-5.3 3/12WednesdayFlip-flops5.4 3/13ThursdayFlip-flops, D-latch 3/17MondaySpring break."— Presentation transcript:

1 Lecture 13 Flip-Flops Section 5.4

2 Schedule 3/10MondayLatches (1)5.1-5.3 3/12WednesdayFlip-flops5.4 3/13ThursdayFlip-flops, D-latch 3/17MondaySpring break 3/19WednesdaySpring break 3/20ThursdaySpring break 3/24MondayAnalysis of clocked sequential circuit (1)5.5 3/26WednesdayAnalysis of clocked sequential circuit (2)5.5 3/27ThursdayClocked sequential circuit Please bring a functional random number generator to class on Thursday (3/13).

3 Outline Review – D latch Applications Flip-flops – D flip-flops Reset – JK flip-flops – T flip-flop

4 D Latch

5 Using a Latch as a Memory Element Caution for a D latch: once a clock enables a D latch, the output changes as soon as the input changes – this is not desirable if you do not want the output to change continuously and all the latches use a common clock.

6 Uses of Flip-flops

7 D Flip-Flop

8 Negative Edge triggered D Flip-Flop Clk=1 1 0 Y=D hold

9 Negative Edge triggered D Flip-Flop Clk=0 0 1 Q=Y hold

10 Negative Edge triggered D Flip-Flop Clk=1 1 0 Y=1 hold 10

11 Negative Edge triggered D Flip-Flop Clk=0 0 1 Q=Y hold 10->1

12 Verilog Modeling I1I2

13 Positive Edge Triggered D Flip-flop I1 I2

14 D-Type Positive Edge Triggered Flip-Flop (CLK=0) 0 0 1 1 CLK =0, maintain the present state

15 D-Type Positive Edge Triggered Flip-Flop 0 0→ 1 1 1 → 0 Q changes to 01 1 0 D=0 as Clk=0→ 1

16 D-Type Positive Edge Triggered Flip-Flop 1 0→ 1 1 → 0 1 → 1 Q changes 10 0 1 D=1 as Clk=0→ 1

17 D-Type Positive Edge Triggered Flip-Flop 0 → 1 1 S The flip-flop is unresponsive to changes in D 1 1 D=0→ 1 as Clk=1 S’ Please explore different possible value of S on your own. This will work even for S=R=1 and S=R=0. revise

18 Symbol of D Flip-Flops

19 reset and preset When power is first turned on, the state of the flip-flops is unknwon. – Reset is used to initialize the output to a 0. – Preset is used to initialize the output to a 1.

20 Reset Feature 0 1 1 0 0 When Reset is 0, Q is set to 0.

21 D Flip-flop with reset Typo in the book. Should be 1 instead.

22 JK Flip-Flops D=JQ’+K’Q The next value of D is determined by JQ’+K’Q. At the rising edge of D Flip-flop, Q is updated with the value of D. Positive edge D flip-flop

23 D=JQ’+K’Q J=1,K=1→D=Q’ J=0, K=0 →D=Q J=0, K=1 →D=0 J=1, K=0 →D=Q’+Q=1

24 Verilog Implementation

25 T Flip-Flop

26 T Flip-Flop from D Flip-Flop D=TQ’+T’Q If T=1, D=Q’ If T=0, D=Q. Q is updated with D at the next rising edge. DT rst

27 Verilog Implementation of a T-FF DT rst


Download ppt "Lecture 13 Flip-Flops Section 5.4. Schedule 3/10MondayLatches (1)5.1-5.3 3/12WednesdayFlip-flops5.4 3/13ThursdayFlip-flops, D-latch 3/17MondaySpring break."

Similar presentations


Ads by Google