Top Banner
CENG 241 Digital Design 1 Lecture 9 Amirali Baniasadi [email protected]
23

CENG 241 Digital Design 1 Lecture 9

Dec 30, 2015

Download

Documents

bennett-delaney

CENG 241 Digital Design 1 Lecture 9. Amirali Baniasadi [email protected]. This Lecture. Review of last lecture JK, T Flip-Flops Direct Inputs, Analysis of Clocked Sequential Circuits. Graphic Symbols. Other Flip-Flops. Each flip-flop is made of interconnection of gates. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CENG 241 Digital Design 1 Lecture 9

CENG 241Digital Design 1

Lecture 9

Amirali [email protected]

Page 2: CENG 241 Digital Design 1 Lecture 9

2

This Lecture

Review of last lecture JK, T Flip-Flops Direct Inputs, Analysis of Clocked Sequential Circuits

Page 3: CENG 241 Digital Design 1 Lecture 9

3

Graphic Symbols

Page 4: CENG 241 Digital Design 1 Lecture 9

4

Other Flip-Flops

Each flip-flop is made of interconnection of gates.

The edge-triggered D flip-flop is the most efficient flip-flop since it requires the least number of gates.

Other flip-flops are made using the D flip-flop and extra logic.

Two flip-flops widely used are the JK and T flip-flop.

Page 5: CENG 241 Digital Design 1 Lecture 9

5

JK Flip-Flop

Three flip-flop operations: Set, Reset, Complement output.

JK performs all three

Page 6: CENG 241 Digital Design 1 Lecture 9

6

D = JQ’ + K’Q

if J=1 , K=0 then D=Q’+Q=1if J=0 , K=1 then D=0if j =1 , K=1 then D = Q’

JK Flip-Flop

Page 7: CENG 241 Digital Design 1 Lecture 9

7

T Flip-Flop

T (Toggle) flip-flop is a complementing one.

T flip-flop is obtained from a JK when inputs J and K are tied together.

Page 8: CENG 241 Digital Design 1 Lecture 9

8

T Flip-Flop

If T=0 ( J=K=0) output does not change.If T=1 ( J=K=1) output is complemented.

A T flip-flop can also be made of D flip-flop and a XOR.

D = T XOR Q = TQ’ + T’Q

Page 9: CENG 241 Digital Design 1 Lecture 9

9

Characteristic Tables

JK Flip-flop

J K Q(t+1) 0 0 Q(t) No change 0 1 0 Reset 1 0 1 Set 1 1 Q’(t) Complement

Page 10: CENG 241 Digital Design 1 Lecture 9

10

Characteristic Tables

D Flip-flop

D Q(t+1) 0 0 Reset 1 1 Set

T Flip-flop

T Q(t+1) 0 Q(t) No change 1 Q’(t) Complement

Page 11: CENG 241 Digital Design 1 Lecture 9

11

Direct Inputs

Some flip-flops have asynchronous inputs to force the flip-flop to a particular state.

Examples: Direct Set, Direct Reset.

The input that sets the flip-flop to 1 is called preset or direct set.

The input that clears the flip-flop to 0 is called clear or direct reset.

Works independent of clock.

Page 12: CENG 241 Digital Design 1 Lecture 9

12

Direct Inputs: Asynchronous Reset

When reset is 0, Q’ is forced to 1.

Page 13: CENG 241 Digital Design 1 Lecture 9

13

Analysis: Obtaining a table/diagram for the time sequence of inputs/outputs/internal states.

Examples: State Equations, State Table, State Diagram

Analysis of Clocked Sequential Circuits

Page 14: CENG 241 Digital Design 1 Lecture 9

14

Analysis of Clocked Sequential Circuits

Example of state equation:

A(t+1) = A(t)x(t) + B(t)x(t)B(t+1) = A’(t)x(t)

A(t+1)=Ax+BxB(t+1)=A’x

y(t)=(A(t)+B(t)).x’(t) = (A+B)x’

Page 15: CENG 241 Digital Design 1 Lecture 9

15

Example of state tables

Present state input Next State Output A B x A B y 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0

State equation:

A(t+1) = A(t)x(t) + B(t)x(t)B(t+1) = A’(t)x(t)

y(t)=(A(t)+B(t)).x’(t)

Page 16: CENG 241 Digital Design 1 Lecture 9

16

Example of state tables-2nd form

Present state Next State Output x=0 x=1 x=0 x=1 AB AB AB y y 00 00 01 0 0 01 00 11 1 0 10 00 10 1 0 11 00 10 1 0

State equation:

A(t+1) = A(t)x(t) + B(t)x(t)B(t+1) = A’(t)x(t)

y(t)=(A(t)+B(t)).x’(t)

Page 17: CENG 241 Digital Design 1 Lecture 9

17

Example of state diagram

Present state Next State Output x=0 x=1 x=0 x=1AB AB AB y y 00 00 01 0 0 01 00 11 1 010 00 10 1 0 11 00 10 1 0

Page 18: CENG 241 Digital Design 1 Lecture 9

18

Analysis- D flip-flop

Page 19: CENG 241 Digital Design 1 Lecture 9

19

Analysis: JK flip-flop

JA=B

KA=Bx’

J B=x’

KB=A’x+Ax’

Page 20: CENG 241 Digital Design 1 Lecture 9

20

Analysis: JK flip-flop

A(t+1)=JA’+K’AB(t+1)=JB’+K’B

A(t+1)=BA’+(Bx’)’A=A’B+AB’+AxB(t+1)=x’B’+(A XOR x’)B =B’x’+ABx+A’Bx’

Page 21: CENG 241 Digital Design 1 Lecture 9

21

Analysis: JK flip-flop

Present state input Next State A B x A B 0 0 0 0 1 0 0 1 0 0 0 1 0 1 1 0 1 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0 0 1 1 1 1 1

Page 22: CENG 241 Digital Design 1 Lecture 9

22

Analysis: T flip-flop

Q(t+1)=T’Q+TQ’

TA=BxTB=xy=AB

A(t+1)=(Bx)’A+(Bx)A’ =AB’+Ax’+A’Bx

B(t+1)=x XOR B

Page 23: CENG 241 Digital Design 1 Lecture 9

23

Summary

Analysis

Reading up to page 214