Synthesis of SSCs

The opposite of analysis.

Procedure

  1. Devise a state diagram
  2. Derive a state table and reduce states if possible
  3. Perform state assignment to get an state assigned table
  4. Obtain the next-state and output expressions

A Moore machine:

Example

Circuit Specification

  • The circuit has one input and one output
  • All changes in the circuit occur at the positive edge of a clock signal
  • The output is equal to 1 if during two immediately preceding clock cycles, the input was equal to 1.
    Otherwise, the output is equal to 0.
Clock cycle
w: 0 1 0 1 1 0 1 1 1 0 1
z: 0 0 0 0 0 1 0 0 1 1 0

State Diagram

Drawing canvas
  • Node A represents the starting state and it is also the state of the circuit will reach after an input is applied
  • Node B represents the state after the first
  • Node C represents the state after all subsequent

State Table

Drawing canvas

State Assigned Table

  • Let , , and be represented as , , and respectively (arbitrarily)
  • Let and be the next-state variables
Drawing canvas

Where is a "don't care". Notice how this table is almost identical to the one above.

Using K-maps (or by inspection), we can write , , and .


Circuit Block Diagram

Drawing canvas

DFF Based Circuit Diagram

Drawing canvas

Improved State Assignment

This time, let be represented as

Drawing canvas

Again with K-maps (or by inspection), we can write , , and


Circuit Diagram from Improved State Assignment


One-Hot State Assignment

Drawing canvas

Logic expressions:

A Mealy machine:

Example

Circuit Specification

  • The circuit has one input and one output
  • The output is equal to 1 if during immediately preceding clock cycle, and current clock cycle, the input was equal to 1.
    Otherwise, the output is equal to 0.
Clock cycle
w: 0 1 0 1 1 0 1 1 1 0 1
z: 0 0 0 0 1 0 0 1 1 0 0

State Diagram

Drawing canvas

Unlike the Moore machine, since the output depends on the current state and present input, the outputs must be shown on the arcs, not the nodes.


State Table

Drawing canvas

State Assigned Table

Drawing canvas

Circuit Diagram

Drawing canvas