A manufacturing defect detection circuit and method for an FPGA chip

By designing a manufacturing defect detection circuit with a scan chain structure in an FPGA chip, the problem of low test coverage is solved, more efficient manufacturing defect detection is achieved, the risk of undetected defects is reduced, and resource utilization is optimized.

CN123155995APending Publication Date: 2026-11-24SHANGHAI ANLOGIC INFOTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510663675.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing FPGA chip manufacturing defect detection, the test coverage is not high, and the risk of manufacturing defects not being detected is relatively high, especially when the IP hard core does not include DFT testability design.

Method used

Design a manufacturing defect detection circuit for an FPGA chip, including a processing module and a detection module. The detection module includes a scanning circuit, which dynamically connects with the ports of the circuit under test to form a scanning chain structure, generates test vectors and configuration vectors, and performs manufacturing defect detection to avoid inserting DFT hardware such as MUX and scan triggers inside the circuit under test.

Benefits of technology

It improves test coverage, reduces the risk of manufacturing defects going undetected, saves resources and space, optimizes the scan chain structure, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123155995A_ABST
    Figure CN123155995A_ABST
Patent Text Reader

Abstract

This invention discloses a manufacturing defect detection circuit and method for FPGA chips, belonging to the field of chip testing technology. The circuit includes a processing module and at least one detection module. The detection module includes at least one scanning circuit. The scanning input port and scanning output port of the scanning unit in the scanning circuit are connected sequentially to form a scanning chain. The scanning circuit is connected to the circuit under test. The scanning circuit is used to scan physical instances in the circuit under test, obtain test instances corresponding to the physical instances, and obtain the DFT netlist of the circuit under test based on the test instances. The processing module is used to extract the logic netlist and software netlist of the circuit under test, and combine them with the DFT netlist to generate test vectors and configuration vectors for manufacturing defect testing, thereby obtaining chip manufacturing defect detection results. By implementing this invention, the technical problems of low test coverage and high risk of undetected manufacturing defects in existing technologies can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of chip inspection technology, and in particular to a circuit and method for detecting manufacturing defects in FPGA chips. Background Technology

[0002] An FPGA is a programmable logic device that, in addition to containing conventional programmable logic resources (such as LUTs and DFFs), typically embeds additional IP hard cores to meet specific functional or high-performance requirements. The IP hard cores in an FPGA can be considered a special type of ASIC circuit. Compared to conventional ASIC circuits, the functions of IP hard cores in an FPGA are usually more complex, and they have more ports to cover as many application scenarios as possible.

[0003] Chip testing primarily involves two methods: functional testing and manufacturing testing. Functional testing mainly verifies whether the circuit operates according to design requirements and whether its performance meets design expectations. Functional testing typically requires test inputs to match the device's functionality and necessitates detailed testing of all possible input combinations. Therefore, as device functionality becomes increasingly complex and the number of input ports increases, the number of test cases and test vector length will grow exponentially to maintain high test coverage. Manufacturing testing, on the other hand, filters out devices with manufacturing defects to ensure high-quality chips. Manufacturing defects mainly include: power supply or ground short circuits, open internal interconnects, and transistor short circuits. Typically, manufacturing defects cause chip functional failures. Therefore, functional test cases can be used to perform manufacturing testing on chips. However, to maintain testing costs, these functional test cases tend to focus on certain common functions or extreme cases, meaning that even if a chip passes functional testing, it may still have some undetected manufacturing defects.

[0004] Existing FPGA chip manufacturing defect detection circuits typically involve inserting corresponding test circuits into the IP hard core, known as Design for Testability (DFT), to achieve manufacturing defect detection. Inserting DFT usually relies on EDA tools. Some IP hard core design flows do not meet the requirements of EDA tools, preventing the insertion of DFT circuits. Furthermore, inserting DFT circuits introduces additional area costs during the design implementation phase. Therefore, not all IP hard cores in FPGAs typically include the aforementioned DFT. Manufacturing testing of these IP hard cores without DFT is solely based on functional testing. To minimize testing costs, the number of functional test cases and the length of test vectors should be limited, resulting in low test coverage and a relatively high risk of undetected manufacturing defects. Summary of the Invention

[0005] This invention provides a method, apparatus, terminal device, and storage medium for detecting manufacturing defects in FPGA chips, which can solve the technical problems of low test coverage and high risk of manufacturing defects not being detected in the prior art.

[0006] This invention provides a manufacturing defect detection circuit for FPGA chips, comprising:

[0007] The system includes a processing module and at least one detection module, wherein the detection module includes at least one scanning circuit.

[0008] The scanning circuit includes several data input ports, several data output ports, several scan input ports, several scan output ports, and several scanning units; wherein, the data input port of each scanning circuit is connected to the data input port of a corresponding scanning unit, and the data output port of each scanning circuit is connected to the data output port of a corresponding scanning unit; the scan input ports and scan output ports of several scanning units are connected sequentially to form a scanning chain;

[0009] The data input port of the scanning circuit is connected to the data output port of the circuit under test, and the data output port of the scanning circuit is connected to the data input port of the circuit under test; wherein, the circuit under test is the circuit under test in the FPGA chip under test.

[0010] The scanning circuit is used to scan the physical instances in the circuit under test, obtain the test instances corresponding to the physical instances, and obtain the DFT netlist of the circuit under test based on the test instances.

[0011] The processing module is used to extract the logic netlist and software netlist of the circuit under test, and combine the DFT netlist with the logic netlist and the software netlist respectively to generate test vectors and configuration vectors, so as to perform manufacturing defect testing based on the test vectors and configuration vectors, and obtain the manufacturing defect detection results of the FPGA chip under test.

[0012] Furthermore, when the number of data output ports of the circuit under test is inconsistent with the number of data input ports of the scanning circuit, the detection module further includes a first insertion circuit;

[0013] The first insertion circuit includes several data input ports and several data output ports;

[0014] The number of data input ports of the first insertion circuit is the same as the number of data output ports of the circuit under test; the number of data output ports of the first insertion circuit is the same as the number of data input ports of the scanning circuit.

[0015] The data input port of the first insertion circuit is connected to the data output port of the circuit under test in a one-to-one correspondence; the data output port of the first insertion circuit is connected to the data input port of the scanning circuit in a one-to-one correspondence.

[0016] Furthermore, when the number of data input ports of the circuit under test is inconsistent with the number of data output ports of the scanning circuit, the detection module further includes a second insertion circuit;

[0017] The second insertion circuit includes several data input ports and several data output ports;

[0018] The number of data input ports of the second insertion circuit is the same as the number of data output ports of the scanning circuit; the number of data output ports of the second insertion circuit is the same as the number of data input ports of the circuit under test.

[0019] The data input port of the second insertion circuit is connected to the data output port of the scanning circuit in a one-to-one correspondence; the data output port of the second insertion circuit is connected to the data input port of the circuit under test in a one-to-one correspondence.

[0020] Furthermore, obtaining the DFT netlist of the circuit under test based on the test instance includes:

[0021] Determine the cascaded output port and cascaded input port of each test instance, and determine the connection relationship of the test instances based on the cascaded output port and cascaded input port;

[0022] The test instances are assembled into a DFT netlist based on the connection relationships.

[0023] Furthermore, the manufacturing defect detection circuit of the FPGA chip also includes several sets of detection modules, each set of detection modules includes n detection modules, where n is a natural number greater than or equal to 2;

[0024] The cascaded output of the first to n-1th detection modules in each group is connected to the cascaded input of the next detection module, and the scan output is connected to the scan input of the next detection module.

[0025] The logic state of the cascaded input terminal of the first detection module in each group of detection modules is determined according to the working state of the circuit under test, and the cascaded output terminal of the nth detection module is left floating, wherein the logic state is 0, 1 or floating.

[0026] This invention also provides a method for detecting manufacturing defects in FPGA chips, applicable to the manufacturing defect detection circuit of the FPGA chip described above, comprising:

[0027] Select the circuit under test in the FPGA chip under test, and classify the ports in the circuit under test into different ports, wherein the different ports include data input ports, data output ports, scan input ports and scan output ports;

[0028] The DFT netlist of the circuit under test is extracted using a detection unit connected to the circuit under test.

[0029] Extract the logic netlist and software netlist of the circuit under test, combine the DFT netlist with the logic netlist and software netlist respectively, and output the corresponding test vector and configuration vector respectively;

[0030] The test vector and the configuration vector are used to detect manufacturing defects in the FPGA chip under test, and the manufacturing defect detection results of the chip under test are obtained.

[0031] This invention sets up a detection module and dynamically connects the scanning circuit in the detection module with the input / output ports of the circuit under test to form a scanning chain structure. This eliminates the need to insert DFT hardware such as MUX and scan triggers inside the circuit under test, thereby avoiding limitations on the number of test cases and the length of test vectors. It can scan the physical instance of the circuit under test through the scanning circuit to generate corresponding test instances to achieve manufacturing defect detection, thereby effectively improving test coverage and reducing the risk of manufacturing defects going undetected.

[0032] Furthermore, by setting up scanning circuits and insertion circuits in the detection module, the present invention can effectively reduce the size of the scanning circuit when the data shift-in chain and data shift-out chain are reused, thereby saving resources and space and optimizing the scanning chain, effectively improving scanning efficiency and manufacturing defect detection efficiency. Attached Figure Description

[0033] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0034] Figure 1 This is a schematic diagram of the manufacturing defect detection circuit for an FPGA chip provided in one embodiment of the present invention;

[0035] Figure 2 This is a schematic diagram of the port connection of a MUX-D scanning unit provided in one embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of a test case provided in one embodiment of the present invention;

[0037] Figure 4 This is another schematic diagram of the manufacturing defect detection circuit for an FPGA chip provided in one embodiment of the present invention;

[0038] Figure 5 This is another schematic diagram of the manufacturing defect detection circuit for an FPGA chip provided in one embodiment of the present invention;

[0039] Figure 6 This is a flowchart illustrating a method for detecting manufacturing defects in an FPGA chip according to an embodiment of the present invention.

[0040] Figure 7 This is another flowchart illustrating a method for detecting manufacturing defects in an FPGA chip according to an embodiment of the present invention.

[0041] Figure 8 This is a schematic diagram of the structure of a manufacturing defect detection device for FPGA chips provided in one embodiment of the present invention. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0044] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0045] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0046] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0047] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0048] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0049] See Figure 1 To address the technical problems of low test coverage and high risk of undetected manufacturing defects in existing technologies, an embodiment of the present invention provides a manufacturing defect detection circuit for FPGA chips, comprising:

[0050] The processing module 20 and at least one detection module 10, wherein the detection module 10 includes at least one scanning circuit 12;

[0051] In the embodiments of the invention, there may be multiple detection modules 10, which can be extended horizontally or vertically to place multiple test structures in a single use case, cover more resources, and thus improve detection efficiency.

[0052] The scanning circuit 12 includes several data input ports, several data output ports, several scan input ports, several scan output ports, and several scanning units; wherein, the data input port of each scanning circuit 12 is connected to the data input port of a corresponding scanning unit, and the data output port of each scanning circuit 12 is connected to the data output port of a corresponding scanning unit; the scan input ports and scan output ports of several scanning units are connected sequentially to form a scan chain;

[0053] In this embodiment of the invention, the scan chain is a chain or matrix composed of multiple scan units, including scan input, data input, scan output, data output, and scan control signals. Scan units can take various forms, including MUX-D, CLOCKED, and LSSD. In this embodiment, all scan unit designs that can be implemented using FPGA synthesis can be selected to form the scan circuit 12; the scan unit in this embodiment is a MUX-D scan unit.

[0054] In this embodiment of the invention, the ports of the scanning circuit 12 can be pre-classified, and the port connections of the MUX-D scanning units at different ports are as follows: Figure 2 As shown. The ports of scanning circuit 12 can be classified as follows:

[0055] Data input ports di<0:p>, di<0:q>, p,q≥1: Data input ports connected to the scanning unit. In this embodiment, the data input port D is connected to the MUX-D scanning unit. p,q is the total number of scanning units constituting the scanning circuit 12; Data output ports do<0:p>, do<0:q>, p,q≥1: Output ports connected to the scanning unit. In this embodiment, the output port Q is connected to the MUX-D scanning unit; Scan input ports si<0:u>, si<0:v>, u,v≥1: Multiple scanning unit scanning input and output ports are connected sequentially to form a scanning chain, and the scanning input port of the first-level scanning unit in the scanning chain. In this embodiment, the scanning input port SI is connected to the first-level scanning unit in the scanning chain. u,v is the number of scanning chains constituting the scanning circuit 12; Scan output ports so<0:u>, so<0:v>, u,v≥1: Multiple scanning unit scanning input and output ports are connected sequentially to form a scanning chain, and the data output port of the last-level scanning unit in the scanning chain. In this embodiment of the invention, the output port Q is connected to the last scanning unit in the scanning chain; the scanning control signal sc<*> is the scanning control signal connected to the scanning unit. In this case, a MUX-D scanning unit is used, and the scanning control signals are typically scan_clk, scan_enable, and scan_rst; for scanning circuits 12 constructed with other scanning units, the list of scanning control signals will change.

[0056] The data input port of the scanning circuit 12 is connected to the data output port of the circuit under test 11, and the data output port of the scanning circuit 12 is connected to the data input port of the circuit under test 11; wherein, the circuit under test 11 is the circuit under test 11 in the FPGA chip under test;

[0057] In this embodiment of the invention, the circuit under test 11 can be arbitrarily selected. After selecting the circuit under test 11, the ports of the circuit under test 11 can be classified, including:

[0058] Data input ports pi<0:m>, m≥1: Input ports in the circuit under test 11 that can be directly connected to the outside and directly controlled via FPGA wiring, excluding clock input ports and asynchronous reset input ports; Data output ports po<0:n>, n≥1: Output ports in the circuit under test 11 that can be directly connected to the outside and directly observed via FPGA wiring; Cascaded input ports ci<0:x>, x≥1: Input ports in the circuit under test 11 that cannot be directly connected to the outside and directly controlled via FPGA wiring, usually originating from other functional circuits, but can be controlled by connecting the driving circuit to which they belong. The circuit under test (DUT) is included in the scope of circuit 11 and then connected to the outside via wiring to achieve indirect control; cascaded output ports co<0:y>, y≥0: output ports in circuit 11 that can be directly connected to the outside via FPGA wiring and can be directly observed. They are usually used as driver inputs for other functional circuits, or they can be indirectly observed by including the driven circuit in circuit 11 and then connecting to the outside via wiring; clock input ports clk<*>: all clock input ports in circuit 11; asynchronous reset input ports rst<*>: all asynchronous reset input ports in circuit 11.

[0059] The scanning circuit 12 is used to scan the physical instances in the circuit under test 11, obtain the test instances corresponding to the physical instances, and obtain the DFT netlist of the circuit under test 11 based on the test instances.

[0060] In this embodiment of the invention, when it is necessary to test one or more sub-module circuits in the FPGA chip under test, it is assumed that the physical instances of these sub-module circuits under test in the circuit are phy_inst_x1y1, phy_inst_x1y2, ..., phy_inst_x1y{n1}, ..., phy_inst_x1y1, ..., phy_inst_x{m}y{nm} (a total of m columns, each column containing the number of instances n1, n2, ..., nm, so the total number of instances is n1+n2+...+nm). These n1+n2+...+nm instances may not have any interconnection relationship, i.e., they are completely independent; they may only have interconnection relationships within the same column or row, forming a chain structure; or they may have both interconnection relationships within the same column and row, forming a mesh structure. When the chip design is completed, these connection relationships will be fixed, and the physical location and area of ​​each instance circuit on the actual chip will also be fixed. The physical location information is generally the absolute coordinates relative to a certain corner of a single chip.

[0061] Assume that these instances are interconnected only within the same column, and that the columns are independent, i.e., a chain structure. Since the physical instances corresponding to these test instances are not completely independent but interconnected within columns, the interconnection relationships between these test instances need to be considered.

[0062] Please see Figure 3 , Figure 3 The structure contains 11 test instances consisting of the circuit under test (IUT) and auxiliary circuits, totaling n1+n2+…+nm. The corresponding instance names are test_inst_1, test_inst_2, …, test_inst_{n1}, …, test_inst_{n1+1}, …, test_inst_x{n1+n2+…+nm}. The cascaded output ports and cascaded input ports of each instance are connected sequentially according to the connection relationship in the actual physical circuit. The relative positional relationship of each instance is fixed by the cascaded connection relationship. For example, for test_inst_2, the ci<*> of test_inst_2 comes from the co<*> of test_inst_1, and the co<*> of test_inst_2 is also connected to the ci<*> of test_inst_3. According to this connection relationship, when the position of test_inst_2 is determined, the positions of test_inst_1 and test_inst_3 are also determined accordingly.

[0063] In FPGA software, each `phy_inst` is assigned a logical location, typically a sequence such as (0,0,0). Constraints on `test_inst` must be applied according to these logical locations. Normally, the FPGA software can recognize the connections of the cascaded ports, identify the relative positions of the `test_inst`s, and further calculate the logical locations of all `test_inst`s, establishing a mapping from `test_inst` to `phy_inst`. However, if the FPGA software fails to process this correctly, manual intervention is required to ensure the correct mapping between `test_inst` and `phy_inst` is established. Once the FPGA has correctly established the one-to-one mapping relationship from test_inst_1, test_inst_2, ..., test_inst_{n1}, ..., test_inst_{n1+1}, ..., test_inst_x{n1+n2+...+nm} to phy_inst_x1y1, phy_inst_x1y2, ..., phy_inst_x1y{n1}, ..., phy_inst_x1y1, ..., phy_inst_x{m}y{nm}, these mapping relationships need to be saved for subsequent positioning.

[0064] In this embodiment of the invention, the circuit structure composed of test_inst is called a DFT netlist. It can be input into the ATPG tool to generate test vectors and simultaneously generate configuration vectors via FPGA software. When the ATPG tool analyzes and generates test vectors according to the actual input netlist hierarchy, it first sees each test_inst, not phy_inst. During fault diagnosis, the information obtained is also the corresponding test_inst. Typically, fault diagnosis may provide multiple final results, along with the confidence level of each result. Each result may be a line or a standard cell, indexed according to the netlist hierarchy input to the ATPG tool, such as / dut / test_inst_2 / test_module / wire0. During physical analysis, the physical location corresponding to the signal needs to be provided. In this embodiment, according to the aforementioned saved mapping relationship, test_inst_2 can be mapped to phy_inst_x1y2. Then, the physical coordinates of test_module / wire can be found in the physical region corresponding to phy_inst_x1y2 in the layout, achieving rapid location.

[0065] The processing module 20 is used to extract the logic netlist and software netlist of the circuit under test 11, and combine the DFT netlist with the logic netlist and software netlist respectively to generate test vectors and configuration vectors, so as to perform manufacturing defect testing based on the test vectors and configuration vectors, and obtain the manufacturing defect detection results of the FPGA chip under test.

[0066] In this embodiment of the invention, after selecting the circuit under test 11, the manufacturing defect detection circuit of this embodiment of the invention can be constructed by EDA tools or manually. The manufacturing defect detection circuit can be processed, synthesized, constrained and generated by FGPA dedicated EDA software.

[0067] In this embodiment of the invention, the logic netlist is the hardware logic structure of the circuit under test 11 (such as gate-level or RTL-level circuit connection relationships), which includes the topology of combinational logic and sequential logic; the software netlist is the configuration information of the circuit under test 11 (such as XDL file or NCD file); and the DFT netlist is the generated test logic structure, which can simulate the traditional DFT function (such as scan flip-flop chain) but does not modify the internal structure of the circuit under test 11.

[0068] This invention embodiment performs manufacturing defect testing based on test vectors and configuration vectors to obtain manufacturing defect detection results for the FPGA chip under test, including:

[0069] Configuration phase:

[0070] Use configuration vectors to initialize specific resources of the FPGA chip (such as an interconnect or CLB) to the logic state required for testing (such as setting it as a scan chain entry or observation point);

[0071] Example: By loading configuration vectors through the ATE device, the FPGA's IOBs and CLBs are mapped to input / output nodes of a virtual scan chain.

[0072] Scan chain operation: The test vector is moved into the circuit under test 11 through the detection unit, the target fault (such as Stuck-at-0) is activated, and the response is read in the capture cycle;

[0073] Dynamic configuration switching: Based on test coverage requirements, different configuration vectors are loaded multiple times to cover various resources of the FPGA (such as Block RAM and PLL);

[0074] Defect detection:

[0075] By comparing the actual output with the expected value, manufacturing defects (such as fixed faults and delayed faults) can be identified. For example, a test vector for an SA0 fault can be inserted into the scan chain, and the actual response can be output through a shift register. If it does not match the expected value, the fault node can be marked. This includes: generating a test vector (input A=1, B=1) using the ATPG tool, loading the input into the logic gate under test through the scan chain, capturing the output result, and determining that the actual output is 0 (expected to be 1) as an SA0 fault.

[0076] This invention, through the setting of a detection module 10, dynamically connects the scanning circuit 12 in the detection module 10 with the input / output ports of the circuit under test 11 to form a scanning chain structure. This eliminates the need to insert DFT hardware such as MUX and scan triggers inside the circuit under test 11, thereby avoiding limitations on the number of test cases and the length of test vectors. The scanning circuit 12 can scan the physical instance of the circuit under test 11 to generate corresponding test instances to achieve manufacturing defect detection, thereby effectively improving test coverage and reducing the risk of manufacturing defects going undetected.

[0077] In one embodiment, when the number of data output ports of the circuit under test 11 is inconsistent with the number of data input ports of the scanning circuit 12, the detection module 10 further includes a first insertion circuit.

[0078] The first insertion circuit includes several data input ports and several data output ports;

[0079] The number of data input ports of the first insertion circuit is the same as the number of data output ports of the circuit under test 11; the number of data output ports of the first insertion circuit is the same as the number of data input ports of the scanning circuit 12.

[0080] The data input port of the first insertion circuit is connected to the data output port of the circuit under test 11 in a one-to-one correspondence; the data output port of the first insertion circuit is connected to the data input port of the scanning circuit 12 in a one-to-one correspondence.

[0081] In one embodiment, when the number of data input ports of the circuit under test 11 is inconsistent with the number of data output ports of the scanning circuit 12, the detection module 10 further includes a second insertion circuit.

[0082] The second insertion circuit includes several data input ports and several data output ports;

[0083] The number of data input ports of the second insertion circuit is the same as the number of data output ports of the scanning circuit 12; the number of data output ports of the second insertion circuit is the same as the number of data input ports of the circuit under test 11.

[0084] The data input port of the second insertion circuit is connected one-to-one with the data output port of the scanning circuit 12; the data output port of the second insertion circuit is connected one-to-one with the data input port of the circuit under test 11.

[0085] In this embodiment of the invention, the first insertion circuit and the second insertion circuit are introduced to match the input and output ports of the circuit under test 11 and the scanning circuit 12. The first insertion circuit and the second insertion circuit can be multiplexers or other combinational logic circuits.

[0086] In this embodiment of the invention, when the number of data output ports m of the circuit under test 11 matches the number of data input ports p of the scanning circuit 12 (m = p), the first insertion circuit is optional; similarly, when the number of data input ports n of the circuit under test 11 matches the number of data output ports q of the scanning circuit 12 (q = n), the second insertion circuit is optional.

[0087] Please see Figure 4 When the detection module 10 includes two scanning circuits 12, the two scanning circuits 12 are the first scanning circuit and the second scanning circuit, and their data input link can be as follows:

[0088] Starting from si of the first scanning circuit, to mi of the first insertion circuit, then from mo of the first insertion circuit, and finally to pi of the circuit under test 11; the data shift-out link is: starting from po of the circuit under test 11, to mi of the second insertion circuit, then from mo of the second insertion circuit, and finally to so of the second scanning circuit.

[0089] for Figure 4 In the test circuit shown, it was observed that SO of the first scan circuit, Di of the first scan circuit, Si of the second scan circuit, and Do of the second scan circuit were not directly connected to the outside of the test circuit. Scan circuit 12 was not fully utilized. To improve resource utilization efficiency, the following optimization scheme can be tried:

[0090] a. Connect the so of the first scan circuit to the si of the second scan circuit, and keep the di of the first scan circuit and the do of the second scan circuit in an unused state. At this time, the data shift-in chain and the data shift-out chain will be connected in series. The number of resources used will not decrease, but the serial connection of the scan chains will increase the number of scan cycles and the corresponding test vector length, which is not feasible.

[0091] b. Disconnect SO of the second scan circuit, lead SO of the first scan circuit out of the test circuit, and then connect Do of the second scan circuit to Di of the first scan circuit. At this time, Si and SO of the second scan circuit remain unused, the scan chain length does not increase, the number of scan units does not decrease, and an additional capture cycle is required to smoothly fill Po of the circuit under test 11 into the scan chain. This can be further optimized.

[0092] c. Based on b, completely remove the second scanning circuit and connect mo of the second insertion circuit to di of the scanning circuit 121, as follows. Figure 5 As shown, the scan chain length does not increase, the number of scan units is further reduced, and no additional capture cycle is introduced.

[0093] The final data input chain is determined as follows: starting from si of the first scan circuit, to mi of the insertion circuit 1, then from mo of the first insertion circuit, and finally to pi of the circuit under test 11; the data output chain is as follows: starting from po of the circuit under test 11, to mi of the second insertion circuit, then from mo of the second insertion circuit, and finally to so of the first scan circuit. It can be seen that the data flow direction of the data input and output chains remains unchanged, thus still meeting the testing requirements and saving logic resources used to implement the second scan circuit.

[0094] In this embodiment of the invention, by setting the scanning circuit 12 and the insertion circuit in the detection module 10, the size of the scanning circuit 12 can be effectively reduced when the data shift-in chain and the data shift-out chain are reused, thereby saving resources and space and optimizing the scanning chain, effectively improving scanning efficiency and manufacturing defect detection efficiency.

[0095] In one embodiment, obtaining the DFT netlist of the circuit under test 11 based on a test instance includes:

[0096] Determine the cascaded output port and cascaded input port for each test instance, and determine the connection relationship of the test instances based on the cascaded output port and cascaded input port;

[0097] The test instances are assembled into a DFT netlist based on the connection relationships.

[0098] In this embodiment of the invention, by dynamically binding the cascaded ports of the test instance and generating the corresponding DFT netlist, there is no need to insert scan triggers and MUX in the circuit under test 11. It is also not limited by a fixed scan structure, so that the DFT netlist can support multiple fault modes, thereby effectively improving hardware resource space and test coverage.

[0099] In one embodiment, the manufacturing defect detection circuit of the FPGA chip further includes several groups of detection modules 10, each group of detection modules 10 including n detection modules 10, where n is a natural number greater than or equal to 2.

[0100] The cascaded output terminals of the first to n-1th detection modules 10 in each group of detection modules 10 are connected to the cascaded input terminals of the next detection module 10, and the scan output terminal is connected to the scan input terminal of the next detection module 10.

[0101] The logic state of the cascaded input terminal of the first detection module 10 in each group of detection modules 10 is determined according to the working state of the circuit under test 11, and the cascaded output terminal of the nth detection module 10 is left floating, wherein the logic state is 0, 1 or floating.

[0102] In this embodiment of the invention, the cascade output terminal and cascade input terminal in the detection module 10 are the cascade output terminal and cascade input terminal of the circuit under test 11 connected to the scanning circuit 12 in the detection module 10; the scan input terminal and scan output terminal in the detection circuit are the scan input terminal and scan output terminal of the scanning circuit 12 in the detection circuit.

[0103] Please see Figure 5 In this embodiment of the invention, in the manufacturing defect detection circuit of the FPGA chip composed of several groups of detection modules 10, the cascaded output co and cascaded input ci in each group of detection modules 10 are connected in sequence. For the cascaded input of the first stage and the cascaded output of the last stage, they can be connected to logic 0 or logic 1, or they can be left floating and not connected. The scan input si and scan output so in the scanning circuit 12 are connected in sequence. For the scan input of the first stage and the scan output of the last stage, they can be directly connected to the outside of the chip. The clock input clk and asynchronous reset input rst of the circuit under test 11 and the scan control signal sc of the scanning circuit 12 can be connected together by broadcasting and directly controlled by the outside.

[0104] It should be noted that, in the embodiments of the present invention, the scanning circuit 12 in each detection module 10 is connected to the corresponding test circuit 11, and the scanning circuit 12 and the insertion circuit constitute an auxiliary circuit. In the absence of an insertion circuit, the scanning circuit 12 itself is an auxiliary circuit.

[0105] Implementing the embodiments of the present invention has the following beneficial effects:

[0106] This invention, through the setting of a detection module 10, dynamically connects the scanning circuit 12 in the detection module 10 with the input / output ports of the circuit under test 11 to form a scanning chain structure. This eliminates the need to insert DFT hardware such as MUX and scan triggers inside the circuit under test 11, thereby avoiding limitations on the number of test cases and the length of test vectors. The scanning circuit 12 can scan the physical instance of the circuit under test 11 to generate corresponding test instances to achieve manufacturing defect detection, thereby effectively improving test coverage and reducing the risk of manufacturing defects going undetected.

[0107] Furthermore, by setting up a scanning circuit 12 and an insertion circuit in the detection module 10, the present invention can effectively reduce the size of the scanning circuit 12 when the data shift-in chain and data shift-out chain are reused, thereby saving resources and space and optimizing the scanning chain, effectively improving scanning efficiency and manufacturing defect detection efficiency.

[0108] Please see Figure 6 Based on the above-described embodiment of the FPGA chip manufacturing defect detection circuit, the present invention also provides a method for detecting manufacturing defects in an FPGA chip, applicable to the above-described FPGA chip manufacturing defect detection circuit, comprising:

[0109] S1. Select the circuit under test in the FPGA chip under test, and classify the ports in the circuit under test into different ports, including data input ports, data output ports, scan input ports and scan output ports;

[0110] In this embodiment of the invention, by classifying the ports in the circuit under test, the corresponding scanning circuit and insertion circuit (if an insertion circuit is required) can be designed conveniently and accurately based on the port classification, thereby effectively improving the accuracy of detection.

[0111] S2. Using the detection unit connected to the circuit under test, extract the DFT netlist of the circuit under test;

[0112] In this embodiment of the invention, the DFT netlist of the circuit under test is composed of test instances consisting of the circuit under test and the detection unit, and the test instances are obtained by mapping the physical instances of the circuit under test.

[0113] S3. Extract the logic netlist and software netlist of the circuit under test, combine the DFT netlist with the logic netlist and software netlist respectively, and output the corresponding test vector and configuration vector respectively.

[0114] In this embodiment of the invention, the logic netlist is the hardware logic structure of the circuit under test (such as gate-level or RTL-level circuit connection relationships), which includes the topology of combinational logic and sequential logic; the software netlist is the configuration information of the circuit under test (such as XDL file or NCD file); and the DFT netlist is the generated test logic structure, which can simulate the traditional DFT function (such as scan flip-flop chain) but does not modify the internal structure of the circuit under test.

[0115] S4. Use test vectors and configuration vectors to perform manufacturing defect detection on the FPGA chip under test, and obtain the manufacturing defect detection results of the chip under test.

[0116] This invention embodiment performs manufacturing defect testing based on test vectors and configuration vectors to obtain manufacturing defect detection results for the FPGA chip under test, including:

[0117] Configuration phase:

[0118] Use configuration vectors to initialize specific resources of the FPGA chip (such as an interconnect or CLB) to the logic state required for testing (such as setting it as a scan chain entry or observation point);

[0119] Example: By loading configuration vectors through the ATE device, the FPGA's IOBs and CLBs are mapped to input / output nodes of a virtual scan chain.

[0120] Scan chain operation: The test vector is moved into the circuit under test through the detection unit, the target fault (such as Stuck-at-0) is activated, and the response is read in the capture cycle;

[0121] Dynamic configuration switching: Based on test coverage requirements, different configuration vectors are loaded multiple times to cover various resources of the FPGA (such as Block RAM and PLL);

[0122] Defect detection:

[0123] By comparing the actual output with the expected value, manufacturing defects (such as fixed faults and delayed faults) can be identified. For example, a test vector for an SA0 fault can be inserted into the scan chain, and the actual response can be output through a shift register. If it does not match the expected value, the fault node can be marked. This includes: generating a test vector (input A=1, B=1) using the ATPG tool, loading the input into the logic gate under test through the scan chain, capturing the output result, and determining that the actual output is 0 (expected to be 1) as an SA0 fault.

[0124] This invention, through the establishment of a detection module, dynamically connects the scanning circuit within the detection module to the input / output ports of the circuit under test (DUT), forming a scan chain structure. This eliminates the need to insert DFT hardware such as MUX and scan triggers inside the DUT, thereby avoiding limitations on the number of test cases and the length of test vectors. The DFT netlist of the DUT can be extracted using the detection unit connected to the DUT, and manufacturing defect detection can be performed on the FPGA chip under test using test vectors and configuration vectors. This yields the manufacturing defect detection results for the chip under test, effectively improving test coverage and reducing the risk of undetected manufacturing defects.

[0125] Please see Figure 7 In one embodiment, another flowchart illustrating a method for detecting manufacturing defects in an FPGA chip is provided. Figure 7 In the process of selecting the circuit under test, peripheral auxiliary circuits are involved. The peripheral auxiliary circuits are the manufacturing defect detection of the FPGA chip in this embodiment of the invention. The peripheral auxiliary circuits can be set as needed to include whether to include insertion circuits and the number of insertion circuits. The logic netlist and software netlist of the circuit under test are extracted, and test vectors and configuration vectors are generated by combining them with the DFT netlist generated by the peripheral auxiliary circuits, so as to realize automated testing through ATE.

[0126] Please see Figure 8 Based on the same inventive concept as the above embodiments, one embodiment of the present invention also provides a manufacturing defect detection device for FPGA chips, applicable to the manufacturing defect detection method for FPGA chips as described above, comprising:

[0127] The port classification module 10 is used to select the circuit under test in the FPGA chip under test and classify the ports in the circuit under test into different ports, including data input ports, data output ports, scan input ports and scan output ports.

[0128] DFT netlist extraction module 20 is used to extract the DFT netlist of the circuit under test using a detection unit connected to the circuit under test.

[0129] The vector output module 30 allows the user to extract the logic netlist and software netlist of the circuit under test, combine the DFT netlist with the logic netlist and software netlist respectively, and output the corresponding test vector and configuration vector respectively.

[0130] The manufacturing defect detection module is used to perform manufacturing defect detection on the FPGA chip under test using test vectors and configuration vectors, and obtain the manufacturing defect detection results of the chip under test.

[0131] It is understood that the above-described device embodiments correspond to the method embodiments of the present invention, and can implement the FPGA chip manufacturing defect detection method provided by the above-described embodiments of the present invention.

[0132] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0133] Based on the above embodiments of the FPGA chip manufacturing defect detection method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the FPGA chip manufacturing defect detection method of any embodiment of the present invention.

[0134] For example, in this embodiment, the computer program can be divided into one or more modules, one or more modules are stored in memory and executed by a processor to complete the present invention. One or more module elements can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in a terminal device.

[0135] Terminal devices can be computing devices such as desktop computers, laptops, handheld computers, and cloud servers. Terminal devices may include, but are not limited to, processors and memory.

[0136] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0137] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the FPGA chip manufacturing defect detection method described in any of the above-described method embodiments of the present invention.

[0138] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0139] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A manufacturing defect detection circuit for an FPGA chip, characterized in that, include: The system includes a processing module and at least one detection module, wherein the detection module includes at least one scanning circuit. The scanning circuit includes several data input ports, several data output ports, several scan input ports, several scan output ports, and several scanning units; wherein, the data input port of each scanning circuit is connected to the data input port of a corresponding scanning unit, and the data output port of each scanning circuit is connected to the data output port of a corresponding scanning unit; the scan input ports and scan output ports of several scanning units are connected sequentially to form a scanning chain; The data input port of the scanning circuit is connected to the data output port of the circuit under test, and the data output port of the scanning circuit is connected to the data input port of the circuit under test; wherein, the circuit under test is the circuit under test in the FPGA chip under test. The scanning circuit is used to scan the physical instances in the circuit under test, obtain the test instances corresponding to the physical instances, and obtain the DFT netlist of the circuit under test based on the test instances. The processing module is used to extract the logic netlist and software netlist of the circuit under test, and combine the DFT netlist with the logic netlist and the software netlist respectively to generate test vectors and configuration vectors, so as to perform manufacturing defect testing based on the test vectors and configuration vectors, and obtain the manufacturing defect detection results of the FPGA chip under test.

2. The manufacturing defect detection circuit for the FPGA chip as described in claim 1, characterized in that, When the number of data output ports of the circuit under test is inconsistent with the number of data input ports of the scanning circuit, the detection module further includes a first insertion circuit; The first insertion circuit includes several data input ports and several data output ports; The number of data input ports of the first insertion circuit is the same as the number of data output ports of the circuit under test; the number of data output ports of the first insertion circuit is the same as the number of data input ports of the scanning circuit. The data input port of the first insertion circuit is connected to the data output port of the circuit under test in a one-to-one correspondence; the data output port of the first insertion circuit is connected to the data input port of the scanning circuit in a one-to-one correspondence.

3. The manufacturing defect detection circuit for the FPGA chip as described in claim 1, characterized in that, When the number of data input ports of the circuit under test is inconsistent with the number of data output ports of the scanning circuit, the detection module further includes a second insertion circuit; The second insertion circuit includes several data input ports and several data output ports; The number of data input ports of the second insertion circuit is the same as the number of data output ports of the scanning circuit; the number of data output ports of the second insertion circuit is the same as the number of data input ports of the circuit under test. The data input port of the second insertion circuit is connected to the data output port of the scanning circuit in a one-to-one correspondence; the data output port of the second insertion circuit is connected to the data input port of the circuit under test in a one-to-one correspondence.

4. The manufacturing defect detection circuit for the FPGA chip as described in claim 1, characterized in that, The step of obtaining the DFT netlist of the circuit under test based on the test instance includes: Determine the cascaded output port and cascaded input port of each test instance, and determine the connection relationship of the test instances based on the cascaded output port and cascaded input port; The test instances are assembled into a DFT netlist based on the connection relationships.

5. The manufacturing defect detection circuit for the FPGA chip as described in claim 1, characterized in that, It also includes several sets of detection modules, each set of detection modules includes n detection modules, where n is a natural number greater than or equal to 2; The cascaded output of the first to n-1th detection modules in each group is connected to the cascaded input of the next detection module, and the scan output is connected to the scan input of the next detection module. The logic state of the cascaded input terminal of the first detection module in each group of detection modules is determined according to the working state of the circuit under test, and the cascaded output terminal of the nth detection module is left floating, wherein the logic state is 0, 1 or floating.

6. A method for detecting manufacturing defects in an FPGA chip, characterized in that, A manufacturing defect detection circuit applicable to the FPGA chip as described in any one of claims 1-5, comprising: Select the circuit under test in the FPGA chip under test, and classify the ports in the circuit under test into different ports, wherein the different ports include data input ports, data output ports, scan input ports and scan output ports; The DFT netlist of the circuit under test is extracted using a detection unit connected to the circuit under test. Extract the logic netlist and software netlist of the circuit under test, combine the DFT netlist with the logic netlist and software netlist respectively, and output the corresponding test vector and configuration vector respectively; The test vector and the configuration vector are used to detect manufacturing defects in the FPGA chip under test, and the manufacturing defect detection results of the chip under test are obtained.