A device that has at least one output channel and one or more input channels, all characterized by discrete states, such that the state of each output channel is determined by the previous states of the input channels.