a device for generating a quasi - orthogonal code mask in a communication system . a counter generates first to eighth counter signals x 1 - x 8 representing bent functions . a logic operator receives the first to eighth counter signals x 1 - x 8 and performs an operation , for example x 1 * x 2 + x 1 * x 3 + x 1 * x 4 + x 1 * x 5 + x 1 * x 7 + x 1 * x 8 + x 2 * x 6 + x 2 * x 7 + x 3 * x 4 + x 3 * x 5 + x 3 * x 6 + x 4 * x 5 + x 4 * x 6 + x 4 * x 7 + x 4 * x 8 + 3 x 5 * x 7 + x 7 * x 8 + x 1 + x 2 + x 5 + x 7 , to generate a mask signal .