DRAM-BASED STORAGE DEVICE AND ASSOCIATED DATA PROCESSING METHOD
A DRAM-based storage device includes a DRAM and a control circuit. The DRAM includes a buffering area and a host accessing area. A data is stored in the host accessing area. The control circuit is electrically connected with the DRAM. The control circuit copies a portion of the data from the host accessing area to the buffering area at a predetermined time interval. If the portion of the data is successfully copied to the buffering area, the control circuit confirms that the portion of the data in the host accessing area is accurate.
1 . A DRAM-based storage device, comprising:
a DRAM comprising a buffering area and a host accessing area, wherein a data is stored in the host accessing area; and
a control circuit electrically connected with the DRAM,
wherein the control circuit copies a portion of the data from the host accessing area to the buffering area at a predetermined time interval, wherein if the portion of the data is successfully copied to the buffering area, the control circuit confirms that the portion of the data in the host accessing area is accurate.
2 . The DRAM-based storage device as claimed in claim 1 , wherein if the portion of the data is not successfully copied to the buffering area, the control circuit performs an error correction on the portion of the data to correct error bits in the portion of the data.
3 . The DRAM-based storage device as claimed in claim 2 , wherein if the error correction is successfully performed, the control circuit rewrites the corrected portion of the data into the host accessing area.
4 . The DRAM-based storage device as claimed in claim 2 , wherein if the error correction is not successfully performed, a storage location corresponding to the portion of the write data with the error bits is marked by the control circuit.
5 . The DRAM-based storage device as claimed in claim 1 , wherein the portion of the data is copied from the host accessing area to the buffering area after the control circuit executes a direct memory access copy function.
6 . The DRAM-based storage device as claimed in claim 1 , further comprising a backup power source, wherein the backup power source is a supercapacitor or a battery.
7 . A data processing method for a DRAM-based storage device, the DRAM-based storage device comprising a control circuit and a DRAM, the DRAM comprising a buffering area and a host accessing area, a data being stored in the host accessing area, the data processing method comprising steps of:
(a) copying a portion of the data from the host accessing area to the buffering area at a predetermined time interval;
(b) if the portion of the data is successfully copied to the buffering area, confirming that the portion of the data in the host accessing area is accurate;
(c) if the portion of the data is not successfully copied to the buffering area, performing an error correction on the portion of the data to correct error bits in the portion of the data;
(d) if the error correction is successfully performed, rewriting the corrected portion of the data into the host accessing area; and
(e) if the error correction is not successfully performed, marking a storage location corresponding to the portion of the write data with the error bits.
8 . The data processing method as claimed in claim 7 , wherein in the step (a), a direct memory access copy function is performed to copy the portion of the data from the host accessing area to the buffering area.
9 . The data processing method as claimed in claim 7 , wherein after the step (a), the step (c) or the step (d), the step (a) is repeatedly done.