• edited by
6,508 views
30 30 votes

The below figure shows four $\text{D}$-type flip-flops connected as a shift register using a $\text{XOR}$ gate. The initial state and three subsequent states for three clock pulses are also given.

$$\begin{array}{|l|c|c|c|c|} \hline \text{State} & Q_{A} & Q_{B} & Q_{C} & Q_{D} \\\hline \text{Initial} & 1 & 1 & 1 & 1 \\ \text{After the first clock} & 0 & 1 & 1 & 1 \\ \text{After the second clock} & 0 & 0 & 1 & 1 \\ \text{After the third clock} & 0 & 0 & 0 & 1 \\\hline  \end{array}$$The state $Q_{A} Q_{B} Q_{C} Q_{D}$ after the fourth clock pulse is

  1. $0000$
  2. $1111$
  3. $1001$
  4. $1000$

4 Answers

Best answer
20 20 votes
Option (D) $\mathbf{1000}$
$Q_{An} =Q_{C} \oplus  Q_{D}, \ Q_{Bn} = Q_{A}, Q_{Cn}=Q_{B} \ \text{and} \ Q_{Dn}=Q_{C}$
$$\begin{array}{|c|c|c|c|} \hline \bf{Q_A} & \bf {Q_B}& \bf {Q_C} &  \bf{Q_D }\\\hline1&1&1&1\\ 0&1&1&1\\0&0&1&1\\ 0&0&0&1 \\\hline \mathbf{1}&\mathbf{0} &\mathbf{0}&\mathbf{0}\\\hline\end{array}$$
• edited by
1 1 vote

All have D flip-flops:

QB, QC and QD are depending on the previous states of QA, QB and QC respectively.

only QA is depending on previous XOR of QC and QD

So, the next state:

QA = XOR (prev QC and prev QD)= 1

QB = prev of QA = 0

QC = prev of QB = 0

QD = prev of QC = 0

Ans: 1000

1 1 vote

$$\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \bf{CP} & \bf {Q_A}& \bf {Q_B} &  \bf{Q_C }&  \bf{Q_D }&  \bf{Q_A^+=Q_C\oplus Q_D }&  \bf{Q_B^+=Q_A }&  \bf{Q_C^+=Q_B }&  \bf{Q_D^+=Q_C }&  \bf{CP}\\\hline0&1&1&1&1&0&1&1&1&1\\ 1&0&1&1&1&0&0&1&1&2\\ 2&0&0&1&1&0&0&0&1&3 \\ 3&0&0&0&1&\mathbf{1}&\mathbf{0}&\mathbf{0}&\mathbf{0}&\mathbf{4}\\\hline\end{array}$$

Correct Answer (D)

1 1 vote



A classic example of Linear Feedback Shift Register, Where we generate random numbers on diff clock cycles

Answer:
Position:
Show:

Related questions

16 16 votes
3 answers 3 answers
10.0k
10.0k views
Misbah Ghaya asked Nov 7, 2016
10,031 views
The above circuit produces the output sequence:$1111\quad 1111\quad0000\quad0000$$1111 \quad 0000\quad1111\quad0000$$1111 \quad 0001\quad0011\quad0101$$1010\quad1010\quad...
1 1 vote
3 3 answers
3.5k
3.5k views
sh!va asked Feb 21, 2017
3,459 views
Which shift register counter requires the most decoding circuitry?Johnson CounterRing CounterRipple Counter$\text{MOD}$ counter
26 26 votes
4 answers 4 answers
8.9k
8.9k views
Misbah Ghaya asked Nov 8, 2016
8,858 views
The output $F$ of the below multiplexer circuit can be represented by$AB+B\bar{C}+\bar{C}A+\bar{B}\bar{C}$$A\oplus B\oplus C$$A \oplus B$$\bar{A} \bar{B} C+ \bar{A} B \ba...
46 46 votes
10 answers 10 answers
21.7k
21.7k views
go_editor asked Sep 20, 2015
21,733 views
For the initial state of $000$, the function performed by the arrangement of the $\text{J-K}$ flip-flops in figure is:Shift Register$\text{Mod- 3}$ Counter$\text{Mod- 6}$...