| CPC H03M 7/6041 (2013.01) [G06F 11/1044 (2013.01)] | 20 Claims |

|
1. A data compression method, applied to a memory controller, comprising:
storing data to be written into a first address and a second address into a data buffer in response to a data write request to the first address and the second address of a memory module from a host; wherein, the first address and the second address are located in the same memory bank of the memory module;
according to a relationship between the first address and the second address, selecting a compression scheme from pre-configured compression schemes, and attempting to compress the data to be written into the first address and the second address into compressed data that can be stored into either the first address or the second address by using a pre-defined compression method, if the attempt to compress successes, storing the compressed data into the first address or the second address, and identifying the compressed data by using redundant ERROR CORRECTION CODE (ECC) bits to form first identification information.
|