How do I calculate the ECC for DDR3 UniPHY-based controller?
The error correction code (ECC) calculation for UniPHY-based memory controllers is based on the Hamming Coding scheme. The Hamming Coding scheme derives the parity bits and appends them to the original data to produce the output code word. The number of parity bits appended depends on the width of the data.
For more information, refer to the ALTECC_ENCODER and ALTECC_DECODER megafunctions in the Integer Arithmetic Megafunctions User Guide.