Methods for Accessing a Storage Unit of a Flash Memory and Apparatuses using the Same
First Claim
1. A method for accessing a storage unit of a flash memory, performed by a processing unit, comprising:
- controlling a multiplexer to couple a DRAM (Dynamic Random Access Memory) to a buffer;
directing a DMA (Direct Memory Access) controller to store a message of the DRAM to the buffer through the multiplexer and to output the message of the DRAM to a RAID-encoding (Redundant Array of Independent Disk-encoding) unit in a plurality of batches; and
after a first condition is satisfied, controlling the multiplexer to couple the RAID-encoding unit to the buffer and directing the RAID-encoding unit to output a vertical ECC (Error Correction Code) to the buffer through the multiplexer in at least one batch,thereby enabling a storage-unit access interface to obtain the message and the vertical ECC from the buffer, generate a horizontal ECC according to every one of the message and the vertical ECC, and store the message, the vertical ECC, and the horizontal ECC associated with one of the message and the vertical ECC to a storage unit.
1 Assignment
0 Petitions
Accused Products
Abstract
An embodiment of a method for accessing a storage unit of a flash memory, performed by a processing unit, includes at least the following steps. A multiplexer is controlled to couple a DRAM (Dynamic Random Access Memory) to a buffer. A DMA (Direct Memory Access) controller is directed to store a message of the DRAM to the buffer through the multiplexer and to output the message of the DRAM to a RAID-encoding (Redundant Array of Independent Disk-encoding) unit in multiple batches. After a first condition is satisfied, the processing unit controls the multiplexer to couple the RAID-encoding unit to the buffer and directs the RAID-encoding unit to output a vertical ECC (Error Correction Code) to the buffer through the multiplexer in at least one batch.
-
Citations
19 Claims
-
1. A method for accessing a storage unit of a flash memory, performed by a processing unit, comprising:
-
controlling a multiplexer to couple a DRAM (Dynamic Random Access Memory) to a buffer; directing a DMA (Direct Memory Access) controller to store a message of the DRAM to the buffer through the multiplexer and to output the message of the DRAM to a RAID-encoding (Redundant Array of Independent Disk-encoding) unit in a plurality of batches; and after a first condition is satisfied, controlling the multiplexer to couple the RAID-encoding unit to the buffer and directing the RAID-encoding unit to output a vertical ECC (Error Correction Code) to the buffer through the multiplexer in at least one batch, thereby enabling a storage-unit access interface to obtain the message and the vertical ECC from the buffer, generate a horizontal ECC according to every one of the message and the vertical ECC, and store the message, the vertical ECC, and the horizontal ECC associated with one of the message and the vertical ECC to a storage unit. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for accessing a storage unit of a flash memory, performed by a storage-unit access interface, comprising:
-
obtaining a message and vertical ECC (Error Correction Code) from a buffer in a plurality of batches, where, in each batch, a specified length of the message or the vertical ECC is obtained; generating horizontal ECC according to the obtained message or the vertical ECC for each batch; and storing the message, the horizontal ECC associated with the message, the vertical ECC, and the horizontal ECC associated with the vertical ECC to a storage unit. - View Dependent Claims (8, 9, 10)
-
-
11. An apparatus for accessing a storage unit of a flash memory, comprising:
-
a multiplexer; a buffer; a RAID-encoding (Redundant Array of Independent Disk-encoding) unit, generating vertical ECC (Error Correction Code) according to original data; and a processing unit, coupled to the multiplexer and the RAID-encoding unit, controlling the multiplexer to couple a DRAM (Dynamic Random Access Memory) to the buffer;
directing a DMA (Direct Memory Access) controller to store a message of the DRAM to the buffer through the multiplexer and to output the message of the DRAM to the RAID-encoding (Redundant Array of Independent Disk-encoding) unit in a plurality of batches; and
, after a first condition is satisfied, controlling the multiplexer to couple the RAID-encoding unit to the buffer and directing the RAID-encoding unit to output the vertical ECC to the buffer through the multiplexer in at least one batch. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
Specification