Why does the book’s D flip flop differ from others

digital-logicflipflop

My understanding of a D flip flop is that when the clock is high and D=1, it sets Q to 1. If D=0, Q is set to 0. So it is like a set to 1 if D=1 and reset to 0 otherwise.

The table repeatedly given in my book is:

D CLK Q QN
0 High 0 1
1 High 1 0
x 0  (last Q) (last QN)
x 1  (last Q) (last QN)

The book is: John F Wakerly, Digital Design Principles and Practices.

It repeatedly reuses this table when describing negative edge/enable flip flops. It seems like it is doing a T flip flop, basically. But it defines T flip flop later too.

Am I misunderstanding D flip flop? Why does the book differ from other sources?

Best Answer

You mention that the table looks like a T flip flop. Is it possible you are interpreting the table incorrectly?

I believe the "QN" column represents "Q NOT", where the "Q" column is the value of Q resulting from the specific input. In this case, the table correctly represents the behavior of a D flip flop.