The following figure shows an example of the ECC Encoder and ECC Decoder use case. The ECC Encoder and ECC Decoder functions are used along with Internal Memories for single bit error correction function. The error correction function here increases reliability against radiation induced soft errors or Single Event upsets [SEU].
In the following figure, ECC Encoder/Decoder function is used with the off-chip DDR memory. The write operations to the memory are performed using data byte enables or data strobes. Because ECC functions inherently do not support byte enables, to perform data writes with byte enables, a read-modify-write operation is used.
For DDR memory writes, first a read is performed to the memory. The codeword received from DDR memory is checked for single bit errors and then the corrected data is provided to read-modify-write operation. The output of read-modify-write operation is again provided to ECC core to generate the write codeword to the DDR Memory. For DDR memory reads, the codeword read from DDR Memory is checked for single bit errors by the ECC function. The corrected data along with error status is then provided at the user interface. A single instance of ECC encoder/decoder function is used here for both reads from the DDR memory to perform Read-Modify-Write to the DDR memory.