Sequential Circuits

#folder

Definition

Circuits that rely on past signals are known as sequential circuits

Sequential circuits have 'memory', or storage elements, that can store logic values, which define the state of the sequential circuit.

Types of Sequential Circuits

  • Synchronous: behaviour can change only at discrete instances in time
  • Asynchronous: behaviour can change at any instance in time

Clock

A clock signal is used to change the circuit behaviour at discrete instances in time:

Timing Diagram

Similar to physics, we have the period, which is the time duration of one cycle , and the frequency (), usually in hertz (Hz, MHz, GHz)

Circuit Specification

Examples: Synchronous Sequential Circuits#Moore Machine, Synchronous Sequential Circuits#Mealy Machine

State Diagram

Definition

  • A state diagram is a directed graph, consisting of nodes and arcs
    • Nodes represent circuit states
    • Arcs represent transitions between states

State Table (Transition Table, Flow Table)

Definition

A state table (aka transition table) describes the behaviour of a sequential circuit in tabular form

Excitation Table (State Assigned Table)

Definition

A state table with the states labelled as numbers rather than letters

An excitation table shows the minimum inputs that are necessary to generate a particular next state (i.e to "excite" it to the next state 😏) when the current state is known.

Example

Excitation table for a D flip-flop:

D
0 0 0
1 0 1
0 1 0
1 1 1

One-Hot State Assignment

Definition

State assignment using the same number of state variables as there are states, with only one variable being in one state. This reduces combinational logic by increasing the number of flip-flops.

Equivalent and Compatible States

Equivalent States

Definition

Two states are said to be equivalent if the following are true:

  1. For each input, the states give the exact same output
  2. For each input, the states give the same or equivalent next state

Compatible States

(Only applicable to ASCs?)

Definition

Two states and are said to be compatible if there are no state conflicts for any input valuation.

That is, and are compatible if the following hold:

  1. Both and must have the same output
  2. For each input valuation, one of the following conditions must be true:
    1. Both and have the same successor, OR
    2. Both and are stable, OR
    3. The successor of at least one of or is unspecified

Moore Machine

Definition

The output (Z) depends only on the current state

Note

In a Moore machine, the output changes synchronously with the clock (at the clock edges)

Examples: Synchronous Sequential Circuits#Moore Machine, Asynchronous Sequential Circuits#Moore Machine

Mealy Machine

Definition

The output (Z) depends on the current state and the input.

Note

In a Mealy machine, the output changes asynchronously with the clock (i.e output can change at any time)

Examples: Synchronous Sequential Circuits#Mealy Machine, Asynchronous Sequential Circuits#Mealy Machine