• edited by
18,851 views
70 70 votes

A $\text{1-input}$, $\text{2-output}$ synchronous sequential circuit behaves as follows:

Let $z_k, n_k$ denote the number of $0’s$ and $1’s$ respectively in initial $k$ bits of the input

$(z_k+n_k=k)$. The circuit outputs $00$ until one of the following conditions holds.

  • $z_k-n_k=2$. In this case, the output at the k-th and all subsequent clock ticks is $10$.
  • $n_k-z_k=2$. In this case, the output at the k-th and all subsequent clock ticks is $01$.

What is the minimum number of states required in the state transition graph of the above circuit?

  1. $5$
  2. $6$
  3. $7$
  4. $8$

5 Answers

Best answer
79 79 votes
Though the question is from digital logic, the answer is purely from automata. As per the question, we just need to count the difference of the number of $0'$s and $1'$s in the first $k$ bits of a number. And we just need to count till this count reaches $2$ or $-2$ (negative when the number of $0's$ is less than the number of $1's$). So, the possibilities are $-2, -1, 0, 1,$ and $2$ which represent the five states of the state transition diagram.

For state $-2$, the output of the circuit  will be $01$, for state $2$, the output will be $10$ (both these states not having any outgoing transitions) and for other $3$ states, the output will be $00$ as per the given description of the circuit.

Correct Answer: $A$
• edited by
151 151 votes

The Automaton will look like this. 😎

• edited by
9 9 votes

Zk - Nk.  = { -2,-1,0,1,2 }

Z-N = 2 ( no of zeros - number of ones =2 )

Z-N = -2 (no of ones - number of zeros =2 )

So there will be a total of 5 states i.e -2,-1,0,1,2 . With initial state as 0 ( output 00 ) as number of ones and number of zeros are 0.

Final states as -2 ( output 01 ) and 2 (output 10 ) with self loop for all the subsequent inputs.

-1 and 1 are intermediate states.

4 4 votes

It can be solved using concept of TOC hence total no of states is  5

0 0 votes
  1. Initial State: The circuit starts in a state where it outputs $00$, waiting for either condition to be met.
  2. Condition 1 $(zk - nk = 2)$: If this condition is met, the circuit transitions to a state where it outputs $10$ indefinitely.
  3. Condition 2 $(nk - zk = 2)$: If this condition is met, the circuit transitions to a state where it outputs $01$ indefinitely.
  4. No Reset: There's no mention of reset mechanism, so once the circuit enters either of the output states ($10$ or $01$), it remains there.

Therefore, the minimum states required are:

  • $1$ state for the initial $00$ output
  • $2$ states for the output states $(10 and 01)$
  • $2$ additional states to track the difference between $0s$ and $1s$ ($-1$ and $1$) before reaching the output states

Total: 5 states

Answer:
Position:
Show:

Related questions

61 61 votes
5 answers 5 answers
14.7k
14.7k views
Kathleen asked Sep 17, 2014
14,682 views
A program consists of two modules executed sequentially. Let $f_1(t)$ and $f_2(t)$ respectively denote the probability density functions of time taken to execute the two ...
86 86 votes
7 answers 7 answers
29.1k
29.1k views
Kathleen asked Sep 17, 2014
29,069 views
Consider the ALU shown below. If the operands are in $2’s$ complement representation, which of the following operations can be performed by suitably setting the control l...
76 76 votes
8 answers 8 answers
27.8k
27.8k views
Kathleen asked Sep 17, 2014
27,848 views
The literal count of a Boolean expression is the sum of the number of times each literal appears in the expression. For example, the literal count of $\left(xy+xz'\right)...
87 87 votes
9 answers 9 answers
28.0k
28.0k views
Kathleen asked Sep 17, 2014
27,961 views
The following is a scheme for floating point number representation using $16$ bits.Let $s, e,$ and $ m $ be the numbers represented in binary in the sign, exponent, and m...