Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)

Similar presentations


Presentation on theme: "ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)"— Presentation transcript:

1 ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)

2 ECE 331 - Digital Systems Design2 Combinational vs. Sequential Combinational Logic Circuit  Output is a function of the inputs.  Does not have state information.  Does not require memory. Sequential Logic Circuit  Output is a function of the present state (and of the inputs).  Has state information  Requires memory.  Uses Flip-Flops to implement memory.

3 ECE 331 - Digital Systems Design3 Synchronous vs. Asynchronous Synchronous Sequential Logic Circuit  Clocked  All Flip-Flops use the same clock and change state on the same triggering edge. Asynchronous Sequential Logic Circuit  No clock  Can change state at any instance in time.  Faster but more complex than synchronous sequential circuits.

4 ECE 331 - Digital Systems Design4 Finite State Machine: Models Moore Machine  Outputs are a function of the present state.  Outputs are independent of the inputs.  State diagram includes an output value for each state. Mealy Machine  Outputs are a function of the present state and the input.  State diagram includes an input and output value for each transition (between states). There is an equivalent Mealy machine for each Moore machine.

5 ECE 331 - Digital Systems Design5 Finite State Machine: Models

6 ECE 331 - Digital Systems Design6 FSM: State Diagram (Moore) State Output Input A B C

7 ECE 331 - Digital Systems Design7 FSM: State Diagram (Mealy) State Output Input

8 ECE 331 - Digital Systems Design8 Finite State Machine Analysis

9 ECE 331 - Digital Systems Design9 FSM Analysis: Procedure Determine the Flip-Flop input equations  In terms of the present state and input variables Determine the FSM output equation(s) Determine the next state values in the state table  Assume binary encoding  Use Flip-Flop Characteristic Equation Construct the state table  Assign a state to each binary state assignment Draw the corresponding state diagram Determine the behavior of the FSM

10 ECE 331 - Digital Systems Design10 Example: FSM using D Flip-Flops FSM Analysis

11 11 FSM Analysis: Example (D FF) input state output What type of FSM is this?

12 ECE 331 - Digital Systems Design12 FSM Analysis: Example (D FF) Determine the FF input equations and the FSM output equation(s)

13 ECE 331 - Digital Systems Design13 FSM Analysis: Example (D FF)

14 ECE 331 - Digital Systems Design14 FSM Analysis: Example (D FF)

15 ECE 331 - Digital Systems Design15 FSM Analysis: Example (D FF)

16 ECE 331 - Digital Systems Design16 Example: FSM using JK Flip-Flops FSM Analysis

17 ECE 331 - Digital Systems Design17 FSM Analysis: Example (JK FF) input state What type of FSM is this?

18 ECE 331 - Digital Systems Design18 FSM Analysis: Example (JK FF) Determine the FF input equations and the FSM output equation(s)

19 ECE 331 - Digital Systems Design19 FSM Analysis: Example (JK FF)

20 ECE 331 - Digital Systems Design20 FSM Analysis: Example (JK FF)

21 ECE 331 - Digital Systems Design21 Example: FSM using T Flip-Flops FSM Analysis

22 ECE 331 - Digital Systems Design22 FSM Analysis: Example (T FF) input state output What type of FSM is this?

23 ECE 331 - Digital Systems Design23 FSM Analysis: Example (T FF) Determine the FF input equations and the FSM output equation(s)

24 ECE 331 - Digital Systems Design24 FSM Analysis: Example (T FF)

25 ECE 331 - Digital Systems Design25 FSM Analysis: Example (T FF)

26 ECE 331 - Digital Systems Design26 Acknowledgments The slides used in this lecture were taken, with permission, from those provided by Pearson Prentice Hall for Digital Design (4 th Edition). They are the property of and are copyrighted by Pearson Education.


Download ppt "ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)"

Similar presentations


Ads by Google