An all-optical bi-stable device includes first and second comparators,
each having an activating input, a threshold input, and a clamping
output; a first optical path between the first clamping output and the
second threshold input; a second optical path between the second clamping
output and the first threshold input; at least one tapping device; and at
least one coupling device. The comparators are arranged to produce at the
clamping output either a high-level clamped output signal or a low-level
output signal, based on a comparison of signals received at the
activating and threshold inputs. The first and second optical paths may
create one of two stable states in which one of the comparators produces
a high-level clamped output signal and the other comparator produces a
low-level output signal. The coupling device may flip between the two
stable states by converting the high-level clamped output signal into the
low-level output signal.