Patent ID: 8484541

Claim:
Apparatus for encoding, comprising: a first processing stage, which is configured to filter input data with a first set of coefficients belonging to a first generator polynomial representing a first Error Correction Code (ECC), so as to produce a first output; a second processing stage, which is configured to filter the first output using a second set of the coefficients belonging to a quotient polynomial, which is defined as a quotient of a second generator polynomial, representing a second ECC, divided by the first generator polynomial, so as to produce a second output; and ancillary circuitry, which has first and second operational modes and is coupled to the first and second processing stages so as to generate a first redundancy output corresponding to the first ECC based on the first output when operating in the first operational mode, and to generate a second redundancy output corresponding to the second ECC based on the second output when operating in the second operational mode.