I am trying to build a T flip-flop from a D flip-flop. The D flip-flop looks like this
and the simulated waveform shows that it works.(when there is a rising edge D will be passed to Q)
So I started building a T flip-flop by connecting Qnot to D (I am expecting every clock rising edge Q will be toggled because Qnot is passed to Q)
but the simulated waveform looks like this
Q will oscillate when CLK is low. One oscillation period is around couple ns. I played with different Clear and Preset signals but it still happens.
If anyone can point out my errors. Thanks.