Patent ID: 8527851

Claim:
An encoder, comprising: a plurality of register blocks; a plurality of adder logic blocks, said plurality of adder logic blocks being communicatively coupled with the plurality of register blocks; a switching logic block, said switching logic block being communicatively coupled with the plurality of adder logic blocks, said switching logic block being configured for receiving a plurality of information bits of an information word received by the encoder, said switching logic further configured for generating a first output based on a first set of information bits included in the plurality of information bits, said switching logic block further configured for generating a second output based on a second set of information bits included in the plurality of information bits, said switching logic block further configured for providing the second output to the plurality of adder logic blocks; and a universal multipole block having n inputs and 2 2 n outputs, said universal multipole block being communicatively coupled with the plurality of adder logic blocks, said universal multipole block being configured for receiving an error number input, said universal multipole block further configured for calculating a plurality of error coefficients based on the error number input, said universal multipole block further configured for outputting the plurality of coefficients to the adder logic blocks, said universal mulitpole configured to implement Boolean functions on said n inputs, wherein the adder logic blocks are configured for calculating a plurality of parity bits based on the error coefficients received from the universal multipole block and further based on the second output received from the switching logic block, said adder logic blocks further configured for providing the parity bits to the plurality of register blocks, the encoder configured for outputting the parity bits and the first output of the switching logic block, the encoder further configured to encode data according to binary Bose-Chaudhuri-Hocquenghem codes.