Patent ID: 11914484
Assignee: XI'AN UNIIC SEMICONDUCTORS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A data backup method for a Non-Volatile Dual In-line Memory Module (NVDIMM), wherein the NVDIMM comprises a Dynamic Random Access Memory (DRAM), a Not AND (NAND) flash memory and an NVDIMM controller, the NVDIMM controller controlling the NVDIMM and comprising a Double Data Rate (DDR) controller, a NAND flash memory controller and a data backup module, and wherein the DDR controller uses and enables Data Bus Inversion (DBI), the data backup method comprising:
reading, by the DDR controller, N-bit Data Queue (DQ) DQ and 1-bit DBI from the DRAM, and sending the N-bit DQ and 1-bit DBI to the data backup module;
encoding, by the data backup module, the N-bit DQ and the 1-bit DBI into N-bit Encoded Data Queue (EDQ) according to values of the N-bit DQ and the 1-bit DBI, and
sending the N-bit EDQ to the NAND flash memory controller; and
receiving, by the NAND flash memory controller, the N-bit EDQ, and writing the N-bit EDQ into the NAND flash memory, wherein under a condition that the N-bit DQ contains N/2 “1”s, the N-bit DQ is encoded into N-bit EDQ that is identical therewith; under a condition that number of “1”s in the N-bit DQ is not N/2, the N-bit DQ is index mapped to N−1 bits in the N-bit EDQ, in which N-bit EDQ number of “1”s is not N/2, and 1-bit DBI is written into remaining one bit in the N-bit EDQ.