A Moore sequential machine with two inputs (X1 and X2) and one output (Z) has the following state table:
Write VHDL code that describes the machine at the behavioral level. Assume that state changes occur 10 ns after the falling edge of the clock, and output changes occur 10 ns after the state changes.