The method or system may include determining a plurality of patterns from L patterns of data streams, each pattern including a data stream of length M, where M is an integer greater than 1; generating an L-level PN sequence; and passing one pattern of data stream among the L patterns of data streams to the output according to the value of the L-level PN sequence.