The following arrangement of master-slave flip flop \draw (0,0) node[flip…
The following arrangement of master-slave flip flop \draw (0,0) node[flipflop, flipflop def={t1=J, c2=1, t3=K, t6=P}] (FP) {}; \draw (5.0,0) node[flipflop, flipflop def={t1=D, c3=1, t6=Q}] (FQ) {}; \node[above] at (FP.up) {JK (master-slave)}; \node[above] at (FQ.up) {D (master-slave)}; \draw (FP.pin 1) -- ++(-0.7,0) node[left]{ 1'}; \draw (FP.pin 3) -- ++(-0.7,0) node[left]{ 1'}; \draw (FP.pin 6) -- ++(0.9,0) |- (FQ.pin 1); \draw (FQ.pin 6) -- ++(0.6,0); \draw (FP.pin 2) -- ++(-1.9,0) |- (0,-2.4) -| ([xshift=-0.6cm]FQ.pin 3) -- (FQ.pin 3); \draw ([xshift=-0.6cm]FQ.pin 3 |- 0,-2.4) node[circ]{} -- ++(2.6,0) node[right]{CLK}; Has the initial state of P, Q as 0, 1 (respectively). After three clock cycles the output states P, Q is (respectively).
- $1, 0$
- $1, 1$
- $0, 0$
- $0, 1$
Correct answer
A. $1, 0$
Explanation
$P$ is a JK flip-flop with $J = K = 1$, so it toggles every clock. $Q$ is a D flip-flop with $D = P$. Being master-slave, both sample their inputs at the same edge, so $Q$ takes the old value of $P$. {c|c|c} Clock & P & Q \\ \hline 0 & 0 & 1 \\ 1 & 1 & 0 \\ 2 & 0 & 1 \\ 3 & 1 & 0 After three clocks $P, Q = 1, 0$. Answer: (a).