Automatic test vector generation method and storage medium suitable for large-scale chip

By splitting the chip packaging chain into test groups and optimizing the splitting scheme, the problems of long iteration cycles and high resource consumption in the automatic generation of test vectors for large-scale chips are solved, achieving more efficient test development.

CN123178185APending Publication Date: 2026-11-27奕算智能科技(上海)有限公司 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611683847.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing global unified processing strategies result in excessively long iteration cycles and high computational resource consumption in the automatic generation of test vectors for large-scale chips, making it difficult to meet practical engineering needs.

Method used

The chip packaging chain is divided into relatively evenly distributed test groups, and iterative optimization is carried out based on server resources and time requirements. A boundary module overlap strategy is adopted to ensure port interaction interface coverage. The number of test groups is optimized through the splitting scheme to shorten the iteration cycle and reduce resource requirements.

Benefits of technology

It effectively shortened the iteration cycle, reduced server resource requirements, avoided missed tests of interfaces, and improved test development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178185A_ABST
    Figure CN123178185A_ABST
Patent Text Reader

Abstract

The application relates to an automatic test vector generation method and a storage medium suitable for a large-scale chip, and the method comprises the following steps: counting the number of packaging chains of each functional module instance in the chip; acquiring layout planning of the chip and port interaction interface information among the multiple functional module instances; according to a relatively equal division strategy, all the packaging chains of the chip are split into N test groups, each test group contains multiple packaging chains, wherein N=X / Y, X is the number of packaging chains of the chip, Y is the number of packaging chains of each test group expected, and N is rounded up; and whether the split scheme meets the server resource and time requirements is evaluated, and the number of test groups is iterated based on the evaluation result to obtain a final split scheme. Since the packaging chains of the whole chip are split into N test groups which are relatively equal, automatic test vector generation and testing are carried out in units of single test groups, and the required server resource peak value and time are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of chip testing technology, and in particular to an automatic test vector generation method suitable for large-scale chips. Background Technology

[0002] The physical implementation of large-scale chips is increasingly adopting an adjacency-partition structure. In this structure, the chip no longer retains an independent top layer concept. The functional blocks are physically aligned and interconnected. Signal interconnection between blocks is achieved through direct connection of metal layers at adjacent boundaries, rather than through top-layer routing channels as in the traditional method.

[0003] While the aforementioned physical implementation methods are beneficial for optimizing area utilization and signal delay, they introduce new challenges to the design for testability (DFT) of the chip. During Automatic Test Pattern Generation (ATPG), due to the lack of top-level interconnect resources, the wrapper chains of all functional modules are interconnected or intertwined, making it impossible to independently disconnect them by module in test mode. Therefore, existing technologies typically employ a globally unified processing strategy, that is, simultaneously enabling the wrapper chains of all modules across the entire chip during the ATPG stage and jointly performing rule checks and test vector generation, which is the simplest in terms of process implementation.

[0004] However, this existing method has revealed the following prominent problems in practical engineering applications: First, the iteration cycle is too long. Due to the large scale of chip design, the ATPG tool needs to perform consistency checks on clocks, resets, test constraints, etc., across the entire chip when performing rule checks, and the script parameters need to be debugged multiple times to pass. Each rule check and subsequent vector generation and simulation consume a lot of time. In practice, a single iteration cycle can last from a week to several months, seriously delaying project progress.

[0005] Second, the peak requirements for computing and storage resources are too high. During the unified ATPG process across the entire chip, test data from all modules are processed simultaneously, which places extremely high demands on CPU computing power, memory capacity, and disk read / write speeds during peak server operation, significantly increasing hardware investment costs and resource scheduling difficulties.

[0006] In summary, existing Wrapper Chain ATPG methods are insufficient for practical engineering needs in large-scale chip designs (especially those using Abut-Partition architectures) due to low iteration efficiency and excessive resource consumption. Therefore, there is an urgent need to propose a Wrapper Chain ATPG implementation method suitable for large-scale chips to reduce reliance on server resources, shorten debugging and iteration time, and improve test and development efficiency. Summary of the Invention

[0007] To address at least some of the problems mentioned above in the prior art, the present invention provides an automatic test vector generation method suitable for large-scale chips, comprising the following steps: Count the number of wrapper chains for each functional module instance in the chip; Obtain the chip layout plan and port interaction interface information between multiple functional module instances; Based on a relatively even distribution strategy, all packaging chains of the chip are divided into N test groups. Each test group contains multiple packaging chains, where N = X / Y, X is the number of packaging chains of the chip, Y is the desired number of packaging chains in each test group, and N is rounded up. The partitioning scheme is evaluated to determine whether it meets the server resource and time requirements. Based on the evaluation results, the number of test groups is iterated to obtain the final partitioning scheme.

[0008] Furthermore, it also includes: performing automatic test vector generation based on the final splitting scheme.

[0009] Furthermore, based on the port interaction interface information between multiple functional module instances, all packaging chains of the chip are split, wherein: the packaging chains of two physically adjacent functional module instances that do not have a port interaction interface are not assigned to the same test group; The wrapper chains of two physically adjacent functional module instances that have a port interaction interface are assigned to the same test group.

[0010] Furthermore, the chip layout plan and port interaction interface information between multiple functional module instances are obtained, including: Obtain the chip layout plan; Get the port of each functional module instance; and The interaction interface between each functional module instance and its adjacent functional module instances is determined based on the port.

[0011] Furthermore, the splitting follows a boundary module overlap strategy: the wrapper chain of functional module instances located at the boundary of two adjacent test groups is simultaneously assigned to both test groups, where the functional module instance at the boundary and one functional module instance in each of its test groups have a port interaction interface.

[0012] Furthermore, the partitioning scheme is evaluated to determine whether it meets server resource and time requirements. Based on the evaluation results, the number of test groups is iterated to obtain the final partitioning scheme, including: Select the test group with the most packaging chains among N test groups, execute automatic test vector generation, and obtain the generation time and peak server resource requirements; Determine whether the peak server resources and generation time exceed the preset upper limit threshold. If they do not exceed the threshold, the current splitting scheme is determined as the final splitting scheme. If they exceed the threshold, the splitting scheme is re-split, the number of test groups is adjusted, and the splitting scheme is re-evaluated until the splitting scheme meets the server resource and time requirements.

[0013] Furthermore, if the peak server resource value is less than the corresponding upper limit threshold and the generation time is less than the corresponding lower limit threshold, the test group will be re-split to reduce the number of test groups.

[0014] The present invention also provides a computer-readable storage medium having a computer program stored thereon, the computer program performing the steps of the above method when executed by a processor.

[0015] The present invention has at least the following beneficial effects: By dividing the entire chip's packaging chain into N relatively evenly distributed test groups, and performing automatic test vector generation and testing on a per-group basis, the peak server resource requirements and time are reduced. Thanks to the boundary module overlap strategy, the port interaction interfaces between adjacent test groups are still covered, thus avoiding missed interface tests. Furthermore, since the test block with the most packaging chains is used as the evaluation object, and the number of test groups is adjusted based on time and server resource feedback, the splitting scheme can converge to project management requirements and shorten the iteration cycle. Attached Figure Description

[0016] To further illustrate the above and other advantages and features of the various embodiments of the present invention, a more specific description of the embodiments of the invention will be presented with reference to the accompanying drawings. It is to be understood that these drawings depict only typical embodiments of the invention and are therefore not intended to limit its scope. In the drawings, identical or corresponding parts will be indicated by identical or similar reference numerals for clarity.

[0017] Figure 1 The flowchart of an automated test vector generation method for large-scale chips according to the present invention is shown.

[0018] Figure 2 A schematic diagram of an example of the chip functional module of the present invention is shown. Detailed Implementation

[0019] It should be noted that the components in the accompanying drawings may be shown exaggerated for illustrative purposes and may not be to scale.

[0020] In this invention, the various embodiments are merely intended to illustrate the solutions of the invention and should not be construed as limiting.

[0021] In this invention, unless otherwise specified, the quantifiers “a” and “one” do not exclude scenarios involving multiple elements.

[0022] It should also be noted that, in the embodiments of the present invention, only a portion of the parts or components may be shown for clarity and simplicity. However, those skilled in the art will understand that, under the teachings of the present invention, the required parts or components can be added as needed for specific scenarios.

[0023] It should also be noted that within the scope of this invention, the terms "same", "equal", and "equal to" do not mean that the two values ​​are absolutely equal, but allow for a certain reasonable error. In other words, the terms also cover "substantially the same", "substantially equal", and "substantially equal to".

[0024] It should also be noted that in the description of this invention, the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not explicitly or implicitly suggest that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0025] Furthermore, the embodiments of the present invention describe the process steps in a specific order. However, this is only for the convenience of distinguishing each step, and is not a limitation on the order of each step. In different embodiments of the present invention, the order of each step can be adjusted according to the process.

[0026] In chip design (such as the IEEE 1500 standard), a wrapper chain refers to a chain-like structure formed by connecting end-to-end test circuits (wrapper cells) that wrap around a functional module. This chain is used for chip testing and fault diagnosis. When the chip is operating normally, these wrapper cells are completely transparent, allowing signals to enter and exit directly; when in test mode, they function as test probes.

[0027] like Figure 1 As shown, an automatic test vector generation method suitable for large-scale chips includes the following steps: Step 1: Count the number of wrapper chains for each functional module instance (inst) in the chip.

[0028] In other embodiments, the number of wrapper cells in each packaging chain can also be counted, and the number of wrapper cells in each functional module instance can be counted based on the number of wrapper cells in each packaging chain.

[0029] Step 2: Obtain the chip layout plan and port interaction interface information between multiple functional module instances.

[0030] Furthermore, the chip layout plan and the interface with port interactions between each functional module instance and other functional module instances are obtained.

[0031] Physically, a functional module instance may be adjacent to three other functional module instances, but may only have port interactions with one functional module instance.

[0032] Step 3: Based on the relative equal distribution strategy, split all the packaging chains of the chip into N test groups, each test group containing multiple packaging chains.

[0033] N = X / Y, where X is the number of chip packaging chains, Y is the expected number of packaging chains per test group, and N is rounded up.

[0034] For example, the entire chip contains 5,000 packaging chains, which can be divided into 5 test groups for testing, with each test group containing approximately 1,000 packaging chains.

[0035] The value of N is determined based on the expected number of iteration days. For example, if the total number of packaging chains for the entire chip is 130,000 and the expectation is to iterate once every 2 days, then based on experience, the expected number of packaging chains for each test group is initially set at 20,000. Therefore, N = 13 / 2 = 6.5, which is rounded up to 7, so N = 7.

[0036] In one embodiment, all packaging chains of the chip are split based on the port interaction interface information between multiple functional module instances, wherein: the packaging chains of two physically adjacent functional module instances that do not have a port interaction interface are not assigned to the same test group; the packaging chains of two physically adjacent functional module instances that have a port interaction interface are assigned to the same test group.

[0037] Since an instance may be physically adjacent to multiple instances, but its port interaction interface usually only exists between a few adjacent instances, the splitting is based on the port interaction interface rather than the physical adjacency. This avoids incorrectly assigning adjacent instances without port interaction to the same test group, while ensuring that interfaces with port interaction are covered by subsequent tests.

[0038] The splitting process also follows a boundary module overlap strategy: the wrapper chain of functional module instances located at the boundary of two adjacent test groups needs to be included in both test groups simultaneously to ensure that no ports are missed during testing. The functional module instance at the boundary and one functional module instance in each of its test groups have a port interaction interface.

[0039] Perform the splitting according to the above rules, divide all the chip packaging chains into multiple test groups, generate a splitting plan, and determine the number of test groups.

[0040] Step 4: Evaluate whether the splitting scheme meets the server resource and time requirements, and iterate the number of test groups based on the evaluation results to obtain the final splitting scheme.

[0041] Select the test group with the most packaging chains among N test groups, execute automatic test vector generation, and obtain the generation time and peak server resources required.

[0042] Determine whether the peak server resource usage and generation time exceed the preset upper limit threshold. If they do not exceed the threshold, the current splitting scheme is determined as the final splitting scheme. If they exceed the threshold, the splitting scheme is re-split, the number of test groups is adjusted, and the splitting scheme is re-evaluated until the splitting scheme meets the server resource and time requirements.

[0043] If the peak server resource value is less than the corresponding upper limit threshold and the generation time is too short (far less than the corresponding upper limit threshold, for example, less than the lower limit threshold), it indicates that the number of test groups split is too large (N is too large), and the resources are not being fully utilized. N needs to be reduced to decrease the number of test groups.

[0044] Step 5: Execute automatic test vector generation based on the final splitting scheme.

[0045] The above automatic test vector generation method is illustrated below using the splitting scheme of 18 functional module instances as an example.

[0046] like Figure 2 As shown, the entire chip consists of 18 functional module instances (instance_1 to instance_18), and the port interaction boundary 100 between the functional module instances is represented by a rectangle.

[0047] Testing all packaging chains together would be unbearable in terms of server resources and time, so a splitting approach is adopted.

[0048] From a relatively equal distribution perspective, the chip is divided into four parts, i.e., N=4. The partitioning scheme is as follows: The first test group includes Instance_1, Instance_2, Instance_5, Instance_8, and Instance_3; The second test group includes Instance_3, Instance_4, Instance_7, Instance_6, Instance_10, and Instance_11; The third test group includes Instance_4, Instance_9, Instance_14, Instance_12, Instance_13, and Instance_15; The fourth test group includes Instance_8, Instance_15, Instance_16, Instance_17, Instance_18, and Instance_13.

[0049] As can be seen from this grouping, Instance_3 appears in both the first and second test groups, Instance_4 appears in both the second and third test groups, Instance_13 appears in both the third and fourth test groups, Instance_15 appears in both the third and fourth test groups, and Instance_8 appears in both the first and fourth test groups. Because these instances appear across groups, the boundary modules between adjacent test groups overlap, and all port interaction interfaces are included in the test. This grouping reduces the time to generate ATPG each time to one-third. Correspondingly, the iteration time is reduced from 2 weeks to 5 days. If server resources or time are unacceptable, the process can be continued using the aforementioned method until the requirements are met.

[0050] The present invention also provides a computer-readable storage medium having a computer program stored thereon, the computer program performing the steps of an automatic test vector generation method suitable for large-scale chips when executed by a processor.

[0051] While some embodiments of the present invention have been described in this application, those skilled in the art will understand that these embodiments are merely illustrative. Numerous variations, alternatives, and improvements will arise in those skilled in the art under the teachings of this invention without departing from its scope. The appended claims are intended to define the scope of the invention and thereby cover methods and structures within the scope of the claims themselves and their equivalents.

Claims

1. An automatic test vector generation method suitable for large-scale chips, characterized in that, Includes the following steps: Count the number of wrapper chains for each functional module instance in the chip; Obtain the chip layout plan and port interaction interface information between multiple functional module instances; Based on a relatively even distribution strategy, all packaging chains of the chip are divided into N test groups. Each test group contains multiple packaging chains, where N = X / Y, X is the number of packaging chains of the chip, Y is the expected number of packaging chains in each test group, and N is rounded up. as well as The partitioning scheme is evaluated to determine whether it meets the server resource and time requirements. Based on the evaluation results, the number of test groups is iterated to obtain the final partitioning scheme.

2. The automatic test vector generation method for large-scale chips according to claim 1, characterized in that, Also includes: Automatic test vector generation is performed based on the final splitting scheme.

3. The automatic test vector generation method for large-scale chips according to claim 1, characterized in that, Based on the port interaction interface information between multiple functional module instances, all packaging chains of the chip are split, wherein: the packaging chains of two physically adjacent functional module instances that do not have a port interaction interface are not assigned to the same test group. The wrapper chains of two physically adjacent functional module instances that have a port interaction interface are assigned to the same test group.

4. The automatic test vector generation method for large-scale chips according to claim 1, characterized in that, Obtain the chip layout plan and port interaction interface information between multiple functional module instances, including: Obtain the chip layout plan; Get the port of each functional module instance; and The interaction interface between each functional module instance and its adjacent functional module instances is determined based on the port.

5. The automatic test vector generation method for large-scale chips according to claim 1, characterized in that, When splitting, a boundary module overlap strategy is followed: the wrapper chain of functional module instances located at the boundary of two adjacent test groups is simultaneously assigned to both test groups, where the functional module instance at the boundary and one functional module instance in each of its test groups have a port interaction interface.

6. The automatic test vector generation method for large-scale chips according to claim 1, characterized in that, Evaluate whether the partitioning scheme meets server resource and time requirements, and based on the evaluation results, iterate the number of test groups to obtain the final partitioning scheme, including: Select the test group with the most packaging chains among N test groups, execute automatic test vector generation, and obtain the generation time and peak server resource requirements; Determine whether the peak server resources and generation time exceed the preset upper limit threshold. If they do not exceed the threshold, the current splitting scheme is determined as the final splitting scheme. If they exceed the threshold, the splitting scheme is re-split, the number of test groups is adjusted, and the splitting scheme is re-evaluated until the splitting scheme meets the server resource and time requirements.

7. The automatic test vector generation method for large-scale chips according to claim 6, characterized in that, If the peak server resource value is less than the corresponding upper limit threshold and the generation time is less than the corresponding lower limit threshold, the test group will be re-split to reduce the number of test groups.

8. A computer-readable storage medium having a computer program stored thereon, the computer program performing the steps of the method according to any one of claims 1-7 when executed by a processor.