GATE 2024 EE – Question 25
In the circuit, the present value of $Z$ is 1. Neglecting the delay in the combinatorial circuit, the values of $S$ and $Z$, respectively, after the application of the clock will be
(Combinatorial circuit: $S=X\oplus Y\oplus Z$ with $X=1$, $Y=0$; the D flip-flop's $D=S$, its output $Q=Z$ is fed back.)

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) $S=1,\ Z=0$
Explanation
Before the clock, $Z=1$ so $S=1\oplus0\oplus1=0$. On the clock edge the flip-flop loads $D=S=0$, so $Z$ becomes 0. With no delay in the combinatorial circuit, $S$ immediately updates to $1\oplus0\oplus0=1$. So after the clock $S=1$ and $Z=0$.