The ECC encoder operation calculates check (or protection) bits for the input data. For each 4 to 128 bits of data input, it generates between 4 and 9 check bits. These bits are used during each ECC decoder operation to correct any single-bit errors, or to detect any double-bit errors. The data along with the calculated check bits are provided as an output of ECC encoder function, as shown in the following figure. The data and check bits output of the ECC encoder is called an ECC codeword. For more details on the number of check bits required for the configured data width, refer to Configuration Tab.
Figure 1. ECC Encoder Block Diagram