On each rising edge, synchronously clear on reset, toggle the stored bit when t is high, and hold it when t is low.