20. EEE 3103_Finite State Machines
20. EEE 3103_Finite State Machines
Reference: Digital Design by M. Morris Mano & Michael D. Ciletti [5th Edition]
Prepared by-
Baizeed Ahmed Bhuiyan
Lecturer (Grade-I)
Department of Electrical and Electronic Engineering
Ahsanullah University of Science and Technology
❑ Mealy and Moore Models of Finite State Machines
The most general model of a sequential circuit has inputs, outputs, and
internal states. It is customary to distinguish between two models of
sequential circuits: the Mealy model and the Moore model. Both are
shown in Fig. 5.21 . They differ only in the way the output is generated.
➢ In the Mealy model, the output is a function of both the present state
and the input.
➢ In the Moore model, the output is a function of only the present state.
Consider the sequential circuit shown in Fig. 5.15 . The circuit presented
previously in Fig. 5.15 is an example of a Mealy machine. Output y is a
function of both input x and the present state of A and B .
➢ Step-1: State Equations
The behavior of a clocked sequential circuit can be described algebraically by means of state
equations. A state equation (also called a transition equation ) specifies the next state as a
function of the present state and inputs. The circuit in figure-5.15 consists of two D flip-flops
A and B, an input x and an output y . Since the D input of a flip-flop determines the value of
the next state (i.e., the state reached after the clock transition) it is possible to write a set of
state equations for the circuit:
A(t + 1) = A(t)x(t) + B(t)x(t)
B(t + 1) = A’(t)x(t)
A state equation is an algebraic expression that specifies the condition for a flip-flop state
transition. The left side of the equation, with (t + 1), denotes the next state of the flip-flop one
clock edge later. The right side of the equation is a Boolean expression that specifies the
present state and input conditions that make the next state equal to 1. Since all the variables
in the Boolean expressions are a function of the present state, we can omit the designation (t)
after each variable for convenience and can express the state equations in the more compact
form:
A(t + 1) = Ax+ Bx
B(t + 1) = A’x
The Boolean expressions for the state equations can be derived directly from the gates that
form the combinational circuit part of the sequential circuit, since the D values of the
combinational circuit determine the next state. Similarly, the present-state value of the
output can be expressed algebraically as
y(t) = [A(t) + B(t)]x’(t)
By removing the symbol (t) for the present state, we obtain the output Boolean equation:
y = (A + B)x’