2.4 Step 4: Create an Output Logic Table

Once the state transition table has been created, another table can be made to show the behavior of the outputs. The output logic truth table will have columns for each bit of the current state as inputs and columns for each of the outputs. In this example the current state bits are the only input to the truth table since the system in being implemented as a Moore machine (Class 3 state machine). In the case of a Mealy machine (Class 4 state machine), the output logic table would need to include the system inputs along with the current state bits as the inputs to the truth table. Figure 2-4 shows the completed output logic table.

Figure 2-4. Traffic Light Output Logic Table