CSCI 255 — T flip-flop

If T is 1 when clk changes from 0 to 1, the value of Q is toggled (or inverted).

Input Output
T clk Q Q’
0 0 0 1