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

Claim 6:
7. A data restoration 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 restoration module, wherein the DRAM adopts and enables Data Bus Inversion (DBI) mechanism, the data restoration method comprising:
reading, by the NAND controller, N-bit Data Queue (DQ)i and 1-bit DBIi from the NAND flash memory and sending the same to the data restoration module, wherein N is an integer multiple of 8;
judging, by the data restoration module, the values of the DQi and the DBIi, if DBIi=0 and the number of “1”s in the DQi is less than or equal to N/2,
inverting the DQi and rewriting the DBIi to “1” by the data restoration module, and otherwise maintaining the DQi and the DBIi unchanged,
sending, by the data restoration module, processed DQi and DBIi to the DDR controller, and
pulling down or pulling up, by the DDR controller, the DBI of the interface of the DDR controller according to the value of the 1-bit DBIi and sending the DQi to the DRAM.