Patent ID: 11966298
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 an NVDIMM, the NVDIMM comprising a DRAM, a NAND flash memory and an NVDIMM controller, the NVDIMM controller controlling the NVDIMM and comprising a DDR controller, a NAND flash memory controller and a data backup module, wherein the DRAM adopts and enables Data Bus Inversion (DBI) mechanism, the data backup method comprising:
reading, by the DDR controller, N-bit Data Queue (DQ)i and 1-bit DBIi from the DRAM and sending the same to the data backup module, wherein N is an integer multiple of 8;
comparing, by the data backup module, the DQi and DQi−1 when the DBIi is “1”, if the number of bits of the DQi and the DQi−1 with different values is greater than N/2,
inverting the DQi and setting the DBIi to “0”, and otherwise maintaining the DQi and the DBIi unchanged; maintaining the DQi and the DBIi unchanged when the DBIi is “0”,
sending, by the data backup module, processed DQi and DBIi to the NAND controller, and writing, by the NAND controller, the processed DQi and DBIi into the NAND flash memory.