
Correction Capability, Sector Size, and Check Bit Size
Table 10-17: Correction Capability, Sector Size, and Check Bit Size
Check Bit Size in Bytes
Sector Size in Bytes
Correction
8
512
4
14
512
8
26
512
16
46
1024
24
ECC Programming Modes
The NAND flash controller provides the following ECC programming modes that software uses to format
a page:
• Main Area Transfer Mode
• Spare Area Transfer Mode
• Main+Spare Area Transfer Mode
Related Information
•
on page 10-25
•
on page 10-25
•
on page 10-26
Main Area Transfer Mode
In main area transfer mode, when ECC is enabled, the NAND flash controller inserts ECC check bits in the
data stream on writes and strips ECC check bits on reads. Software does not need to manage the ECC sectors
when writing a page. ECC checking is performed by the flash controller, so software simply transfers the
data.
If ECC is turned off, the NAND flash controller does not read or write ECC check bits.
Figure 10-2: Main Area Transfer Mode Programming Model for ECC
Sector 0
Sector 1
Sector 2
Sector 3
Spare Area Transfer Mode
The NAND flash controller does not introduce or interpret ECC check bits in spare area transfer mode, and
acts as pass through for data transfer.
Figure 10-3: Spare Area Transfer Mode Programming Model for ECC
Sector 3
ECC3
Flags
Altera Corporation
NAND Flash Controller
10-25
Correction Capability, Sector Size, and Check Bit Size
cv_54010
2013.12.30