Chip testing method and chip testing system
The chip testing method improves memory testing accuracy by using random data and verification algorithms to simulate real-world usage, addressing the limitations of ideal data models in existing methods.
Patent Information
- Application Number
- CN202411004773.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing chip testing methods for NAND Flash memory rely on ideal data models, leading to low accuracy and authenticity in test results, which do not reflect actual usage conditions, resulting in unreliable estimates of memory life and performance.
A chip testing method using random test data generated by a pseudo-random number generator, with verification through double verification algorithms, to simulate real-world usage scenarios and improve test accuracy.
The method enhances the accuracy and authenticity of memory testing by simulating actual data operations, providing reliable test results that better predict memory life and performance.
Smart Images

Figure CN118519843B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip testing technology, and in particular to a chip testing method and a chip testing system. Background Art
[0002] As a memory with large capacity and fast rewrite speed, NAND Flash is widely used in modern electronic devices. Cycle testing of memory is a necessary step for NAND Flash to leave the factory. In related technologies, cycle testing of memory is often based on ideal data models to generate solidified standard test data, and read, write and erase operations are performed based on these standard test data, thereby completing the test steps and obtaining corresponding test data.
[0003] However, the standard test data generated based on the ideal data model is relatively fixed in each test process, and can only generate standard test data of the memory under ideal conditions, which is quite different from the specific usage process of the memory. Therefore, the accuracy and authenticity of the memory test process are low.
[0004] In addition, after the memory is periodically tested, the life and performance of the memory in actual application can be estimated based on the test results of the periodic test to obtain the corresponding test results. However, the test process based on low accuracy and authenticity leads to unreliable test data and low accuracy of the test results. Summary of the invention
[0005] The present invention provides a chip testing method and a chip testing system, aiming at improving the accuracy and authenticity of a memory testing process.
[0006] On the one hand, the present invention provides a chip testing method, which is applied to a chip testing system, wherein the chip testing system includes a plurality of chip test card holders, each of which includes a voltage management module and a temperature control module, wherein the voltage management module and the temperature control module are respectively used to adjust the voltage and temperature of a target test card holder, wherein the target test card holder is any one of the plurality of chip test card holders, and the chip testing method includes:
[0007] Generate first random test data, where the first random test data is test content;
[0008] Writing the first random test data into a target memory, wherein the target memory is loaded into the target test card holder;
[0009] Reading the storage data in the target memory formed by writing the first random test data to obtain first read data;
[0010] Verifying the first random test data and the first read data to obtain a verification result;
[0011] A test result of the target memory is determined according to the verification result.
[0012] In some implementations, generating first random test data includes:
[0013] Based on a preset pseudo-random number generator, a linear congruential method is used to generate pseudo-random numbers;
[0014] The pseudo-random number is used as a seed value to generate a digital sequence to obtain the first random test data.
[0015] In some implementations, verifying the first random test data and the first read data to obtain a verification result includes:
[0016] Determine a first verification parameter corresponding to the first random test data based on a preset double verification algorithm;
[0017] Determining a second verification parameter corresponding to the first read data based on a preset double verification algorithm;
[0018] The first verification parameter and the second verification parameter are compared to verify the first random test data and the first read data to obtain a verification result.
[0019] In some implementations, the first verification parameter includes: a first verification code value and a first hash value corresponding to the first verification code value;
[0020] The determining, based on a preset double verification algorithm, a first verification parameter corresponding to the first random test data includes:
[0021] Calculating a first check code value corresponding to the first random test data based on a preset polynomial;
[0022] Based on a preset hash function, passing the first check code value to the hash function for calculation to obtain a first hash value corresponding to the first check code value;
[0023] The second verification parameter includes: a second verification code value and a second hash value corresponding to the second verification code value;
[0024] The determining, based on a preset double verification algorithm, a second verification parameter corresponding to the first read data includes:
[0025] Calculating a second check code value corresponding to the first read data based on a preset polynomial;
[0026] Based on a preset hash function, passing the second check code value to the hash function for calculation to obtain a second hash value corresponding to the second check code value;
[0027] The chip testing method also includes:
[0028] A first verification parameter corresponding to the first random test data and a second verification parameter corresponding to the first read data are stored in corresponding storage locations.
[0029] In some implementations, the target memory includes a plurality of storage blocks, each of the storage blocks includes a plurality of target pages;
[0030] Writing the first random test data into a target memory comprises:
[0031] Writing the first random test data into a first target page of a target memory, where the first target page is any target page among the multiple target pages;
[0032] The step of reading the storage data in the target memory formed by writing the first random test data to obtain first read data includes:
[0033] The storage data in the first target page written by the first random test data is read to obtain first read data.
[0034] In some implementations, determining a test result of the target memory according to the verification result includes:
[0035] When the verification result is a first result, testing and analyzing the target memory according to the verification result to obtain a corresponding test result, wherein the first result is a result that the first random test data is inconsistent with the first read data;
[0036] If the verification result is a second result, detecting whether the plurality of storage blocks of the target memory are full, the second result being a result that the first random test data is consistent with the first read data;
[0037] When the storage block of the target memory is not full, write second random test data to a second target page of the target memory, where the second target page is a storage page after the first target page, and the second random test data is a random digital sequence different from the first random test data;
[0038] Reading the storage data in the second target page written by the second random test data to obtain second read data;
[0039] Verifying the second random test data and the second read data until a verification result of the second random test data and the second read data is a first result;
[0040] When the verification result is the first result, the target memory is tested and analyzed according to the verification result to obtain a corresponding test result.
[0041] In some embodiments, the chip testing method further comprises:
[0042] When a storage block of the target storage is full, erase the written data in multiple target pages of the target storage block of the target storage, wherein the target storage block is any storage block of the multiple storage blocks in the target storage.
[0043] In some implementations, the performing test analysis on the target memory according to the verification result to obtain a corresponding test result includes:
[0044] When the verification result is a first result, obtaining first test data corresponding to the first target page and a storage page before the first target page in the target memory;
[0045] Performing test analysis on the target memory according to the first test data to obtain corresponding test results;
[0046] or when the storage block of the target memory is full, obtaining the test data corresponding to the second target page and the storage page before the second target page in the target memory;
[0047] The target memory is tested and analyzed according to the second test data to obtain corresponding test results.
[0048] In some implementations, the target memory is a NAND-Flash memory.
[0049] In a second aspect, the present invention further proposes a chip testing system, which includes a microcontroller and a plurality of test card holders. The microcontroller includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-mentioned chip testing method. Each chip test card holder in the plurality of chip test card holders is used to load a target memory to be tested to test the target memory. Each chip test card holder in the plurality of chip test card holders includes a voltage management module and a temperature control module. The voltage management module is used to adjust the voltage value of the chip test card holder, and the temperature control module is used to adjust the temperature value of the chip test card holder.
[0050] In an embodiment of the present application, a chip testing system can generate first random test data; write the first random test data into a target memory; read the storage data in the target memory formed by writing the first random test data to obtain first read data; verify the first random test data and the first read data to obtain a verification result; and determine a test result of the target memory based on the verification result.
[0051] The beneficial effect of the present invention is that: based on the generated random test data as the test data written into the target memory and read out of the target memory, the test steps of the target memory are implemented. After the test, the first random test data written into the target memory can be verified with the first read data read out of the target memory to obtain the corresponding test result. In this way, the test of the target chip based on the flexible randomly generated test data can simulate the data written or read by the memory in the actual application process, thereby improving the accuracy and authenticity of the memory test process. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of the structure of a chip testing system provided by an embodiment of the present invention;
[0053] Figure 2 It is a flow chart of a chip testing method provided by an embodiment of the present invention;
[0054] Figure 3 This is another flowchart of a chip testing method provided by an embodiment of the present invention.
[0055] 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
[0056] 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.
[0057] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0058] It should also be noted that when an element is referred to as being "fixed on" or "disposed on" another element, it may be directly on the other element or there may be an intermediate element at the same time. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.
[0059] In addition, 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.
[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] 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.
[0062] The chip testing system may include a microcontroller and a plurality of chip testing card holders;
[0063] Each chip test card holder of the plurality of chip test cards is used for loading a target memory to be tested so as to test the target memory;
[0064] Wherein, each chip test card holder in the plurality of chip test card holders includes a voltage management module and a temperature control module;
[0065] The voltage management module is used to adjust the voltage value of the chip test card holder;
[0066] The temperature control module is used to adjust the temperature value of the chip test holder;
[0067] The microcontroller includes a memory and a processor, wherein a computer program is stored in the memory, and the computer program implements the steps of the chip testing method when executed by the processor.
[0068] It should be noted that the plurality of chip test card holders may include corresponding voltage management modules and temperature control modules respectively. The voltage management module may be a power management chip, and the temperature control module may be a high temperature heating device respectively arranged on the chip test card holder connection line. Each chip test card holder may be data connected to the microcontroller via an SPI or PPI interface.
[0069] See also Figure 1 , Figure 1 1 is a schematic diagram of a system architecture of a chip testing system 100 provided in an embodiment of the present application. Figure 1 As shown, the chip testing system 100 may include a microcontroller and a plurality of chip testing sockets.
[0070] Specifically, the chip testing system 100 may include a microcontroller 101, which may be a control chip of model STM32H7. The microcontroller 101 may include a processor and a memory, the memory may be used to store a program for executing a chip testing method, and the processor may be used to call the memory to execute the chip testing method.
[0071] The microcontroller 101 can also be connected to multiple chip test sockets to increase the test channels for testing the chip, thereby realizing a multi-channel test method. Figure 1 The chip test system 100 in FIG. 1 is exemplarily described, and the chip test system 100 may include: a chip test card holder 201, a chip test card holder 202, a chip test card holder 203, and a chip test card holder 204. Each chip test card holder may be connected to a corresponding voltage management module, and the chip test system 100 may also include: a voltage management module 211, a voltage management module 212, a voltage management module 213, and a voltage management module 214. Each chip test card holder may also be connected to a corresponding temperature control module, and the chip test system 100 may also include: a temperature control module 221, a temperature control module 222, a temperature control module 223, and a temperature control module 224.
[0072] The microcontroller 101 can also be connected to a host computer 301. The host computer 301 can achieve data connection with the microcontroller via USB or Ethernet, and the host computer 301 can be used to visually display the chip test process and chip test results to the user.
[0073] The microcontroller 101 may include an external memory 401 , which may be used to store test data used in the embodiment of the present application. The model of the external memory 401 may be an external SDRAM of a single-chip microcomputer.
[0074] The voltage management module on each chip test card holder can communicate with the microcontroller via an I2C interface to achieve voltage regulation. The voltage management module can be used to adjust the voltage in the chip test card holder, and the voltage adjustment range can be 2.7V to 3.6V. The target voltage value can be set by the host computer 301 connected to the microcontroller 101.
[0075] The temperature control module on each chip test card holder can achieve temperature regulation through PID control algorithm, and the temperature regulation range can be room temperature (23 degrees Celsius to 28 degrees Celsius) to 100 degrees Celsius. The target temperature of the temperature control module can be set by a host computer connected to the microcontroller 101.
[0076] By way of example, a specific test process of the chip test system is described in detail here, as follows:
[0077] This chip test system can test 4 NAND FLASH chips at the same time. Users can place 4 NAND FLASH chips from the same batch in test sockets 1, 2, 3 and 4 respectively:
[0078] Test socket 1: room temperature, normal operating voltage (3.3V).
[0079] Test socket 2: high temperature (usually set to the highest operating temperature supported by the chip), normal operating voltage (3.3V).
[0080] Test socket 3: normal temperature, low operating voltage (usually set to the lowest operating voltage supported by the chip, 2.7V).
[0081] Test socket 4: normal temperature, high operating voltage (usually set to the highest operating voltage supported by the chip, 3.6V).
[0082] After the above settings, one or more blocks of the NAND FLASH to be tested are uniformly subjected to erase and write verification tests until the life of these blocks is exhausted. After the test is completed, the host computer automatically generates a test report based on the test results, which can very intuitively analyze the various factors that affect the life of the NAND FLASH.
[0083] The above-mentioned chip testing system 100 is an example of a chip testing 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.
[0084] 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.
[0085] The invention provides a chip testing method.
[0086] See also Figure 2 , Figure 2 1 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 a chip testing system, the chip testing system includes multiple chip testing card holders, each chip testing card holder includes a voltage management module and a temperature control module, the voltage management module and the temperature control module are used to adjust the voltage and temperature of the target test card holder, respectively, and the target test card holder is any chip test card holder among the multiple chip test card holders. Figure 2 As shown, the chip testing method may include the following steps.
[0087] Step 201: Generate first random test data.
[0088] The first random test data may be a random number sequence generated based on a preset random data model. The first random test data may be used as a test content to perform the chip test on the target memory.
[0089] It should be noted that the first random test data can be data generated based on a random data model, and the first random test data is used to simulate the data written and read by the target memory during actual use. Since the data written and read by the target memory during actual use are different, and different data written or read often result in different computing power and load when the target memory is executed. Therefore, the random test data generated based on the random data model can better simulate the computing power and load required by the target memory during actual use, so as to accurately simulate the actual use process of writing or reading the target memory.
[0090] In a specific implementation, generating the first random test data may include: generating a pseudo-random number using a linear congruential method based on a preset pseudo-random number generator, and using the pseudo-random number as a seed value to generate a digital sequence to obtain the first random test data.
[0091] Among them, a pseudo-random number generator (PRNG) is a mechanism that generates a seemingly random sequence of numbers through a deterministic algorithm, which means that a pre-set mechanism or program has been set up to generate random numbers. The linear congruential method is a specific algorithm to generate seemingly random numbers. It calculates the next number through a mathematical formula, which is usually based on the current number (called the seed) and some fixed parameters (such as the multiplier, increment, and modulus). Among them, the formula of the linear congruential method is as follows:
[0092] Xn+1=(aXn+c) mod m
[0093] Among them, a, c and m are preset constants, and Xn is the nth random number.
[0094] A number generated by the linear congruential method is used as the starting point or initial value for subsequent operations. This initial value is called a seed value. Using the seed value obtained previously, the linear congruential method is applied again to continuously generate new numbers, thus forming an ordered series of numbers. The final sequence of numbers obtained is the so-called first random test data.
[0095] For example, suppose our preset linear congruential method formula is: X(n + 1) = (11 * X(n) + 7) mod 100. First, we randomly select an initial seed value, such as 20. Then the pseudo-random number obtained by the first calculation is (11 * 20 + 7) mod 100 = 227 mod 100 = 27, and this 27 is used as the new seed. The new number obtained by the second calculation is (11 * 27 + 7) mod 100 = 304 mod 100 = 4, and so on. The sequence of these numbers generated continuously is the first random test data we want.
[0096] It should be noted that the random numbers generated based on the pseudo-random number generator and the linear congruential method implement a random number generation method that combines hardware and software. The random numbers generated by the hardware are input as seeds into the software pseudo-random number generator, combining the high quality of random number generation and the flexibility of software pseudo-random number generation. In this way, the high entropy and uniform distribution of random numbers are guaranteed, the limitations of fixed pattern data are avoided, the quality of random numbers is improved, and on the basis of high-quality random numbers, the flexibility and applicability of chip testing are improved.
[0097] Step 202: Write first random test data into a target memory.
[0098] The target memory may be a NAND-Flash memory.
[0099] NAND-Flash memory is a non-volatile storage technology commonly used in various electronic devices such as solid-state drives, memory cards, smart phones, etc., which can save data even when power is off.
[0100] The first random test data having randomness generated by the specific method is stored in a specific storage device or area.
[0101] For example, assuming that the first random test data generated is a set of randomly generated strings, such as ["random1", "random2", "random3"]. Then, during the test process, you can choose to store this set of data in a NAND-Flash chip or a storage device based on NAND-Flash technology so that it can be read and used later when needed.
[0102] Step 203: Read the storage data in the target memory formed by writing the first random test data to obtain first read data.
[0103] The first read data is data read from the target memory after the first random test data is written into the target memory. The first read data may be data consistent with the first random test data, or data inconsistent with the first random test data.
[0104] Step 204: verify the first random test data and the first read data to obtain a verification result.
[0105] The verification result can be used to determine whether a problem occurs in the "write-read" process of the target memory. The verification result can include a first result and a second result, wherein the first result is a result that the first random test data and the first read data are inconsistent, and the second result is a result that the first random test data and the second read data are consistent.
[0106] It should be noted that, since there is uncertainty in the storage capacity of the target memory during the process of repeatedly executing the "write-read" operation in the target memory, the present application determines whether there is a problem with the target memory during the "write-read" process by comparing the consistency between the data written to the target memory and the data read from the target memory to obtain the corresponding verification result.
[0107] Step 205: Determine the test result of the target memory according to the verification result.
[0108] The test result may be a test result obtained by analyzing the service life and usage cycle of the target memory based on multiple verification results determined in the process of repeatedly performing "write-read" in a cycle. The test result may be used to characterize the service life and usage cycle of the target memory when repeatedly performing "write-read" in a simulated real scenario.
[0109] It should be noted that, when the verification result is the first result, it can be determined that the data written to the target memory and the data read out are inconsistent data, that is, in a certain cycle of the target memory executing "write-read", the storage function or the reading function of the target memory has a problem, so it can be determined that the target memory cannot execute the "write-read" step again. At this time, the verification result of this time and all the verification results before this verification result can be obtained to analyze the target memory to determine the use cycle and service life that the target memory can reach.
[0110] When the verification result is the second result, it can be determined that the data written to the target memory and the data read out are consistent data, that is, in a certain cycle of the target memory executing "write-read", the storage function and the reading function of the target memory are not problematic. At this time, the target memory can be controlled to execute the "write-read" step again in a cycle until the verification result of the target memory is the first result.
[0111] exist Figure 2 In the described method embodiment, the chip testing system can generate first random test data; write the first random test data into the target memory; read the storage data in the target memory formed by the first random test data to obtain first read data; verify the first random test data and the first read data to obtain a verification result; and determine the test result of the target memory based on the verification result. Based on the generated random test data as the test data for writing into the target memory and reading out the target memory, the test steps for the target memory are implemented. After the test, the first random test data written into the target memory can also be verified with the first read data read out from the target memory to obtain the corresponding test result. In this way, the test of the target chip based on the flexible randomly generated test data can simulate the data written or read into the memory during the actual application process, thereby improving the accuracy and authenticity of the memory testing process.
[0112] 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 a chip testing system. Figure 3 As shown, the chip testing method may include the following steps.
[0113] Step 301: Generate first random test data.
[0114] The specific content of step 301 can refer to the specific description of step 201, which will not be repeated here.
[0115] It should be noted that the chip testing method performed by the chip testing system of the present application may be based on a target memory cyclically executing the steps of "write-read-verify", and the target memory may be a NAND-Flash memory.
[0116] The chip test system may include multiple chip test sockets, that is, the chip test system can test multiple target memories simultaneously based on the multiple chip test sockets. Each chip test socket can perform the "write-read-verify" steps based on the target memory during the test of the target memory.
[0117] Each of the plurality of chip test sockets has a corresponding voltage management module and temperature control module. The voltage management module and temperature control module on each chip test socket can dynamically control the voltage or temperature in the corresponding chip test socket to simulate different voltages and temperatures in actual use.
[0118] It should be noted that the target memory includes multiple storage blocks, each of which includes multiple target pages. The target memory includes multiple storage blocks, each of which includes the first storage page. The test process can first perform the "write-read-verify" steps in each storage page. When the "write-read-verify" steps for each storage page in a storage block are fully written, the data in the storage block can be erased.
[0119] Step 302: Write first random test data into a first target page of a target memory.
[0120] The first target page is any target page among multiple target pages.
[0121] After the first random test data is generated, the first random test data may be stored in a first target page of a target memory.
[0122] Step 303: Read the storage data in the first target page written by the first random test data to obtain first read data.
[0123] After the first random test data is written into the first target page of the target memory, the stored data corresponding to the first random test data may be read at the first target page to obtain the first read data.
[0124] Step 304: Determine a first verification parameter corresponding to the first random test data based on a preset double verification algorithm.
[0125] After reading the first read data of the first target page, the consistency between the first read data and the first random test data can be determined by verifying the first read data and the first random test data. The storage capacity or read capacity of the first target page of the target memory can be determined based on the consistency between the first read data and the first random test data. Specifically, the present application can calculate the verification parameters corresponding to the first random test data and the first read data respectively through a double verification algorithm, and determine the consistency between the two by comparing the consistency of the verification parameters corresponding to the two.
[0126] The first verification parameter includes: a first verification code value and a first hash value corresponding to the first verification code value. Based on a preset double verification algorithm, determining the first verification parameter corresponding to the first random test data may include: calculating the first verification code value corresponding to the first random test data based on a preset polynomial. Based on a preset hash function, passing the first verification code value to the hash function for calculation to obtain the first hash value corresponding to the first verification code value.
[0127] The first verification parameter may be a parameter obtained by comprehensive calculation based on the first random test data. Specifically, the first verification parameter may include a first verification value calculated based on a preset polynomial and a first hash value calculated based on the first verification value.
[0128] The preset polynomial may be a CRC-16 specific cyclic redundancy check polynomial.
[0129] It should be noted that, according to the pre-set CRC-16 specific cyclic redundancy check polynomial rules, complex calculation operations are performed on the random test data generated for the first time. The CRC-16 algorithm generates a 16-bit code value for verification by performing bit-by-bit processing and specific XOR operations on the data. This value is the first check code value. This verification method is often used to detect whether errors occur in data during transmission or storage. It is calculated based on the bit pattern of the data and has high accuracy and reliability.
[0130] According to the definition and operation logic of a specific hash function determined in advance, the 16-bit first check code value obtained by CRC-16 calculation is used as input data and input into the calculation process of this hash function. After the internal processing and operation of the hash function, a specific hash value corresponding to the first check code value is finally obtained, which we call the first hash value. The hash function can map the input data into an output value with a fixed length and a relatively random distribution, and is often used for fast comparison, search, and integrity verification of data.
[0131] For example, assuming that the first random test data is a set of byte sequences, the first check code value is 0x1234 obtained by calculating the CRC-16 polynomial (such as 0x8005). Assuming that the preset hash function is the MD5 function, the first check code value 0x1234 is input into the function for calculation, and finally a 128-bit hash value is obtained, such as 0xABCD1234EF567890......, which is the first hash value.
[0132] Step 305: Determine a second verification parameter corresponding to the first read data based on a preset double verification algorithm.
[0133] Wherein, the second verification parameter includes: a second verification code value and a second hash value corresponding to the second verification code value. Based on a preset double verification algorithm, determining the second verification parameter corresponding to the first read data may include: calculating the second verification code value corresponding to the first read data based on a preset polynomial. Based on a preset hash function, passing the second verification code value to the hash function for calculation to obtain a second hash value corresponding to the second verification code value.
[0134] The calculation process of the second verification parameter is consistent with that of the first verification parameter.
[0135] The second verification parameter may be a parameter obtained by comprehensive calculation based on the second random test data. Specifically, the second verification parameter may include a second verification value calculated based on a preset polynomial and a second hash value calculated based on the second verification value.
[0136] In another embodiment, after respectively determining the first verification parameter and the second verification parameter, the first verification parameter corresponding to the first random test data and the second verification parameter corresponding to the first read data may be stored in corresponding storage locations.
[0137] It should be noted that the stored first verification parameter and the second verification parameter can be used to verify the first random test data and the first read data.
[0138] Step 306: compare the first verification parameter and the second verification parameter to verify the first random test data and the first read data to obtain a verification result.
[0139] The verification result includes a first result and a second result.
[0140] After the first verification parameter and the second verification parameter are calculated, the first verification parameter and the second verification parameter may be compared in value.
[0141] It should be noted that the first check parameter includes a first check value and a first hash value, and the second check parameter includes a second check value and a second hash value. When comparing the first check parameter and the second check parameter, the first check value and the second check value can be compared respectively, and the first hash value and the second hash value can be compared. When the first check value and the second check value are the same, and the first hash value and the second hash value are the same, it can be determined that the first random test data and the first read data are the same. When the first check value and the second check value are different, and / or the first hash value and the second hash value are different, it can be determined that the first random test data and the first read data are inconsistent.
[0142] Step 307: When the verification result is the first result, test and analyze the target memory according to the verification result to obtain a corresponding test result.
[0143] The first result is a result that the first random test data is inconsistent with the first read data.
[0144] When the first random test data and the first read data are inconsistent, that is, in the case of the first result, the current verification result and all verification results before the current verification result can be obtained, and the target memory is tested and analyzed according to the current verification result and all verification results before the current verification result to obtain a corresponding test result.
[0145] In a specific implementation, the target memory is tested and analyzed according to the verification result to obtain the corresponding test result, including: when the verification result is the first result, obtaining the first test data corresponding to the first target page and the storage page before the first target page in the target memory. The target memory is tested and analyzed according to the first test data to obtain the corresponding test result.
[0146] Step 308: When the verification result is the second result, check whether the multiple storage blocks of the target memory are full.
[0147] The second result is a result that the first random test data is consistent with the first read data.
[0148] When the verification result is the second result, it can be determined that there is no problem with the storage or reading function of the target memory. When the target memory can perform the "write-read" operation function, it can be detected whether the storage block in the target memory is full, so that the target memory continues to cyclically perform the "write-read" operation function.
[0149] Please continue reading Figure 3 ,exist Figure 3 In the step diagram, after step 308, steps 309 to 312 may be executed. After step 308, if the target storage block is not full, the contents of steps 309 to 312 may be executed until the target storage block is full, and step 313 may be executed if the target storage block is full.
[0150] It should be noted that steps 309 to 312 are loop execution steps of steps 301 to 307, and the step contents are the same. The specific test contents to be tested may be the first random test data and the second random test data, respectively, and the first random test data and the second random test data are different.
[0151] Step 309: When the storage block of the target memory is not full, write the second random test data to the second target page of the target memory.
[0152] The second target page is a storage page after the first target page, and the second random test data is a random digital sequence different from the first random test data.
[0153] The second random test data may be random test data generated again based on a random data model.
[0154] When the target memory is not fully written, the "write-read" operation function can be continued to the next page of the target storage block in the target memory.
[0155] Step 310: Read the storage data in the second target page written by the second random test data to obtain second read data.
[0156] Step 311 , verify the second random test data and the second read data until the verification result of the second random test data and the second read data is the first result.
[0157] Step 312: When the verification result is the first result, test and analyze the target memory according to the verification result to obtain a corresponding test result.
[0158] Among them, step 309 to step 312 are loop execution steps of step 302 to step 307, and the content of the steps is the same.
[0159] Step 313: when the storage block of the target memory is full, erase the written data in multiple target pages of the target storage block of the target memory.
[0160] The target storage block is any storage block of multiple storage blocks in the target memory.
[0161] In a specific implementation, the target memory is tested and analyzed according to the verification result to obtain the corresponding test result, including: when the storage block of the target memory is full, obtaining the second test data corresponding to the second target page and the storage page before the second target page in the target memory. The target memory is tested and analyzed according to the second test data to obtain the corresponding test result.
[0162] exist Figure 3 In the described method embodiment, the chip testing system can generate first random test data; write the first random test data into the target memory; read the storage data in the target memory formed by the first random test data to obtain first read data; verify the first random test data and the first read data to obtain a verification result; and determine the test result of the target memory based on the verification result. Based on the generated random test data as the test data for writing into the target memory and reading out the target memory, the test steps for the target memory are implemented. After the test, the first random test data written into the target memory can also be verified with the first read data read out from the target memory to obtain the corresponding test result. In this way, the test of the target chip based on the flexible randomly generated test data can simulate the data written or read into the memory during the actual application process, thereby improving the accuracy and authenticity of the memory testing process.
[0163] It should be understood that the same or corresponding information in the above different embodiments can be referenced to each other.
[0164] It should be understood that although Figure 2 , Figure 3 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 and Figure 3 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.
[0165] 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: The chip testing method is applied to a chip testing system, the chip testing system includes a plurality of chip test card holders, each of the chip test card holders correspondingly includes a voltage management module and a temperature control module, the voltage management module and the temperature control module are respectively used to adjust the voltage and temperature of a target test card holder, the target test card holder is any chip test card holder among the plurality of chip test card holders, and there are test card holders with different voltages or temperatures among the plurality of chip test card holders, the chip testing method includes: Generate first random test data, where the first random test data is test content; Writing the first random test data into a target memory, wherein the target memory is loaded into the target test card holder; Reading the storage data in the target memory formed by writing the first random test data to obtain first read data; Verifying the first random test data and the first read data to obtain a verification result; Determining a test result of the target memory according to the verification result; Wherein, determining the test result of the target memory according to the verification result includes: When the verification result is a first result, testing and analyzing the target memory according to the verification result to obtain a corresponding test result, wherein the first result is a result that the first random test data is inconsistent with the first read data; If the verification result is a second result, detecting whether the plurality of storage blocks of the target memory are full, the second result being a result that the first random test data is consistent with the first read data; When the storage block of the target memory is not fully written, write second random test data to a second target page of the target memory, where the second target page is a storage page after the first target page, and the second random test data is a random digital sequence different from the first random test data; Reading the storage data in the second target page written by the second random test data to obtain second read data; Verifying the second random test data and the second read data until a verification result of the second random test data and the second read data is a first result; When the verification result is the first result, the target memory is tested and analyzed according to the verification result to obtain a corresponding test result.
2. The chip testing method according to claim 1, characterized in that: The generating of the first random test data comprises: Based on a preset pseudo-random number generator, a linear congruential method is used to generate pseudo-random numbers; The pseudo-random number is used as a seed value to generate a digital sequence to obtain the first random test data.
3. The chip testing method according to claim 1, characterized in that: The verifying the first random test data and the first read data to obtain a verification result includes: Determine a first verification parameter corresponding to the first random test data based on a preset double verification algorithm; Determining a second verification parameter corresponding to the first read data based on a preset double verification algorithm; The first verification parameter and the second verification parameter are compared to verify the first random test data and the first read data to obtain a verification result.
4. The chip testing method according to claim 3, characterized in that: The first verification parameter includes: a first verification code value and a first hash value corresponding to the first verification code value; The determining, based on a preset double verification algorithm, a first verification parameter corresponding to the first random test data includes: Calculating a first check code value corresponding to the first random test data based on a preset polynomial; Based on a preset hash function, passing the first check code value to the hash function for calculation to obtain a first hash value corresponding to the first check code value; The second verification parameter includes: a second verification code value and a second hash value corresponding to the second verification code value; The determining, based on a preset double verification algorithm, a second verification parameter corresponding to the first read data includes: Calculating a second check code value corresponding to the first read data based on a preset polynomial; Based on a preset hash function, passing the second check code value to the hash function for calculation to obtain a second hash value corresponding to the second check code value; The chip testing method also includes: A first verification parameter corresponding to the first random test data and a second verification parameter corresponding to the first read data are stored in corresponding storage locations.
5. The chip testing method according to claim 1, characterized in that: The target memory includes a plurality of storage blocks, each of which includes a plurality of target pages; Writing the first random test data into a target memory comprises: Writing the first random test data into a first target page of a target memory, where the first target page is any target page among the multiple target pages; The step of reading the storage data in the target memory formed by writing the first random test data to obtain first read data includes: The storage data in the first target page written by the first random test data is read to obtain first read data.
6. The chip testing method according to claim 1, characterized in that: The chip testing method further includes: When a storage block of the target storage is full, erase the written data in multiple target pages of the target storage block of the target storage, wherein the target storage block is any storage block of the multiple storage blocks in the target storage.
7. The chip testing method according to claim 1, characterized in that: The testing and analyzing the target memory according to the verification result to obtain a corresponding test result includes: When the verification result is a first result, obtaining first test data corresponding to the first target page and a storage page before the first target page in the target memory; Performing test analysis on the target memory according to the first test data to obtain corresponding test results; or when the storage block of the target memory is full, obtaining second test data corresponding to the second target page and a storage page before the second target page in the target memory; The target memory is tested and analyzed according to the second test data to obtain corresponding test results.
8. The chip testing method according to any one of claims 1 to 7, characterized in that: The target memory is a NAND-Flash memory.
9. A chip testing system, characterized in that: include: Microcontroller and multiple chip test sockets; Each chip test card holder of the plurality of chip test cards is used for loading a target memory to be tested so as to test the target memory; Wherein, each chip test card holder in the plurality of chip test card holders includes a voltage management module and a temperature control module; The voltage management module is used to adjust the voltage value of the chip test card holder; The temperature control module is used to adjust the temperature value of the chip test holder; The microcontroller includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the chip testing method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Nand chip performance test method, board card, system and storage medium
CN114187959A
Memory testing method and device, equipment and storage medium
CN114639437A
Test system and test method for memory chip
CN117409851A
