61
5 Chapter Synchronous Sequential Circuits 1

5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Embed Size (px)

DESCRIPTION

Overview  Storage Elements and Analysis  Introduction to sequential circuits  Types of sequential circuits  Storage elements  Latches  Flip-flops  Sequential circuit analysis  State tables  State diagrams 3

Citation preview

Page 1: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

5 Chapter

Synchronous Sequential Circuits

1

Page 2: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

2

Logic Circuits- ReviewLogic Circuits

Sequential Circuits

Combinational Circuits

•Consists of logic gates whose outputs are determined from the current combination of inputs.•Performs an operation that can be specified by a set of Boolean functions.

•Employ storage elements in addition to logic gates.•Outputs are a function of the inputs and the state of the storage elements.•Output depend on present value of input + past input.

Page 3: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

3

OverviewStorage Elements and Analysis

Introduction to sequential circuitsTypes of sequential circuitsStorage elements

LatchesFlip-flops

Sequential circuit analysisState tablesState diagrams

Page 4: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

4

Introduction to Sequential Circuits

A Sequential circuit contains: Storage elements:

Latches or Flip-Flops Combinatorial Logic:

Implements a multiple-output switching function

Inputs are signals from the outside. Outputs are signals to the outside. Other inputs, State or Present State,

are signals from storage elements. The remaining outputs, Next State are

inputs to storage elements.

CombinationalLogic

Storage Elements

Inputs Outputs

StateNextState

Page 5: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

5

Introduction to Sequential Circuits

Sequential LogicOutput function

Outputs = g(Inputs, State)Next state function

Next State = f(Inputs, State)

Combina-tionalLogicStorage

Elements

Inputs Outputs

StateNextState

Page 6: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

6

Types of Sequential Circuits Depends on the times at which:

storage elements observe their inputs, and storage elements change their state

Synchronous Behavior defined from knowledge of its signals at discrete

instances of time Storage elements observe inputs and can change state

only in relation to a timing signal (clock pulses from a clock)

Asynchronous Behavior defined from knowledge of inputs at any instant

of time and the order in continuous time in which inputs change

If clock just regarded as another input, all circuits are asynchronous!

Page 7: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

7

5.3 Storage Elements :Latches Storage elements

Maintain a binary state (0 or 1) indefinitely as long as power is delivered to the circuit

Switch states (01 or 10) when directed by an input signal

Most basic storage element Used mainly to construct Flip-Flops Asynchronous storage circuit Types of latches:

SR Latches S`R` Latches D Latches

X = X

Page 8: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

8

Basic (NOR) S – R Latch Cross-coupling two NOR gates gives the

S – R Latch:

S (set)

R (reset)Q

Q

Graphic Symbol

R

S Q

Q

Page 9: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Basic (NOR) S – R Latch

9

Q’ t+1 Q t+1 Q R S1 Q t+1=Q =0 0 0 00 1 1 0 01 0 0 1 01 0 1 1 00 1 0 0 10 1 1 0 1؟ Undefined 0 1 1؟ undefined 1 1 1

Q t+1 R SQ t+1=Q

No change 0 0

Reset to 0 1 0Set to 1 0 1

undefined 1 1

Page 10: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Basic (NAND) Ś – Ŕ Latch “Cross-Coupling” two NAND gates gives

the Ś -Ŕ Latch:

QS (set)

R (reset) Q

10

Graphic Symbol

R

Q

Q

S

Page 11: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Basic (NAND) Ś – Ŕ Latch

11

Q’ t+1 Q t+1 Q R S? ? 0 0 0? ? 1 0 00 1 0 1 00 1 1 1 01 0 0 0 11 0 1 0 11 0 0 1 10 1 1 1 1

Q t+1 R SUndefined 0 0Reset to 1 1 0Set to 0 0 1Q t+1=Q

No change 1 1

Page 12: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

12

Clocked S - R Latch Adding two NAND

gates to the basicŚ - Ŕ NAND latchgives the clockedS – R latch:

Has a time sequence behavior similar to the basic S-R latch except that the S and R inputs are only observed when the line C is high.

C means “control” or “clock”.

S

R

Q

C

Q

1

1

S`

R`

Page 13: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

13D Latch(Transparent Latch) Adding an inverter to the S-R Latch,

gives the D Latch: Note that there are no “indeterminate”

states! The graphic symbol for aD Latch is:

C

D Q

Q

DQ

C

Q

Page 14: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

D Latch(Transparent Latch)

14

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

Q t+1 D0 0 1 1

Page 15: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Chapter 5: Sequential Circuits

5.4 :Flip-Flops

15

Page 16: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

16

Flip-Flops The latch timing problem Master-slave flip-flop Edge-triggered flip-flop Other flip-flops - JK flip-flop - T flip-flop

Page 17: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

17

The Latch Timing Problem In a sequential circuit, paths may exist through

combinational logic: From one storage element to another From a storage element back to the same storage

element The combinational logic between a latch output

and a latch input may be as simple as an interconnect

For a clocked D-latch, the output Q depends on the input D whenever the clock input C has value 1

Page 18: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

18

The Latch Timing Problem (continued) Consider the following circuit:

Suppose that initially Y = 0.

As long as C = 1, the value of Y continues to change! The changes are based on the delay present on the

loop through the connection from Y back to Y. This behavior is clearly unacceptable. Desired behavior: Y changes only once per clock

pulse

ClockY

C

D Q

Q

Y

Clock

Page 19: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

19

The Latch Timing Problem (continued)

A solution to the latch timing problem is to break the closed path from Y to Y within the storage element

The commonly-used, path-breaking solutions replace the clocked D-latch with: a master-slave flip-flop an edge-triggered flip-flop

Page 20: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

20

Master-Slave Flip-Flop

Consists of two clockedD latches in serieswith the clock on the second latch inverted

What happened when c=1? The data from D input is transferred to the master . The slave is disabled . Any change in the input change the master output ( Y ) but

can’t effect the slave output .

CD Q

CCD QD

Master Slave

Y

Page 21: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

What happened when C=0?

The master is disabled . The slave is enable. The value of ( Y ) is

transferred to the slave as input . The output ( Q ) is equal ( Y ) .Conclusion:The output of the F.F. can change only during the transition of clock from 1 to 0 or at Trigger .

21

CD Q

CCD QD

Master Slave

Y

Page 22: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Timing

22

Page 23: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

A trigger: The state of a latch or flip-flop is switched by a change of the control input.

23

Timing

Page 24: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Graphic Symbols

24

Page 25: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Graphic Symbols

25

Page 26: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Other flip-flops

26

• Other F-Fs can be built using D F-F• There are four operation on a F-F

- set to 1- Reset to 0- toggle ( complement ) of Q - nothing

• There are tow F-F- JK F-F- T F-F

Page 27: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

JK Flip-Flops27

Page 28: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

JK Flip-Flops28

D = JQ’ + K’QQ t+1 K J

No changeQ t+1 = Q 0 0

Reset to 0 1 0

Set to 1 0 1

ComplementQ t+1= Q ’ 1 1

Page 29: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

T Flip-Flops

29

T Flip-Flops

Page 30: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

T Flip-Flops

30

Page 31: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Characteristic Table

31

Page 32: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Characteristic Table32

Page 33: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Characteristic Equations

33

Page 34: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

34

Page 35: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

State Equation35

Page 36: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

State Equation

36

Page 37: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

37

Page 38: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

38

Page 39: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

Analysis This circuit consist of : 2 D F-F A and B Input x Output Y Qt+1 = D A= D A B = D B

39

Page 40: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

40

Page 41: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

41

Page 42: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

State Table

42

Page 43: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

43

Page 44: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

State Diagram44

Page 45: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

45

state

Input / output

Page 46: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

46

Page 47: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

47

Page 48: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

1 D F-F ( A ) 2 Input X , Y Qt+1 = D D = A X y

Analysis 48

Page 49: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

49

Page 50: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

50

Page 51: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

51

Page 52: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

2 JK F-F (A , B) Input x Q t+1 = JQ’ + K’Q

52Analysis

Page 53: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

53

Page 54: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

54

Page 55: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

55

Page 56: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

56

Page 57: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

57

Page 58: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

58

Page 59: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

2 T F-F ( A, B ) 1 input X 1 output Y Qt+1 = T Q The input equations are

T_A = BXT_B = X

The out put equation isY = AB

The characteristic equations are :At+1 = T_A A = BX A= BX(A’) + (BX)’A= A’BX + AB’ + AX’Bt+1 = X B

59Analysis

Page 60: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

60

Page 61: 5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates

61

Good Luck