Use two stored bits with symmetric meanings:
Swapping the two numbers interchanges and and fixes equality. Decode the outputs by
Thus only the equality output needs extra logic gates, namely two inversions and an AND gate, or a NOR gate. Code 11 is unused. Initialize both D flip-flops to zero before a new pair of numbers so the starting state is Eq. In normal operation only the three valid codes are reachable.

Articles by others on the same topic (0)

There are currently no matching articles.