Detection Method and Related Equipment for Non-Volatile Memory

By simulating the abnormal power outage and recovery process on the nonvolatile memory, using server simulator and power control, the problem of low detection efficiency of nonvolatile memory in the prior art is solved, and a fast and efficient detection process is achieved.

CN113270135BActive Publication Date: 2025-06-17XI AN UNIIC SEMICON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110592072.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2025-06-17
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

In the prior art, the testing time of non-volatile memory is high and the detection efficiency is low. It requires a complete testing process on the server, resulting in a high cost of single test time.

Method used

The server simulator is used to send the set format data to the nonvolatile memory, and then disconnect the external power supply after the nonvolatile memory responds to it, simulate abnormal power outage, and finally read the recovery data and compare it with the set format data to determine the detection result of the nonvolatile memory.

Benefits of technology

This method does not need to rely on server restart, which saves the time required for server restart, significantly reduces the detection time cost of non-volatile memory, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113270135B_ABST
    Figure CN113270135B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method for detecting a non-volatile memory and related devices. The method for detecting a non-volatile memory includes: controlling a server simulator to send data in a set format to the non-volatile memory; sending a save instruction to the non-volatile memory, and after the non-volatile memory responds to the save instruction, disconnecting the external power supply of the non-volatile memory; sending a recovery instruction to the non-volatile memory; after monitoring that the non-volatile memory has completed the recovery operation, obtaining the recovery data stored in the non-volatile memory, and comparing the recovery data with the data in the set format to obtain the detection result of the non-volatile memory. The detection process of this method for detecting a non-volatile memory does not need to rely on a server, and the entire detection process does not involve restarting the server, which can save the time required for restarting the server, greatly reduce the time cost of detecting the non-volatile memory, and improve the detection efficiency of the non-volatile memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of memory detection, and in particular, to a detection method for a non-volatile memory, a detection system for a non-volatile memory, an electronic device, a computer-readable storage medium, and a detection device for a non-volatile memory. Background Art

[0002] During the functional detection process of a non-volatile dual in memory module (NVDIMM), it is necessary to test the non-volatile attribute of the non-volatile memory. In the current technology, the test of the non-volatile attribute needs to be carried out on a server, and the operation of abnormal power-off and then power-on again is performed to detect whether the non-volatile memory can normally back up / restore data. Since a complete test process requires waiting for the normal startup of the server twice, the single test time cost is large, resulting in low detection efficiency of the non-volatile memory. Summary of the Invention

[0003] The present application provides a detection method for a non-volatile memory and related devices. Through the detection method and detection device for the non-volatile memory, the technical problems of large test time cost and low detection efficiency of the non-volatile memory in the prior art can be solved, and automatic detection can be realized to improve the test efficiency.

[0004] The invention aims to solve at least one of the technical problems existing in the prior art or related technologies.

[0005] In view of this, according to the first aspect of the embodiments of the present application, a detection method for a non-volatile memory is proposed, including:

[0006] Controlling a server simulator to send data in a set format to the non-volatile memory;

[0007] Sending a save instruction to the non-volatile memory, and after the non-volatile memory responds to the save instruction, disconnecting the external power supply of the non-volatile memory;

[0008] Sending a restore instruction to the non-volatile memory;

[0009] After monitoring that the non-volatile memory has completed the restore action, obtaining the restored data stored in the non-volatile memory, and comparing the restored data with the data in the set format to obtain the detection result of the non-volatile memory.

[0010] In the first possible implementation manner of the first aspect, the step of controlling the server simulator to send data in a set format to the non-volatile memory includes:

[0011] Obtain the target channel connected to the non-volatile memory;

[0012] Send data in a set format to the non-volatile memory based on the target channel.

[0013] In the second possible implementation manner of the first aspect, the steps of sending a save instruction to the non-volatile memory and disconnecting the external power supply of the non-volatile memory after the non-volatile memory responds to the save instruction include:

[0014] After a preset time has elapsed since sending the save instruction to the non-volatile memory, disconnect the path between the non-volatile memory and the power supply, so that the non-volatile memory starts its internal power supply and writes the data in the set format stored in the dynamic random access memory of the non-volatile memory into the flash memory of the non-volatile memory.

[0015] In the third possible implementation manner of the first aspect, the recovery instruction is used to cause the non-volatile memory to write the set format data stored in the flash memory of the non-volatile memory into the dynamic random access memory of the non-volatile memory.

[0016] In the fourth possible implementation manner of the first aspect, the steps of, after monitoring that the non-volatile memory has completed the recovery action, obtaining the recovery data stored in the non-volatile memory and comparing the recovery data with the set format data to obtain the detection result of the non-volatile memory include:

[0017] After monitoring that the non-volatile memory has completed the recovery action, obtain the recovery data stored in the dynamic random access memory of the non-volatile memory through the server simulator;

[0018] Compare the recovery data with the set format data;

[0019] If the recovery data is the same as the set format data, the detection result is qualified;

[0020] If the recovery data is different from the set format data, the detection result is unqualified.

[0021] In the fifth possible implementation manner of the first aspect, before the step of sending data in a set format to the non-volatile memory through the server simulator, it further includes:

[0022] Control the non-volatile memory to power on;

[0023] Send an initialization instruction to the non-volatile memory;

[0024] Send a trigger operation instruction to the non-volatile memory to make the non-volatile memory operate;

[0025] Send a preset data format to the server simulator to enable the server simulator to generate set format data based on the preset data format.

[0026] According to a second aspect of an embodiment of the present application, a detection system for a non-volatile memory is provided, including:

[0027] A data sending module, configured to control the server simulator to send set format data to the non-volatile memory;

[0028] A save instruction module, configured to send a save instruction to the non-volatile memory, and disconnect the external power supply of the non-volatile memory after the non-volatile memory responds to the save instruction;

[0029] A restore instruction module, configured to send a restore instruction to the non-volatile memory;

[0030] A detection module, configured to, after monitoring that the non-volatile memory has completed a restore operation, obtain the restore data stored in the non-volatile memory, and compare the restore data with the set format data to obtain a detection result of the non-volatile memory.

[0031] According to a third aspect of an embodiment of the present application, an electronic device is provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor is configured to implement the steps of the detection method of the non-volatile memory according to any one of the above technical solutions when executing the computer program stored in the memory.

[0032] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the detection method of the non-volatile memory according to any one of the above technical solutions.

[0033] According to a fifth aspect of an embodiment of the present application, a detection device for a non-volatile memory is provided, including: a server simulator, a power supply, and a processor;

[0034] The server simulator is configured to simulate a server to send data to the non-volatile memory, the power supply is configured to supply power to the non-volatile memory, the processor is respectively connected to the server simulator and the power supply, and the processor is configured to:

[0035] Control the server simulator to send data to the non-volatile memory;

[0036] Control the start and stop status of the power supply.

[0037] In the first possible implementation manner of the fifth aspect, the server simulator is a field programmable gate array or a complex programmable logic device.

[0038] In the second possible implementation manner of the fifth aspect, it further includes:

[0039] A connection component, which is respectively connected to the server simulator, the power supply and the processor, and the connection component is used to connect the non-volatile memory.

[0040] In the third possible implementation manner of the fifth aspect, the connection component includes:

[0041] A board card, which is connected to the power supply;

[0042] A plurality of slots, which are arranged on the board card, and each slot is connected to the processor and the server simulator, and the slots are used for plugging in the non-volatile memory;

[0043] Wherein, the processor is further used for:

[0044] After the non-volatile memory is inserted into the slot, detect the slot address where the non-volatile memory is inserted;

[0045] Based on the slot address, control the server simulator to send the data to the non-volatile memory.

[0046] In the fourth possible implementation manner of the fifth aspect, the slot is a DDR slot.

[0047] In the fifth possible implementation manner of the fifth aspect, the detection device of the non-volatile memory further includes:

[0048] A selector, the server simulator is connected to the selector, and the selector is connected to a plurality of the slots.

[0049] In the sixth possible implementation manner of the fifth aspect, the processor is respectively connected to the board card, the slot, the power supply and the server simulator through an interface.

[0050] Compared with the prior art, the present invention at least includes the following beneficial effects:

[0051] The detection method and related devices of a non-volatile memory provided by an embodiment of the present application can control a server simulator to send data in a set format to the non-volatile memory during the process of testing the non-volatile attribute of the non-volatile memory, then power off the non-volatile memory to simulate the abnormal power-off phenomenon of the non-volatile memory, and finally read the restored data in the non-volatile memory. By comparing the restored data with the data in the set format sent to the non-volatile memory, it is determined whether the non-volatile attribute of the non-volatile memory is reliable based on the comparison result. The entire detection process does not rely on a server, so the entire detection process does not involve restarting the server, which can save the time required for restarting the server, greatly reduce the time cost of detecting the non-volatile memory, and improve the detection efficiency of the non-volatile memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The above and / or additional aspects and advantages of the present invention will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0053] Figure 1 is a schematic flowchart of the detection method of the non-volatile memory provided by an embodiment of the present invention;

[0054] Figure 2 is a schematic structural block diagram of the detection system of the non-volatile memory provided by an embodiment of the present application;

[0055] Figure 3 is a schematic structural block diagram of the electronic device provided by an embodiment of the present application;

[0056] Figure 4 is a schematic structural block diagram of the computer-readable storage medium provided by an embodiment of the present application.

[0057] Figure 5 is a schematic structural diagram of the detection device of the non-volatile memory provided by the present invention. DETAILED DESCRIPTION

[0058] In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, without conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

[0059] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited by the specific embodiments disclosed below.

[0060] Such as Figure 1As shown, according to the first aspect of the embodiments of the present application, a method for detecting a non-volatile memory is proposed, including:

[0061] Step 101: Control the server simulator to send data in a set format to the non-volatile memory. By controlling the server simulator to send data in a set format to the non-volatile memory, the non-volatile memory can store the data in the set format.

[0062] Step 102: Send a save instruction to the non-volatile memory, and after the non-volatile memory responds to the save instruction, disconnect the external power supply of the non-volatile memory. By sending a save instruction to the non-volatile memory, the non-volatile memory can know that a non-volatile property test is about to be performed. After the non-volatile memory responds to the save instruction, disconnecting the external power supply of the non-volatile memory can simulate the phenomenon of abnormal power-off of the non-volatile memory.

[0063] In some examples, when the non-volatile memory knows that a non-volatile property test is about to be performed and the non-volatile memory is disconnected from the external power supply, the controller of the non-volatile memory will enable the power distribution capacitor inside the non-volatile memory, and the power distribution capacitor will supply power to the non-volatile memory to write the data in the set format stored in the dynamic random access memory (DRAM) of the non-volatile memory into the flash memory (NAND) to perform data storage in the abnormal power-off state.

[0064] Step 103: Send a recovery instruction to the non-volatile memory. After simulating abnormal power-off of the non-volatile memory, the non-volatile memory will recover the data in the abnormal power-off state so that the non-volatile memory stores recovery data.

[0065] In some examples, after the non-volatile memory receives the recovery instruction, the non-volatile memory knows that the external power supply has returned to normal, and the controller of the non-volatile memory restores the data in the set format written into the flash memory to the dynamic random access memory of the non-volatile memory.

[0066] Step 104: After monitoring that the non-volatile memory has completed the recovery action, obtain the recovery data stored in the non-volatile memory and compare the recovery data with the data in the set format to obtain the detection result of the non-volatile memory. After monitoring that the non-volatile memory has completed the recovery action, it means that the non-volatile memory has completed the data recovery. At this time, reading the recovery data in the non-volatile memory and comparing the recovery data with the data in the set format can test the non-volatile property of the non-volatile memory.

[0067] The detection method of the non-volatile memory provided by the present invention can control the server simulator to send data in a set format to the non-volatile memory during the process of testing the non-volatile attribute of the non-volatile memory, then power off the non-volatile memory to simulate the abnormal power-off phenomenon of the non-volatile memory, and finally read the restored data in the non-volatile memory. By comparing the restored data with the data in the set format sent to the non-volatile memory, it is determined whether the non-volatile attribute of the non-volatile memory is reliable based on the comparison result. The entire detection process does not rely on the server, so the entire detection process does not involve restarting the server, which can save the time required for restarting the server, greatly reduce the time cost of detecting the non-volatile memory, and improve the detection efficiency of the non-volatile memory.

[0068] In some examples, the step of controlling the server simulator to send data in a set format to the non-volatile memory includes: obtaining the target channel connected to the non-volatile memory; and sending data in a set format to the non-volatile memory based on the target channel.

[0069] By obtaining the target channel connected to the non-volatile memory and then sending data in a set format to the non-volatile memory based on the target channel, it can ensure that the data in the set format is written into the non-volatile memory.

[0070] In some examples, the step of obtaining the target channel connected to the non-volatile memory may include: detecting and obtaining the socket position where the non-volatile memory is plugged in, and determining the target channel based on the socket position.

[0071] In some examples, the step of sending a save instruction to the non-volatile memory and disconnecting the external power supply of the non-volatile memory after the non-volatile memory responds to the save instruction includes: after a preset time has elapsed since sending the save instruction to the non-volatile memory, disconnecting the path between the non-volatile memory and the power supply, so that the non-volatile memory starts its internal power supply and writes the data in the set format stored in the dynamic random access memory of the non-volatile memory into the flash memory of the non-volatile memory.

[0072] After a preset time has elapsed since sending the save instruction to the non-volatile memory, disconnect the path between the non-volatile memory and the power supply. Through the setting of this preset time, the non-volatile memory has enough time to respond to the save instruction, which can simulate the power-off signal sent by the motherboard to the non-volatile memory during the process of detecting the performance of the non-volatile memory through the server, so that the non-volatile memory knows that an abnormal power-off will occur.

[0073] Specifically, the value range of the preset time is 1 to 10 milliseconds.

[0074] After disconnecting the external power supply of the non-volatile memory and simulating an abnormal power outage, the controller of the non-volatile memory will enable the power distribution capacitor inside the non-volatile memory, and the power distribution capacitor will supply power to the non-volatile memory, so that the set-format data stored in the dynamic random access memory of the non-volatile memory is written into the flash memory for data preservation in the case of an abnormal power outage.

[0075] In some examples, a recovery instruction is used to cause the non-volatile memory to write the set-format data stored in the flash memory of the non-volatile memory into the dynamic random access memory of the non-volatile memory.

[0076] After the non-volatile memory receives the recovery instruction, the non-volatile memory knows that the external power supply has been restored to normal, and the controller of the non-volatile memory restores the set-format data written into the flash memory to the dynamic random access memory of the non-volatile memory.

[0077] In some examples, after monitoring that the non-volatile memory has completed the recovery operation, the steps of obtaining the recovery data stored in the non-volatile memory and comparing the recovery data with the set-format data to obtain the detection result of the non-volatile memory include: after monitoring that the non-volatile memory has completed the recovery operation, obtaining the recovery data stored in the dynamic random access memory of the non-volatile memory through a server simulator; comparing the recovery data with the set-format data; if the recovery data is the same as the set-format data, the detection result is qualified; if the recovery data is different from the set-format data, the detection result is unqualified.

[0078] After monitoring that the non-volatile memory has completed the recovery operation, it means that the non-volatile memory has completed the data recovery. At this time, reading the recovery data in the non-volatile memory and comparing the recovery data with the set-format data can test the non-volatile attribute of the non-volatile memory.

[0079] If the recovery data is the same as the set-format data, it means that the non-volatile memory can store and recover data completely in the case of an abnormal power outage, and the non-volatile attribute of the non-volatile memory is qualified. If the recovery data is different from the set-format data, it means that the non-volatile memory cannot store and recover data completely in the case of an abnormal power outage, and there may be a risk of inability to store and recover, and the non-volatile attribute of the non-volatile memory is unqualified.

[0080] In some examples, before the step of sending formatted data to the non-volatile memory through the server simulator, it further includes: powering on the non-volatile memory; sending an initialization instruction to the non-volatile memory; sending a trigger operation instruction to the non-volatile memory to make the non-volatile memory operate; sending a preset data format to the server simulator so that the server simulator generates formatted data based on the preset data format.

[0081] By powering on the non-volatile memory and sending an initialization instruction to the non-volatile memory, the non-volatile memory can perform an initialization operation, which facilitates the server simulator to send formatted data to the non-volatile memory and facilitates the writing of the formatted data.

[0082] Sending a trigger operation instruction to the non-volatile memory to make the non-volatile memory operate can make the non-volatile memory in a normal working state, which is convenient for detecting the non-volatile attribute of the non-volatile memory when the non-volatile memory is in a working state.

[0083] Sending a preset data format to the server simulator so that the server simulator generates formatted data based on the preset data format. It can be understood that the formatted data is the data that can be stored in the non-volatile memory, and the determination of the preset data format facilitates the subsequent comparison of the formatted data with the restored data, which can further improve the detection efficiency and shorten the detection time.

[0084] As Figure 2 shown, according to the second aspect of the embodiments of the present application, a detection system for a non-volatile memory is proposed, including:

[0085] A data sending module 201, configured to control the server simulator to send formatted data to the non-volatile memory;

[0086] A save instruction module 202, configured to send a save instruction to the non-volatile memory and disconnect the external power supply of the non-volatile memory after the non-volatile memory responds to the save instruction;

[0087] A restore instruction module 203, configured to send a restore instruction to the non-volatile memory;

[0088] A detection module 204, configured to obtain the restored data stored in the non-volatile memory after monitoring that the non-volatile memory has completed the restore action, and compare the restored data with the formatted data to obtain the detection result of the non-volatile memory.

[0089] The detection system for non-volatile memory provided by the present invention, during the process of testing the non-volatile property of the non-volatile memory, controls the server simulator to send data in a set format to the non-volatile memory through the data sending module 201, then powers off the non-volatile memory through the save instruction module 202 to simulate the abnormal power-off phenomenon of the non-volatile memory, controls the non-volatile memory to restore data through the restore instruction module 203, and finally reads the restored data in the non-volatile memory through the detection module 204. By comparing the restored data with the data in the set format sent to the non-volatile memory, it is determined whether the non-volatile property of the non-volatile memory is reliable based on the comparison result. The entire detection process does not need to rely on the server, so the entire detection process does not involve restarting the server, can save the time required for restarting the server, can greatly reduce the time cost of detecting the non-volatile memory, and improve the detection efficiency of the non-volatile memory.

[0090] As Figure 3 shown, according to the third aspect of the embodiments of the present application, an electronic device is proposed, including: a memory 301, a processor 302, and a computer program stored in the memory 301 and executable on the processor. The processor 302 is used to implement the steps of the detection method for non-volatile memory in any of the above technical solutions when executing the computer program stored in the memory 301.

[0091] For the electronic device provided in this embodiment, when the processor 302 executes the computer program stored in the memory 301, it implements the steps of the detection method for non-volatile memory in any of the above technical solutions. Therefore, this electronic device has all the beneficial effects of the detection method for non-volatile memory.

[0092] As Figure 4 shown, according to the fourth aspect of the embodiments of the present application, a computer-readable storage medium is proposed, on which a computer program 401 is stored. When the computer program 401 is executed by a processor, it implements the steps of the detection method for non-volatile memory in any of the above technical solutions.

[0093] For the computer-readable storage medium provided in this embodiment, when the computer program 401 is executed by a processor, it implements the steps of the detection method for non-volatile memory in any of the above technical solutions. Therefore, this computer-readable storage medium has all the beneficial effects of the detection method for non-volatile memory.

[0094] A detection device for a non-volatile memory according to a fifth aspect of an embodiment of the present application includes: a server simulator 1, a power supply 5, and a processor 2; the server simulator 1 is configured to simulate a server to send data to the non-volatile memory 31, the power supply 5 is configured to supply power to the non-volatile memory 31, and the processor 2 is connected to the server simulator 1 and the power supply 5. The processor 2 is configured to: control the server simulator 1 to send data to the non-volatile memory 31; control the start and stop states of the power supply 5.

[0095] In the detection device for a non-volatile memory provided by the present invention, during the detection process of the non-volatile memory 31, the processor 2 controls the server simulator 1 to send data to the non-volatile memory 31, and the dynamic random access memory of the non-volatile memory 31 can store the data; then the processor 2 controls the power supply 5 to stop supplying power to the non-volatile memory 31 to simulate an abnormal power-off operation of the non-volatile memory 31; the non-volatile memory 31 starts an internal power supply 5 in the case of abnormal power-off and writes the data stored in the dynamic random access memory of the non-volatile memory 31 into the flash memory of the non-volatile memory 31; then the power-on of the non-volatile memory 31 is restored, so that the non-volatile memory 31 performs data recovery, and the data stored in the flash memory is rewritten into the dynamic random access memory of the non-volatile memory 31. Finally, the restored data stored in the dynamic random access memory is read through the server simulator 1, and the non-volatile attribute of the non-volatile memory 31 can be detected by comparing the restored data with the data written into the non-volatile memory 31. During the entire detection process, the processor 2 controls the server simulator 1 to send data to the non-volatile memory 31, and the processor 2 controls the power supply 5 to cut off the power supply to the non-volatile memory 31, without relying on the server, so there is no need to restart the server, which can greatly reduce the time cost of detecting the non-volatile memory 31 and improve the detection efficiency of the non-volatile memory 31.

[0096] It can be understood that the data sent to the non-volatile memory 31 through the server simulator 1 can be data in a set format, and the data in the set format is data that the non-volatile memory 31 can store and has a standard format, so as to facilitate comparing the data in the set format with the restored data.

[0097] It can be understood that if the data sent to the non-volatile memory 31 is the same as the restored data in the non-volatile memory 31, it means that the non-volatile attribute of the non-volatile memory 31 is qualified; if the data sent to the non-volatile memory 31 is different from the restored data in the non-volatile memory 31, it means that the non-volatile attribute of the non-volatile memory 31 is unqualified.

[0098] In some examples, the processor 2 is electrically connected to the power supply 5 and is used to control the power supply 5 to supply power to or cut off power from the non-volatile memory 31; the processor 2 is electrically connected to the server simulator 1 and is used to control the server simulator 1 to send data to the non-volatile memory 31; during the process of testing the non-volatile memory 31, the processor 2 is used to connect to the non-volatile memory 31 to send an enable signal and a save signal to the non-volatile memory 31, the server simulator 1 is used to connect to the non-volatile memory 31 to send data to the non-volatile memory 31, and the power supply 5 is used to connect to the non-volatile memory 31 to supply power to the non-volatile memory 31 or simulate a power-off state.

[0099] In this technical solution, the server simulator 1 is a field programmable gate array or a complex programmable logic device.

[0100] Both the field programmable gate array and the complex programmable logic device can generate the set-format data that the non-volatile memory 31 can store, and both the field programmable gate array and the complex programmable logic device can read the restored data stored in the non-volatile memory 31, which is convenient for comparing the set-format data with the restored data to determine the non-volatile attribute.

[0101] In some examples, the detection device of the non-volatile memory further includes: a connection component, and the connection component is respectively connected to the server simulator 1, the power supply 5, and the processor 2, and the connection component is used to connect to the non-volatile memory 31.

[0102] Through the setting of the connection component, the non-volatile memory 31 can be connected to the non-volatile memory 31, and the power supply 5 can supply power to the non-volatile memory 31 through the connection component. In the case where the power supply 5 is turned off, the path between the non-volatile memory 31 and the power supply 5 is disconnected to simulate the occurrence of an abnormal power-off phenomenon. When the processor 2 is connected to the connection component, it can know whether there is a non-volatile memory 31 plugged into the connection component. In the case where the non-volatile memory 31 is connected to the connection component, the processor 2 can establish a communication connection relationship between the non-volatile memory 31 and the server simulator 1 based on the connection position of the non-volatile memory 31. The processor 2 can control the server simulator 1 to send data to the non-volatile memory 31 or control the server simulator 1 to read the restored data stored in the non-volatile memory 31.

[0103] In some examples, the connection component includes: a board 3, which is connected to a power supply 5; a plurality of slots, which are arranged on the board 3, and each slot is respectively connected to a processor 2 and a server simulator 1, and the slots are used for plugging in non-volatile memories 31; wherein, the processor 2 is further configured to: after the non-volatile memory 31 is inserted into the slot, detect the slot address where the non-volatile memory 31 is inserted; based on the slot address, control the server simulator 1 to send data in a set format to the non-volatile memory 31.

[0104] The connection component includes a board 3 and a plurality of slots. The power supply 5 is connected to the board, and the power supply 5 can power on the plurality of slots through the board. In the case where the non-volatile memory 31 is plugged into the slot, the power supply 5 can supply power to the non-volatile memory 31. By arranging the plurality of slots, the non-volatile attributes of a plurality of non-volatile memories 31 can be detected simultaneously, and the detection efficiency can be greatly improved.

[0105] The processor 2 can also be configured to: detect the slot address where the non-volatile memory 31 is inserted; based on the slot address, control the server simulator 1 to send data in a set format to the non-volatile memory 31, which is convenient for establishing a communication channel between the server simulator 1 and the non-volatile memory 31, for the server simulator 1 to send data to the non-volatile memory 31, and for the server simulator 1 to read the recovery data in the non-volatile memory 31.

[0106] In some examples, the slot is a DDR slot.

[0107] The slot is a DDR slot. On the one hand, it is convenient for the plugging of the non-volatile memory 31, and on the other hand, it is convenient for establishing a communication connection relationship between the non-volatile memory 31, the processor 2, and the server simulator 1.

[0108] In some examples, the detection device for the non-volatile memory further includes: a selector 4, the server simulator 1 is connected to the selector 4, and the selector 4 is connected to a plurality of slots.

[0109] Through the setting of the selector 4, when the processor 2 knows the plugging position of the non-volatile memory 31, it can switch the data channel of the selector 4 to the slot where the non-volatile memory 31 is plugged, which is convenient for the server simulator 1 to send data to the non-volatile memory 31 and for the server simulator 1 to read the recovery data in the non-volatile memory 31 through the slot.

[0110] In some examples, the processor 2 is respectively connected to the board 3, the slot, the power supply 5, and the server simulator 1 through interfaces.

[0111] It can be understood that for the convenience of wiring processing, the processor 2 can be respectively connected to the board 3, the slot, the power supply 5, and the server simulator 1 through different interfaces.

[0112] In some examples, the processor 2 is communicatively connected to the board 3 via the I2C bus, so that the processor 2 can perform data communication with the non-volatile memory 31.

[0113] The processor 2 is communicatively connected to the board 3 via the I2C bus (Inter-Integrated Circuit, a bidirectional two-wire synchronous serial bus). The processor 2 can be communicatively connected to each slot on the main board via the I2C bus. When the non-volatile memory 31 is plugged into the slot, the processor 2 can communicate with the non-volatile memory 31. The processor 2 can send a recovery instruction to the non-volatile memory 31 via the I2C bus, so that the data stored in the flash memory of the non-volatile memory 31 can be restored and written into the dynamic random access memory. Similarly, the processor 2 can learn about the recovery status of the non-volatile memory 31 via the I2C bus. After the non-volatile memory 31 completes the recovery operation, the processor 2 can control the server emulator 1 to read the recovery data in the non-volatile memory 31. The I2C bus communication is reliable and has low cost, which is beneficial to the stable operation of the non-volatile memory detection device and can reduce the production cost of the product.

[0114] In some examples, the processor 2 is electrically connected to multiple slots via the first GPIO interface (General-purpose input / output), so that the processor 2 can send an enable signal to the non-volatile memory 31.

[0115] The processor 2 is electrically connected to multiple slots via the first GPIO interface, so that the processor 2 can send an enable signal to the non-volatile memory 31, enabling the processor 2 to send a save instruction to the non-volatile memory 31 via the first GPIO interface, so that the non-volatile memory 31 can know that a non-volatile property test is about to be performed, ensuring that in the case of abnormal power-off, the non-volatile memory 31 has enough time to respond to the save instruction. The selection of the first GPIO interface can reduce production costs and failure rates.

[0116] In some examples, the processor 2 is connected to the power supply 5 via the second GPIO interface.

[0117] The processor 2 is connected to the power supply 5 via the second GPIO interface. The processor 2 can send an enable signal to the power supply 5 via the second GPIO interface to control the power supply 5 to disconnect the power supply path for the non-volatile memory 31, so as to simulate the abnormal power-off phenomenon of the non-volatile memory 31. The selection of the second GPIO interface can reduce production costs and failure rates.

[0118] In some examples, the server simulator 1 is connected to the processor 2 through a QSPI interface (Quad SPI, 6-wire serial peripheral interface).

[0119] The server simulator 1 is connected to the processor 2 through a QSPI interface, taking into account the wiring requirements that need to be met between the server simulator 1 and the processor 2. Since the data transmission volume between the server simulator 1 and the processor 2 is small, selecting the QSPI interface can ensure the stability of data transmission while reducing the production cost of the detection device for non-volatile memory and reducing the failure rate.

[0120] The server simulator 1 is communicatively connected to the non-volatile memory 31 through a QSPI interface, used to send data in a set format to the non-volatile memory 31, and after the non-volatile memory 31 finishes recovery, obtain the current data in the non-volatile memory 31, and compare the current data with the data in the set format to obtain the detection result of the non-volatile memory 31.

[0121] Specifically, the server simulator 1 is communicatively connected to the processor 2 through a QSPI interface. After the processor 2 obtains the slot address of the memory card slot with the non-volatile memory 31 inserted, it sends the slot address of the memory card slot to the server simulator 1. The server simulator 1 uses the slot address of the memory card slot to control the data selector 4 to connect the server simulator 1 to the corresponding memory card slot to send data in a set format to the non-volatile memory 31.

[0122] It can be understood that the server simulator 1 can also select other high-power interfaces to be connected to the processor 2.

[0123] When there are non-volatile memories 31 inserted in multiple memory card slots, the server simulator 1 is also used to control the data selector 4 to reconnect the server simulator 1 to the slot of the non-volatile memory 31 to be tested after the controller of the non-volatile memory 31 completely writes the data in the set format in the flash memory into the dynamic random access memory, so that the server simulator 1 can read the data in the set format in the non-volatile memory 31 to be tested again.

[0124] The server simulator 1 is also used to generate data in a set format according to a preset data format before sending the data in the set format to the non-volatile memory 31, and proofread the current data with the preset data format to determine whether the current data meets the preset data format. If so, it is determined that the non-volatile memory 31 has been successfully recovered; if not, it is determined that the non-volatile memory 31 has failed to recover.

[0125] The processor 2 is respectively connected to the non-volatile memory 31 through the first GPIO interface and the I2C bus, and is used to send a save instruction to the non-volatile memory 31 through the first GPIO interface after detecting that the set-format data has been written in the non-volatile memory 31, power off the non-volatile memory 31 through the second GPIO interface in response to the save instruction, and send a recovery instruction to the non-volatile memory 31 through the I2C bus to control the non-volatile memory 31 to perform recovery after the non-volatile memory 31 has saved the set-format data.

[0126] Specifically, the processor 2 is used to send a save instruction to the controller in the non-volatile memory 31 after the set-format data has been written in the dynamic random access memory in the non-volatile memory 31, and control the power supply 5 of the non-volatile memory 31 to power off after a preset time period. Specifically, multiple non-volatile memories 31 can be arranged on the memory card slot of the board 3, and the board 3 is powered by the power supply 5.

[0127] Multiple preset data formats can be set in the processor 2, and the preset data format is sent to the server simulator 1 according to the user's selection.

[0128] The processor 2 detects the writing status of the set-format data in the flash memory, and sends a recovery instruction to the controller of the non-volatile memory 31 after the controller has completely written the set-format data into the flash memory, and writes the set-format data in the flash memory into the dynamic random access memory through the controller.

[0129] The processor 2 is also used to detect the slot address of the memory card slot with the non-volatile memory 31 inserted after the non-volatile memory 31 has been inserted into the memory card slot and before the set-format data is sent to the non-volatile memory 31 through the server simulator 1.

[0130] The processor 2 is also used to power on the non-volatile memory 31 before sending the set-format data to the non-volatile memory 31 through the server simulator 1, complete the initialization of the non-volatile memory 31, and send a trigger working signal to the non-volatile memory 31 to trigger the operation of the non-volatile memory 31.

[0131] In the description of the present invention, the term "a plurality of" refers to two or more, unless otherwise clearly defined. The orientation or positional relationship indicated by terms such as "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the present invention; terms such as "connection", "installation", "fixation", etc. should all be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0132] In the description of the present invention, the description of terms such as "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In the present invention, the schematic expressions of the above terms do not necessarily refer to the same embodiment or instance. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0133] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A detection method for a non-volatile memory, characterized in that, Including: Controlling the server simulator to send data in a set format to the non-volatile memory; Sending a save instruction to the non-volatile memory, and after the non-volatile memory responds to the save instruction, disconnecting the external power supply of the non-volatile memory to simulate abnormal power-off of the non-volatile memory; Sending a recovery instruction to the non-volatile memory. After simulating abnormal power-off of the non-volatile memory, the non-volatile memory recovers the data in the abnormal power-off state, so that the non-volatile memory stores recovered data; After monitoring that the non-volatile memory has completed the recovery operation, obtaining the recovered data stored in the non-volatile memory, and comparing the recovered data with the data in the set format to obtain the detection result of the non-volatile memory; Before the step of controlling the server simulator to send data in a set format to the non-volatile memory, it further includes: Controlling the non-volatile memory to power on; Sending an initialization instruction to the non-volatile memory; Sending a trigger work instruction to the non-volatile memory to make the non-volatile memory work; Sending a preset data format to the server simulator, so that the server simulator generates data in a set format based on the preset data format.

2. The detection method for a non-volatile memory according to claim 1, characterized in that, The step of controlling the server simulator to send data in a set format to the non-volatile memory includes: Obtaining a target channel connected to the non-volatile memory; Sending data in a set format to the non-volatile memory based on the target channel.

3. The detection method for a non-volatile memory according to claim 1, characterized in that, The step of sending a save instruction to the non-volatile memory, and after the non-volatile memory responds to the save instruction, disconnecting the external power supply of the non-volatile memory includes: After a preset time from sending the save instruction to the non-volatile memory, disconnecting the path between the non-volatile memory and the power supply, so that the non-volatile memory starts the internal power supply and writes the data in the set format stored in the dynamic random access memory of the non-volatile memory into the flash memory of the non-volatile memory.

4. The detection method for a non-volatile memory according to claim 1, characterized in that, The recovery instruction is used to make the non-volatile memory write the data in the set format stored in the flash memory of the non-volatile memory into the dynamic random access memory of the non-volatile memory.

5. The detection method for a non-volatile memory according to claim 1, characterized in that, The step of, after monitoring that the non-volatile memory has completed the recovery operation, obtaining the recovered data stored in the non-volatile memory, and comparing the recovered data with the data in the set format to obtain the detection result of the non-volatile memory includes: After monitoring that the non-volatile memory has completed the recovery operation, obtaining the recovered data stored in the dynamic random access memory of the non-volatile memory through the server simulator; Comparing the recovered data with the data in the set format; If the recovered data is the same as the data in the set format, the detection result is qualified; If the recovered data is different from the data in the set format, the detection result is unqualified.

6. A detection system for a non-volatile memory, characterized in that, Including: A data sending module, configured to control a server simulator to send data in a set format to the non-volatile memory; A save instruction module, configured to send a save instruction to the non-volatile memory, and after the non-volatile memory responds to the save instruction, disconnect the external power supply of the non-volatile memory to simulate abnormal power-off of the non-volatile memory; A recovery instruction module, configured to send a recovery instruction to the non-volatile memory. After simulating abnormal power-off of the non-volatile memory, the non-volatile memory recovers the data in the abnormal power-off state, so that the non-volatile memory stores recovered data; A detection module, configured to, after detecting that the non-volatile memory has completed the recovery operation, obtain the recovered data stored in the non-volatile memory, and compare the recovered data with the data in the set format to obtain a detection result of the non-volatile memory; Before the step of sending data in a set format to the non-volatile memory through the server simulator, it further includes: Controlling the non-volatile memory to power on; Sending an initialization instruction to the non-volatile memory; Sending a trigger work instruction to the non-volatile memory to make the non-volatile memory work; Sending a preset data format to the server simulator, so that the server simulator generates data in a set format based on the preset data format.

7. An electronic device, characterized in that,It includes: A memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program stored in the memory, it implements the steps of the detection method of the non-volatile memory according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, A computer program is stored thereon. When the computer program is executed by the processor, it implements the steps of the detection method of the non-volatile memory according to any one of claims 1-5.

9. A detection device for a non-volatile memory, characterized in that, Applied to the detection method of the non-volatile memory according to any one of claims 1-5, the detection device of the non-volatile memory includes: a server simulator, a power supply, and a processor; The server simulator is configured to simulate a server to send data to the non-volatile memory, the power supply is configured to supply power to the non-volatile memory, the processor is connected to the server simulator and the power supply, and the processor is configured to: Control the server simulator to send data to the non-volatile memory; Control the start and stop states of the power supply.

10. The detection device for a non-volatile memory according to claim 9, characterized in that, The server simulator is a field programmable gate array or a complex programmable logic device.

11. The detection device for a non-volatile memory according to claim 9, characterized in that, It further includes: A connection component, the connection component is respectively connected to the server simulator, the power supply, and the processor, and the connection component is used to connect the non-volatile memory.

12. The detection device for a non-volatile memory according to claim 9, characterized in that, The connection component includes: A board, the board is connected to the power supply; A plurality of slots are arranged on the board, each slot is respectively connected to the processor and the server simulator, and the slots are used to plug in the non-volatile memory; Wherein, the processor is further configured to: After the non-volatile memory is inserted into the slot, detect the slot address where the non-volatile memory is inserted; Based on the slot address, control the server simulator to send the data to the non-volatile memory.

13. The detection device for a non-volatile memory according to claim 12, characterized in that, The slot is a DDR slot.

14. The detection device for a non-volatile memory according to claim 12, characterized in that, It further includes: A selector, the server simulator is connected to the selector, and the selector is connected to multiple slots.

15. The detection device for a non-volatile memory according to claim 12, characterized in that, The processor is respectively connected to the board, the slot, the power supply, and the server simulator through interfaces.

Citation Information

Patent Citations

  • Detection device of nonvolatile memory

    CN214897632U

  • Control system

    JP2016024569A