Combining outputs of shift register