How do I create a circuit with two inputs A and B and one output Q using only one D flip-flop and logic gates? The circuit should perform the following when the clock ticks:
AB = 00: retains current value of Q
AB = 01: reset Q
AB = 10: set Q
AB = 11: invert Q