Skip to main content

State diagram and state table

Short answer

A state diagram is a graph of states with edges labeled input/output. A state table lists present state, input, next state, output in tabular form. Example: Mealy machine for two consecutive 1s; states A (no 1) and B (one 1); output Z=1 when X=1 in state B.

Define state diagram and state table with example.

A state diagram is a graph that shows the behaviour of a sequential circuit: each state is a circle, and each arrow shows the move to the next state on a clock pulse, labelled input/output (Mealy) or with the output written inside the circle (Moore).

A state table gives the same information in tabular form: for every present state and input, it lists the next state and the output.

Example: a Mealy machine that gives Z = 1 when two consecutive 1s arrive (states A = no 1, B = one 1).

 Arc label = X/Z

 A --1/0--> B --1/1--> B  (self loop)
 A --0/0--> A  (self loop)
 B --0/0--> A
Present stateNext (X=0)Next (X=1)Z (X=0)Z (X=1)
AAB00
BAB01

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 9 questions →