This is the smallest possible toggle I could come up with after quite a bit of trial and error. It consists of an OR which is the input that is linked to a SvenCell™ (AND/OR memory cell) and a NAND. So 5 blocks. Either block of SvenCell™ becomes your output as that cell toggles its state.
The wiring from top to bottom:
The top is just resetting high pulse limiters. I'm a big fan of using nothing but these as inputs for everything I do as it makes it really easy to keep track of what going on in my circuits. I've wired these into a single OR block.
That OR block is the input for the toggle circuit. Because it's an OR, it can have as many inputs as you want to give it. It is important that you use nothing but pulses as any constant on signal will lock it into the on state as well. The OR is wired into the OR of the SvenCell™ and the AND of the NAND cell.
The SvenCell™ is the OR/AND block. They are wired into each other. The OR block can only turn the cell on, and the AND block can only turn it off. The AND of the SvenCell™ is wired into the AND of the NAND cell.
The NAND cell is what toggles the SvenCell™. The NOT of the NAND is wired back into the AND of the SvenCell™ to turn it off. Because the AND in the NAND has two inputs, it only turns on if both a signal is received from the input OR and the AND of the SvenCell™ at which point it sends a signal to the NOT which in turn sends a signal to the AND of the SvenCell™ turning off that cell off.
This 5-block circuit can be used anywhere you need a toggle with multiple potential inputs.
The wiring from top to bottom:
The top is just resetting high pulse limiters. I'm a big fan of using nothing but these as inputs for everything I do as it makes it really easy to keep track of what going on in my circuits. I've wired these into a single OR block.
That OR block is the input for the toggle circuit. Because it's an OR, it can have as many inputs as you want to give it. It is important that you use nothing but pulses as any constant on signal will lock it into the on state as well. The OR is wired into the OR of the SvenCell™ and the AND of the NAND cell.
The SvenCell™ is the OR/AND block. They are wired into each other. The OR block can only turn the cell on, and the AND block can only turn it off. The AND of the SvenCell™ is wired into the AND of the NAND cell.
The NAND cell is what toggles the SvenCell™. The NOT of the NAND is wired back into the AND of the SvenCell™ to turn it off. Because the AND in the NAND has two inputs, it only turns on if both a signal is received from the input OR and the AND of the SvenCell™ at which point it sends a signal to the NOT which in turn sends a signal to the AND of the SvenCell™ turning off that cell off.
This 5-block circuit can be used anywhere you need a toggle with multiple potential inputs.