There is the classic flip-flop using two transistors. I now tried to extend it to be able to store more than 2 states, and thought it'd be interesting to be able to extend it to 3 or an arbitrary number of states and came up with following design:
To activate any of the 3 states we use a switch to pull the corresponding base down, and to store the information we use an OR-gate using diodes from the other states.
Now my issue is, for implementing n
states, the number of diodes scales quadratically (that is we need n*(n-1)
diodes), so I was wondering - purely out of curiosity, with no practical application in mind:
Is there a way to extend the classic transistor flipflop to n
states, where the number of components just stays O(n)
?