An error correction system for a data storage device comprises a direct
access module and a buffer control module. The direct access module
receives a data stream that includes a plurality of data words from a
host, generates data integrity information based on the plurality of data
words, and inserts the data integrity information into the data stream.
The buffer control module receives the data stream and stores the data
stream to a memory.