Patent ID: 8243772

Claim:
An adjustable code generator configured to generate a selected spread-spectrum code signal of a plurality of spread-spectrum code signals, comprising: a feedback polynomial mask table stored in a non-transitory computer readable storage medium and configured to include a plurality of feedback polynomial masks, wherein each feedback polynomial mask corresponds to a respective spread spectrum code of a plurality of spread-spectrum codes; control logic configured to select a respective one of the plurality of feedback polynomial masks in the feedback polynomial mask table corresponding to the selected spread-spectrum code signal; feedback logic configured to generate feedback using the selected feedback polynomial mask; and a shift register configured to provide, at an output of the shift register, the selected spread-spectrum code signal using the selected feedback polynomial mask, and configured to receive feedback generated by the feedback logic, wherein the feedback logic is configured to generate the feedback by taking a bit-wise XOR of bits from the shift register and the feedback polynomial mask when an output bit of the shift register equals 1.