主权项 |
1. A method for data migrating in a data storage system, comprising the steps of:
(a) embedding an XOR (Exclusive OR) logic function unit into a memory controller, thereby creating an XOR memory controller, wherein said XOR logic function unit includes a first buffer, a second buffer, and an XOR comparator coupled to said first and second buffers, (b) coupling said XOR memory controller between at least one host and a memory unit, (c) allocating a first memory address range and a second memory address range, (d) receiving a “write” data request from at least one host, said write data request having a requested address associated therewith, wherein said “write” data includes a first data block and at least one second data block, (e) decoding said requested address, (f) placing, under control of said XOR memory controller, said first data block into said first buffer at an address range corresponding to said first memory address range in accordance with said decoded requested address, (g) transferring, under control of said XOR memory controller, said first data block to an address range in said memory unit corresponding to said first memory address range, (h) placing, under control of said XOR memory controller, said at least one second data block into said first buffer at an address range corresponding to said second memory address range, (i) transmitting, under control of said XOR memory controller, said first data block from said memory unit into said second buffer, (j) applying, under control of said XOR memory controller, the XOR logic function to said first data block and said second data block written in said first and second buffers, respectively, thereby generating a first XOR result, and (k) placing, under control of said XOR controller, said first XOR result into said address range in said memory unit corresponding to said first memory address range. |