A memory testing system and a memory testing method

By designing a memory test system including processing unit, power management unit and monitoring unit, configuring different low-power modes and timeout time thresholds, comprehensive stress testing of the memory is solved, and the existing test methods cannot cover real-life usage scenarios. The problem is to realize the stable operation of the memory and data security under different power modes.

CN118675602BActive Publication Date: 2024-11-29合肥康芯威存储技术有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411162174.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-29
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

The existing firmware stress testing methods cannot fully cover the various combinations of power outage and power-on in real-life use scenarios of customers, resulting in insufficient internal firmware verification.

Method used

A memory test system is designed, including processing unit, power management unit and monitoring unit, and comprehensive stress testing of the memory is carried out by configuring different low power modes and timeout thresholds, including short power mode, long power mode and sleep mode model.

Benefits of technology

The test system can fully cover various combinations of power outage and power-on issues, ensuring that the memory can operate stably under different power modes and operating conditions, reducing the risk of data loss or equipment damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675602B_ABST
    Figure CN118675602B_ABST
Patent Text Reader

Abstract

The present invention provides a memory test system and a test method thereof, the test system comprising: a processing unit, configured with different low power consumption modes and corresponding timeout thresholds, and sent to the memory; and a monitoring unit, configured with monitoring the status of the core power pin and the input / output power pin of the memory; wherein the processing unit is configured with building a test environment, and performs stress testing on the memory in different low power consumption modes; when determining that the power on and off of the core power pin and the input / output power pin of the memory are complete, the processing unit reads the address data corresponding to the host data written to the memory before power failure; the processing unit is also configured with comparing the host data written to the memory before power failure with the host data read after power failure to generate a test result. Through the memory test system and the test method thereof provided by the present invention, the firmware of the memory can be subjected to a comprehensive stress test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage, and in particular to a storage testing system and a testing method thereof. Background Art

[0002] With the widespread use of electronic products such as mobile phones and tablets, the requirements for low power consumption of memory are getting higher and higher. Power Off Notification (PON) is an important function in memory, which can significantly reduce the power consumption of electronic products. The firmware of the memory must be able to correctly handle normal PON operations, and at the same time ensure that the electronic products can be restored to normal state under various power-off and power-on combinations. Different application scenarios have different requirements for the processing power of the firmware, so it is necessary to stress test the processing power of the firmware.

[0003] Most of the existing firmware stress tests are based on white box testing inside the firmware. This test method has a single condition and is not complex enough to fully cover the various power-off and power-on combination problems in real customer usage scenarios. This test limitation leads to insufficient internal firmware verification. Therefore, there is room for improvement. Summary of the invention

[0004] The object of the present invention is to provide a memory testing system and a testing method thereof, so as to perform a comprehensive stress test on the firmware of the memory.

[0005] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0006] The present invention provides a memory testing system, comprising:

[0007] A processing unit configured to configure different low power consumption modes and corresponding timeout thresholds, and send them to the memory, wherein the timeout threshold represents the time required for the memory to completely save the data before the memory is powered off;

[0008] A power management unit, electrically connected to the processing unit and the memory, and used to control power on and off of input / output power pins of the memory; and

[0009] A monitoring unit, electrically connected to the processing unit and the memory, and configured to monitor the status of a core power pin and an input / output power pin of the memory;

[0010] The processing unit is used to build a test environment and perform stress testing on the memory in different low power consumption modes;

[0011] The processing unit reads the address data corresponding to the host data written into the memory before power failure when determining that the power on and off of the core power pin and the input / output power pin of the memory are intact;

[0012] The processing unit is also used to compare the host data written into the memory before power failure with the host data read out after power failure to generate a test result.

[0013] In one embodiment of the present invention, the low power consumption mode includes a short power mode, the timeout threshold includes a short duration threshold, and the short power mode corresponds to the short duration threshold;

[0014] In the short power mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state;

[0015] The processing unit is also used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state;

[0016] The processing unit is further configured to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of sending the power-off waiting instruction reaches a first delay duration, so that the memory enters a power-off state, wherein the first delay duration is less than a short duration threshold;

[0017] Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

[0018] In one embodiment of the present invention, the low power mode further includes a long power mode, the timeout threshold further includes a long duration threshold, and the long power mode corresponds to the long duration threshold;

[0019] In the long power mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state;

[0020] The processing unit is also used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state;

[0021] The processing unit is further used to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of sending the power-off waiting instruction reaches a second delay duration, so that the memory enters a power-off state, wherein the second delay duration is less than a long duration threshold;

[0022] Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

[0023] In one embodiment of the present invention, the low power consumption mode further includes a sleep mode, the timeout threshold further includes a sleep duration threshold, and the sleep mode corresponds to the sleep duration threshold;

[0024] In the sleep mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state;

[0025] The processing unit is also used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state;

[0026] The processing unit is further configured to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of sending the power-off waiting instruction reaches a third delay duration, so that the memory enters a power-off state, wherein the third delay duration is less than a sleep duration threshold;

[0027] Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

[0028] In one embodiment of the present invention, in the short power mode and the long power mode, the processing unit's test of the memory includes: at least one combination of powering on the core power pin and powering on the input / output power pin, powering on the core power pin and powering off the input / output power pin, powering off the core power pin and powering on the input / output power pin, and powering off the core power pin and powering off the input / output power pin.

[0029] In one embodiment of the present invention, in the sleep mode, the processing unit tests the memory including at least one combination of powering on a core power pin and powering on an input / output power pin, and powering off a core power pin and powering on an input / output power pin.

[0030] In one embodiment of the present invention, when the processing unit determines that the upper and lower power supplies of the core power pins and the input / output power pins of the memory are incomplete, the processing unit repeatedly performs stress testing on the memory until the upper and lower power supplies of the core power pins and the input / output power pins of the memory are complete.

[0031] In one embodiment of the present invention, the processing unit generates the test result when it is determined that the host data written to the memory before power failure is the same as the host data read after power failure;

[0032] When the processing unit determines that the host data written to the memory before power failure is different from the host data read after power failure, the test result is generated and the firmware of the memory is optimized.

[0033] The present invention also provides a memory testing method, comprising:

[0034] Acquire a memory and build a test environment for the memory;

[0035] Configuring different low power consumption modes and corresponding timeout thresholds, and sending them to the memory, wherein the timeout threshold represents the time required for the memory to completely save the data before the memory is powered off;

[0036] Performing stress testing on the memory in different low power consumption modes;

[0037] Determine whether the power on and off of the core power pin and the input / output power pin of the memory are complete;

[0038] When the power on and off of the core power pin and the input / output power pin of the memory are not complete, repeatedly performing a stress test on the memory;

[0039] When the core power pin and the input / output power pin of the memory are powered on and off completely, the host data written to the memory before power failure is compared with the host data read after power failure to generate a test result.

[0040] In one embodiment of the present invention, the low power mode includes a short power mode, a long power mode, and a sleep mode, the timeout threshold includes a short duration threshold, a long duration threshold, and a sleep duration threshold, the short power mode corresponds to the short duration threshold, the long power mode corresponds to the long duration threshold, and the sleep mode corresponds to the sleep duration threshold. The step of performing a stress test on the memory in different low power modes includes:

[0041] In the short power mode, the long power mode and the sleep mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state;

[0042] In the short power mode, the long power mode and the sleep mode, the processing unit is used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state;

[0043] In the short power mode, the long power mode and the sleep mode, the processing unit is used to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of the power-off waiting instruction being sent reaches a preset delay duration, so that the memory enters a power-off state, wherein the preset delay duration includes a first delay duration corresponding to the short power mode, a second delay duration corresponding to the long power mode and a third delay duration corresponding to the sleep mode, the first delay duration is less than a short duration threshold, the second delay duration is less than a long duration threshold, and the third delay duration is less than a sleep duration threshold;

[0044] Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

[0045] As described above, the present invention provides a memory test system and a test method thereof, which can test the response time and processing capability of the memory in various PON modes by performing detailed tests in different modes, including the situations of short-time busy, long-time busy and sleep busy of the PON, and different scenarios such as power off immediately after command execution, power off while waiting for the memory to complete, and power off during memory operation, and can timely discover the potential risks and defects that may exist in the firmware in the PON mode. Through detailed testing and verification, it can ensure that the firmware can run stably in different power modes and operating conditions, reducing the risk of data loss or equipment damage.

[0046] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0048] Figure 1 A schematic diagram of a memory testing system according to an embodiment of the present invention;

[0049] Figure 2 is a flow chart of a method for testing a memory in one embodiment of the present invention;

[0050] Figure 3 for Figure 2 Flow chart of step S30;

[0051] Figure 4 for Figure 3 Flow chart of step S31 in FIG.

[0052] Figure 5 for Figure 3 Flow chart of step S32;

[0053] Figure 6 for Figure 3 Flow chart of step S33;

[0054] Figure 7 for Figure 2 Flow chart of step S60 in FIG.

[0055] In the figure: 100, processing unit; 200, power management unit; 300, monitoring unit; 400, storage unit; 500, power supply unit; 600, peripheral interface unit; 700, memory unit; 800, first serial interface unit; 900, memory; 1000, second serial interface unit. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] See also Figure 1 The present invention provides a memory test system, which can perform stress testing on the firmware of the memory 900. The test system may include a processing unit (CPU) 100, a power management unit (Power Management Integrated Circuit, PMIC) 200, a monitoring unit (Voltage Monitor, VM) 300, a storage unit (SD) 400, a power unit (POWER) 500, a peripheral interface unit (USB) 600, a memory unit (DRAM) 700 and a first serial interface unit (UART) 800. Among them, the processing unit 100, the power management unit 200, the monitoring unit 300, the storage unit 400, the power unit 500, the peripheral interface unit 600, the memory unit 700 and the first serial interface unit 800 can be installed on the same test board.

[0058] In one embodiment, the processing unit 100 may be responsible for executing instructions in a computer program and controlling other hardware devices to work in coordination. The processing unit 100 may obtain instructions from the storage unit 400, decode the instructions, and execute the instructions to complete its main functions.

[0059] In one embodiment, the power management unit 200 can be electrically connected to the processing unit 100 and the memory 900 respectively. The power management unit 200 can be used to manage and control the power distribution in the device. The power management unit 200 can turn on or off the core power (Voltage Common Collector, VCC) pin and the input / output power (Voltage Common Collector for I / O, VCCQ) pin of the memory 900 in sequence according to specific timing requirements to ensure that the memory 900 is started and shut down normally.

[0060] The VCC pin can provide power to the core circuits (such as storage cells, control logic, etc.) of the memory 900. The VCCQ pin can provide power to the I / O circuits of the memory 900, including providing the necessary operating voltage for the input / output buffer, data bus driver and other peripheral circuits to ensure effective data communication with the processing unit 100.

[0061] In one embodiment, the monitoring unit 300 may be electrically connected to the processing unit 100 and the memory 900. The monitoring unit 300 can monitor the voltage of the VCC pin and the VCCQ pin in real time, and control the power-on and power-off sequence of the power supply to ensure that the system components are started and stopped in the correct sequence to avoid failures caused by timing errors.

[0062] In one embodiment, the storage unit 400 may be electrically connected to the processing unit 100. The storage unit 400 may be a storage device pre-installed with an operating system (or a boot program), and may be capable of loading and starting the operating system or the boot program.

[0063] In one embodiment, the power supply unit 500 can provide power to the processing unit 100 , the power management unit 200 , and the like.

[0064] In one embodiment, the peripheral interface unit 600 may be electrically connected to the processing unit 100. The peripheral interface unit 600 is a standardized interface for connecting various peripheral devices (such as keyboard, mouse, printer, storage device, etc.) with a computer or host device.

[0065] In one embodiment, the memory unit 700 may be electrically connected to the processing unit 100. The memory unit 700 may be used to temporarily store currently running programs and data. The processing unit 100 may quickly access these data to improve computing performance.

[0066] In one embodiment, the first serial interface unit 800 may be electrically connected to the processing unit 100. The first serial interface unit 800 may be an interface for performing serial communication. The processing unit 100 may perform serial communication with an external device through the first serial interface unit 800.

[0067] In one embodiment, the memory 900 may also be configured with a second serial interface unit 1000. The second serial interface unit 1000 may also be an interface for serial communication. The memory 900 and the processing unit 100 may communicate via the CMD line and the DATA0~7 lines. The CMD line may be used to transmit commands and responses, and is unidirectional. The processing unit 100 may send commands and the memory 900 may receive commands. The DATA0~7 lines may be used for data transmission.

[0068] In one embodiment, when performing stress testing on the firmware of the memory 900 , the processing unit 100 may first build a test environment for the memory 900 .

[0069] Specifically, the memory 900 can be first communicatively connected to the test board. Afterwards, the power supply unit 500 can supply power to the test board so that the processing unit 100 and other units thereon start working. Subsequently, the test board can also be communicatively connected to the host through the peripheral interface unit 600. The host can select a specific firmware or operating system image (SOC Image) and burn it to the storage unit 400 of the test board through the peripheral interface unit 600. After the burning is completed, the test board is powered on again and the newly burned image is started. The host can check whether the connection with the test board is normal through the peripheral interface unit 600, and confirm whether the test board is started and responded correctly. The test board can generate a random test file (Random Test Pattern) according to the configuration, and the random test file can be used to stress test the memory 900 to build a test environment for the memory 900.

[0070] In one embodiment, the processing unit 100 may also configure different low power consumption modes and corresponding timeout thresholds, and send them to the memory 900. Among them, the low power consumption mode may include a short power mode, a long power mode, and a sleep mode. The timeout threshold includes a short duration threshold, a long duration threshold, and a sleep duration threshold. The short power mode may correspond to the short duration threshold. The long power mode may correspond to the long duration threshold. The sleep mode may correspond to the sleep duration threshold.

[0071] Specifically, PON is a power management mechanism that involves notification and processing when the device is powered on (Power On) and powered off (Power Off). Different power states (such as short-time power-on, long-time power-on, and sleep state) require different processing. When stress testing the firmware of the memory 900, the processing unit 100 can first configure different low-power modes.

[0072] Further, the short power mode may be represented by a situation where the memory 900 is powered off for a short time. The long power mode may be represented by a situation where the memory 900 is powered off for a long time. The sleep mode may be represented by the memory 900 entering a sleep mode.

[0073] Furthermore, the memory 900 may need to wait for a period of time to complete certain operations or save data before powering off. Therefore, in different low power consumption modes, different timeout thresholds need to be preset so that the memory 900 can completely save data.

[0074] Further, in the short power mode, when the operation time of the memory 900 is less than the short duration threshold, it indicates that the test is passed, otherwise, the test of the memory 900 fails. In the long power mode, when the operation time of the memory 900 is less than the long duration threshold, it indicates that the test is passed, otherwise, the test of the memory 900 fails. In the sleep mode, when the operation time of the memory 900 is less than the sleep duration threshold, it indicates that the test is passed, otherwise, the test of the memory 900 fails. Among them, the size of the short duration threshold may not be limited, and may be in the range of 200ms~400ms, for example, it may be 200ms, 300ms, 400ms, etc. The size of the long duration threshold may not be limited, and may be in the range of 900ms~1100ms, for example, it may be 900ms, 1000ms, 1100ms, etc. The size of the sleep duration threshold may not be limited, and may be in the range of 600ms~700ms, for example, it may be 600ms, 655.36ms, 700ms, etc.

[0075] In one embodiment, after the processing unit 100 sets up the test environment, the firmware of the memory 900 can be stress tested in the short power mode, the long power mode and the sleep mode respectively. Among them, the test order of different low power modes can be unlimited. For example, the test can be carried out in the order of short power mode, long power mode and sleep mode, or in the order of long power mode, short power mode and sleep mode. The specific test order can be set according to actual needs. In this embodiment, the test order of short power mode, long power mode and sleep mode is taken as an example for explanation.

[0076] In one embodiment, in the short power mode, the processing unit 100 may send an immediate power-off instruction to the power management unit 200 to put the memory 900 into a power-off state. After the memory 900 enters the power-off state, the processing unit 100 is further configured to perform different combinations of power-on and power-off tests on the core power pins and the input / output power pins of the memory 900, and record the response results of the memory 900.

[0077] After the processing unit 100 issues an immediate power-off instruction to the power management unit 200, the power management unit 200 can immediately cut off the power supply of the memory 900 to put the memory 900 into a power-off state. By setting this strategy, the response of the memory 900 without preparation time can be tested.

[0078] Furthermore, in the short power mode, the processing unit 100 may also send a delayed power-off instruction to the memory 900, so that the memory 900 enters a power-off state after the memory 900 sends a completion signal.

[0079] Among them, after the processing unit 100 sends the delayed power-off instruction to the power management unit 200, it is necessary to wait for the memory 900 to complete the current busy state (busy), which can be represented by the memory 900 processing certain key operations, such as data writing or state saving. After the memory 900 completes the current work, at this time, the power management unit 200 can cut off the power supply of the memory 900 to make the memory 900 enter the power-off state. By setting this strategy, the response of the memory 900 to power off after completing the current operation can be tested.

[0080] Furthermore, in the short power mode, the processing unit 100 may also send a power-off waiting instruction to the memory 900, before the memory 900 sends a completion signal, after a first delay time, so that the memory 900 enters a power-off state. The first delay time is less than the short time threshold.

[0081] Among them, after the processing unit 100 sends the power-off waiting instruction to the power management unit 200, it is not necessary to wait for the memory 900 to complete the current busy state, and the power can be cut off during the operation of the memory 900. That is, during the process of the memory 900 completing the current work, after the duration of the power-off waiting instruction reaches the first delay duration, at this time, the power management unit 200 can cut off the power supply of the memory 900 to make the memory 900 enter the power-off state. By setting this strategy, the response of the memory 900 when the current operation is not completed can be tested.

[0082] In one embodiment, in the short power mode, after the memory 900 enters the power-off state, it is necessary to perform different combinations of powering up and down of the core power (VCC) pin of the memory 900 and powering up and down of the input / output power (VCCQ) pin, so as to fully complete the stress test of the firmware. The combination may include: powering up the VCC pin and powering up the VCCQ pin, powering up the VCC pin and powering down the VCCQ pin, powering down the VCC pin and powering up the VCCQ pin, and powering down the VCC pin and powering down the VCCQ pin.

[0083] Specifically, when monitoring the power on and off of the VCC pin and the power on and off of the VCCQ pin, only when the voltage of the VCC pin and the VCCQ pin must reach above their minimum operating voltage, it indicates that the device has completed normal and complete power-on. The monitoring unit 300 can determine whether it is powered on by monitoring the voltage of the VCC pin and the VCCQ pin.

[0084] In one embodiment, in the long power mode, the processing unit 100 may send an immediate power-off instruction to the power management unit 200 to put the memory 900 into a power-off state. After the memory 900 enters the power-off state, the processing unit 100 is further configured to perform different combinations of power-on and power-off tests on the core power pins and the input / output power pins of the memory 900, and record the response results of the memory 900.

[0085] After the processing unit 100 issues an immediate power-off instruction to the power management unit 200, the power management unit 200 can immediately cut off the power supply of the memory 900 to put the memory 900 into a power-off state. By setting this strategy, the response of the memory 900 without preparation time can be tested.

[0086] Furthermore, in the long power mode, the processing unit 100 may also send a delayed power-off instruction to the memory 900, so that the memory 900 enters a power-off state after the memory 900 sends a completion signal.

[0087] Among them, after the processing unit 100 sends the delayed power-off instruction to the power management unit 200, it is necessary to wait for the memory 900 to complete the current busy state (busy), which can be represented by the memory 900 processing certain key operations, such as data writing or state saving. After the memory 900 completes the current work, at this time, the power management unit 200 can cut off the power supply of the memory 900 to make the memory 900 enter the power-off state. By setting this strategy, the response of the memory 900 to power off after completing the current operation can be tested.

[0088] Furthermore, in the long power mode, the processing unit 100 may also send a power-off waiting instruction to the memory 900, before the memory 900 sends a completion signal, after a second delay time, so that the memory 900 enters a power-off state. The second delay time is less than the long time threshold.

[0089] Among them, after the processing unit 100 sends the power-off waiting instruction to the power management unit 200, it is not necessary to wait for the memory 900 to complete the current busy state, and the power can be cut off during the operation of the memory 900. That is, during the process of the memory 900 completing the current work, after the duration of the power-off waiting instruction reaches the second delay duration, at this time, the power management unit 200 can cut off the power supply of the memory 900 to make the memory 900 enter the power-off state. By setting this strategy, the response of the memory 900 when the current operation is not completed can be tested.

[0090] In one embodiment, in the long power mode, after the memory 900 enters the power-off state, it is necessary to perform different combinations of powering up and down of the core power (VCC) pin of the memory 900 and powering up and down of the input / output power (VCCQ) pin, so as to fully complete the stress test of the firmware. The combination may include: powering up the VCC pin and powering up the VCCQ pin, powering up the VCC pin and powering down the VCCQ pin, powering down the VCC pin and powering up the VCCQ pin, and powering down the VCC pin and powering down the VCCQ pin.

[0091] In one embodiment, in the sleep mode, the processing unit 100 may send an immediate power-off instruction to the power management unit 200 to put the memory 900 into a power-off state. After the memory 900 enters the power-off state, the processing unit 100 is further configured to perform different combinations of power-on and power-off of the core power pins of the memory 900 and power-on of the input / output power pins, and record the response results of the memory 900.

[0092] After the processing unit 100 issues an immediate power-off instruction to the power management unit 200, the power management unit 200 can immediately cut off the power supply of the memory 900 to put the memory 900 into a power-off state. By setting this strategy, the response of the memory 900 without preparation time can be tested.

[0093] Furthermore, in the sleep mode, the processing unit 100 may also send a delayed power-off instruction to the memory 900, so that the memory 900 enters a power-off state after the memory 900 sends a completion signal.

[0094] Among them, after the processing unit 100 sends a delayed power-off instruction to the power management unit 200, it is necessary to wait for the memory 900 to complete the current busy state. The busy state can be represented by the memory 900 processing certain key operations, such as data writing or state saving. After the memory 900 completes the current work, at this time, the power management unit 200 can cut off the power supply of the memory 900 to make the memory 900 enter the power-off state. By setting this strategy, the response of the memory 900 to power off after completing the current operation can be tested.

[0095] Furthermore, in the sleep mode, the processing unit 100 may also send a power-off waiting instruction to the memory 900, before the memory 900 sends a completion signal and after the second delay time, so that the memory 900 enters a power-off state. The third delay time is less than the sleep time threshold.

[0096] Among them, after the processing unit 100 sends the power-off waiting instruction to the power management unit 200, it is not necessary to wait for the memory 900 to complete the current busy state, and the power can be cut off during the operation of the memory 900. That is, during the process of the memory 900 completing the current work, after the duration of the power-off waiting instruction reaches the third delay duration, at this time, the power management unit 200 can cut off the power supply of the memory 900 to make the memory 900 enter the power-off state. By setting this strategy, the response of the memory 900 when the current operation is not completed can be tested.

[0097] In one embodiment, in the sleep mode, after the memory 900 enters the power-off state, it is necessary to perform different combinations of powering up and down of the core power supply (VCC) pin of the memory 900 and powering up of the input / output power supply (VCCQ) pin, so as to fully complete the stress test of the firmware. The combination may include: at least one of powering up the VCC pin and powering up the VCCQ pin, and powering down the VCC pin and powering up the VCCQ pin.

[0098] In one embodiment, after the monitoring unit 300 monitors the power on and off of the VCC pin and the VCCQ pin in different low power modes, the processing unit 100 needs to determine through the monitoring unit 300 whether the power on and off of the VCC pin and the VCCQ pin of the memory 900 are complete in different low power modes.

[0099] Specifically, in a certain low power mode, when the power up and down of the VCC pin and the VCCQ pin are incomplete, the processing unit 100 can repeatedly perform stress testing on the memory 900 until the power up and down of the VCC pin and the VCCQ pin are complete in all modes. When the power up and down of the VCC pin and the VCCQ pin are complete, the processing unit 100 can read the address data corresponding to the host data written before the memory is powered off, and obtain the corresponding host data according to the address data.

[0100] In one embodiment, after the processing unit 100 reads the host data, the host data written by the memory 900 before power failure can be compared with the host data read after power failure to generate a test result.

[0101] Specifically, when the host data written by the memory 900 before power failure is the same as the host data read after power failure, it can be indicated that the memory 900 passes the test and generates a test result. When the host data written by the memory 900 before power failure is different from the host data read after power failure, it can be indicated that the memory 900 fails the test and has certain defects. At this time, the firmware of the memory 900 can be optimized according to the location of the defect. At the same time, the test results can be uploaded to the host.

[0102] It can be seen that in the above scheme, by conducting detailed tests in different modes, including the situations where the PON is busy for a short time, busy for a long time, and busy in sleep, as well as different scenarios such as power off immediately after command execution, power off after waiting for the memory to complete, and power off during memory operation, the response time and processing capacity of the memory in various PON modes can be tested, and potential risks and defects that may exist in the firmware in the PON mode can be discovered in time. Through detailed testing and verification, it can be ensured that the firmware can run stably in different power modes and operating conditions, reducing the risk of data loss or equipment damage.

[0103] See also Figure 2 The present invention also provides a memory test method, which can be applied to the above test system to perform stress testing on the firmware of the memory 900. The steps of the test method correspond to the above test system one by one. The test method may include the following steps:

[0104] Step S10, obtaining a memory and building a test environment for the memory;

[0105] Step S20, configuring different low power consumption modes and corresponding timeout thresholds, and sending them to the memory, the low power consumption modes include short power mode, long power mode, and sleep mode, and the timeout thresholds include short duration threshold, long duration threshold, and sleep duration threshold;

[0106] Step S30, performing stress testing on the memory in different low power consumption modes;

[0107] Step S40, determining whether the power on and off of the core power pin and the input / output power pin of the memory are complete;

[0108] Step S50, when the power on and off of the core power pin and the input / output power pin of the memory are not complete, repeat the stress test on the memory;

[0109] Step S60: When the core power pin and the input / output power pin of the memory are powered on and off completely, the host data written to the memory before power failure is compared with the host data read after power failure to generate a test result.

[0110] See also Figure 3 In one embodiment, when executing step S30, specifically, step S30 may include the following steps:

[0111] Step S31, performing a stress test on the memory in the short power mode;

[0112] Step S32: performing a stress test on the memory in the long power mode;

[0113] Step S33: In the sleep mode, perform a stress test on the memory.

[0114] In one embodiment, different preset delay durations may be set in different modes, and the preset delay durations may include a first delay duration corresponding to the short power mode, a second delay duration corresponding to the long power mode, and a third delay duration corresponding to the sleep mode.

[0115] See also Figure 4 In one embodiment, when executing step S31, specifically, step S31 may include the following steps:

[0116] Step S311: In the short power mode, the processor issues an immediate power-off instruction to put the memory into a power-off state, and performs different combinations of power-on and power-off tests on the core power pins and the input / output power pins of the memory, and records the response results of the memory;

[0117] Step S312: In the short power mode, the processor issues a delayed power-off instruction, and after the memory sends a completion signal, the memory enters a power-off state, and performs different combinations of power-on and power-off tests on the core power pins and the input / output power pins of the memory, and records the response results of the memory;

[0118] Step S313, in the short power mode, the processor sends a power-off wait instruction, and before the memory sends a completion signal, after a first preset time, the memory enters a power-off state, and performs different combinations of power on and off tests on the core power pins of the memory and the power on and off of the input / output power pins, and records the response results of the memory, wherein the first delay time is less than the short time threshold.

[0119] See also Figure 5 In one embodiment, when executing step S32, specifically, step S32 may include the following steps:

[0120] Step S321: In the long power mode, the processor issues an immediate power-off instruction to put the memory into a power-off state, and performs different combinations of power-on and power-off tests on the core power pins and the input / output power pins of the memory, and records the response results of the memory;

[0121] Step S322: In the long power mode, the processor issues a delayed power-off instruction, and after the memory sends a completion signal, the memory enters a power-off state, and performs different combinations of power-on and power-off tests on the core power pins and the input / output power pins of the memory, and records the response results of the memory;

[0122] Step S323, in the long power mode, the processor issues a power-off wait instruction, and before the memory sends a completion signal, after a second delay time, the memory enters a power-off state, and performs different combinations of power on and off tests on the core power pins of the memory and the power on and off of the input / output power pins, and records the response results of the memory, wherein the second delay time is less than the long time threshold.

[0123] See also Figure 6 In one embodiment, when executing step S33, specifically, step S33 may include the following steps:

[0124] Step S331: In the sleep mode, the processor issues an immediate power-off instruction to put the memory into a power-off state, and performs different combinations of power-on and power-off tests on the core power pins of the memory and power-on and power-off tests on the input / output power pins, and records the response results of the memory;

[0125] Step S332: In the sleep mode, the processor issues a delayed power-off instruction, and after the memory sends a completion signal, the memory enters a power-off state, and performs different combinations of power-on and power-off tests on the core power pins of the memory and power-on and power-off tests on the input / output power pins, and records the response results of the memory;

[0126] Step S333, in sleep mode, the processor issues a power-off wait instruction, and before the memory sends a completion signal, after a third delay period, the memory enters a power-off state, and performs different combinations of power on and off of the core power pins of the memory and power on of the input / output power pins, and records the response results of the memory, wherein the third delay period is less than the sleep period threshold.

[0127] See also Figure 7 In one embodiment, when executing step S60, specifically, step S60 may include the following steps:

[0128] Step S61, determining whether the host data written into the memory before power failure is the same as the host data read out after power failure;

[0129] Step S62: if they are the same, generate a test result;

[0130] Step S63: If they are not the same, generate a test result and optimize the firmware of the memory.

[0131] The embodiments of the present invention disclosed above are only used to help illustrate the present invention. The embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A memory test system, characterized in that: include: A processing unit configured to configure different low power consumption modes and corresponding timeout thresholds, and send them to the memory, wherein the timeout threshold represents the time required for the memory to completely save the data before the memory is powered off; A power management unit, electrically connected to the processing unit and the memory, and used to control power on and off of input / output power pins of the memory; and A monitoring unit, electrically connected to the processing unit and the memory, and configured to monitor the status of a core power pin and an input / output power pin of the memory; The processing unit is used to build a test environment and perform stress testing on the memory in different low power consumption modes; The processing unit reads the address data corresponding to the host data written into the memory before power failure when determining that the power on and off of the core power pin and the input / output power pin of the memory are intact; The processing unit is also used to compare the host data written into the memory before power failure with the host data read out after power failure to generate a test result.

2. The memory test system according to claim 1, characterized in that: The low power consumption mode includes a short power mode, the timeout threshold includes a short duration threshold, and the short power mode corresponds to the short duration threshold; In the short power mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state; The processing unit is also used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state; The processing unit is further configured to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of sending the power-off waiting instruction reaches a first delay duration, so that the memory enters a power-off state, wherein the first delay duration is less than a short duration threshold; Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

3. The memory test system according to claim 2, characterized in that: The low power consumption mode further includes a long power mode, the timeout threshold further includes a long duration threshold, and the long power mode corresponds to the long duration threshold; In the long power mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state; The processing unit is also used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state; The processing unit is further used to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of sending the power-off waiting instruction reaches a second delay duration, so that the memory enters a power-off state, wherein the second delay duration is less than a long duration threshold; Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

4. The memory test system according to claim 3, characterized in that: The low power consumption mode further includes a sleep mode, the timeout threshold further includes a sleep duration threshold, and the sleep mode corresponds to the sleep duration threshold; In the sleep mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state; The processing unit is also used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state; The processing unit is further configured to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of sending the power-off waiting instruction reaches a third delay duration, so that the memory enters a power-off state, wherein the third delay duration is less than a sleep duration threshold; Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

5. The memory test system according to claim 3, characterized in that: In the short power mode and the long power mode, the processing unit's test of the memory includes: at least one combination of powering on the core power pin and powering on the input / output power pin, powering on the core power pin and powering off the input / output power pin, powering off the core power pin and powering on the input / output power pin, and powering off the core power pin and powering off the input / output power pin.

6. The memory test system according to claim 4, characterized in that: In the sleep mode, the processing unit tests the memory including at least one combination of powering on a core power pin and powering on an input / output power pin, and powering off a core power pin and powering on an input / output power pin.

7. The memory test system according to claim 1, characterized in that: When the processing unit determines that the power supply of the core power pin and the input / output power pin of the memory is not complete, the processing unit repeatedly performs stress testing on the memory until the power supply of the core power pin and the input / output power pin of the memory is complete.

8. The memory test system according to claim 1, characterized in that: When the processing unit determines that the host data written to the memory before power failure is the same as the host data read after power failure, generating the test result; When the processing unit determines that the host data written to the memory before power failure is different from the host data read after power failure, the test result is generated and the firmware of the memory is optimized.

9. A memory testing method, characterized in that: include: Acquire a memory and build a test environment for the memory; Configuring different low power consumption modes and corresponding timeout thresholds, and sending them to the memory, wherein the timeout threshold represents the time required for the memory to completely save the data before the memory is powered off; Performing stress testing on the memory in different low power consumption modes; Determine whether the power on and off of the core power pin and the input / output power pin of the memory are complete; When the power on and off of the core power pin and the input / output power pin of the memory are not complete, repeatedly performing a stress test on the memory; When the core power pin and the input / output power pin of the memory are powered on and off completely, the host data written to the memory before power failure is compared with the host data read after power failure to generate a test result.

10. The memory testing method according to claim 9, characterized in that: The low power consumption mode includes a short power consumption mode, a long power consumption mode, and a sleep mode. The timeout time threshold includes a short time threshold, a long time threshold, and a sleep time threshold. The short power consumption mode corresponds to the short time threshold, the long power consumption mode corresponds to the long time threshold, and the sleep mode corresponds to the sleep time threshold. The step of stress testing the memory in different low power consumption modes includes: In the short power mode, the long power mode and the sleep mode, the processing unit is used to send an immediate power-off instruction to the power management unit to put the memory into a power-off state; In the short power mode, the long power mode and the sleep mode, the processing unit is used to send a delayed power-off instruction to the power management unit, and after the memory sends a completion signal, the memory enters a power-off state; In the short power mode, the long power mode and the sleep mode, the processing unit is used to send a power-off waiting instruction to the memory, before the memory sends a completion signal and after the duration of the power-off waiting instruction being sent reaches a preset delay duration, so that the memory enters a power-off state, wherein the preset delay duration includes a first delay duration corresponding to the short power mode, a second delay duration corresponding to the long power mode and a third delay duration corresponding to the sleep mode, the first delay duration is less than a short duration threshold, the second delay duration is less than a long duration threshold, and the third delay duration is less than a sleep duration threshold; Wherein, after the memory enters the power-off state, the processing unit is further used to perform different combinations of power on and off of the core power pins of the memory and power on and off of the input / output power pins, and record the response results of the memory.

Citation Information

Patent Citations

  • Storage test equipment and test method thereof

    CN116610512A

  • Solid state disk power consumption state conversion test method and device, equipment and storage medium

    CN117219148A