Patent ID: 8190974

Claim:
A method for writing data and related error correction code (ECC) data to a memory unit for storage, the method comprising: initializing a write list data structure corresponding to a page of data stored within the memory unit; receiving one or more data write requests to store data in the page of data, wherein each of the one or more data write requests corresponds to a different data sector to be stored in the page of data; for each of the one or more data write requests, determining whether an ECC flag that is included in the write list data structure and associated with the data sector corresponding to the data write request is already set, and if the ECC flag is not already set, then setting the ECC flag, and setting a sector flag that is included in the write list data structure and corresponds to the data sector corresponding to the data write request, or if the ECC flag is already set, then setting the sector flag that is included in the write list data structure and corresponds to the data sector corresponding to the write data request; and transmitting the write list data structure to an arbitration unit to access from a cache unit the data sectors corresponding to the one or more data write requests and to store in the memory unit the data sectors and one or more ECC sectors associated with the data sectors.