A , synchronous sequential circuit behaves as follows:
Let denote the number of and respectively in initial bits of the input
. The circuit outputs until one of the following conditions holds.
- . In this case, the output at the k-th and all subsequent clock ticks is .
- . In this case, the output at the k-th and all subsequent clock ticks is .
What is the minimum number of states required in the state transition graph of the above circuit?
View worked solution
Answer: A
Let represent the difference between the number of s and s after receiving bits of input. Initially, at , we have .
At any step, receiving a increases by , and receiving a decreases by . The circuit tracks this difference until it reaches or . We can define the states based on the value of :
- State (): The initial state. Output is .
- State (): Output is .
- State (): Output is .
- State (): An absorbing state. Once reached, the output becomes and remains forever.
- State (): An absorbing state. Once reached, the output becomes and remains forever.
None of these states can be merged because:
- and have different outputs ( vs ).
- and have different transitions. For example, on input , transitions to (output ), whereas transitions to (output ).
Thus, the minimum number of states required is .
Free practice · Your answers on this page are not saved.
