Chip testing method and chip testing device

By writing data files in the memory chip and creating progress files, automatically cutting off the power supply and verifying data integrity, the problem of low accuracy of power outage test in the existing technology is solved, and the memory chip is improved in the event of abnormal power outage. Reliability and data integrity.

CN119003257AInactive Publication Date: 2024-11-22UNITED MEMORY TECHNOLOGY (JIANGSU) LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411373649.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-11-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the accuracy of the memory chip power-off test is low, making it difficult to simulate the power-off scenario during actual use, resulting in the difficulty in ensuring the reliability and data integrity of the memory chip in the event of abnormal power-off.

Method used

By writing data files to the memory chip and creating progress files, recording the writing progress, and automatically cutting off the power at the preset time. After restarting, verifying data integrity based on the progress file, simulate the power outage scenario in actual use.

Benefits of technology

It improves the accuracy of power outage tests and data integrity verification efficiency, ensuring the reliability and data integrity of the memory chip in abnormal power outages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003257A_ABST
    Figure CN119003257A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of chip testing, and particularly discloses a chip testing method and a chip testing device.The chip testing method comprises the steps that a first data file is written into a storage chip of a device to be tested, and a progress file is created to record the writing progress of the first data file written into the storage chip, the progress file is a file corresponding to the writing proportion when the storage chip writes the first data file; cutting off a power supply of the storage chip at a first preset moment; and restarting the power supply of the to-be-tested equipment, and verifying the integrity of the first data file written into the storage chip according to the progress file. Therefore, the written data volume and position before power failure can be accurately known through the progress file, so that integrity verification is performed on the data in a targeted manner, the verification efficiency is improved, and the accuracy of problem discovery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip testing, and in particular to a chip testing method and a chip testing device. Background Art

[0002] In embedded systems, memory chips are widely used for data storage and reading. In the use of memory chips in different scenarios, abnormal power outages often occur, which may cause incomplete data written by the memory chip, thus affecting the reliability of the system and the integrity of the data. Therefore, power-off testing is required during the development and design phase of memory chips to ensure the reliability of the memory chip and the integrity of the data in it in the event of an abnormal power outage.

[0003] In the related art, the method of power-off testing of memory chips often requires manually controlling the power supply of the device and detecting the integrity of the data in the memory chip after manually powering off. However, the manual power-off and manual detection methods are difficult to simulate the power-off scenario of the memory chip during actual use, resulting in low accuracy of the power-off test. Summary of the invention

[0004] The present invention provides a chip testing method and a chip testing device, aiming to improve the accuracy of power-off testing.

[0005] In one aspect, the present invention provides a chip testing method, comprising:

[0006] Writing a first data file to a memory chip of the device under test, and creating a progress file to record the writing progress of the first data file written into the memory chip, wherein the progress file is a file corresponding to the writing ratio of the memory chip when writing the first data file;

[0007] Cutting off the power supply of the memory chip at a first preset time, wherein the first preset time is a time point determined based on the test requirements and the characteristics of the memory chip;

[0008] Restart the power of the device under test, and verify the integrity of the first data file written into the storage chip according to the progress file.

[0009] In some implementations, writing the first data file to the memory chip of the device under test and creating a progress file to record the writing progress of the first data file written into the memory chip includes:

[0010] Generate standard data files through shell scripts as benchmark files for data verification;

[0011] Create a progress file and record the writing progress each time data is written.

[0012] In some implementations, cutting off the power supply of the memory chip at the first preset time includes:

[0013] Monitor the status of the device under test to determine whether data writing is in progress;

[0014] If so, the control randomly performs a power-off operation on the device under test during the data writing operation.

[0015] In some implementations, restarting the power supply of the device under test and verifying the integrity of the first data file written into the storage chip according to the progress file includes:

[0016] Verify the integrity of the data written before power failure according to the progress file;

[0017] If the data verification passes, the next round of data writing operation and power-off test will be performed until the verification fails.

[0018] In some implementations, verifying the integrity of the first data file written into the storage chip according to the progress file includes:

[0019] Check if there is a progress file;

[0020] If yes, read the progress file and verify the written data according to the progress;

[0021] If not, create a progress file and start a new round of testing.

[0022] In some implementations, after the step of verifying the integrity of the first data file written to the storage chip according to the progress file, the chip testing method further includes:

[0023] After verifying the integrity of the data written into the memory chip, determining a data verification result of the integrity of the data written into the memory chip;

[0024] If the integrity of the storage chip reaches a preset integrity, continue to write the second data file into the storage chip, and verify the integrity of the second data file written into the storage chip;

[0025] If the integrity of the memory chip does not reach a preset integrity, a prompt message is output and the test of the memory chip is stopped.

[0026] In some implementations, after the step of verifying the integrity of the first data file written into the storage chip, the chip testing method further includes:

[0027] Storing the data verification result in a preset storage module;

[0028] The storage chip is analyzed according to the data verification result in the storage module.

[0029] In some implementations, analyzing the storage chip according to the data verification result in the storage module includes:

[0030] According to the data verification result in the storage module, counting the number of power failures of the storage chip;

[0031] A power-off critical value of the memory chip is determined according to the power-off number.

[0032] In a second aspect, the present invention further proposes a chip testing device, which includes a power supply, a main controller and a plurality of chip test card holders, wherein the power supply is used to provide power to the main controller and the chip test card holder; the main controller includes a plurality of monitoring serial ports, each monitoring serial port is electrically connected to a plurality of chip test card holders, each chip test card holder is used to test a memory chip loaded in the chip test card holder, and the main controller includes:

[0033] A recording unit, used to write a first data file to a storage chip of the device under test, and create a progress file to record the writing progress of the first data file written into the storage chip, wherein the progress file is a file corresponding to the writing ratio of the storage chip when writing the first data file;

[0034] A power-off unit, used to cut off the power supply of the memory chip at a first preset time;

[0035] The verification unit is used to restart the power supply of the device under test and verify the integrity of the first data file written into the storage chip according to the progress file.

[0036] In some embodiments, the memory chip test card holder is configured as any one of the plurality of chip test card holders, the target monitoring serial port is any one of the plurality of monitoring serial ports, and the memory chip test card holder corresponds to the target monitoring serial port;

[0037] The chip testing device further comprises a plurality of target switches, each of the target switches respectively corresponding to each of the chip testing card holders, and the target switches are MOSFET switches;

[0038] Each of the target switches is connected to the main controller, and each of the target switches is used to control the on and off of the power supply in each chip test card holder.

[0039] In an embodiment of the present application, a first data file can be written to a storage chip of a device under test, and a progress file can be created to record the writing progress of the first data file written into the storage chip, wherein the progress file is a file corresponding to the writing ratio of the storage chip when the first data file is written; the power supply of the storage chip is cut off at a first preset time, and the first preset time is a time point determined based on the test requirements and the characteristics of the storage chip; the power supply of the device under test is restarted, and the integrity of the first data file written into the storage chip is verified according to the progress file.

[0040] The beneficial effects of the present invention are as follows: first, by writing a first data file to the memory chip of the device under test and creating a progress file to record the writing progress, accurate tracking of the writing process is achieved. This is because in actual applications, the data writing of the memory chip is a continuous process, and recording the writing progress can clarify the specific writing position and state of the data when the power outage occurs. Then, the power supply of the memory chip is cut off at the first preset time. This automatic control power-off method is more accurate and repeatable than manual power-off. Since manual power-off is difficult to simulate various power-off scenarios in actual use, such as random power-off time, different power-off frequencies, etc., the automatic control power-off can perform power-off operations according to preset time or conditions, thereby more realistically simulating abnormal power-off conditions in actual use. Then, after restarting the power supply of the device under test, the integrity of the first data file written to the memory chip is verified according to the progress file. Therefore, the amount and position of the data that have been written before the power outage can be accurately known through the progress file, so that the integrity of these data can be checked in a targeted manner, the verification efficiency is improved, and the accuracy of finding problems is improved.

[0041] To sum up, this chip testing device can more accurately simulate the power off scenario of the memory chip during actual use by automatically controlling power off, recording writing progress and targeted data integrity verification, thereby improving the accuracy of the power off test and ensuring the reliability and data integrity of the memory chip in the event of abnormal power off. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a structural schematic diagram provided by an embodiment of the present invention;

[0043] Figure 2 It is a flow chart provided by an embodiment of the present invention;

[0044] Figure 3 It is another flow chart provided by an embodiment of the present invention;

[0045] Figure 4 This is another flow chart provided by an embodiment of the present invention.

[0046] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0047] The scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a 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.

[0048] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0049] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0050] In order to enable those skilled in the art to better understand the solution of the present application, the application environment of the solution of the present application is first described. The chip testing method provided by the present application can be applied to Figure 1 The system architecture shown.

[0051] See also Figure 1 , Figure 1 1 is a schematic diagram of a system architecture of a test system 100 provided in an embodiment of the present application. Figure 1 As shown, the test system 100 may include a power supply 101 , a main controller 102 , a storage module 103 , a serial port expansion chip 104 and a plurality of chip test sockets 105 .

[0052] Among them, the power supply 101 may include a power adapter, a transformer, a rectifier circuit, and a filter circuit. The power supply 101 provides a stable power supply for the entire test system 100 to ensure that each part such as the main controller 102, the storage module 103, the serial port expansion chip 104 and the chip test card holder 105 can operate normally without being affected by voltage fluctuations and power outages.

[0053] The main controller 102 is used as the core of the test system and is responsible for controlling the entire test process. It can send instructions to the storage module 103 to perform data read and write operations, communicate with the serial port expansion chip 104 to achieve data interaction with external devices, and control the chip test card holder to test the storage chip. The main controller 102 can run a specific test program and coordinate the work of each part to perform comprehensive performance testing and fault diagnosis on the storage chip.

[0054] The storage module 103 is used to store the data and programs required by the test system. During the test process, the storage module 103 can store the test data to be written into the storage chip, such as the first data file. At the same time, it can also record various intermediate results and status information during the test process so that the main controller 102 can analyze and process them. The storage module 103 provides the test system with the ability to store and quickly access data, ensuring the efficient conduct of the test process.

[0055] The serial port expansion chip 104 includes multiple monitoring serial ports, and the multiple monitoring serial ports in the serial port expansion chip 104 can be connected to the multiple monitoring serial ports on the main controller 102. The serial port expansion chip 104 can be used to transmit and communicate data with the main controller 102 or other external devices, such as interacting with the host computer, uploading test results or receiving external instructions. The serial port expansion chip 104 realizes the connection between the test system and the outside world, so that the test process can be monitored and managed more flexibly.

[0056] The chip test card holder 105 can be used to load the memory chip to be tested and test the memory chip. The chip test card holder provides a stable physical connection environment to ensure that the memory chip can perform effective data transmission and control signal interaction with other parts of the test system. Different chip test card holders 105 can simulate different test data to test multiple memory chips simultaneously. On the basis of improving the test efficiency, different test data in specific usage scenarios are simulated to meet the test requirements of different test data and improve the effectiveness and accuracy of the test data. In addition, each chip test card holder 105 can independently test the memory chip without interfering with each other, providing a high degree of flexibility and scalability for the test system.

[0057] The test system 100 may further include a target switch 106 , which may connect each chip test card holder to a power source. Each of the target switches 106 corresponds to each chip test card holder 105 , and the target switch 106 may be a MOSFET switch.

[0058] The test system 100 may further include a voltage reduction module 107 , which may adjust the voltage of the power supply so that the voltage reduction module 107 is connected to the power supply 101 .

[0059] The above-mentioned test system 100 is an example of a test system 100 involved in a chip testing method disclosed in this application. It is for the purpose of better explaining the various steps of the chip testing method when describing the chip testing method of this application, and does not limit this application.

[0060] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0061] The invention provides a chip testing method.

[0062] See also Figure 2 , Figure 2 is a flow chart of a chip testing method disclosed in an embodiment of the present application. The chip testing method can be applied to. Figure 2 As shown, the chip testing method may include the following steps.

[0063] Step 201: write a first data file into a memory chip of a device under test, and create a progress file to record the writing progress of the first data file written into the memory chip.

[0064] Among them, the first data file can be data used to write to the storage chip to test the storage chip, the progress file can be a file corresponding to the write ratio when the storage chip writes the first data file, and the progress file can be used to record the writing progress of the first data file in the storage chip in real time.

[0065] It should be noted that the writing progress of the first data file in the storage chip is recorded in real time. During the process of writing the first data file to the storage chip of the device under test, the progress file is continuously updated so that the location and status of data writing can be accurately determined in the event of abnormal power failure.

[0066] Step 202: Cut off the power supply of the memory chip at a first preset time.

[0067] Among them, the first preset moment can be a time point determined based on the test requirements and the characteristics of the storage chip. For example, the first preset moment can be a fixed time point, and the power is cut off after a period of time after the start of data writing to simulate a power outage that may occur in a specific usage scenario. The first preset moment can also be a random time point, and the power is cut off at a random time point after the start of data writing to simulate a sudden power outage that may occur in a random scenario.

[0068] It should be noted that cutting off the power supply of the memory chip may be to cut off the target switch connected to the chip test card holder. The target switch may be a switch corresponding to the chip test card holder one by one, and each chip test card holder corresponds to a target switch.

[0069] Step 203: Restart the power supply of the device under test, and verify the integrity of the first data file written into the storage chip according to the progress file.

[0070] After cutting off the power supply of the memory chip to simulate an abnormal power outage, restarting the power supply of the device under test is to continue the test process and check the state of the memory chip after the power outage. The test system can read the written data in the memory chip and determine the range that needs to be verified based on the progress file. This range usually starts from the write position before the power outage to the end of the first data file. The system compares the read data with the original first data file. Whether the data is consistent can be determined by calculating the checksum, comparing the hash value, etc. If the verification result shows that the data is consistent, it means that the memory chip has successfully maintained the integrity of the data after the power outage; if the data is inconsistent, it means that the memory chip may have lost or damaged data during the power outage.

[0071] In one embodiment, before the step of writing a first data file to the memory chip of the device under test, the chip testing method further includes: detecting whether there is an initial progress file in the memory chip for recording the writing progress of the data written to the memory chip, and the initial progress file is a progress file before the first progress file.

[0072] After the step of detecting whether there is an initial progress file for recording the writing progress of data written to the storage chip in the storage chip, creating a progress file to record the writing progress of the first data file written to the storage chip, including: when the initial progress file does not exist in the storage chip, writing the first data file to the storage chip, and creating a progress file to record the writing ratio of the first data file written to the storage chip, so as to obtain a corresponding progress file.

[0073] In another embodiment, when the initial progress file exists in the storage chip, the power supply of the storage chip is cut off at the second preset time, and the integrity of the data written into the storage chip is verified according to the initial progress file.

[0074] The second preset moment may be a time point different from the first preset moment, and the second preset moment may also be a time point determined based on the test requirements and the characteristics of the memory chip, and may be a fixed time point or a random time point.

[0075] In another embodiment, after the step of creating a progress file to record the writing progress of the first data file written into the storage chip, the chip testing method may further include: detecting whether there is a first standard data file in the first data file, the first standard data file being used to verify the integrity of the first data file written by the storage chip; if there is no standard data file, generating a second standard data file based on the first data file, the second standard data file being an updated first standard data file.

[0076] It should be noted that after creating a progress file to record the writing progress, the first standard data file is detected to determine whether there is a standard reference for checking the integrity of the first data file written into the storage chip. This standard data file can be used as a benchmark to compare with the first data file actually written into the storage chip to determine whether there is an error or incompleteness in the data writing process.

[0077] Specifically, the test system will search for a file named the first standard data file in a specific storage location or database. This search process may involve operations such as traversing the file system and querying the database. If the first standard data file is found, it can be used directly for subsequent data integrity verification; if it is not found, it is necessary to consider generating a new standard data file.

[0078] When it is detected that the first standard data file does not exist, the operation of generating the second standard data file is triggered. This is because when there is no ready-made standard data file available, a new standard needs to be created for data integrity verification. The second standard data file is generated based on the first data file currently being written to the storage chip. This process may involve operations such as copying, hash calculation, checksum calculation, etc. of the first data file to ensure that the generated standard data file is completely consistent with the original first data file. The generated second standard data file will be marked as the updated first standard data file so that it can be used directly for data integrity verification in subsequent testing processes.

[0079] This ensures that the test system can still perform effective data integrity verification when there is no ready-made standard data file. By generating a new standard data file, it can be guaranteed that each test has a reliable reference, improving the accuracy and reliability of the test. At the same time, as the test progresses, the continuous updating of the standard data file can also adapt to different test scenarios and data changes, making the test method more flexible and practical.

[0080] In some embodiments, the integrity of the first data file written to the storage chip is verified according to the progress file, including: if there is a first standard data file, the first standard data file is compared with the first data file according to the writing progress in the first progress file to determine the integrity of the first data file written to the storage chip.

[0081] In the case where a first standard data file already exists, that is, a standard data file for verification has been prepared in advance, the first standard data file is compared with the first data file written into the storage chip according to the writing progress recorded in the first progress file, so as to determine whether the first data file in the storage chip is complete.

[0082] exist Figure 2 In the described method embodiment, by writing a first data file to the memory chip of the device under test and creating a progress file to record the writing progress, accurate tracking of the writing process is achieved. Since the data writing of the memory chip is a continuous process, recording the writing progress can clarify the specific writing position and state of the data when the power outage occurs. The power supply of the memory chip is cut off at the first preset time. This automatic control power-off method is more accurate and repeatable than manual power-off. Since manual power-off is difficult to simulate various power-off scenarios in actual use, such as random power-off time, different power-off frequencies, etc., the automatic control power-off can perform power-off operations according to preset time or conditions, thereby more realistically simulating abnormal power-off conditions in actual use. After restarting the power supply of the device under test, the integrity of the first data file written to the memory chip is verified according to the progress file. Therefore, the amount and position of the data that have been written before the power outage can be accurately known through the progress file, so that the integrity of these data can be checked in a targeted manner, which improves the verification efficiency and the accuracy of finding problems.

[0083] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another chip testing method disclosed in an embodiment of the present application. The chip testing method can be applied to: Figure 3 As shown, the chip testing method may include the following steps.

[0084] Step 301: Generate a standard data file through a shell script as a reference file for data verification.

[0085] Among them, shell script is a scripting language that runs under the command line interface of the operating system and can be used to automatically execute a series of commands and operations to improve work efficiency.

[0086] The content of the standard data file can be determined according to specific test requirements. For example, it can be test data in a specific format, randomly generated data, or real data in actual applications. The key is to ensure the correctness and integrity of the standard data file so that the data in the storage chip can be accurately verified.

[0087] The standard data file is used as a reference file for data verification. During the test of the memory chip, a known correct file is required to compare with the data actually written into the memory chip to determine the integrity and accuracy of the data.

[0088] Through Shell scripts, you can use various commands and tools to generate standard data files. For example, you can use file generation commands, data copy commands, random number generation commands, etc. to generate the required standard data files according to specific rules and algorithms.

[0089] Step 302: Create a progress file to record the writing progress each time data is written.

[0090] The progress file may be a simple text file, a database record or other format suitable for storing progress information. The progress file may be used to track the state of data writing into the storage chip in real time, so that the progress of writing can be accurately understood in subsequent testing processes.

[0091] The progress file is updated synchronously in each operation of writing data to the memory chip. For example, when a certain number of bytes are written to the memory chip or a specific data block is written, the amount of data currently written, the writing time, and other information are recorded in the progress file.

[0092] Step 303: monitor the state of the device under test to determine whether a data writing operation is being performed.

[0093] Through various monitoring methods, such as software tools to read the device status information in real time, including processor usage, memory usage, storage device activity status, etc., or using hardware monitoring devices to monitor the physical parameters of the device, and communicating with the device under test to obtain status reports, etc., to fully understand the operating status of the device under test.

[0094] In addition, you can also determine whether the test system performs a write operation on the storage chip by observing whether the activity indicator light of the storage device is flashing or always on, checking the changes in the storage device's read and write activity statistics, or analyzing the device communication protocol and log files. Commands or events related to data writing.

[0095] Step 304: If yes, then control to randomly power off the device under test during the data writing operation.

[0096] If it is detected that the device under test is performing a data writing operation, then the device under test is controlled to be powered off randomly during the data writing process.

[0097] It should be noted that this operation is usually to simulate unexpected power outages that may occur in actual use, in order to test the data protection and recovery capabilities of the memory chip during power outages. By performing random power outages, the performance of the memory chip during power outages at various writing stages and at different time points can be more comprehensively evaluated, so as to better understand its reliability and stability. This operation can be implemented by programming the power switch or using special power-off test equipment. After performing the power-off operation, the data in the memory chip needs to be verified to determine whether the integrity of the data is affected. If data is lost or damaged, it is necessary to further analyze the design and performance of the memory chip for improvement and optimization.

[0098] Step 305: Verify the integrity of the data written before power failure according to the progress file.

[0099] The progress file plays a key recording role in the entire test process. It tracks and records the progress of writing data to the storage chip in real time, including the amount of data written, the timestamp of writing, and other information. When a power outage occurs, the progress file can accurately indicate the location and status of data written at the moment of power outage.

[0100] When performing data integrity verification, the range to be verified can be determined based on the information provided by the progress file. Usually, the range starts from the last successful write position before power failure and ends at the current position that should be written. The data in this range is the part that may be affected by power failure.

[0101] It should be noted that the integrity of the data written before power failure can be determined by comparing it with a pre-prepared standard data file or using a specific verification algorithm, such as calculating a checksum or comparing hash values. If the verification result shows that the data is consistent, it means that the memory chip has successfully maintained the integrity of the data in the event of a power failure; if the data is inconsistent, it means that the memory chip may have lost or damaged data during the power failure process.

[0102] Therefore, the data protection capability of the memory chip in the event of an unexpected power failure can be effectively evaluated. For devices that store important data, ensuring the integrity of the data is crucial. By checking the integrity of the data written before the power failure, possible problems in the design and manufacturing process of the memory chip can be discovered, providing a basis for further improvement and optimization, thereby improving the reliability and stability of the memory chip.

[0103] In a specific implementation, verifying the integrity of the first data file written to the storage chip according to the progress file includes: detecting whether there is a progress file; if so, reading the progress file and verifying the written data according to the progress; if not, creating a progress file and starting a new round of testing.

[0104] It should be noted that for the integrity check of the first data file written to the storage chip, the first step is to detect whether there is a progress file. If there is a progress file, the file is read, and the written data is checked based on the progress information therein. This verification process is completed by comparing the data in the storage chip with the original first data file. The specific verification method can be selected according to actual needs and storage chip characteristics, such as calculating checksums, comparing hash values, or comparing byte by byte. If the progress file is not detected, a new progress file is created and a new round of testing is started from this starting point. In the new round of testing, as the first data file is written to the storage chip of the device under test, the progress file will be continuously updated to ensure that the subsequent test process can accurately and effectively perform integrity verification and ensure the continuity and reliability of the test.

[0105] Step 306: If the data verification passes, continue with the next round of data writing operation and power-off test until the verification fails.

[0106] If the data verification passes, the next round of data writing and power-off testing will be carried out, and this process will be repeated until the data verification fails. This method aims to comprehensively evaluate the data integrity and stability of the memory chip under multiple data writing and random power failure conditions through multiple rounds of testing, so as to gain a deeper understanding of the performance and reliability of the memory chip and provide a strong basis for product optimization and improvement.

[0107] exist Figure 3In the described method embodiment, by writing a first data file to the memory chip of the device under test and creating a progress file to record the writing progress, accurate tracking of the writing process is achieved. Since the data writing of the memory chip is a continuous process, recording the writing progress can clarify the specific writing position and state of the data when the power outage occurs. The power supply of the memory chip is cut off at the first preset time. This automatic control power-off method is more accurate and repeatable than manual power-off. Since manual power-off is difficult to simulate various power-off scenarios in actual use, such as random power-off time, different power-off frequencies, etc., the automatic control power-off can perform power-off operations according to preset time or conditions, thereby more realistically simulating abnormal power-off conditions in actual use. After restarting the power supply of the device under test, the integrity of the first data file written to the memory chip is verified according to the progress file. Therefore, the amount and position of the data that have been written before the power outage can be accurately known through the progress file, so that the integrity of these data can be checked in a targeted manner, which improves the verification efficiency and the accuracy of finding problems.

[0108] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of another chip testing method disclosed in the embodiment of the present application. The chip testing method can be applied to: Figure 4 As shown, the chip testing method may include the following steps.

[0109] Step 401: After verifying the integrity of the data written into the memory chip, determine a data verification result of the integrity of the data written into the memory chip.

[0110] Among them, the data verification results can be used to characterize the reliability and stability performance of the storage chip during the data writing process.

[0111] If the verification result shows that the data is complete, it means that the storage chip has successfully stored the data accurately without any data loss, damage or tampering. This may mean that the storage chip performs well in the current test environment and can cope with various requirements for data writing. Its internal storage mechanism and protection measures effectively ensure the security of the data. For example, the storage chip may be able to maintain data consistency in the case of multiple writes and possible interference, which is a very important indicator for application scenarios that require high-reliability storage.

[0112] In addition, if the verification result shows that the data is incomplete, it is necessary to analyze the root cause of the problem in depth. It may be that there are physical defects in the storage chip itself, resulting in the inability to store some data correctly; or it may be that an unexpected situation occurred during the data writing process, such as a sudden power outage, communication failure, etc., resulting in incomplete data writing. In this case, it is necessary to further perform detailed inspection and diagnosis on the storage chip to determine the problem and take appropriate repair measures. For example, you can check whether the hardware of the storage chip is damaged, or optimize the data writing process and protection mechanism to improve the data integrity of the storage chip in various situations.

[0113] In the test process of memory chips, data integrity verification is a crucial link. Through various verification methods, such as checksum, cyclic redundancy check, hash value verification or byte-by-byte comparison, the first data file written to the memory chip is checked to determine whether the data is lost, damaged or tampered with during the writing process. When the verification process is completed, a clear result needs to be given based on the verification situation. This result can indicate the integrity status of the data written by the memory chip in the current test phase.

[0114] Step 402: If the integrity of the storage chip reaches a preset integrity, continue to write the second data file into the storage chip, and verify the integrity of the second data file written into the storage chip.

[0115] The preset integrity is determined according to specific test requirements and standards, and it represents the expected degree of data integrity of the memory chip. By verifying the data that has been written to the memory chip, it is determined whether it meets this integrity requirement. If it does, it means that the performance of the memory chip at the current stage meets expectations, and the next step of testing can be continued.

[0116] The second data file may be different from the first data file in terms of content, size, format, etc. The second data file may be used to more comprehensively test the performance of the memory chip under different circumstances.

[0117] When the integrity condition is met, the complexity and diversity of the test are gradually increased. When the integrity check of the first data file is passed, various verification methods can be used to determine whether the second data file is complete after being written into the storage chip. The steps of writing the first data file to writing the second data file are executed cyclically, so as to obtain the incomplete critical value of the data file written into the storage chip for verification. Thus, the method of gradually increasing the difficulty and complexity of the test can more comprehensively evaluate the performance and reliability of the storage chip, and provide strong support for the quality assurance of the storage chip.

[0118] Step 403: If the integrity of the memory chip does not reach a preset integrity, a prompt message is output and the memory chip test is stopped.

[0119] The prompt information can inform the tester that the memory chip fails the integrity test, so that the tester can understand the problem in time and take corresponding measures. The prompt information can include the identification of the memory chip, the specific situation of not achieving integrity, possible reasons, etc., so that the tester can quickly locate the problem and analyze it.

[0120] Continuing the test without meeting the integrity condition may waste time and resources and may result in erroneous test results. Stopping the test allows the tester to focus on resolving the integrity issues of the memory chip, for example, checking whether the hardware of the memory chip is faulty, whether there is a problem in the data writing process, etc.

[0121] Step 404: Store the data verification result in a preset storage module.

[0122] It should be noted that when the integrity of the storage chip reaches a preset integrity level, or when the integrity of the storage chip does not reach a preset integrity level, the data verification result of verifying the integrity of the data written in the storage chip can be stored in a preset storage module.

[0123] Step 405: Analyze the storage chip according to the data verification result in the storage module.

[0124] The data verification results recorded in the storage module provide an objective basis for comprehensively evaluating the performance and reliability of the storage chip. By viewing these results, you can understand the data integrity performance of the storage chip under various conditions such as different test phases, different write operations, and power failures.

[0125] By performing statistical analysis on the data verification results in the storage module, some potential problems and trends of the storage chip can be discovered. For example, the incidence of incomplete data can be calculated, the difference in data integrity under different test conditions can be analyzed, and the change in the performance of the storage chip over time can be observed.

[0126] In some specific implementations, analyzing the storage chip according to the data verification result in the storage module includes: counting the number of power-off times of the storage chip according to the data verification result in the storage module; and determining the power-off critical value of the storage chip according to the number of power-off times.

[0127] During the test of the memory chip, each time a power outage occurs, the written data will be checked for integrity based on the progress file, etc., and the check results will be stored in the memory module. By viewing these check results, it is possible to determine how many power outages the memory chip has experienced during the test. The importance of this step is that the number of power outages is a key indicator of the performance of the memory chip in an unstable power supply environment. Different power outage times may have different degrees of impact on the data integrity of the memory chip, so counting the number of power outages helps to understand the sensitivity of the memory chip to power outages.

[0128] After counting the number of power outages of the memory chip, these data can be further analyzed to determine the power-off critical value. The power-off critical value refers to the maximum number of power-offs that the memory chip can withstand while maintaining data integrity. By analyzing the data verification results under different power-off times in multiple tests, a limit of the number of power-offs can be found. When this limit is exceeded, the data integrity of the memory chip begins to be seriously affected. Determining the power-off critical value is very important for memory chips in practical applications, because it can help users understand the reliability limit of the memory chip in a specific use environment so as to take corresponding protective measures, such as equipping an uninterruptible power supply. At the same time, the power-off critical value can also provide a reference for the design and improvement of memory chips, enabling developers to optimize the performance of memory chips in power-off conditions and improve their anti-interference and data protection capabilities.

[0129] exist Figure 4 In the described method embodiment, by writing a first data file to the memory chip of the device under test and creating a progress file to record the writing progress, accurate tracking of the writing process is achieved. Since the data writing of the memory chip is a continuous process, recording the writing progress can clarify the specific writing position and state of the data when the power outage occurs. The power supply of the memory chip is cut off at the first preset time. This automatic control power-off method is more accurate and repeatable than manual power-off. Since manual power-off is difficult to simulate various power-off scenarios in actual use, such as random power-off time, different power-off frequencies, etc., the automatic control power-off can perform power-off operations according to preset time or conditions, thereby more realistically simulating abnormal power-off conditions in actual use. After restarting the power supply of the device under test, the integrity of the first data file written to the memory chip is verified according to the progress file. Therefore, the amount and position of the data that have been written before the power outage can be accurately known through the progress file, so that the integrity of these data can be checked in a targeted manner, which improves the verification efficiency and the accuracy of finding problems.

[0130] It should be understood that the same or corresponding information in the above different embodiments can be referenced to each other.

[0131] It should be understood that although Figure 2 , Figure 3 and Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 3 and Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0132] The above is only a specific implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A chip testing method, characterized in that: include: Writing a first data file to a memory chip of the device under test, and creating a progress file to record the writing progress of the first data file written into the memory chip, wherein the progress file is a file corresponding to the writing ratio of the memory chip when writing the first data file; Cutting off the power supply of the memory chip at a first preset time, wherein the first preset time is a time point determined based on the test requirements and the characteristics of the memory chip; Restart the power of the device under test, and verify the integrity of the first data file written into the storage chip according to the progress file.

2. The chip testing method according to claim 1, characterized in that: The step of writing the first data file into the memory chip of the device under test and creating a progress file to record the writing progress of the first data file written into the memory chip comprises: Generate standard data files through shell scripts as benchmark files for data verification; Create a progress file and record the writing progress each time data is written.

3. The chip testing method according to claim 2, characterized in that: Cutting off the power supply of the memory chip at the first preset time comprises: Monitor the status of the device under test to determine whether data writing is in progress; If so, the control randomly performs a power-off operation on the device under test during the data writing operation.

4. The chip testing method according to claim 3, characterized in that: The step of restarting the power supply of the device under test and verifying the integrity of the first data file written into the storage chip according to the progress file includes: Verify the integrity of the data written before power failure according to the progress file; If the data verification passes, the next round of data writing operation and power-off test will be performed until the verification fails.

5. The chip testing method according to any one of claims 1 to 4, characterized in that: The checking the integrity of the first data file written into the storage chip according to the progress file comprises: Check if there is a progress file; If yes, read the progress file and verify the written data according to the progress; If not, create a progress file and start a new round of testing.

6. The chip testing method according to claim 5, characterized in that: After the step of verifying the integrity of the first data file written into the storage chip according to the progress file, the chip testing method further includes: After verifying the integrity of the data written into the memory chip, determining a data verification result of the integrity of the data written into the memory chip; If the integrity of the storage chip reaches a preset integrity, continue to write the second data file into the storage chip, and verify the integrity of the second data file written into the storage chip; If the integrity of the memory chip does not reach a preset integrity, a prompt message is output and the test of the memory chip is stopped.

7. The chip testing method according to claim 6, characterized in that: After the step of verifying the integrity of the first data file written into the storage chip, the chip testing method further comprises: Storing the data verification result in a preset storage module; The storage chip is analyzed according to the data verification result in the storage module.

8. The chip testing method according to claim 7, characterized in that: Analyzing the storage chip according to the data verification result in the storage module includes: According to the data verification result in the storage module, counting the number of power failures of the storage chip; A power-off critical value of the memory chip is determined according to the power-off number.

9. A chip testing device, characterized in that: The invention comprises a power supply, a main controller and a plurality of chip test card holders, wherein the power supply is used to provide power to the main controller and the chip test card holder; the main controller comprises a plurality of monitoring serial ports, each monitoring serial port is electrically connected to a plurality of chip test card holders respectively, and each chip test card holder is used to test a memory chip loaded in the chip test card holder, and the main controller comprises: A recording unit, used to write a first data file to a storage chip of the device under test, and create a progress file to record the writing progress of the first data file written into the storage chip, wherein the progress file is a file corresponding to the writing ratio of the storage chip when writing the first data file; A power-off unit, used to cut off the power supply of the memory chip at a first preset time; The verification unit is used to restart the power supply of the device under test and verify the integrity of the first data file written into the storage chip according to the progress file.

10. The chip testing device according to claim 9, characterized in that: The memory chip test card holder is configured as any one of the plurality of chip test card holders, the memory chip test card holder corresponds to a target monitoring serial port, and the target monitoring serial port is any one of the plurality of monitoring serial ports; The chip testing device further comprises a plurality of target switches, each of the target switches respectively corresponding to each of the chip testing card holders, and the target switches are MOSFET switches; Each of the target switches is connected to the main controller, and each of the target switches is used to control the on and off of the power supply in each chip test card holder.

Citation Information

Patent Citations

  • Method and device for checking data during power failure, storage medium and electronic equipment

    CN111897685A

  • Communication module power consumption test board, test system and test method

    CN116366178A

  • File uploading processing method, device and system, electronic equipment and storage medium

    CN116455889A

  • Hard disk data testing method, device and system and medium

    CN116665758A

  • Data dump method and device, electronic equipment and storage medium

    CN116737453A