digital design: sequential logic, latches and flip-flops part - v

13
Chapter 14 Sequential logic, Latches and Sequential logic, Latches and Flip Flip - - Flops Flops

Upload: atush-jain

Post on 30-Jul-2015

205 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Chapter 14

Sequential logic, Latches and Sequential logic, Latches and FlipFlip--FlopsFlops

Page 2: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 2

Lesson 5

T- Flip Flop

Page 3: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 3

T- Flip-Flop – ve edge triggered• Output Q and Q

Q

Q

K = 1

J = 1

Q

Q1

1

T-FF T

T

-ve Edge triggered circuit

Page 4: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 4

T- Flip Flop

1. It has edge trigger clock input so that the output state changes only on a clock edge

2. The NANDs S input of level clocked SR latch is given input = 1 and R input also given input = 1.

3. Second input of both NANDs is common 4. Clock input has an additional circuitry to make

the transition of Q by toggling at an instance corresponding to an edge at the T- input

Page 5: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 5

T- Flip Flop� Three input cross coupled NANDs � Third input of lower NAND connects the Q

output� Third input of upper NAND connects the Q

output.� There is no unstable condition in T-FF

state table

Page 6: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 6

T input Symbolic representation

• At T input down side arrow corresponds –ve edge instance (0 to 1 transition only)

Page 7: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 7

Timing Diagram

• Refer Text

Page 8: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 8

T = 1 to 0 transition (Q Toggles)• Output Q resets to 0 and Qn becomes = 1

in case Q was 1 earlier Qn was 0 and after at T the -ve edge occurs because J = 1 and K = 1

• Output Q sets to 1 and Qn becomes = 0 in case Q was 0 earlier Qn was 1 and after at T the -ve edge occurs because J = 1 and K = 1

• Q toggles (complements the nth state after the nth clock transition)

• Qn+1 ← Qn

Page 9: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 9

-ve edge triggered T and J = 1, K = 1

Inputs Output State

T Qn J Qn K Qn+1 Qn+1

X means either 1 or 0 input, Qn+1 means next state after nth clock input

1 0 1 1 1 Qn Qn No change

0 1 1 0 1 Qn Qn No change

↑ X 1 X 1 Qn Qn No change

↓ X 1 X 1 Qn Qn Toggles

Page 10: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Summary

Page 11: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 11

We learnt that in T- edge triggered FF:

• Because J = 1 and K =1, the output of flip-flop toggles (changes to opposite state) on edge at T-input.

Page 12: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

End of Lesson 5 on T- Flip Flop

Page 13: Digital Design: Sequential logic, Latches and Flip-Flops Part - V

Ch14L5-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 13

THANK YOU