latch

By airlobster

D - high pulse input. each pulse inverts the FF's output state. R - reset pulse. C and R initialize the FF to a known state.