Agilex™ 7 Hard Processor System Technical Reference Manual
10.4.2. ECC Structure
The ECC is calculated based on a Hamming code for the corresponding data word length.
| Data Bus Width | ECC Bits | 
|---|---|
| 8 to 15 bits | 5 | 
| 16 to 31 bits | 6 | 
| 32 to 63 bits | 7 | 
| 64 to 127 bits | 8 | 
| 128 to 255 bits | 9 | 
| 256 bits | 10 | 
| Peripheral Memory | Data Size | Memory | ECC Bits | Data Width + ECC Bits | Hamming Code Word (length in bits) | Type 14 | 
|---|---|---|---|---|---|---|
| On-chip RAM | 64 x 32768 | Word-addressable | 8 | 64+7 15 | 72 | Single port | 
| USB RAM | 35 x 8192 | Word-addressable | 7 | 35+7 | 42 | Single port | 
| SD/MMC FIFO | 32 x 1024 | Word-addressable | 7 | 32+7 | 39 | True dual port | 
| EMAC Rx FIFO | 35 x 4096 | Word-addressable | 7 | 35+7 | 42 | Simple dual port | 
| EMAC Tx FIFO | 35 x 4096 | Word-addressable | 7 | 35+7 | 42 | Simple dual port | 
| DMA FIFO | 64 x 512 | Byte-addressable | 5 per byte lane | 64+40 16 | 104 | Simple dual port | 
| NAND ECC Buffer | 16 x 768 | Word-addressable | 6 | 16+6 | 22 | Simple dual port | 
| NAND Write FIFO | 32 x 128 | Word-addressable | 7 | 32+7 | 39 | Simple dual port | 
| NAND Read FIFO | 32 x 32 | Word-addressable | 7 | 32+7 | 39 | Simple dual port |