A state table of a FSM (finite state machine) is as shown below. Determin…
A state table of a FSM (finite state machine) is as shown below. Determine the output for the input 101011 . {c|cc|cc} Present & \multicolumn{2}{c|}{Next State} & \multicolumn{2}{c}{Output (Y)} \\ State & X = 0 & X = 1 & X = 0 & X = 1 \\ \hline S_0 & S_2 & S_1 & 0 & 0 \\ S_1 & S_2 & S_1 & 1 & 1 \\ S_2 & S_2 & S_1 & 0 & 0 - Consider ' S_0 ' as initial state.
- $110110$
- $010101$
- $011010$
- $101011$
Correct answer
B. $010101$
Explanation
The output depends on the present state and the input (Mealy). Starting from $S_0$: {c|c|c|c} Input & Present & Output & Next \\ \hline 1 & S_0 & 0 & S_1 \\ 0 & S_1 & 1 & S_2 \\ 1 & S_2 & 0 & S_1 \\ 0 & S_1 & 1 & S_2 \\ 1 & S_2 & 0 & S_1 \\ 1 & S_1 & 1 & S_1 Output sequence: $010101$. Answer: (b).