Test case allocation method, acquisition method, test system, and program product
By acquiring and matching the current state information of the test sample with the target test state, the test case allocation of the memory testing system is optimized, which solves the problem that the test sample state is not considered in the prior art and improves testing efficiency and resource utilization.
Patent Information
- Application Number
- CN202611397219.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-27
AI Technical Summary
Existing memory testing systems fail to effectively consider the current state of test samples when allocating test cases, resulting in the inability to trigger the required firmware processing path. Furthermore, samples need to be reinitialized during end-of-life testing, wasting time and resources.
By obtaining the current state information of the test sample, the target test sample is matched with the target test state and the current state information, and test cases are assigned. The sample state is continuously updated to optimize the test task allocation.
It improves the testing efficiency of the memory testing system, reduces the reliance on brand-new samples, ensures the firmware processing path required to trigger test cases, and optimizes the utilization of test resources.
Smart Images

Figure CN123178273A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of memory testing technology, and in particular to the allocation and scheduling technology between test cases and test samples in memory testing systems, test case allocation methods, acquisition methods, testing systems, and program products. Background Technology
[0002] Memory testing systems typically include multiple test cases and multiple test samples. Each test case verifies different functional modules of the storage device firmware, while each test sample is an individual storage device capable of independent testing. Test samples are used as testing progresses, and their erase / write cycles, total host write volume, and number of bad blocks continuously change. Therefore, test samples undergoing different testing phases are not identical to each other.
[0003] Existing testing systems often assign test cases to test samples randomly, without considering whether the current usage level of the test sample is relevant to the scenario the test case aims to verify. For example, assigning a test case verifying read disturb to a test sample with robust flash memory makes it difficult to fully trigger the error handling path of the relevant modules in the firmware; assigning protocol-related test cases with relatively few read / write operations to test samples with weak word lines in three-level cell mode makes it impossible to verify the firmware's handling of weak word line read / write errors; or assigning a test case verifying read / write operations in single-level cell mode to a test sample with weak word lines in three-level cell mode fails to utilize the characteristics of the test sample itself. Furthermore, for example, when conducting reliability testing on products nearing the end of their lifespan, test cases may require test samples with a high number of erase / write cycles. However, existing test systems often do not continuously track the exact number of erase / write cycles of existing test samples. The current practice often requires taking a completely new test sample and repeatedly writing it from a state with zero erase / write cycles until the required number of erase / write cycles is reached before testing can begin. This current practice takes approximately 2 weeks to 1 month and consumes the available erase / write cycles of the test sample. Summary of the Invention
[0004] In view of this, this disclosure provides a test case allocation method, an acquisition method, a memory testing system, and a computer program product. By acquiring the current state information of multiple test samples as they are used, and selecting target test samples based on the current state information and the target test state of the test cases, the test cases are then allocated, thereby enabling the test cases to be dispatched to test samples whose states match the desired verification scenario.
[0005] According to a first aspect of this disclosure, a test case allocation method is provided, applied to a memory testing system. The method includes: acquiring current state information of multiple test samples, wherein the current state information is used to characterize the state of each test sample as it is used; acquiring a target test state of the test cases; acquiring a target test sample matching the target test state from the multiple test samples based on the target test state and the current state information, wherein each test sample is a storage device individual that can be independently allocated test cases and independently execute test cases; and allocating the test cases to the target test samples.
[0006] According to a second aspect of this disclosure, a test case acquisition method is provided, applied to a memory testing system. The method includes: acquiring current state information of a test sample, wherein the current state information is used to characterize the state of the test sample as it is used; acquiring target test states for each of a plurality of test cases; acquiring target test cases matching the current state information from the plurality of test cases based on the current state information of the test sample and the target test states for each of the plurality of test cases, wherein the test sample is a storage device individual capable of being independently assigned target test cases and independently executing target test cases; and assigning the target test cases to the test samples.
[0007] According to a third aspect of this disclosure, a memory testing system is provided, including an input / output interface for communicating with multiple test samples, a memory for storing computer program instructions, and a processor connected to the input / output interface and the memory. The processor executes the computer program instructions to perform the following steps: acquiring current state information of the multiple test samples, wherein the current state information characterizes the state of each test sample as it is used; acquiring a target test state for test cases; acquiring a target test sample matching the target test state from the multiple test samples based on the target test state and the current state information, wherein each test sample is an individual storage device capable of being independently assigned test cases and independently executing test cases; and assigning test cases to the target test sample.
[0008] According to a fourth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when loaded and executed by a processor of a memory testing system, causes the processor to perform the following steps: acquiring current state information of a plurality of test samples, wherein the current state information is used to characterize the state of each test sample as it is used; acquiring a target test state for test cases; acquiring a target test sample matching the target test state from the plurality of test samples based on the target test state and the current state information, wherein each test sample is a storage device individual capable of being independently assigned test cases and independently executing test cases; and assigning test cases to the target test sample.
[0009] According to a fifth aspect of this disclosure, a memory testing system is provided, including an input / output interface for communicating with a test sample, a memory for storing computer program instructions, and a processor connected to the input / output interface and the memory. The processor is configured to execute the computer program instructions to perform the following steps: acquiring current state information of the test sample, wherein the current state information characterizes the state of the test sample as it is used; acquiring target test states for multiple test cases; acquiring target test cases matching the current state information from the multiple test cases based on the current state information of the test sample and the target test states for the multiple test cases, wherein the test sample is an individual storage device capable of being independently assigned target test cases and independently executing target test cases; and assigning the target test cases to the test sample.
[0010] According to a sixth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when loaded and executed by a processor of a memory testing system, causes the processor to perform the following steps: acquiring current state information of a test sample, wherein the current state information characterizes the state of the test sample as it is used; acquiring target test states for each of a plurality of test cases; acquiring target test cases matching the current state information from the plurality of test cases based on the current state information of the test sample and the target test states for each of the plurality of test cases, wherein the test sample is a storage device individual capable of being independently assigned target test cases and independently executing target test cases; and assigning the target test cases to the test sample.
[0011] The technical solution provided in this disclosure obtains the current state information of multiple test samples as they are used, and then, based on the target test state of the test cases and the current state information of the multiple test samples, obtains the target test sample from the multiple test samples and assigns the test cases to it. This allows the test cases to be dispatched to test samples whose states match the desired verification scenario, thus increasing the chance of triggering the firmware processing path targeted by the test cases. On the test sample side, when a test sample becomes an object to which test cases can be assigned, a target test case matching the current state information of the test sample is obtained from the multiple test cases and assigned to the test sample, allowing the vacant test sample to continuously undertake test tasks matching its state. Furthermore, since the current state information of the target test sample is updated during or after the execution of the test cases, subsequent test case assignments are based on the updated current state information. The degree to which the test samples are used can be continuously recorded and reused in multiple rounds of testing, thereby reducing the need to repeatedly rewrite from a completely new test sample to obtain a test sample in a specific state, which helps to improve the testing efficiency of the memory testing system. Attached Figure Description
[0012] Figure 1This is a block diagram illustrating the overall architecture of the memory testing system and test samples according to embodiments of the present disclosure;
[0013] Figure 2 This is a main flowchart of a test case allocation method shown according to embodiments of the present disclosure;
[0014] Figure 3 This is a schematic diagram of the recording structure of the current state information and identification information of a test sample according to an embodiment of the present disclosure;
[0015] Figure 4 This is a schematic diagram illustrating the formation and matching of demand tags and characteristic tags according to embodiments of this disclosure;
[0016] Figure 5 A flowchart illustrating the steps for determining the degree of matching and forming a comprehensive matching score according to embodiments of this disclosure;
[0017] Figure 6 A flowchart illustrating the steps of state update and relabeling closed loop in a multi-round test according to embodiments of this disclosure;
[0018] Figure 7 This is a schematic diagram showing a side-by-side comparison of two allocation modes according to embodiments of the present disclosure;
[0019] Figure 8 This is a main flowchart of a test case acquisition method according to an embodiment of the present disclosure;
[0020] Figure 9 A timing diagram illustrating the allocation of test cases between a memory testing system and test samples according to embodiments of this disclosure;
[0021] Figure 10 A timing diagram for obtaining test cases between the memory test system and the test sample as shown in the embodiments of this disclosure. Detailed Implementation
[0022] Reference will now be made in detail to exemplary embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same component reference numerals are used in the drawings and description to denote the same or similar parts.
[0023] Reference Figure 1In one embodiment, the memory testing system 20 includes a processor 210, a memory 220, and an input / output interface 230. The memory testing system 20 manages multiple test cases and multiple test samples; the number of test cases is not directly related to the number of test samples. Furthermore, the same test case can be assigned to different test samples, and the same test sample can also receive different test cases in different rounds. The memory testing system 20 performs two functions for test samples: recording, processing, and iterating test sample information, and allocating test tasks.
[0024] In one embodiment, the memory testing system 20 manages multiple test samples, which are a batch of individual storage devices at different stages of use. Some test samples are newly installed, while others have undergone multiple rounds of testing and accumulated a considerable number of erase / write cycles and bad blocks. The multiple test cases managed each target different testing objectives and have different state requirements for the test samples they use. For example, the memory testing system 20 can be an automated testing platform consisting of a test host and a test carrier board, or it can be a test machine with multiple test channels. Test samples 40-1 to 40-n can be solid-state drives, embedded storage devices, or memory cards, or they can be independently packaged storage devices that can accept different test cases and report the execution results of each test case separately. Test cases 300-1 to 300-m can be read interference test cases, single-level cell mode read / write test cases, test cases for weak word lines, or test cases for verifying firmware error handling procedures. The current status information 410-1 to current status information 410-n can be the number of erase / write cycles for the corresponding test sample, the total amount written by the host, bad block information, or the busy time of flash programming. It can also be the number of test rounds executed by the test sample, the cumulative number of reads for the test sample, or the power-on time of the test sample.
[0025] In one embodiment, the input / output interface 230 may be a storage device interface, such as a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Flash Storage (UFS) interface, an embedded MultiMediaCard (eMMC) interface, or a Secure Digital (SD) card interface. In other embodiments, the input / output interface 230 may also be a wired communication interface, such as a Universal Serial Bus (USB) interface or an Ethernet interface; it may also be a wireless communication interface, such as a wireless LAN interface or a Bluetooth interface, in which case the test sample has the corresponding wireless communication function. All of the above interfaces are used to communicate with the test sample, which is a complete storage device. The input / output interface 230 may include two or more interface ports of the same form, each interface port being connected to different test samples; the input / output interface 230 may also be a data interface possessing two or more of the above forms, or multiple forms may coexist in the same memory test system 20 depending on the interface form adopted by the connected test sample.
[0026] Specifically, the input / output interface 230 is used to communicate with multiple test samples, the memory 220 is also used to store computer program instructions, and the processor 210 is connected to the input / output interface 230 and the memory 220. The processor 210 is used to execute the computer program instructions stored in the memory 220 to implement the method provided in this disclosure. The connection between the processor 210 and the memory 220, and between the processor 210 and the input / output interface 230, can be an electrical connection.
[0027] In one embodiment, memory 220 can also be used to store test cases 300-1, test cases 300-2 to 300-m, and current state information 410-1, 410-2 to 410-n. Test cases 300-1 to 300-m each have their target test state; the current state information 410-1 to 410-n corresponds one-to-one with test samples 40-1 to 40-n, each representing the state that changes as the corresponding test sample is used. In other words, the test case side carries its required state, and the test sample side carries its current state; the state descriptions at both ends are available for the processor 210 to retrieve and compare. Test cases 300-1 to 300-m and the current state information 410-1 to 410-n can also be stored in other storage units besides memory 220. Figure 1 The illustration shows an exemplary configuration in which both are stored in the same memory 220.
[0028] Test samples 40-1, 40-2, and 40-n are each individual storage devices capable of being independently assigned and executed with test cases. Being capable of independently assigned and executed test cases means that each test sample can accept different test cases and report the execution results of each test case independently, making it the smallest test entity capable of independently undertaking testing tasks. Furthermore, each of test samples 40-1 to 40-n may include a memory controller and a flash memory chip, and can run firmware and accept writes from the host side. This configuration is one exemplary implementation. Test sample 40 is not a component of the memory testing system 20. Test sample 40 may be placed inside or outside the memory testing system 20. Figure 1 Taking the externally placed example, the communication relationship between the test sample 40 and the input / output interface 230 remains unchanged in both configurations. It should be noted that the number of test samples that the input / output interface 230 can communicate with is not limited to a single individual; it can communicate with one test sample or multiple test samples.
[0029] The processor 210 communicates with the test sample 40 via the input / output interface 230 to obtain the current state information 410-1 to 410-n of each of the test samples 40-1 to 40-n and records it in the memory 220. The processor 210 then compares the target test state of each of the test cases 300-1 to 300-m with the recorded current state information 410-1 to 410-n, and based on the comparison result, obtains a target test sample matching the target test state from the test samples 40-1 to 40-n, and then assigns the corresponding test case to the target test sample. More broadly, the processor 210 obtains the target test sample matching the target test state from the test samples 40-1 to 40-n based on the target test state and the current state information; the above comparison is one implementation, and the processor 210 can also implement other implementations as described below. Figure 4 The tag matching shown in the embodiments, or according to the subsequent corresponding Figure 5 The comprehensive matching score shown in the example is as follows.
[0030] For example, suppose the memory test system 20 currently has test samples 40-1 to 40-n mounted. Test sample 40-1 has accumulated nearly the maximum erase / write cycle count specified by the manufacturer, while test sample 40-2 is a newer sample with a lower erase / write cycle count. The current status information 410-1 and 410-2 obtained by the processor 210 reflect the different usage levels of these two samples, respectively. When the test case 300-1 to be assigned is a read interference test case, and its target test state is a high erase / write cycle count, the processor 210 compares this target test state with the current status information 410-1 to 410-n, determining that test sample 40-1 is a match. Therefore, test case 300-1 is assigned to test sample 40-1, and not to test sample 40-2. In this scenario, test case 300-1 can be executed on a test sample where errors are more likely to occur during the reading process, thus increasing the chance of testing the firmware's error handling mechanism. If reassigned to test sample 40-2, the error handling mechanism intended by that test case is less likely to be triggered. After test case 300-1 is executed on test sample 40-1, processor 210 obtains the current state information 410-1 after the execution of test sample 40-1 and updates the changed items; unchanged items can maintain their original records. In the next round of allocation, processor 210 uses the updated current state information 410-1. This multi-round process of updating and reallocation will be addressed in subsequent rounds. Figure 6 The embodiments are further elaborated here.
[0031] The steps of acquiring, recording, comparing, and allocating described above can be implemented in various ways. Current state information 410-1 to current state information 410-n can be provided by the test sample, or acquired by the memory test system 20 during or after the execution of test cases. For example, the processor 210 can acquire the current state information 410 recorded by the test sample, which is a complete storage device, via the input / output interface 230; it can also be reported by the firmware running on the test sample after the test case is completed; or it can be obtained by the memory test system 20 based on its own records of dispatched test tasks. Each of the above acquisition methods can be selected or used in combination, and the acquisition of each current state information 410 will be discussed in subsequent sections. Figure 3 The embodiments are further elaborated upon. In one embodiment, the processor 210 may record the current state information in the memory 220 immediately after each acquisition; in another embodiment, the processor 210 may also record the current state information acquired in that round of testing after the end of that round. The timing of the comparison and allocation can also be chosen in different ways. The assignment relationship between multiple test cases and multiple test samples can be established at once before the test begins, or it can be performed in real time during the test as the current state information is updated. These two timings will be discussed later. Figure 7 This is further elaborated in the embodiments. Furthermore, when the processor 210 fails to acquire a target test sample matching the target test state, it can assign the test case to other test samples; the matching degree and overall matching score will be determined subsequently. Figure 5 The embodiments are further elaborated here. In terms of assignment relationships, a test case can be assigned to one or more test samples, and a test sample can also sequentially accept two or more test cases.
[0032] The memory testing system 20 serves as the execution platform for both the test case allocation method and the test case acquisition method. As previously mentioned, the input / output interface 230 can communicate with one or more test samples; therefore, the processing in both directions is not limited to the memory testing system 20 connecting to a single test sample. The processor 210 executes the computer program instructions stored in the memory 220 to implement the steps in the following two directions: in one direction, comparing the target test state of the test case with the current state information of each of the multiple test samples, obtaining a target test sample matching the target test state from the multiple test samples, and allocating the test case to the target test sample; in the other direction, comparing the current state information of the test sample with the target test state of each of the multiple test cases, obtaining a target test case matching the current state information from the multiple test cases, and allocating the target test case to the test sample. The aforementioned computer program instructions can be provided in the form of a computer program product, which includes a computer program that includes the aforementioned computer program instructions. When the computer program is loaded and executed by the processor 210 of the memory testing system 20, the processor 210 performs the corresponding steps. The test case allocation process will be discussed later. Figure 2 The embodiments are further elaborated here, and the process of obtaining test cases will be discussed in subsequent sections. Figure 8 The embodiments are further elaborated here.
[0033] It should be noted that, Figure 1 The configuration of the processor 210, memory 220, and input / output interface 230 shown is an exemplary implementation. In another embodiment, the memory testing system 20 may also include other components, the processor 210 may be operated by multiple processing units, and the memory 220 may be operated by multiple storage units.
[0034] Based on the above Figure 1 The overall architecture of the memory testing system shown integrates the state descriptions of both test cases and test samples into a single hardware unit. The processor compares and assigns tasks based on the sample states stored on the system side and the test case requirements, allowing test task assignment to be performed while individual sample differences are visible. In this architecture, the current state of a sample is saved as a record on the system side and also serves as input for subsequent task assignments, continuously updating with each test round.
[0035] Reference Figure 2 In one embodiment, Figure 1 The memory testing system 20 shown executes a test case allocation method, which is implemented by the processor 210 executing computer program instructions stored in the memory 220, and includes steps S210 to S240.
[0036] In step S210, the processor 210 acquires the current state information of multiple test samples. These multiple test samples are... Figure 1 For the test samples 40-1 to 40-n shown, the processor 210 communicates with the test samples 40 via the input / output interface 230 to obtain the current state information 410-1 to 410-n, and records the information in the memory 220. Each of the current state information 410-1 to 410-n represents the changing state of the corresponding test sample as it is used; therefore, the current state information obtained in this step reflects the state of each test sample during this round of allocation.
[0037] Next, in step S220, the processor 210 obtains the target test state of the test case. This test case is... Figure 1 The test cases 300-1 to 300-m shown are to be assigned, and their target test states describe the test sample states required by that test case. The target test state and the current state information are located at opposite ends of the comparison; the former is derived from the test case side, and the latter from the test sample side. How these two are formed will be explained later. Figure 3 and Figure 4 The embodiments are further elaborated here.
[0038] Next, in step S230, the processor 210, based on the target test state and the current state information 410-1 to 410-n of each of the test samples 40-1 to 40-n, obtains a target test sample matching the target test state from the test samples 40-1 to 40-n. In one embodiment, step S230 includes: the processor 210 comparing the target test state with the current state information 410-1 to 410-n of each of the test samples 40-1 to 40-n, wherein the comparison is performed with the same target test state and the current state information of each test sample respectively, thereby obtaining a comparison result of each test sample relative to the target test state; the processor 210 then, based on the comparison result, obtains a target test sample matching the target test state from the test samples 40-1 to 40-n. The specific method of comparison will be discussed later. Figure 4 The embodiments are further elaborated here.
[0039] According to the comparison results, test samples that have a certain degree of matching with the target test state are all target test samples that match the target test state as referred to in step S230, regardless of the degree of matching. The matching referred to in step S230 does not require the determination of the degree of matching as a necessary condition.
[0040] Next, in step S240, the processor 210 assigns the test case to the target test sample. After assignment, the test case is executed on the target test sample, and the current state information of the target test sample changes as the test case is executed.
[0041] After the test case is executed on the target test sample, the current state information of the target test sample is updated, and the feature labels of the test sample can be relabeled according to the updated current state information for use in subsequent test case allocation; the closed loop formed by this update and relabeling will be used in subsequent corresponding... Figure 6 The embodiments are further elaborated here.
[0042] Steps S210 to S240 above constitute the backbone process for test case allocation. Each step is detailed in the embodiments shown in the subsequent figures: the current state information obtained in step S210 has a record structure that corresponds to the associated identification information. Figure 3 Examples; how the requirement descriptions on the test case side and the feature descriptions on the test sample side are each labeled, corresponding to... Figure 4 The embodiment; step S230: how to determine the matching degree and overall matching degree score of each test sample based on the comparison result, and obtain the target test sample accordingly, corresponding to Figure 5 An example of this; how the current state information is updated and re-marked after test execution, corresponding to... Figure 6 The embodiment; step S240 allocates two modes: overall planning before the test begins and real-time scheduling during the test, corresponding to... Figure 7 Examples of implementations.
[0043] It should be noted that, Figure 2 The execution order of steps S210 and S220 shown is an exemplary implementation. Step S210 is taken from the test sample side, and step S220 is taken from the test case side. The acquisition of the two does not depend on the completion of the other, and they can be executed sequentially or in parallel. Step S230 is based on the premise that the target test state and the current state information of the corresponding test sample have been obtained; step S240 is executed according to the target test sample obtained in step S230.
[0044] Steps S210 to S240 described above can also be implemented by a computer program. When this computer program is loaded and executed by the processor 210 of the memory testing system 20, the processor 210 performs the above steps. This computer program can be provided by a computer program product, which includes the computer program. Its form is already described in... Figure 1 The embodiments are illustrated below.
[0045] Based on the above Figure 2The test case allocation method shown no longer assigns test cases randomly. Instead, it first obtains the current state of each test sample and then compares it with the requirements of the test case. This ensures that the test sample selected to receive the test case is one that matches the requirements of the test case based on the comparison result.
[0046] Reference Figure 3 In one embodiment, Figure 2 The current state information obtained in step S210 is recorded in the following structure: Figure 3 As shown. Figure 1 The memory testing system 20 shown maintains a record for each of the test samples 40-1, 40-2 to 40-n. Each record includes the identification information 420 of the test sample and the current status information 410 of the test sample, and is stored in the memory 220.
[0047] In step S210, the processor 210 obtains identification information 420 that uniquely distinguishes the individual test sample. Uniquely distinguishing the individual test sample means that the identification information can determine which test sample from test samples 40-1 to 40-n it refers to, thus allowing the accumulated states of the test sample in different rounds to be attributed to the same individual. Identification information 420 includes at least one of the memory controller identifier and the flash memory chip identifier of the corresponding test sample. For example, the memory controller identifier can be the identification code of the memory controller configured for the test sample, and the flash memory chip identifier can be the identification code of the flash memory chip configured for the test sample. These two are examples of identification information 420, but identification information 420 is not limited to these two; any identifier that uniquely distinguishes an individual test sample can be used as identification information 420.
[0048] The current status information 410 includes at least one of the following: the number of erase / write cycles 411 for the corresponding test sample, the total amount of data written to the host 412, bad block information 413, and flash programming busy time 414. The number of erase / write cycles 411 is the cumulative number of times the flash memory of the test sample has been erased and reprogrammed; the total amount of data written to the host 412 is the cumulative amount of data written to the test sample by the host; the bad block information 413 is the information related to storage blocks in the test sample that are no longer usable; and the flash programming busy time 414 is the time the test sample is busy performing flash programming operations. The items included in the current status information 410 are not limited to the above four items; any status that changes as the test sample is used can be included. For example, the current status information 410 may also include the number of test cycles performed by the test sample, the cumulative number of reads by the test sample, the power-on time of the test sample, or the remaining available erase / write cycles obtained from the number of erase / write cycles 411 and its upper limit.
[0049] The four items mentioned above may not all originate from the same source. The number of erase / write cycles 411, bad block information 413, and flash memory programming busy time 414 vary as the flash memory of the test sample is used, while the total host write volume 412 is generated on the host side according to its definition. In one embodiment, the four items mentioned above can be provided to the memory test system 20 by their respective generating sides. For example, the number of erase / write cycles 411, bad block information 413, and flash memory programming busy time 414 are maintained by the firmware running on the test sample and reported to the memory test system 20 via the input / output interface 230, while the total host write volume 412 is provided by the host side based on the cumulative write volume it has accumulated for the test sample. In another embodiment, the total host write volume 412 can also be obtained by the memory test system 20 during or after the execution of the test cases, for example, based on the cumulative data volume of the write commands it has issued to the test sample. The above acquisition methods can be selected one or used in combination, and the acquisition paths of each current status information 410 can be different from each other. This disclosure is not limited to a specific acquisition method. In one embodiment, the storage medium of the test sample refers to the portion of the test sample used for storing data, which may consist of multiple storage blocks included in the flash memory chip; the erase / write cycle count 411, bad block information 413, and flash memory programming busy time 414 are states of the storage medium that change as it is used; the total host write amount 412 is generated on the host side, and its write amplification relationship corresponds to the accumulated programming amount of the storage medium, thereby reflecting the degree to which the storage medium changes as it is used.
[0050] In step S210, the processor 210 also associates and records the current status information 410 with the identification information 420. For example... Figure 3 As shown, in one embodiment, the associated record is carried by a record table. Each row of the record table corresponds to one of test samples 40-1, 40-2 to 40-n. The identification information 420 column of each row records the identification information of the test sample, and the other four columns record the erase / write cycle count 411, total host write volume 412, bad block information 413, and flash memory programming busy time 414 of the test sample, respectively. These four columns together constitute the current status information 410 of the test sample. Figure 3 As shown in the middle line A31, test sample 40-1, test sample 40-2 to test sample 40-n each correspond to their identification information 420; this correspondence is the basis for assigning the current state information 410 to a specific test sample individual. Identification information 420 and current state information 410 are recorded in parallel.
[0051] The acquisition and association of the aforementioned records are performed by the memory testing system 20. Accordingly, the states accumulated by test samples 40-1 to 40-n in different rounds are all recorded in the same record based on the identification information 420.
[0052] The current status information 410 is recorded based on the identification information 420, so that the memory testing system 20 can know the current status of each test sample. If this record is not made, when a test sample with a specific status is required, it is impossible to know which of the existing test samples meets the requirements. Instead, a new test sample must be obtained and pre-written to the required level, which consumes the number of erase / write cycles and test time of the test sample.
[0053] After the test case is executed on the test sample, the current state information 410 of the test sample changes accordingly. The processor 210 then updates the corresponding item in the record, while the identification information 420 remains unchanged. The timing of this update and its subsequent application will be discussed later. Figure 6 The embodiments are further elaborated here.
[0054] It should be noted that, Figure 3 The record format shown is an exemplary implementation. In another embodiment, the identification information 420 and the current status information 410 may also be stored in different storage units, and the two are associated with a pointing relationship; the number of fields in the record table is also not limited to... Figure 3 The examples shown are limited to those shown.
[0055] In another embodiment, when a test sample is included in the management of the memory test system 20, the processor 210 establishes a record of the current state information 410 for the test sample. This record is based on the identification information 420 that can uniquely distinguish each individual test sample, and its structure is as follows: Figure 3 As shown. The extent of usage accumulated by a test sample before inclusion may not be known. For example, the test sample may have undergone several rounds of use before inclusion, but the exact number of erase / write cycles 411 accumulated in those rounds is not recorded. In one embodiment, for such test samples, the incremental changes generated in each subsequent round of testing are recorded in the record from the time they are included in the management, while the portion before inclusion is left undefined and without specific values. The incremental record and the updates in subsequent rounds use the same identification information 420 as the basis for attribution, so that the cumulative changes of the test sample after inclusion still belong to the same entity.
[0056] Based on the above Figure 3 The recording structure shown assigns the state of each test sample to an identifier that can uniquely distinguish that individual test sample. This ensures that the accumulated changes of the test sample in each round of testing are continuously attributed to the same individual and serve as the basis for subsequent comparisons and allocations.
[0057] Reference Figure 4 In one embodiment, Figure 2 The comparison in step S230 shown can be performed according to the label. For example... Figure 4As shown, this comparison involves both the test case side and the test sample side: the test case side forms a requirement label 304 from the target test state 301 of the test case, and the test sample side forms a characteristic label 416 from the current state information 410 of each of the test samples 40-1 to 40-n. Then, the labels from both sides are matched. The processor 210 and the test samples 40-1 to 40-n are as follows... Figure 1 As shown, the record structure of the current status information 410 and its associated identification information 420 is as follows: Figure 3 As shown.
[0058] On the test case side, as shown by arrow A42, the processor 210 generates a requirement label 304 for the test case based on the target test state 301. The requirement label 304 describes the test sample characteristics required by the test case. For example, the requirement label 304 could be high erase / write cycle count, bad blocks, multiple bad blocks, or short flash programming busy time. The requirement label 304 is not limited to these; any description of the test sample characteristics required by the test case can be used as the requirement label 304. The characteristic information of the test sample may also include weak word line related characteristics. Taking a read interference test case as an example, its requirement label 304 is high erase / write cycle count because it is difficult to comprehensively test firmware-related modules on robust test samples, while test samples with a high erase / write cycle count have a better chance of testing error handling during the read process. In one embodiment, using short flash programming busy time as the requirement label 304 allows more test actions to be completed per unit time, helping to shorten the test cycle of the test case. In one embodiment, the requirement label 304 is determined during test case classification and labeling.
[0059] On the test sample side, the processor 210 forms a characteristic tag 416 for each test sample from the current state information 410 of each test sample 40-1 to test sample 40-n according to the tag threshold. In one embodiment, before forming the characteristic tag 416, the processor 210 sorts and counts the current state information 410 of each test sample 40-1 to test sample 40-n. As shown by arrow A41, the processor 210 verifies the erase / write cycle count 411, bad block information 413, and flash memory programming busy time 414 in the current state information 410 respectively. That is, the erase / write cycle count PR41 verifies the erase / write cycle count 411, the bad block information PR42 verifies the bad block information 413, and the flash memory programming busy time PR43 verifies the flash memory programming busy time 414.
[0060] The label threshold is determined based on at least one of the original manufacturer's specifications for the corresponding test sample, the structural parameters of the corresponding test sample, and the population statistics of test samples 40-1 to 40-n. In one embodiment, when the erase / write cycle count PR41 exceeds 90% of the upper limit of the erase / write cycle count specified by the original manufacturer's specifications for the corresponding test sample, the test sample is labeled with a high erase / write cycle count characteristic tag 416, and this verification is based on the original manufacturer's specifications for the corresponding test sample; when the bad block information PR42 reflects a number of bad blocks exceeding the value obtained by subtracting the minimum number of valid blocks from the total number of storage blocks for the test sample, the test sample is labeled with a high bad block characteristic tag 416, and this verification is based on the original manufacturer's specifications for the corresponding test sample. The structural parameters of the sample are used as a benchmark. The minimum number of valid blocks is the lower limit of the number of usable storage blocks that the test sample must maintain, and the number of bad blocks refers to the total number of bad blocks in the test sample. When the flash programming busy time PR43 is less than 95% of the statistical average busy time of the test sample group (414), the test sample is labeled with the characteristic tag 416 indicating a short flash programming busy time. This verification is based on the statistics of the test sample group from 40-1 to 40-n, which is a set of comparable test samples under the same measurement caliber. The comparison directions of the above three judgments are not the same; the first two exceed, and the latter is less than. The upper limit of the erase / write cycle count belongs to the original manufacturer's specifications of the corresponding test sample, while the total number of storage blocks and the minimum number of valid blocks belong to the structural parameters of the corresponding test sample itself. The acquisition of the above parameters is not limited to a specific method.
[0061] The three judgments mentioned above are expressed in the following formulas, wherein the direction of comparison depends on each judgment.
[0062]
[0063]
[0064]
[0065] The above label thresholds can be adjusted based on testing requirements, product specifications, statistical results of test sample information, etc.
[0066] As shown by arrow A44, processor 210 generates a feature tag 416 for the test sample based on the results of verifying the number of erase / write cycles PR41, verifying bad block information PR42, and verifying the flash programming busy time PR43. Feature tag 416 is associated with the identification information 420 of the test sample, and describes the test sample's suitability for scheduling. Taking the bad block-related feature tag 416 as an example, processor 210 maintains the number of bad blocks and the remaining effective storage blocks under the identification information 420 of the test sample, and then determines based on this record whether the test sample is suitable for undertaking test cases related to bad block handling.
[0067] As indicated by arrow A43, processor 210 matches requirement label 304 with the characteristic labels 416 of each of test samples 40-1 to 40-n. The determined degree of matching and overall matching score upon which this matching is based will be used in subsequent... Figure 5 The embodiments are further elaborated here.
[0068] In one embodiment, the processor 210 prioritizes assigning a test case to a test sample with a matching tag, based on whether the requirement tag 304 corresponds to the characteristic tags 416 of each of the test samples 40-1 to 40-n. If no matching test sample is found, the processor 210 may assign the test case to another test sample. In another embodiment, the processor 210 may also... Figure 5 The method shown determines the matching degree of each of the test samples 40-1 to 40-n, thereby forming an allocation order among the multiple test samples. The above two are two parallel implementation methods.
[0069] In one embodiment, the requirement label 304 and the feature label 416 simultaneously serve two dispatch directions. In the test case-driven direction, the requirement label 304 of the test case is compared with the feature label 416 of each test sample; in the test sample-driven direction, the feature label 416 of the test sample is compared with the requirement label 304 of each test case. In one embodiment, the two directions can share the same set of label thresholds and the same labeling result. The test sample-driven direction will be addressed in subsequent correspondences. Figure 8 The embodiments are further elaborated here.
[0070] After a test case is executed on a test sample, the current state information 410 of that test sample changes accordingly. The processor 210 then re-labels the characteristic label 416 of the test sample based on the changed current state information 410 and the aforementioned label threshold, for use in subsequent test case allocation. The timing of this re-labeling and the closed loop it forms will be addressed in subsequent corresponding... Figure 6 The embodiments are further elaborated here.
[0071] It should be noted that, Figure 4The three verifications shown are one exemplary implementation. In another embodiment, the number of verifications and the items verified may be increased or decreased depending on the items included in the current state information 410; the same test sample may also have two or more feature tags 416 at the same time, and the same test case may also have two or more requirement tags 304 at the same time.
[0072] In another embodiment, the requirement label 304 of the test case is determined when the test case is categorized and labeled, and the result of that labeling is used in subsequent rounds of testing. In one embodiment, when the test requirements change or the version of the test case changes, the processor 210 updates the requirement label 304 of the test case accordingly. For example, when the test sample characteristics required by the test case change due to adjustments in its test purpose, its requirement label 304 is rewritten accordingly. The above updates occur based on changes in test requirements or the test case itself, and do not occur based on changes in the state of the test sample, therefore they do not constitute [a change in test sample status]. Figure 6 The update and relabeling loop shown is a component of the closed loop; the loop iterates over the current state information 410 of the test sample and its characteristic label 416, excluding the requirement label 304.
[0073] In another embodiment, the processor 210 counts the number of available test samples corresponding to each requirement tag 304 based on the current feature tags 416 of each test sample 40-1 to test sample 40-n. For example, how many test samples have feature tags 416 with a high number of erase / write cycles? In one embodiment, when this number is lower than a predetermined condition, the processor 210 outputs a scheduling feasibility prompt, for example, when the number of available test samples corresponding to a certain requirement tag 304 has dropped below a predetermined number. The statistics and the prompt target the tag distribution at the test sample end, showing the number of test samples with a specific feature tag 416; the prompt does not change the matching result between requirement tag 304 and feature tag 416, nor does it change the test sample to which the test case is assigned.
[0074] Based on the above Figure 4 The label formation and matching shown converts the sample characteristics required by the test case side and the actual state of the test sample side into the same description that can be directly compared, so that the comparison between the two sides can be carried out on the basis of common labels.
[0075] Reference Figure 5 In one embodiment, Figure 2 Step S230 is implemented by steps S510 to S540. The following steps are executed by processor 210, which works in conjunction with test samples 40-1 to 40-n as follows: Figure 1 As shown.
[0076] In step S510, the processor 210 determines the degree of matching between each test sample and the target test state 301 based on the current state information 410-1 to 410-n of the target test state 301 and the test samples 40-1 to 40-n respectively. In one embodiment, this determination is based on the result of the comparison, which is... Figure 2 The steps S230 shown include those whose form is based on the label. Figure 4 The embodiments are illustrated below.
[0077] The target test state 301 includes core mandatory options and secondary optional options. In one embodiment, Figure 4 The requirement label 304 shown is divided into core mandatory labels and secondary optional labels. These core mandatory labels and secondary optional labels constitute the core mandatory items and secondary optional items of the target test state 301, respectively. In one embodiment, the distinction between core mandatory items and secondary optional items can be determined according to the necessity of the corresponding item for the test case; core mandatory items are those more necessary for the execution of the test case, while secondary optional items are those that are more beneficial to the execution of the test case when satisfied. The above distinction method is not limited to this.
[0078] In step S520, the degree of matching is determined based on whether the core mandatory option and the secondary optional option are each matched by the current state information 410. In one embodiment, whether the core mandatory option and the secondary optional option are matched depends on whether the current state information 410 of the test sample meets the state required by the corresponding item.
[0079] In step S530, the processor 210, based on the weights of the core mandatory options and secondary optional options, generates a comprehensive matching score for the test case and each test sample from test samples 40-1 to 40-n, according to a preset aggregation rule. This comprehensive matching score is used to select the target test sample from test samples 40-1 to 40-n. In one embodiment, the core mandatory options are configured with a first weight, and the secondary optional options are configured with a second weight, with the first weight being higher than the second weight. The preset aggregation rule is a rule that aggregates the hit status of each item into a score according to the aforementioned weights, and its specific form is not limited to a specific calculation method. In one embodiment, the aforementioned preset aggregation rule is as follows: for each core mandatory option and each secondary optional option of the test case, the matched option is included according to the weight of its project category, and the unmatched option is not included. The resulting cumulative result is the comprehensive matching score of the binary tuple formed by the test case and the test sample. The comprehensive matching score is used to select the target test sample from test sample 40-1 to test sample 40-n. The aforementioned preset aggregation rule is not limited to this.
[0080] In step S540, the processor 210 determines the test sample with the highest matching degree as the target test sample based on the comprehensive matching degree score.
[0081] In one embodiment, the matching degree is divided into three levels: complete match, compatible match, and fallback match. A complete match means that both the core mandatory options and the secondary optional options are matched; if the test case does not have secondary optional options, the secondary optional options are considered to be matched. A compatible match means that all core mandatory options are matched, but some secondary optional options are not matched, and the number of unmatched options is not limited to one. A fallback match means that some core mandatory options are not matched. These three levels represent the order in which test cases are allocated. In one embodiment, the test cases are allocated according to the priority order of these three levels: first, test samples with a complete match degree are allocated; second, test samples with a compatible match degree are allocated; and finally, test samples with a fallback match degree are allocated.
[0082] When the matching degree of the target test sample is a fallback match, the step of assigning the test case to the target test sample is as follows: Figure 2 Step S240, as shown, is executed when the target test sample is not occupied and no test cases are being executed. In one embodiment, the same test sample executes one test case at a time, and whether the test sample is occupied is determined for the entire test sample.
[0083] The purpose of grading is that if allocation is only made when both the core mandatory options and the secondary optional options are hit, there may be a situation where no test samples are available for the test case; if no grading is made and allocation is made uniformly, the order of the test samples cannot be established. The three-level division allows for adjustment between these two situations.
[0084] In one embodiment, the comprehensive matching score is used to rank and select the best among the pairs within the same matching level. Each pair consists of the test case and a candidate test sample. That is, when multiple candidate test samples of the test case have the same matching level, the target test sample is selected from them according to the score.
[0085] It should be noted that, Figure 5 Steps S510 to S540 shown are an exemplary implementation. In another embodiment, the number of matching levels is not limited to three levels; the comprehensive matching score of the test case formed in step S530 and the binary tuple formed by each test sample can also be directly used to select the target test sample from test samples 40-1 to test samples 40-n when no levels are set.
[0086] In another embodiment, the core mandatory options and secondary optional options included in the target test state 301 are classified according to the role each item plays in the testability of the test case. In one embodiment, items where the phenomenon to be observed by the test case is unlikely to be triggered if the item is missing are classified as core mandatory options; items where the test case can still be executed if the item is missing, but the execution time is longer, are classified as secondary optional options. Figure 4 Taking requirement label 304 as an example, the high number of erase / write cycles required by the read interference test case is difficult to trigger error handling during the read process on test samples with a low number of erase / write cycles, thus belonging to the former category; the short flash programming busy time means that the test case can still be completed even if it is not met, but the time required is longer, thus belonging to the latter category. The above classification method is an example, and the classification of core mandatory options and secondary optional options is not limited to this.
[0087] In another embodiment, a test sample having multiple channels or multiple flash memory chips can accept test cases for each of the multiple channels or multiple flash memory chips, or it can accept and execute different test cases according to its sub-resources. The sub-resources are internal components of the test sample, which remains an individual storage device capable of independently allocating and executing test cases. In this embodiment, whether each sub-resource is occupied is determined based on the actual situation, forming a parallel scheduling arrangement within the test sample.
[0088] Based on the above Figure 5 The matching degree determination process shown describes the requirements of test cases for test samples. Based on the hit status of each item, a comparable degree is formed, thereby allowing multiple test samples to be ranked according to this degree.
[0089] Reference Figure 6 In one embodiment, Figure 2 After step S240, which assigns the test case to the target test sample and executes it, as shown, Figure 1 The memory testing system 20 shown updates the status of the target test sample according to steps S610 to S640 and performs subsequent allocation accordingly. The following steps are executed by the processor 210.
[0090] In step S610, the processor 210 updates the current state information 410 of the target test sample during or after the execution of the test case. This update is based on the identification information 420; that is, the updated record is the current state information 410 of the record corresponding to the identification information 420. Figure 3 As shown.
[0091] In step S620, the current state information 410 of the target test sample is updated in real time during the execution of the test case. Step S620 further defines the execution mode of the update in step S610 in terms of time, that is, the update is completed in real time during the execution of the test case, and its update result continuously reflects the current state of the target test sample during the execution of the test case.
[0092] In one embodiment, in step S630, the processor 210 then re-labels the feature tag 416 of the target test sample based on the updated current state information 410. This re-labeling returns to the feature tag 416 formation stage, as... Figure 4 As shown, the updated current state information 410 is re-evaluated based on the label threshold of the formation process, so that the characteristic label 416 of the target test sample matches its current state.
[0093] In one embodiment, the requirement label 304 of the test case is determined when the test case is classified and labeled, and the result of this labeling is used in multiple rounds of testing; while the feature label 416 of the target test sample is relabeled in each round according to the updated current state information 410.
[0094] Next, in step S640, the processor 210 performs subsequent test case allocation based on the updated current state information 410. In one embodiment, when the update is performed in real time during the execution of the test case according to step S620, the subsequent test case allocation is performed based on the real-time updated current state information 410.
[0095] After step S640, the process returns to step S610, forming a closed loop of multi-round testing. In this closed loop, each time the target test sample receives and executes a test case, its current state information 410 is updated and its feature label 416 is re-marked. Subsequent assignments are therefore based on the updated current state information 410 of the test sample.
[0096] In one embodiment, whether to update the current status information 410 of the target test sample when the test case fails to complete on the target test sample depends on the reason for its failure.
[0097] The closed loop described above iterates over the current state information 410 and the feature label 416 of the target test sample. Both are maintained based on the identification information 420 of the target test sample and are used to re-execute subsequent test case allocation.
[0098] The aforementioned state update and remarking actions are independent of the dispatch direction and are shared in both test case-driven and test sample-driven directions. The closed-loop reentry point and its initiator, unique to the test sample-driven direction, will be addressed later. Figure 10 The embodiments are further elaborated here.
[0099] It should be noted that, Figure 6 Steps S610 to S640 shown are an exemplary implementation. The multi-round test is a continuous cycle, and the number of rounds is not limited to a specific number; the relabeling in step S630 can also be performed before the target test sample is included in the allocation again.
[0100] In another embodiment, when a test case fails to complete execution on a test sample, the reason for the failure may not originate from the test sample itself. For example, the reason could stem from the test fixture, the host machine, the firmware running on the test sample, or the test case itself being aborted during execution. In one embodiment, the processor 210 determines the handling of the execution result based on the attribution of the cause: if the cause is attributable to the current state of the test sample, the current state information 410 of the test sample is updated; if the cause is not attributable to the current state of the test sample, the current state information 410 is not updated. The updated items include erase / write cycle count 411, bad block information 413, and other items that change as the test sample is used. This update does not make any evaluative conclusions regarding the test sample. After the above handling, the current state information 410 used for subsequent rounds corresponds to the actual usage of the test sample and is not included for reasons not originating from the test sample.
[0101] In another embodiment, the processor 210 forms a scheduling flag based on the current state information 410 associated with the identification information 420, indicating that a specific test case will not be assigned to the test sample temporarily. In one embodiment, if a certain item of the current state information 410 of the test sample has changed to a certain extent, such that the phenomenon that several test cases intend to observe when executed on the test sample can no longer be triggered, the scheduling flag is formed for the pairing of those several test cases with the test sample, and the assignment of the test sample to other test cases is not affected by the scheduling flag. The scheduling flag is recalculated as the current state information 410 of step S610 is updated, and is maintained in the same round as the feature tag 416 of step S630. The scheduling flag describes the scheduling compatibility between a specific test case and the test sample, and does not draw conclusions about the usability of the test sample itself.
[0102] Based on the above Figure 6The update and relabeling closed loop shown reflects the changes accumulated by the test sample in each test in its current state information and feature labels, so that the basis for subsequent rounds of allocation is updated as the test progresses, and corresponds to the updated current state information of the test sample.
[0103] Reference Figure 7 In one embodiment, Figure 1 The memory testing system 20 shown can allocate test cases using one of two modes: one is as follows... Figure 7 The pattern shown in block B71 establishes assignment relationships before the test begins; another is as follows: Figure 7 The real-time scheduling mode in the test is shown in block B72.
[0104] exist Figure 7 In the allocation mode shown in block B71, before the execution of the test case begins, the processor 210, based on the target test state 301 of the test case and the current state information 410 of each of the multiple test samples, establishes an assignment relationship between the test case and one or more test samples among the multiple test samples. The current state information 410 is maintained and recorded on an individual test sample basis, such as... Figure 3 As shown; the target test state 301 is obtained from the test case side, such as... Figure 4 As shown.
[0105] Specifically, the resulting assignment relationships can be recorded as assignment relationship table T71, such as... Figure 7 As shown, the assignment table T71 includes two columns: test cases and test samples. Each row records one assignment: test case 300-1 corresponds to test sample 40-1, and test case 300-2 corresponds to test sample 40-2. Within block B71, test cases 300-1 and 300-2 each correspond to their respective rows in the assignment table T71, and each row in the assignment table T71 then corresponds to its assigned test sample 40-1 and test sample 40-2.
[0106] The test case is assigned to the target test sample according to the assignment relationship. The target test sample belongs to the one or more test samples corresponding to the assignment relationship. In one embodiment, the assignment relationship maps one test case to one test sample, i.e., a row-by-row mapping as shown in the assignment relationship table T71; in another embodiment, the assignment relationship may also map one test case to a sample range consisting of two or more test samples, and the test case is assigned to the corresponding test sample in the sample range for execution. The above assignment relationship is formed before the execution of the test case begins, and multiple test cases can be formed separately and recorded together in the assignment relationship table T71, so that the test samples or sample ranges matched by each test case can be planned as a whole before the test begins.
[0107] In another embodiment, such as Figure 7 As shown in block B72, test case allocation is performed using a real-time scheduling mode during testing. During test execution, processor 210 updates the current state information 410 of each test sample in real time and compares and filters it with the target test state 301 of each test case based on the updated current state information 410. For example... Figure 7 As shown by the middle arrow A71, after comparing and filtering test cases 300-1 and 300-2, the processor 210 assigns them to the matching test samples 40-1 and 40-2 respectively.
[0108] The two allocation modes described above are optional and are offered in parallel. The mode in which the assignment relationship is established before the test begins facilitates the overall planning of the correspondence between multiple test cases and multiple test samples before the test begins; the mode in which real-time scheduling is carried out during the test updates the state on which the allocation is based as the current state information 410 of the test sample changes as the test progresses.
[0109] It should be noted that, Figure 7 The two test cases and two test samples shown are an exemplary implementation; the number of test cases and test samples is not limited to this. Figure 7 The examples shown are for illustrative purposes only; the table format shown in Assignment Relationship Table T71 is an exemplary record format for assignment relationships; and these two allocation modes are... Figure 2 The example implementation of the test case allocation process shown is not limited to the two allocation modes.
[0110] In another embodiment, in addition to the assignment relationship formed by the current state information 410 and the target test state 301, a retention constraint is provided for test samples with a specific characteristic label 416. In one embodiment, if the number of test samples with a certain characteristic label 416 in the test system is small, and the characteristic label 416 is declared by the requirement label 304 of some test cases, the test sample is preferentially reserved for the test cases that declare the requirement label 304, and is not assigned to test cases that do not declare the requirement label 304. This constraint acts on the assignment relationship between test cases and test samples, and runs in parallel with the matching performed according to the target test state 301; Figure 7 In the assignment relationship pattern shown in block B71, which establishes the assignment relationship before the test begins, each assignment recorded in the assignment relationship table T71 is simultaneously governed by the matching and reservation constraints. Its output remains the assignment relationship between test cases and test samples or sample ranges. Due to the aforementioned constraints, test samples with the characteristic tag 416 are less likely to be occupied by test cases that have not declared the requirement tag 304 before their corresponding test cases are executed. The reservation constraint and... Figure 8The test case acquisition method shown is initiated from the test sample end. It deals with two means of the same situation: the former adds a retention constraint to the assignment initiated from the test case end, while the latter selects test cases from the test sample end. The result is that the test sample receives test cases that require its current state.
[0111] Based on the above Figure 7 The two allocation modes shown allow test cases to be assigned in a holistic manner before the start of testing, or to be scheduled during testing based on real-time updates, thus adapting the allocation method to the organization of the test.
[0112] Reference Figure 8 In one embodiment, Figure 1 The memory testing system 20 shown can also execute a test case acquisition method. This test case acquisition method is similar to... Figure 2 The test case allocation methods shown are opposite in direction and each is complete: Figure 2 The method shown is to select the target test sample from multiple test samples for this test case. Figure 8 The method shown involves a test sample obtaining a target test case from multiple test cases. This method includes steps S810 to S840, implemented by processor 210 executing computer program instructions stored in memory 220. All subsequent steps are executed by processor 210. The test sample is an individual storage device capable of independently being assigned and executing the target test case. In one embodiment, this method is executed when the test sample finishes its previous testing round or is placed in an available state; the available state refers to the state where the test sample can be assigned test cases.
[0113] In step S810, the processor 210 obtains the current state information 410 of the test sample, which is the state of the test sample as it is used. In one embodiment, the current state information 410 is obtained from a record maintained according to the identification information 420 of the test sample, and the record is structured as follows: Figure 3 As shown, its updates during test execution are as follows: Figure 6 As shown.
[0114] Next, in step S820, the processor 210 obtains the target test state 301 for each of the multiple test cases. In one embodiment, the multiple test cases are test cases that have not yet been assigned to be executed.
[0115] Next, in step S830, the processor 210 obtains a target test case matching the current state information 410 from the plurality of test cases based on the current state information 410 of the test sample and the target test state 301 of each of the plurality of test cases. This acquisition is based on the current state information 410 of the test sample as it is used, or the characteristic tag 416 formed therefrom, rather than evaluating and filtering the plurality of test cases based on their own attributes, or retrieving them based on their own attributes or existing classifications in the library, nor is it based on configuring the number or proportion of test cases; in one embodiment, the acquired test case is one that the test sample will execute.
[0116] In one embodiment, step S830 includes: the processor 210 comparing the current state information 410 of the test sample with the target test state 301 of each of the plurality of test cases, and obtaining a target test case matching the current state information 410 from the plurality of test cases based on the comparison result. In one embodiment, the comparison step includes: forming a feature label 416 of the test sample from the current state information 410 of the test sample according to a label threshold; forming a requirement label 304 of the corresponding test case from the target test state 301 of each of the plurality of test cases; and matching the feature label 416 with the requirement label 304 of each of the plurality of test cases. The label is formed in the following manner: Figure 4 As shown, this also applies to this embodiment.
[0117] In one embodiment, among the multiple test cases, test cases whose requirement label 304 can be satisfied by the feature label 416 of the test sample are preferentially selected as the target test cases. The number of core mandatory labels for different test cases may not be the same, and this selection is performed within the same matching level. In one embodiment, the matching level is divided into two levels based on whether all core mandatory labels in requirement label 304 are satisfied by the feature label 416: those with all core mandatory labels satisfied and those with some not satisfied; the former takes precedence over the latter. In other words, corresponding to... Figure 5 The matching levels in the previous embodiment are carried out in this embodiment using the two levels. And because... Figure 8 The method shown is executed when the test sample finishes its previous round of testing or becomes available. When the entire test sample is exclusively used, it is not currently being used to execute any test cases. Figure 5 The condition that the allocation step in the embodiment is performed when the test sample is not occupied and no test cases are executed is already met in this form.
[0118] Next, in step S840, the processor 210 assigns the target test case to the test sample. In one embodiment, in step S830, the selection criterion can be the current state information 410 that changes as the test sample is used, or the characteristic label 416 formed therefrom, rather than evaluating and filtering the multiple test cases based on their own attributes, retrieving them based on their own attributes or existing classifications in the library, or configuring the number or proportion of test cases. Two or more test cases matching the current state information 410 are obtained as the target test cases, and are sequentially assigned to the test sample in step S840. The number of obtained test cases is determined based on the comparison result.
[0119] In one embodiment, the degree of matching between each of the plurality of test cases and the current state information 410 is determined based on the comparison result. In one embodiment, if no test case matching the current state information 410 is found among the plurality of test cases, the test sample may be temporarily not assigned and remain available until subsequent test cases are entered; in another embodiment, the test case with the highest degree of matching may be assigned to the test sample from among the plurality of test cases. In one embodiment, for a test sample with a specific state, if there is no test case among the plurality of test cases that targets that specific state, the aforementioned temporary non-assignment procedure can reduce the possibility that the test sample is occupied by test cases that do not require that specific state.
[0120] Figure 8 The test case acquisition method shown is similar to Figure 2 The test case allocation methods shown share the same tagging system and the same test sample granularity definition: the formation of requirement tag 304 and feature tag 416 are as follows... Figure 4 As shown. The comparison between the two can be described as the current state of the test sample matching the target test state required by the test case; the difference lies in the selected object. They are two parallel technical solutions, initiated from the test case side and the test sample side respectively, serving two directions of the same technical problem.
[0121] For example, suppose test sample 40-1 has finished the previous round of testing and is now in a usable state, and its erase / write cycle count has accumulated to near the manufacturer's specified limit. In step S810, processor 210 obtains its current state information 410-1. Suppose that the test cases not yet assigned for execution include read interference test case 300-1 and single-level cell mode read / write test case 300-2. The former's target test state is a high erase / write cycle count, while the latter's target test state is not based on the erase / write cycle count. After comparing the current state information 410-1 with the target test states of the two test cases, processor 210 determines that test case 300-1 is the match and therefore assigns test case 300-1 to test sample 40-1, but not to test case 300-2. In this case, the high erase / write state accumulated by test sample 40-1 can be utilized by test case 300-1, which requires this state, and the firmware error handling process is more likely to be tested; if test case 300-2 is reassigned, the erase / write state accumulated by test sample 40-1 is not required by the target test state of this test case.
[0122] Steps S810 to S840 described above can also be implemented by a computer program. When this computer program is loaded and executed by the processor 210 of the memory testing system 20, the processor 210 performs the above steps. This computer program can be provided by a computer program product, which includes the computer program. Its form has been described in [the original text]. Figure 1 The embodiments are illustrated below.
[0123] It should be noted that, Figure 8 Steps S810 to S840 shown are an exemplary implementation. The number of matching levels is not limited to two levels, but can also be determined according to the corresponding... Figure 5 The implementation method is divided into three or more levels. The closed loop of state update, re-marking, and re-entering the usable state after the test sample completes the assigned target test cases will be addressed in subsequent corresponding... Figure 10 The embodiments are further elaborated here.
[0124] In another embodiment, assuming test sample 40-1 has weak word line related characteristics in three-layer cell mode, and the test cases that have not yet been assigned for execution include protocol-type test cases with relatively few read / write operations, single-layer cell mode read / write test cases, and test cases aimed at verifying weak word line read / write error handling in three-layer cell mode. Processor 210 compares the characteristic tag 416 of test sample 40-1 with the requirement tag 304 of the aforementioned test cases, and determines the test case that declares the need for the aforementioned weak word line related characteristics as the target test case, without prioritizing the assignment of protocol-type test cases or single-layer cell mode read / write test cases that do not declare the requirement. If the assigned test case does not declare the requirement, the firmware's handling of weak word line read / write errors cannot be verified. The above comparison uses existing weak word line related characteristic information without limiting the detection path of this characteristic information.
[0125] Based on the above Figure 8 The test case acquisition method shown allows dispatching to be initiated from the test sample. When the test sample finishes the previous round of testing or is put into a usable state, it obtains a matching test case based on its current state as it is used, thus making the current state of the test sample the basis for selecting its next test case.
[0126] Reference Figure 9 In one embodiment, such as Figure 1 The memory test system 20 and the test sample 40 shown are connected according to... Figure 9 The timing sequence shows the allocation of test cases and the return of status after the test. Figure 9 The interaction shown occurs between the processor 210, the input / output interface 230, and the test sample 40. The processor 210 is the execution entity for each step of the test case allocation method. The input / output interface 230 is used to communicate with the test sample 40 and transmit information between the processor 210 and the test sample 40. The test sample 40 is the end that receives and executes the test cases. Figure 9 Test sample 40 in the context refers to the collective name of multiple test samples managed by the memory test system 20. Figure 9 The acquisition and return shown are performed individually for each of the multiple test samples. Figure 9 The timing sequence shown is divided into four stages: state acquisition (S91), comparison and selection (S92), allocation and execution (S93), and update and dispatch (S94).
[0127] Figure 9 The status acquisition phase includes steps S911 to S914. In step S911, the processor 210 sends a request to the input / output interface 230 to acquire the current status information 410.
[0128] In step S912, the input / output interface 230 forwards the acquisition request to the test sample 40.
[0129] In step S913, the test samples 40 return their respective current status information 410 to the input / output interface 230. The current status information 410 of each of the multiple test samples is returned through this step.
[0130] In step S914, the input / output interface 230 transfers the current state information 410 to the processor 210. Through steps S911 to S914, the processor 210 obtains the current state information 410 of each of the multiple test samples, corresponding to... Figure 2 The step S210 is shown.
[0131] Figure 9 The comparison and selection phase includes steps S921 and S922, both of which are executed internally by the processor 210. In step S921, the processor 210 obtains the target test state of the test case, corresponding to... Figure 2 Step S220 is shown.
[0132] In step S922, the processor 210 compares the target test state with the current state information 410 of each of the plurality of test samples, and according to the comparison result, obtains the target test sample that matches the target test state from the plurality of test samples. Figure 2 The step S230 shown.
[0133] Figure 9 The allocation and execution phase includes steps S931 and S932. In step S931, the processor 210 sends the test case to the input / output interface 230.
[0134] In step S932, the input / output interface 230 assigns the test case to the target test sample. Following steps S931 and S932, the test case is assigned to the target test sample and executed thereon. Figure 2 The step S240 shown.
[0135] Figure 9 The update and assignment phase includes steps S941 to S943. In step S941, the target test sample returns the updated current status information 410 to the input / output interface 230; the updated current status information 410 is the status of the target test sample during or after the execution of the test case.
[0136] In step S942, the input / output interface 230 transfers the current status information 410 to the processor 210. Following steps S941 and S942, the processor 210 obtains and updates the current status information 410 of the target test sample, corresponding to... Figure 6 The step S610 shown.
[0137] In step S943, the processor 210 performs subsequent test case allocation based on the updated current state information 410, corresponding to... Figure 6 The step S640 is shown. The subsequent test cases are assigned to... Figure 9 The next round of allocation and execution phase is represented by the current state information 410 on which it is based, which is returned to the processor 210 through steps S941 and S942. Figure 9 The comparison and selection phase, allocation and execution phase, and update and dispatch phase are represented by a loop box, indicating that these three phases are repeatedly executed in multiple rounds of testing. In subsequent rounds, the processor 210 re-executes the comparison and selection phase with the target test sample obtained using the updated current state information 410. This re-execution corresponds to... Figure 2 The process proceeds to step S230, followed by the allocation and execution phase. In this multi-round testing, each time the target test sample receives and executes a test case, its current state information 410 is updated accordingly, and subsequent allocations are based on the updated current state information 410.
[0138] At Figure 9 In the timing sequence shown, processor 210 executes the following steps: issuing data acquisition commands, acquiring the target test state, comparing data, acquiring the target test sample, issuing test cases, and executing subsequent allocations. Input / output interface 230 transmits the above information between processor 210 and test sample 40, ensuring that the current state information 410 used by processor 210 originates from test sample 40, and that the test cases allocated by processor 210 reach the target test sample. The steps executed by processor 210 are completed by executing computer program instructions. The connection relationship between processor 210 and input / output interface 230 is as follows: Figure 1 As shown.
[0139] It should be noted that, Figure 9 The order of step S921 and the state acquisition phase shown is an exemplary implementation. The data obtained in step S921 comes from the test case side, while the data obtained in the state acquisition phase comes from the test sample side. The acquisition of the two is not contingent on the completion of the other, and they can be executed sequentially or in parallel. Figure 9 The number of rounds of testing shown is not limited to a specific number.
[0140] and Figure 9The test case acquisition method shown is in the opposite direction, and its timing corresponds to the interaction between the memory test system 20 and the test sample. Figure 10 The two are parallel technical solutions, each complete in its own way.
[0141] Based on the above Figure 9 The interactive sequence shown illustrates that the current state of the test sample is returned to the processor via the input / output interface, becoming the input for comparison and selection. Test cases are then distributed via the same path to the target test sample obtained based on the comparison result. The state returned after each round of test execution constitutes the input for the next round of allocation, ensuring that the assignment criteria between multiple rounds of tests are updated according to the state of each test sample.
[0142] Reference Figure 10 In one embodiment, such as Figure 1 The memory test system 20 shown is located between the test sample 40-1 and the test sample 40-1. Figure 10 The acquisition and allocation of test cases are completed in the sequence shown. Figure 10 The interaction shown occurs between test sample 40-1, input / output interface 230, and processor 210. Test sample 40-1 reports its status upon completion of the previous test and receives subsequent test cases. Input / output interface 230 communicates with test sample 40-1 and transmits information between processor 210 and test sample 40-1. Processor 210 is... Figure 8 The execution entity for each step of the test case acquisition method shown. Figure 10 Test sample 40-1 is one of the multiple test samples managed by memory test system 20. Figure 10 The acquisition and allocation shown are performed on that individual. Figure 10 The time sequence shown is divided into four stages: sample return (S101), update and acquisition (S102), comparison and selection (S103), and distribution and allocation (S104).
[0143] At Figure 10 In the sample reporting phase shown, after the test sample 40-1 has completed the execution of the assigned target test case, it reports the completion of the execution and its current status information 410 to the input / output interface 230 in step S1011.
[0144] Next, in step S1012, the input / output interface 230 transfers the current state information 410 to the processor 210. Through steps S1011 and S1012, the processor 210 obtains the current state information 410 of the test sample 40-1. This current state information 410 represents the changing state of the test sample 40-1 as it is used, corresponding to... Figure 8 The step S810 shown.
[0145] At Figure 10 In the update and acquisition phase shown, processor 210 updates the current status information 410 of test sample 40-1 in step S1021. This update is based on the identification information 420, such as... Figure 3 As shown; in one embodiment, after the update, the feature label 416 of the test sample 40-1 is re-labeled based on the updated current state information 410. These two actions are as follows: Figure 6 Steps S610 and S630 shown are also applicable in this embodiment, and no separate mechanism is established in this embodiment.
[0146] Next, in step S1022, the processor 210 acquires the target test state 301 for each of the multiple test cases, corresponding to... Figure 8 The step S820 is shown. In one embodiment, the plurality of test cases are test cases that have not yet been assigned to be executed.
[0147] At Figure 10 In the comparison and selection phase shown, processor 210 compares the current state information 410 of test sample 40-1 with the target test state 301 of each of the multiple test cases in step S1031. Figure 8 The step S830 is shown. In one embodiment, the comparison step includes: forming a feature label 416 for test sample 40-1 based on the current state information 410 of test sample 40-1 according to a label threshold; forming a requirement label 304 for the corresponding test case based on the target test state 301 of each of the plurality of test cases; and matching the feature label 416 with the requirement labels 304 of each of the plurality of test cases. The label is formed in the following manner: Figure 4 As shown, this also applies to this embodiment.
[0148] When a test case matching the current state information 410 is found among the multiple test cases, the processor 210, in step S1032, determines the degree of matching between each of the multiple test cases and the current state information 410 based on the comparison result, and determines the test case with the highest degree of matching as the target test case, thereby obtaining the target test case matching the current state information 410 from the multiple test cases. Figure 8 Step S830 is shown. The acquisition is based on the current state information 410 of the test sample 40-1 as it is used, or the characteristic tag 416 formed therefrom, rather than evaluating and filtering the multiple test cases based on their own attributes, or retrieving them based on their own attributes or existing classifications in the library, nor is it based on configuring the number or proportion of test cases; in one embodiment, what is acquired is a test case to be executed by the test sample 40-1.
[0149] In one embodiment, in step S1032, the current state information 410 of the test sample 40-1 that changes as it is used, or the characteristic label 416 formed therefrom, can be used as the selection criterion, rather than evaluating and filtering the multiple test cases based on their own attributes, retrieving them based on their own attributes or existing classifications in the library, or configuring the number or proportion of test cases. Two or more test cases that match the current state information 410 can be obtained as the target test cases, and then sequentially assigned to the test sample 40-1 in step S1042. The number of test cases obtained is determined based on the comparison result.
[0150] If no test case matching the current state information 410 is found among the multiple test cases, the processor 210 maintains the test sample 40-1 in a state where it can be assigned test cases in step S1033, pending the entry of subsequent test cases. In one embodiment, the degree of matching between each of the multiple test cases and the current state information 410 can also be determined based on the comparison result, and the test case with the highest degree of matching is determined as the target test case. The above two processing methods are two parallel forms.
[0151] At Figure 10 In the distribution and allocation phase shown, after the target test case is determined, the processor 210 distributes the target test case to the input / output interface 230 in step S1041. The input / output interface 230 then allocates the target test case to test sample 40-1 in step S1042. Through steps S1041 and S1042, the target test case is allocated to test sample 40-1, corresponding to… Figure 8 The step S840 shown.
[0152] Figure 10 The four phases shown—sample reporting, updating and acquisition, comparison and selection, and distribution and allocation—constitute a closed loop for multi-round testing. Within this loop, after test sample 40-1 executes the target test case, its current state information 410 is updated. When test sample 40-1 becomes a test sample again eligible for test case allocation, based on the updated current state information 410, test cases for test sample 40-1 to execute are retrieved again from the multiple test cases. Each time test sample 40-1 accepts and executes a test case, its current state information 410 is updated accordingly, and the test cases it subsequently acquires are thus determined by its current state information 410 for that round.
[0153] After the target test case is assigned to test sample 40-1 in step S1042, test sample 40-1 executes the target test case. In the embodiment where one target test case is obtained at a time, one round of the above closed loop continues until test sample 40-1 completes the execution of the target test case; in the embodiment where two or more target test cases are obtained at a time, the two or more target test cases are assigned and executed sequentially, and one round of the above closed loop continues until all of them are completed. The above two forms are two parallel implementation methods, and the updating of the current state information 410 and the acquisition of the next round of test cases in their respective forms are both performed according to the above closed loop.
[0154] Figure 10 The closed loop shown is Figure 6 The closed loop shown has a re-entry point different from the initiator: Figure 6 The closed loop shown returns to step S610 after step S640, and its re-entry point is... Figure 6 The state update process for the target test sample shown is initiated again by the test case side; Figure 10 The closed loop shown re-enters when test sample 40-1 re-enters the state where test cases can be assigned, and the selection of test cases is initiated again from the test sample 40-1 end. The two closed loops are the respective iterative paths under two parallel technical solutions, serving two directions of the same technical problem.
[0155] At Figure 10 In the timing sequence shown, processor 210 updates the current state information 410, acquires and compares the target test state 301, determines the target test case, and issues the target test case. Input / output interface 230 transmits the above information between processor 210 and test sample 40-1, ensuring that the current state information 410 used by processor 210 comes from test sample 40-1, and that the target test case issued by processor 210 reaches test sample 40-1. The steps executed by processor 210 are completed by executing computer program instructions. The connection relationship between processor 210 and input / output interface 230 is as follows: Figure 1 As shown.
[0156] It should be noted that, Figure 10 Steps S1011 to S1042 shown are one exemplary implementation. In another embodiment, the execution of step S1022 is not limited to after step S1021, and the target test state 301 of each of the plurality of test cases can be obtained before the test sample 40-1 reports its current state information 410.
[0157] Based on the above Figure 10The test case acquisition and allocation sequence shown is such that after a test sample finishes the previous round of testing and reports its status, its current status, which changes as it is used, is updated and becomes the basis for selecting test cases in the next round. Thus, for the same test sample, the test cases acquired in each round of testing depend on its status in that round.
[0158] It should be noted that in the above embodiments, the various values, thresholds, parameter ranges, and condition settings mentioned are all illustrative and do not constitute a limitation on the scope of protection of the claims of this disclosure. Specifically, the percentage of the number of erase / write cycles relative to the upper limit specified by the original manufacturer, the comparison condition of the number of bad blocks relative to the total number of storage blocks minus the minimum number of valid blocks, the percentage of flash memory programming busy time relative to the statistical average busy time of the test sample group, and the minimum number of valid blocks themselves are all illustrative values; the weights configured for the core mandatory options and secondary optional options, the specific form of the preset aggregation rule on which the weights are aggregated, the number of levels divided by the degree of matching, and the predetermined condition for outputting a scheduling feasibility prompt when the number of test samples is lower than that are also illustrative settings. All of the above can be adjusted according to the test requirements, the product specifications of the test samples, the statistical results of the test sample group, and the composition and quantity of the test samples managed by the test system.
[0159] In another embodiment, this disclosure also provides a computer program product including a computer program. When the computer program is loaded and executed by a processor of a memory testing system, the processor performs the following steps: acquiring current state information of a plurality of test samples, wherein the current state information is used to characterize the state of each test sample as it is used; acquiring a target test state for test cases; acquiring a target test sample matching the target test state from the plurality of test samples based on the target test state and the current state information, wherein each test sample is a storage device individual capable of being independently assigned test cases and independently executing test cases; and assigning test cases to the target test sample. The computer program may be stored in a non-transitory computer-readable storage medium.
[0160] In another embodiment, this disclosure also provides another computer program product, which includes a computer program. When the computer program is loaded and executed by the processor of a memory testing system, the processor performs the following steps: acquiring current state information of a test sample, wherein the current state information is used to characterize the state of the test sample as it is used; acquiring the target test state of each of a plurality of test cases; acquiring a target test case matching the current state information from the plurality of test cases based on the current state information of the test sample and the target test states of each of the plurality of test cases, wherein the test sample is a storage device individual capable of being independently assigned target test cases and independently executing target test cases; and assigning the target test case to the test sample. The computer program may be stored in a non-transitory computer-readable storage medium. The aforementioned non-transitory computer-readable storage medium includes, for example, read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk. Thus, the technical solution of this disclosure can be implemented in the form of a computer program product.
[0161] Based on the above, the test case allocation method and test case acquisition method provided in this disclosure obtain the current state of each test sample as it is used, and select test samples according to the current state and the target test state required by the test case. This ensures that the selected test sample is one that matches the requirements of the test case, rather than being randomly assigned. Furthermore, by assigning the state of each test sample to an identifier that uniquely distinguishes it, and updating the state according to its changes during or after the execution of the test case, subsequent rounds are based on the updated state of the test sample, not its initial state. Moreover, by classifying the conditions required by the test case into two categories—core mandatory and secondary optional—and determining the degree of matching based on their satisfaction, multiple test samples can be prioritized according to this degree. Even when no completely matching sample exists, a relatively close one can still be obtained based on this degree. Furthermore, this disclosure provides two approaches to addressing the same technical problem: one initiated from the test case side and the other from the test sample side. When initiated from the test sample side, if no matching test case is found among the multiple test cases, the test sample can still maintain its state as a candidate for test case allocation, awaiting subsequent test cases, or the test case with the highest matching degree can be selected. Thus, this disclosure achieves a relative balance between the utilization of the test sample's state, the adaptability between test cases and test samples, and the flexibility of test resource scheduling.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure.
Claims
1. A test case allocation method, applied to a memory testing system, characterized in that, The method includes: Obtain current state information of multiple test samples, wherein the current state information is used to characterize the state of each test sample as it is used; Obtain the target test state of the test cases; Based on the target test state and the current state information, a target test sample matching the target test state is obtained from the plurality of test samples, wherein each test sample is a storage device individual that can be independently assigned the test case and independently execute the test case; The test cases are assigned to the target test samples.
2. The test case allocation method according to claim 1, characterized in that, The current state information is used to characterize the state of the storage medium of each test sample as it is used.
3. The test case allocation method according to claim 1, characterized in that, The current status information includes at least one of the following: the number of erase / write cycles of the test sample, the total amount written to the host, bad block information, and flash programming busy time.
4. The test case allocation method according to claim 1, characterized in that, The method further includes: During or after the execution of the test case on the target test sample, update the current state information of the target test sample; and Based on the updated current status information, subsequent test case allocation will be performed.
5. The test case allocation method according to claim 4, characterized in that, The steps for obtaining the current state information of multiple test samples include: Obtain identifier information that can uniquely distinguish the individual test samples; and The current status information is associated with the identification information and recorded.
6. The test case allocation method according to claim 1, characterized in that, The step of obtaining a target test sample matching the target test state from the plurality of test samples based on the target test state and the current state information includes: Based on the target test state and the current state information, determine the degree of matching between each test sample and the target test state; and The test sample with the highest matching degree is determined as the target test sample.
7. The test case allocation method according to claim 6, characterized in that, The target test state includes core mandatory options and secondary optional options; The degree of matching is determined based on the current state information, which determines whether the core mandatory option and the secondary optional option are each matched.
8. The test case allocation method according to claim 7, characterized in that, The step of determining the degree of matching between each test sample and the target test state includes: Based on the respective weights of the core mandatory options and the secondary optional options, a comprehensive matching score is formed according to a preset aggregation rule, which is used to select the target test sample from the multiple test samples.
9. The test case allocation method according to claim 7, characterized in that, The matching level is divided into three levels: perfect match, compatible match, and fallback match, where: A perfect match means that both the core required options and the secondary optional options are matched. Compatibility matching means that all the core required options are matched, and there are some secondary optional options that are not matched; and A fallback match means that there are some core mandatory options that were not matched. When the matching degree of the target test sample is a fallback match, the step of assigning the test case to the target test sample is performed when the target test sample is not occupied and no test cases are being executed.
10. The test case allocation method according to claim 1, characterized in that, The step of obtaining a target test sample matching the target test state from the plurality of test samples based on the target test state and the current state information includes: Based on the label threshold, the current state information of each of the multiple test samples is used to form the characteristic label of the corresponding test sample; The requirement labels for the test cases are formed from the target test state; and The requirement tags are matched with the characteristic tags of each of the plurality of test samples.
11. The test case allocation method according to claim 10, characterized in that, The label threshold is determined based on at least one of the original manufacturer specifications of the test sample, the structural parameters of the test sample, and the population statistics of the plurality of test samples.
12. The test case allocation method according to claim 1, characterized in that, The method further includes: Before the execution of the test case begins, an assignment relationship is formed between the test case and one or more test samples among the multiple test samples based on the target test state and the current state information of each of the multiple test samples. The test cases are assigned to the target test samples according to the assignment relationship.
13. A test case acquisition method, applied to a memory testing system, characterized in that, The method includes: Obtain the current state information of the test sample, wherein the current state information is used to characterize the state of the test sample as it is used; Obtain the target test status for each of the multiple test cases; Based on the current state information of the test sample and the target test state of each of the plurality of test cases, a target test case matching the current state information is obtained from the plurality of test cases, wherein the test sample is a storage device individual that can be independently assigned the target test case and independently execute the target test case; The target test cases are assigned to the test samples.
14. The test case acquisition method according to claim 13, characterized in that, The step of obtaining a target test case matching the current state information from the plurality of test cases based on the current state information of the test sample and the target test state of each of the plurality of test cases includes: Based on the label threshold, the current state information of the test sample is used to form the feature label of the test sample; The requirement tags for the corresponding test cases are formed by the target test states of each of the multiple test cases; and The feature tags are matched with the requirement tags of each of the plurality of test cases.
15. The test case acquisition method according to claim 13, characterized in that, The step of obtaining a target test case matching the current state information from the plurality of test cases based on the current state information of the test sample and the target test state of each of the plurality of test cases includes: Based on the current state information and the target test states of each of the plurality of test cases, determine the degree of matching between each test case and the current state information; and The test case with the highest matching degree is determined as the target test case.
16. The test case acquisition method according to claim 13, characterized in that, The step of obtaining a target test case matching the current state information from the plurality of test cases based on the current state information of the test sample and the target test state of each of the plurality of test cases includes: Two or more test cases that match the current state information are selected from the plurality of test cases as the target test cases, and the two or more test cases are sequentially assigned to the test samples; The number of the two or more test cases obtained is determined based on the current state information and the target test state of each of the multiple test cases.
17. The test case acquisition method according to claim 13, characterized in that, The method further includes: After the test sample completes the execution of the target test case, the current state information of the test sample is updated; and When the test sample becomes a test sample that can be assigned test cases again, test cases for the test sample to execute are obtained again from the plurality of test cases based on the updated current state information.
18. A memory testing system, comprising an input / output interface for communicating with a plurality of test samples, a memory for storing computer program instructions, and a processor connected to the input / output interface and the memory, characterized in that, The processor is used to execute the computer program instructions to perform the following steps: Obtain the current state information of the plurality of test samples, wherein the current state information is used to characterize the state of each test sample as it is used; Obtain the target test state of the test cases; Based on the target test state and the current state information, a target test sample matching the target test state is obtained from the plurality of test samples, wherein each test sample is a storage device individual that can be independently assigned the test case and independently execute the test case; The test cases are assigned to the target test samples.
19. A computer program product, comprising a computer program, characterized in that, When the computer program is loaded and executed by the processor of the memory testing system, the processor performs the following steps: Obtain current state information of multiple test samples, wherein the current state information is used to characterize the state of each test sample as it is used; Obtain the target test state of the test cases; Based on the target test state and the current state information, a target test sample matching the target test state is obtained from the plurality of test samples, wherein each test sample is a storage device individual that can be independently assigned the test case and independently execute the test case; The test cases are assigned to the target test samples.
20. A memory testing system, comprising an input / output interface for communicating with a test sample, a memory for storing computer program instructions, and a processor connected to the input / output interface and the memory, characterized in that, The processor is used to execute the computer program instructions to perform the following steps: Obtain the current state information of the test sample, wherein the current state information is used to characterize the state of the test sample as it is used; Obtain the target test status for each of the multiple test cases; Based on the current state information of the test sample and the target test state of each of the plurality of test cases, a target test case matching the current state information is obtained from the plurality of test cases, wherein the test sample is a storage device individual that can be independently assigned the target test case and independently execute the target test case; The target test cases are assigned to the test samples.
21. A computer program product, comprising a computer program, characterized in that, When the computer program is loaded and executed by the processor of the memory testing system, the processor performs the following steps: Obtain the current state information of the test sample, wherein the current state information is used to characterize the state of the test sample as it is used; Obtain the target test status for each of the multiple test cases; Based on the current state information of the test sample and the target test state of each of the plurality of test cases, a target test case matching the current state information is obtained from the plurality of test cases, wherein the test sample is a storage device individual that can be independently assigned the target test case and independently execute the target test case; The target test cases are assigned to the test samples.
