1 of 10

Digital Logic Design

CH5: Synchronous Sequential Logic

Part 2:

Sequential Circuits Design

2 of 10

Finite State Machines

  • State diagrams are representations of Finite State Machines (FSM)
  • Two flavors of FSMs:
    • Mealy FSM
      • Output depends on input and state
    • Moore FSM
      • Output depends only on state

Digital Logic Design

2

5/28/2023

3 of 10

Design of Sequential Circuits

  1. Derive state diagram from description
  2. Assign binary values to states
  3. Obtain binary coded state table (transition table)
  4. Choose type of flip-flops
  5. Derive flip-flop input equations and output equations
  6. Draw logic diagram

Digital Logic Design

3

5/28/2023

4 of 10

Example 1: Sequence Detector

  • Circuit specification:
    • Design a circuit that outputs a 1 when three consecutive 1s have been applied to input, and 0 otherwise.”
  • Step 1: derive state diagram
    • What should a state represent?
      • E.g., “number of 1’s seen so far”
    • State diagram:
      • State S0: zero 1s detected
      • State S1: one 1 detected
      • State S2: two 1s detected
      • State S3: three 1s detected

Digital Logic Design

4

5/28/2023

5 of 10

Example 1: Sequence Detector

  • Step 2: state assignment
    • Two flip-flops
    • Binary state coding

  • Step 3: Binary coded

state table

    • Name flip-flops A and B

  • Step 4: Choose type of

flip-flops

Digital Logic Design

5

5/28/2023

6 of 10

Digital Logic Design

6

5/28/2023

7 of 10

Example 1: Sequence Detector

  • Step 6: derive flip-flop input equations and output equation
    • Use state table

Digital Logic Design

7

5/28/2023

8 of 10

Example 1: Sequence Detector

  • Step 6b: minimize equations

Digital Logic Design

8

5/28/2023

9 of 10

Example 1: Sequence Detector

Digital Logic Design

9

5/28/2023

10 of 10

Digital Logic Design

10

5/28/2023