# What is the simplest logic circuit + latch that satisfies this truth table?

This is not a homework problem, I'm just revisiting/relearning the practical applications of latches and logic circuits and I've been trying to figure this out on my own.

Basically, I want to turn one input bit into three possible states of two output bits. When the input bit is "0", both output bits should also be "0". When the input bit is "1", one of the output bits should be "1" and the other should be "0". Which output bit is "1" should alternate every time the input bit is "1". I suspect this can be done with two SR latches and an inverter but I can't for the life of me figure out how... any ideas are welcome!

• Output should change asynchronously (immediately) according to input or just at the clock edge? Commented Apr 12, 2021 at 22:34
• Asynchronously. The input signal wouldn’t necessarily be an even clock, eg it might wait 4 seconds on “0” then switch to “1” Commented Apr 13, 2021 at 0:01
• Are glitches permitted? Commented Apr 13, 2021 at 8:40