Design a G-L flip-flop that behaves as follows: If G=0, the flip-flop does not change its output state. If G=1, the next output state is equal to L.
a. Derive the characteristic equation of the G-L flip-flop.
b. Convert J-K flip-flop to G-L flip-flop.