I have two inputs, A and B, and I want them to perform as so:
|------------|-----------|--------|
| Prev State | New State | Output |
| A B | A B | |
|---------------------------------|
| 0 0 | 0 1 | 1 |
| 0 1 | 0 0 | 0 |
| 0 1 | 1 1 | 1 |
| 1 1 | 0 1 | 0 |
|---------------------------------|
Basically an OR gate works for everything, unless, the previous state was both on, then it needs to be off. Any ideas?
I'm making a light sensor based off of Etho's grass design, and in order to improve its speed, I want to make multiple sensors, and combine their inputs into one.
SOLUTION
Even though QAdley's answer is the solution to my logic table, it doesn't scale well for multiple inputs. Here is my solution using MBraedley suggestion, substituting the light detector for levers.
In this picture, each lever has both a rising and falling edge detector. All 4 of the rising edge detectors are joined together to form a single output, and all 4 of the falling edge detectors form another.
In this second picture, I use the two outputs as inputs into an RS NOR Latch. The only gotcha is that I had to include a repeater with 2 tics to make the reset input pulse long enough to actually make the NOR Latch work. Then I put an inverter at the end to turn the light on when any switch is turned on, and turn the light off when any switch is turned off.
Thanks everyone for your help, and if you see anything I can improve, let me know!