2.5 Step 5: Derive Boolean Equations

Once the truth tables for the state transitions and the output logic have been created, they can be used to derive Boolean equations that define the logical behavior of the system. One expression needs to be defined for each of the bits of the encoded state to define how each state will transition to the next. Sum-of-Products (SOP) expressions for X0 and X1 can be derived by examining the state transition table:

X 0 = E ¯   X ¯ 2 X ¯ 1 X ¯ 0 + E ¯   X ¯ 2 X 1 X ¯ 0
X 1 = E ¯   X ¯ 2 X ¯ 1 X 0 + E ¯   X ¯ 2 X 1 X ¯ 0

Because X 2 has five 1 terms, a Karnaugh map can be used to get the simplest possible Boolean equation:

Figure 2-5. K-Map for X2 Term
X 2 = E   X ¯ 2 + E   X ¯ 1 X ¯ 0

Once the next-state logic has been defined, the logic for controlling the output can be determined using the output logic truth table:

Equation 2-1. Output Logic Expressions
N S G = X ¯ 2 X ¯ 1 X ¯ 0
N S Y = X ¯ 2 X ¯ 1 X 0
E W G = X ¯ 2 X 1 X ¯ 0
E W Y = X ¯ 2 X 1 X 0

Since the error state is the only state where X 2 is a 1 , X 2 can be used directly as the ERR output:

E R R = X 2