Test circuit integration method, device, electronic equipment and computer storage medium

By parsing chip source design files and automatically inserting test modules, the problems of high error rate and low efficiency caused by manual connection in DFT testing are solved, and efficient test circuit integration is achieved.

CN118350324BActive Publication Date: 2024-09-03XIAN JIANSI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410785864.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-03
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

In existing DFT testing, testers need to manually connect the test circuit module to the chip circuit, resulting in high error rates and low testing efficiency.

Method used

By parsing the source design file of the chip into a preset data structure, the connection relationship between the test module and the chip circuit function module is determined, the test module is automatically inserted into the source file, and the target file is generated to achieve automatic testing without manual writing.

Benefits of technology

It reduces the test error rate, improves the test efficiency, and ensures that the test circuit can be successfully inserted into the chip circuit for testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118350324B
    Figure CN118350324B
Patent Text Reader

Abstract

The present invention discloses a test circuit integration method, device, electronic device and computer storage medium, which belongs to the field of integrated circuit design and test technology. The method includes: parsing the source design file of the chip into a source file of a preset data structure; based on the DFT test method, determining multiple test modules included in the test circuit; based on the source file, determining the connection relationship between the multiple test modules and each functional module of the chip circuit; inserting the multiple test modules into the source file according to the connection relationship to obtain a target file. The method can automatically insert the test circuit into the chip circuit to obtain a file for simulation testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of integrated circuit design and testing, and in particular to a test circuit integration method, device, electronic equipment and computer storage medium. Background Art

[0002] Chips play a vital role in electronic devices. They are the core components for realizing device functions. The stability and accuracy of their internal structures are crucial and can directly affect the yield of products. Therefore, chip testing is an essential part of chip production.

[0003] Design for Testability (DFT) is a method that considers test requirements during the integrated circuit design phase. Through DFT testing, defects can be detected during the chip manufacturing process, so that they can be handled in a timely manner to improve the chip yield. DFT testing is to insert a unique test circuit into the chip circuit being tested, apply stimulation, and check whether the output is consistent with the expected result to determine the defect status of the chip circuit.

[0004] However, DFT testing requires testers to manually connect various test modules included in the test circuit to the chip circuit. Manual connection has a high error rate and results in low test efficiency. Summary of the invention

[0005] The present disclosure provides a test circuit integration method, device, electronic device and computer storage medium; the test circuit can be automatically inserted into a chip circuit to obtain a file for simulation testing.

[0006] The technical solution of the present disclosure is achieved as follows:

[0007] In the first aspect, the present disclosure provides a test circuit integration method, which includes: parsing the source design file of the chip into a source file of a preset data structure; based on the DFT test method, determining multiple test modules included in the test circuit; based on the source file, determining the connection relationship between the multiple test modules and each functional module of the chip circuit; inserting the multiple test modules into the source file according to the connection relationship to obtain a target file. In this way, by parsing the source design file into a source file of a preset data structure that is easy to operate on the node, and then inserting the multiple test modules corresponding to the DFT test method to be executed into the source file according to the connection relationship to obtain the target file, for different DFT tests that the tester needs to perform, the test module can be automatically inserted into the chip circuit without the need for the tester to manually write, thereby reducing the error rate and improving the test efficiency.

[0008] In some embodiments of the present disclosure, after inserting multiple test modules into a source file according to the connection relationship to obtain a target file, the method further includes: converting the target file into a target design file, the target design file having the same format as the source design file, so that subsequent simulation tests can directly use the target design file.

[0009] In some embodiments of the present disclosure, before inserting multiple test modules into a source file according to a connection relationship to obtain a target file, the method further includes: determining whether a source connection object and a destination connection object in the connection relationship meet a connection condition based on the connection relationship; inserting multiple test modules into the source file according to the connection relationship to obtain a target file, including: when the connection condition is met, inserting multiple test modules into the source file according to the connection relationship to obtain a target file. In this way, before executing the connection, ensure that both ends included in the connection relationship meet the connection condition, so that the test circuit can be successfully inserted into the chip circuit and can be successfully tested.

[0010] In some embodiments of the present disclosure, after determining whether the source connection object and the destination connection object in the connection relationship meet the connection condition based on the connection relationship, the method further includes: outputting an error message if the connection condition is not met. For the connection relationship that does not meet the connection condition, an error message is output to facilitate the tester to correct it in time.

[0011] In some embodiments of the present disclosure, the connection condition includes at least one of the following: the source connection object and the destination connection object exist, the bit widths of the source connection object and the destination connection object match, the destination connection object is vacant, and the destination connection object is occupied and the remaining bits match the bit width of the source connection object. By setting different connection conditions, both ends of the connection relationship are fully checked to ensure that the test circuit can detect the chip circuit after the final connection.

[0012] In some embodiments of the present disclosure, the source design file of the chip is parsed into a source file of a preset data structure, including: decomposing the source design file into multiple tags, each tag is used to indicate type information and position information in the source design file; according to the grammatical rules of the source design file, the multiple tags are converted into a tree data structure to obtain the source file. Since the tree data structure has a clear hierarchical relationship and is easy to insert, delete and search, parsing the source design file into a tree data structure makes it easier to insert a test module.

[0013] In some embodiments of the present disclosure, multiple test modules are inserted into a source file according to a connection relationship to obtain a target file, including: creating instances of test modules and functional modules according to the connection relationship; generating a cross-layer transmission port when the source connection object and the destination connection object of the connection relationship are cross-layer, so that the source connection object and the destination connection object are connected through the cross-layer transmission port; generating a connection line when the source connection object of the connection relationship is suspended and the type is a port or a pin, so as to connect the source connection object and the destination connection object through the connection line; performing a connection operation to insert multiple test modules into the source file to obtain a target file. In this way, for test modules and functional modules that need to cross layers and be interconnected through pins or ports, it is ensured that they can be successfully connected through transmission ports and connection lines.

[0014] In a second aspect, the present disclosure provides a test circuit integration device, which includes: a parsing part, a generating part, a determining part, and an inserting part; the parsing part is configured to parse the source design file of the chip into a source file of a preset data structure; the generating part is configured to determine a plurality of test modules included in the test circuit based on a design for testability (DFT) test method; the determining part is configured to determine, based on the source file, a connection relationship between the plurality of test modules and the various functional modules of the chip circuit; the inserting part is configured to insert the plurality of test modules into the source file according to the connection relationship to obtain a target file.

[0015] In some embodiments of the present disclosure, the device also includes: a conversion part; the conversion part is configured to insert multiple test modules into a source file according to a connection relationship to obtain a target file, and then convert the target file into a target design file, and the format of the target design file is the same as that of the source design file.

[0016] In some embodiments of the present disclosure, the determination part is also configured to insert multiple test modules into the source file according to the connection relationship to obtain the target file, based on the connection relationship, to determine whether the source connection object and the destination connection object in the connection relationship meet the connection conditions; the insertion part is specifically configured to insert multiple test modules into the source file according to the connection relationship to obtain the target file when the connection conditions are met.

[0017] In some embodiments of the present disclosure, the device also includes: an output part; the output part is configured to output error information if the connection conditions are not met after determining whether the source connection object and the destination connection object in the connection relationship meet the connection conditions based on the connection relationship.

[0018] In some embodiments of the present disclosure, the connection conditions include at least one of the following: the source connection object and the destination connection object exist, the bit widths of the source connection object and the destination connection object match, the destination connection object is left vacant, the destination connection object is occupied and the remaining bits match the bit width of the source connection object.

[0019] In some embodiments of the present disclosure, the parsing part is configured to decompose the source design file into multiple tags, each tag is used to indicate type information and position information in the source design file; according to the grammatical rules of the source design file, the multiple tags are converted into a tree data structure to obtain the source file.

[0020] In some embodiments of the present disclosure, the insertion part is specifically configured to create instances of test modules and functional modules based on the connection relationship; when the source connection object and the destination connection object of the connection relationship are across layers, generate a cross-layer transmission port to connect the source connection object and the destination connection object through the cross-layer transmission port; when the source connection object of the connection relationship is suspended and the type is a port or a pin, generate a connection line to connect the source connection object and the destination connection object through the connection line; and perform a connection operation to insert multiple test modules into the source file to obtain a target file.

[0021] In a third aspect, the present disclosure provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the test circuit integration method described in the first aspect.

[0022] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a program or instruction, which, when executed by a processor, implements the steps of the test circuit integration method as described in the first aspect.

[0023] In a fifth aspect, the present disclosure provides a computer program product, wherein the computer program product includes a computer program or instructions. When the computer program product runs on a processor, the processor executes the computer program or instructions to implement the steps of the test circuit integration method as described in the first aspect.

[0024] In a sixth aspect, the present disclosure provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the test circuit integration method as described in the first aspect.

[0025] The present disclosure provides a test circuit integration method, including: parsing the source design file of the chip into a source file of a preset data structure; based on the DFT test method, determining multiple test modules included in the test circuit; based on the source file, determining the connection relationship between the multiple test modules and each functional module of the chip circuit; inserting the multiple test modules into the source file according to the connection relationship to obtain a target file. In this way, by parsing the source design file into a source file of a preset data structure that is easy to operate on the node, and then inserting the multiple test modules corresponding to the DFT test method to be executed into the source file according to the connection relationship to obtain the target file, for different DFT tests that the tester needs to perform, the test module can be automatically inserted into the chip circuit without the need for the tester to manually write, thereby reducing the error rate and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 One of the flow charts of the test circuit integration method provided by the present disclosure;

[0027] Figure 2a A schematic diagram of a circuit represented in RTL provided for the present disclosure;

[0028] Figure 2b A schematic diagram of a circuit represented by a netlist provided for the present disclosure;

[0029] Figure 3 The second flowchart of the test circuit integration method provided by the present disclosure;

[0030] Figure 4 The third flowchart of the test circuit integration method provided by the present disclosure;

[0031] Figure 5 The fourth flowchart of the test circuit integration method provided by the present disclosure;

[0032] Figure 6 A schematic diagram of a cross-layer transmission port provided by the present disclosure;

[0033] Figure 7 A structural block diagram of a test circuit integrated device provided by the present disclosure;

[0034] Figure 8 A schematic diagram of the hardware structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the present disclosure to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of the present application.

[0036] In order to facilitate understanding of the solution of the present disclosure, the following first explains the terms involved in the present disclosure:

[0037] Test circuit: used to access the chip circuit to test the chip in test mode. In order to achieve different test purposes, different DFT test methods are used to test the chip circuit. Different DFT test methods correspond to different test circuits, and different test circuits include different test modules. Common DFT test methods include: boundary scan test, scan chain insertion, built-in self-test, testability logic insertion, clock control, etc.

[0038] Test module: also known as test intellectual property (IP) core, which is a pre-designed, verified, and reusable circuit module. After the DFT test method is determined, it is necessary to generate the test module used to implement the test method and the port information included in the test module, so as to test the chip circuit through each test module. For example, the test IP corresponding to the boundary scan test includes: test access port controller, instruction register, data register, boundary register, internal logic control circuit, timing control, configuration memory, etc.

[0039] DFT testing is a technology that takes testing requirements into consideration during the chip design phase. Its purpose is to introduce specific structures and logic during the design process so that chips can be tested more efficiently and accurately during the production process to ensure chip quality and performance.

[0040] However, in DFT testing, the test modules corresponding to the test circuit need to be connected to the chip circuit, that is, the designer writes each test module in the test circuit into the design file corresponding to the chip circuit, obtains the design file of the chip circuit integrated with the test module, and performs subsequent simulation tests based on the design file. However, this process is time-consuming and prone to errors, resulting in low DFT test efficiency.

[0041] Therefore, the present disclosure aims to provide a test circuit integration method capable of automatically integrating a test circuit into a chip circuit. Figure 1 As shown, it is a flow chart of a test circuit integration method provided by the present disclosure, and the method may include the following steps S101 to S104.

[0042] In step S101, the source design file of the chip is parsed into a source file of a preset data structure.

[0043] The source design file of the chip defines the logic and behavior of the chip in detail. The source design file of the chip is usually written in hardware description language (which can describe complex digital circuits in text form). The file types of hardware description language include: Register Transfer Level (RTL) and Netlist, such as Figure 2a As shown in FIG. 1 , a schematic diagram of a circuit represented by RTL is shown. In the figure, register 1 and register 2 are taken as examples. In RTL, the circuit is abstracted into a series of registers and a path for transmitting data between them. Figure 2b The schematic diagram of the circuit is represented by a netlist. In the figure, two AND gates are used as an example. The netlist describes the physical implementation of the circuit, including the type of logic gates, the connection method, and the signal flow between them. Among them, the hardware description language file is at the register transfer level before synthesis, which represents the logical function and behavior of the circuit and does not involve the details of the physical implementation; the hardware description language file after synthesis is converted into a netlist form, which contains the physical implementation details of the circuit, such as the circuit description at the gate level or lower level.

[0044] Since the tree-like data structure clearly represents the hierarchical relationship between data, intuitively displays the parent-child relationship between data items, facilitates the understanding and display of data with nested or contained relationships, and is also easy to find, delete and insert, therefore, in order to facilitate the test circuit including each test module to be easily inserted into the source file, the preset data structure file, the preset data structure can be a tree-like data structure, such as: abstract syntax tree, concrete syntax tree, syntax analysis tree, etc. The tree-like data structure is only an implementable example and is not intended to be a limitation of the present disclosure. Other data structures that can be easily analyzed and inserted are also within the scope of protection of the present disclosure.

[0045] The parsed source file includes: the instantiation relationship between various functional modules of the chip, the port information of each functional module and the connection information of each port.

[0046] In step S102, based on the DFT test method, a plurality of test modules included in the test circuit are determined.

[0047] The DFT test method is determined based on user configuration, and the user configures the DFT test method based on test requirements.

[0048] In step S103, based on the source file, the connection relationship between the plurality of test modules and each functional module of the chip circuit is determined.

[0049] The connection information between the multiple test modules and the functional modules corresponding to each test method is pre-set. Based on the source file (the source file includes the functional modules), the connection relationship between the test modules and the functional modules of the chip circuit is determined. The connection relationship indicates how the test modules and the test modules, and the test modules and the functional modules are interconnected.

[0050] In step S104, multiple test modules are inserted into the source file according to the connection relationship to obtain a target file.

[0051] According to the connection relationship, each test circuit is connected to the source file to obtain the target file. For example, if the source file is a tree data structure, according to the connection relationship, the test module is directly connected to a certain idle node, or the original connection relationship is interrupted first, and then the test module is connected. In this way, each test module of the test circuit is inserted into the source file to obtain the target file including the test circuit, so that the tester can test the chip circuit based on the target file.

[0052] It should be noted that the test module is usually an RTL file; if the type of the source design file is RTL, the test module can be connected according to the connection relationship to be inserted into the chip circuit; if the type of the source design file is a netlist, after the test module is inserted into the chip circuit according to the actual physical implementation, it is necessary to perform another synthesis to convert the inserted test module into a netlist.

[0053] Optionally, after obtaining the target file, the target file can be converted into a file of a different format according to subsequent needs. Since the file that the simulation test of the chip relies on is a hardware description language file, in some embodiments of the present disclosure, the target file is converted into a target design file, which has the same format as the source design file, i.e., a hardware description language file.

[0054] In order to successfully insert the test circuit into the chip circuit, it is necessary to ensure that the two ends included in the connection relationship can eventually be successfully connected. Therefore, in some embodiments of the present disclosure, Figure 1 ,like Figure 3 As shown, the above step S104 inserts multiple test modules into the source file according to the connection relationship. Before obtaining the target file, the test circuit integration method also includes the following steps S105 and S106. The above step S104 can be specifically implemented by the following step S104a.

[0055] In step S105, based on the connection relationship, it is determined whether the source connection object and the destination connection object in the connection relationship meet the connection condition.

[0056] Optionally, the connection condition includes at least one of the following: the source connection object and the destination connection object included in the connection relationship exist, the bit widths of the source connection object and the destination connection object match, the destination connection object is suspended, the destination connection object is occupied and the remaining bits match the bit width of the source connection object.

[0057] Specifically, if the connection relationship is: the source end is port 1 of test module A, and the destination end is port 2 of function module B. Then detect whether the connection object in the connection relationship exists, that is, detect whether the generated test module includes test module A, whether test module A includes port 1, and detect whether function module B exists in the source file, whether function module B includes port 2; detect whether the target bit width indicated by the connection relationship matches the bit width of the connected port, that is, detect whether the bit widths of port 1 and port 2 match; detect whether the connected port is suspended, that is, detect whether port 2 is suspended; detect whether the connected port is occupied and the remaining target bit width matches, that is, if port 2 is occupied, whether the remaining bit width of port 2 matches the bit width of port 1.

[0058] It should be noted that the connection conditions involved in the present disclosure are only basic tests, and more connection conditions can be set according to actual needs, such as checking the source connection object, etc., which are determined according to actual needs and are not specifically limited in the present disclosure.

[0059] In step S104a, when the connection condition is met, multiple test modules are inserted into the source file according to the connection relationship to obtain a target file.

[0060] In step S106, when the connection condition is not satisfied, an error message is output.

[0061] The error information includes a detailed error description. For example, if port 1 does not exist, an error message indicating that port 1 does not exist is output. If the bit widths of port 1 and port 2 do not match, the bit width information of port 1 and the bit width information of port 2 as well as an error message indicating that the two do not match are output.

[0062] Since the tree data structure has a clear hierarchical relationship and is easy to insert, delete and search, in some embodiments of the present disclosure, Figure 1 ,like Figure 4 As shown, the above step S101 parses the source design file of the chip into a source file with a preset data structure, which can be specifically implemented by the following steps S101a and S101b.

[0063] In step S101a, the source design file is decomposed into a plurality of tags.

[0064] Each tag is used to indicate type information. Tags can be understood as the smallest unit. The types of tags include: keywords (such as module, endmodule, input, output, etc.), identifiers (such as variable names, module names, etc.), data types (such as reg, wire, integer, etc.), operators (such as addition, subtraction, multiplication, division, left shift, right shift, etc.), constants (such as numbers, strings, etc.), special symbols (such as {}, [], (), etc.).

[0065] For example, a section in a hardware description language file is:

[0066] module my_chip (

[0067] input wire clk,

[0068] output reg [7:0] led);

[0069] Endmodule

[0070] The token sequence obtained by decomposition is: keyword module; identifier my_chip; left bracket (; keyword input; keyword wire; identifier clk; comma,; keyword output; keyword reg; left square bracket [, number 7, colon:, number 0, right square bracket]; identifier led; right bracket); keyword endmodule.

[0071] In step S101b, multiple tags are converted into a tree data structure according to the grammatical rules of the source design file to obtain a source file.

[0072] The source design file is lexically analyzed and decomposed into multiple tags; then the generated tags are parsed grammatically to obtain a source file with a tree data structure. Specifically, the source design file includes multiple sub-files, each of which is used to describe a functional module, and each sub-file is decomposed into multiple tags. According to the grammatical rules of the source design file, the multiple tags decomposed from each sub-file are converted into tree structure data to obtain subtrees, and the multiple subtrees are combined according to the hierarchical relationship of each subtree to obtain the source file. Take the source design file as a hardware coding language file as an example, that is, the decomposed tags are organized according to the grammatical rules of the hardware coding language, and the nodes in the tree data structure represent the grammatical structure in the code, such as expressions, statements, blocks, etc. Take the tree data structure as an abstract syntax tree as an example, that is, according to the grammatical rules of the hardware coding language, nodes representing different grammatical structures are created, and these nodes are connected in a tree structure. In the case where the source design file includes multiple hardware coding language files, each hardware coding language file constructs an abstract syntax tree, and then the constructed multiple abstract syntax trees are constructed into a comprehensive abstract syntax tree.

[0073] The present disclosure converts a source design file into a target file of a tree data structure (such as an abstract syntax tree), and utilizes the characteristics of the tree data structure that is clear in hierarchy and easy to insert, so as to facilitate the subsequent insertion of a test circuit.

[0074] In some embodiments of the present disclosure, Figure 1 ,like Figure 5 As shown, the above step S104 inserts multiple test modules into the source file according to the connection relationship to obtain the target file, which can be specifically implemented through the following steps S104b to S104e.

[0075] In step S104b, instances of the test module and the functional module are created according to the connection relationship.

[0076] The number of ports is defined in the module (e.g. test module A includes 2 ports and 1 pin). To use the module, you need to instantiate the module. After instantiation (e.g. the instantiated test module A includes port 1 and port 2, pin 1), the ports included in the module can be used for connection. That is, when two modules need to be interconnected, they are connected through the instantiated ports.

[0077] In step S104c, when the source connection object and the destination connection object of the connection relationship are across layers, a cross-layer transmission port is generated so that the source connection object and the destination connection object are connected through the cross-layer transmission port.

[0078] In a chip, different logic layers cannot be directly connected to each other. It is necessary to generate through-layer holes between layers, that is, transmission ports for cross-layer transmission. In this way, source connection objects and destination connection objects in different logic layers can be interconnected through the cross-layer transmission ports.

[0079] For example, Figure 6 As shown, both module B and module D are instances created under module A. Module B and module D belong to the same layer. If a connection is required, they can be directly connected according to the connection relationship. However, module C is an instance created under module B. If module C is to be connected to module D, it cannot be directly connected because of the layer of module B in the middle. Therefore, a cross-layer transmission port 601 for cross-layer transmission needs to be generated in module B. Module C can be connected to module D through the cross-layer transmission port 601. Since the cross-layer transmission port needs to be used in the instance of module B, a cross-layer transmission port needs to be added to module B. Accordingly, module B is an instance created under module A, and the cross-layer transmission port also needs to be added to module A. It should be noted that the module here can be a functional module or a test module.

[0080] In step 104d, when the source connection object of the connection relationship is dangling and the type is a port or a pin, a connection line is generated to connect the source connection object and the destination connection object through the connection line.

[0081] The types of connection objects include: input pins and output pins (collectively referred to as pins), input ports and output ports (collectively referred to as ports), connection lines, and constants. When the source connection object is suspended and the type is port or pin, the pins and ports cannot be directly connected to the destination connection object and need to be connected with a connection line. If the source connection object is not suspended, it means that the source connection object is already connected to other objects, which means that the source connection object already has a connection line.

[0082] In step S104e, a connection operation is performed to insert multiple test modules into the source file to obtain a target file.

[0083] Perform the connection operation, that is, insert the test module into the chip circuit through the established connection. In this way, for some source connection objects and destination connection objects that cannot be directly connected, the test module inserted into the chip circuit can be tested normally by using the connection line and the transmission port between layers.

[0084] Exemplarily, multiple test modules are inserted into the source file according to the connection relationship, and the target file can be obtained by commands: Create_instance, Create_net, Create_port, Delete_connection, Move_connection, Create_connection. These commands can be used in a scripting environment or a command line interface to automate the design process. Through these commands, the test modules can be quickly integrated into the chip circuit.

[0085] Specifically, Create_instance: used to instantiate a specified test module in another functional module; such as Create_instance hierInstPath–of_module mod_spec, hierInstPath: the path name of the instance to be created, mod_spec: the name of the instantiated test module. Create_net: used to create a connection line in the specified instance; such as the command: Create_net hier_net_name, hier_net_name: specify the instance name (hier) and the name of the connection line (net_name).

[0086] Create_port: used to create a new port in the specified instance and specify the direction; for example: Create_port port_name [-on_module obj_spec] [-direction input|output|inout], port_name: specifies the name of the port to be created, the name cannot be repeated, obj_spec: if the user specifies a module, then a port is created at the level where the specified module is located, if not specified, then a port is created at the current level.

[0087] Delete_connection: used to disconnect the pin or port; such as Delete_connectionsobject_spec, obj_spec: check whether the specified object_spec path exists (that is, check whether the pin or port that requires the port exists). If it does not exist, report an error directly. If it exists, perform the operation again.

[0088] Move_connection: used to disconnect the original connection relationship and generate a new connection relationship; such as Move_connections–from object_spec1–to object_spec2 [-net_name net_name], object_spec1 disconnects the original connection and connects to object_spec2. net_name: can be specified or not. If not specified, it can be automatically created if necessary.

[0089] Create_connection: used to connect two connection objects; for example: craete_connections -source object_spec1 -dest object_spec2 [-net_name net_name], connect from the source specified port object_spec1 to the destination specified port object_spec2, net_name: can be specified or not, if specified, it can be automatically created if necessary.

[0090] It should be noted that among the above five commands, the Create_instance command must be used when inserting a test module into a chip circuit, and the remaining commands are selected according to different situations of the existing chip circuit.

[0091] Figure 7 FIG. 7 is a structural block diagram of a test circuit integrated device 70 shown in the present disclosure. Figure 7 As shown, the device includes: a parsing part 701, a generating part 702, a determining part 703, and an inserting part 704;

[0092] The parsing part 701 is configured to parse the source design file of the chip into a source file of a preset data structure; the generating part 702 is configured to determine the multiple test modules included in the test circuit based on the testability design DFT test method; the determining part 703 is configured to determine the connection relationship between the multiple test modules and the various functional modules of the chip circuit based on the source file; the inserting part 704 is configured to insert the multiple test modules into the source file according to the connection relationship to obtain the target file.

[0093] In some embodiments of the present disclosure, the device also includes: a conversion part; the conversion part is configured to insert multiple test modules into a source file according to a connection relationship to obtain a target file, and then convert the target file into a target design file, and the format of the target design file is the same as that of the source design file.

[0094] In some embodiments of the present disclosure, the determination part 703 is also configured to insert multiple test modules into the source file according to the connection relationship to obtain the target file, based on the connection relationship, to determine whether the source connection object and the destination connection object in the connection relationship meet the connection condition; the insertion part 704 is specifically configured to insert multiple test modules into the source file according to the connection relationship to obtain the target file when the connection condition is met.

[0095] In some embodiments of the present disclosure, the device also includes: an output part; the output part is configured to output error information if the connection conditions are not met after determining whether the source connection object and the destination connection object in the connection relationship meet the connection conditions based on the connection relationship.

[0096] In some embodiments of the present disclosure, the connection conditions include at least one of the following: the source connection object and the destination connection object exist, the bit widths of the source connection object and the destination connection object match, the destination connection object is left vacant, the destination connection object is occupied and the remaining bits match the bit width of the source connection object.

[0097] In some embodiments of the present disclosure, the parsing part 701 is configured to decompose the source design file into multiple tags, each tag is used to indicate type information and position information in the source design file; according to the grammatical rules of the source design file, the multiple tags are converted into a tree data structure to obtain the source file.

[0098] In some embodiments of the present disclosure, the insertion part 704 is specifically configured to create instances of test modules and functional modules based on the connection relationship; when the source connection object and the destination connection object of the connection relationship are across layers, generate a cross-layer transmission port to connect the source connection object and the destination connection object through the cross-layer transmission port; when the source connection object of the connection relationship is suspended and the type is a port or a pin, generate a connection line to connect the source connection object and the destination connection object through the connection line; perform a connection operation to insert multiple test modules into the source file to obtain a target file.

[0099] It should be noted that the above-mentioned test circuit integrated device can be the electronic device in the above-mentioned method embodiment of the present application, or it can be a functional module and / or functional entity in the electronic device that can realize the functions of the device embodiment, and the embodiment of the present application is not limited.

[0100] In the embodiments of the present application, each module can implement the test circuit integration method provided in the above method embodiments and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0101] Please refer to Figure 8, which shows a structural block diagram of an electronic device provided by an exemplary embodiment of the present disclosure. In some examples, the electronic device can be at least one of a smart phone, a smart watch, a desktop computer, a laptop, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop. The electronic device has a communication function and can access a wired network or a wireless network. The electronic device can generally refer to one of a plurality of terminals, and those skilled in the art can know that the number of the above terminals can be more or less. It can be understood that the electronic device undertakes the calculation and processing work of the technical solution of the present disclosure, and the present disclosure does not limit this.

[0102] like Figure 8 As shown, the electronic device in the present disclosure may include one or more of the following components: a processor 810 and a memory 820 .

[0103] Optionally, the processor 810 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. Optionally, the processor 810 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 810 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a baseband chip. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content that needs to be displayed on the touch display; the NPU is used to implement artificial intelligence (AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above baseband chip may not be integrated into the processor 810, but may be implemented by a separate chip.

[0104] The memory 820 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device, etc.

[0105] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a display screen, a camera assembly, a microphone, a speaker, a radio frequency circuit, an input unit, a sensor (such as an acceleration sensor, an angular velocity sensor, a light sensor, etc.), an audio circuit, a WiFi module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0106] The present disclosure also provides a computer-readable storage medium storing at least one instruction, wherein the at least one instruction is used to be executed by a processor to implement the test circuit integration method described in the above embodiments.

[0107] The present disclosure also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes to implement the test circuit integration method described in the above-mentioned embodiments.

[0108] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned test circuit integration method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0109] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0110] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, servers and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0112] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0114] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present disclosure can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by a general or special-purpose computer.

[0115] It should be noted that the technical solutions described in the present disclosure can be combined arbitrarily without conflict.

[0116] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A test circuit integration method, characterized in that: The method comprises: Decomposing a source design file into a plurality of tags, each tag being used to indicate type information and position information in the source design file; According to the grammatical rules of the source design file, the multiple tags are converted into a tree data structure to obtain a source file; Based on the DFT test method of testability design, determine the multiple test modules included in the test circuit; Based on the source file, determining the connection relationship between the multiple test modules and each functional module of the chip circuit; Create instances of test modules and functional modules based on the connection relationship; In the case where the source connection object and the destination connection object of the connection relationship cross layers, generating a cross-layer transmission port so that the source connection object and the destination connection object are connected through the cross-layer transmission port; When the source connection object of the connection relationship is dangling and is of a port or a pin type, generating a connection line to connect the source connection object and the destination connection object through the connection line; A connection operation is performed to insert the multiple test modules into the source file to obtain a target file.

2. The method according to claim 1, characterized in that After the connection operation is performed, the method further includes: The target file is converted into a target design file, wherein the target design file has the same format as the source design file.

3. The method according to claim 1, characterized in that Before creating the instances of the test module and the function module according to the connection relationship, the method further includes: Based on the connection relationship, determining whether a source connection object and a destination connection object in the connection relationship meet a connection condition; The step of creating instances of the test module and the functional module according to the connection relationship includes: When the connection conditions are met, instances of the test module and the functional module are created according to the connection relationship.

4. The method according to claim 3, characterized in that After creating the instances of the test module and the function module according to the connection relationship, the method further includes: If the connection conditions are not met, an error message is output.

5. The method according to claim 3 or 4, characterized in that: The connection condition includes at least one of the following: The source connection object and the destination connection object exist, the bit widths of the source connection object and the destination connection object match, the destination connection object is vacant, the destination connection object is occupied and the remaining bits match the bit width of the source connection object.

6. A test circuit integrated device, characterized in that: The device comprises: a parsing part, a generating part, a determining part, a creating part and an executing part; The parsing part is configured to decompose the source design file into a plurality of tags, each tag is used to indicate type information and position information in the source design file; and, according to the grammatical rules of the source design file, converting the plurality of tags into a tree data structure to obtain a source file; The generating part is configured to determine a plurality of test modules included in the test circuit based on the design for testability DFT test method; The determining part is configured to determine the connection relationship between the plurality of test modules and each functional module of the chip circuit based on the source file; The creation part is configured to create instances of the test module and the function module according to the connection relationship; The generating part is further configured to generate a cross-layer transmission port when the source connection object and the destination connection object of the connection relationship cross layers, so that the source connection object and the destination connection object are connected through the cross-layer transmission port; And, in the case where the source connection object of the connection relationship is dangling and is of a port or a pin type, generating a connection line to connect the source connection object and the destination connection object through the connection line; The execution part is configured to perform a connection operation to insert the multiple test modules into the source file to obtain a target file.

7. An electronic device, characterized in that: The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the test circuit integration method as claimed in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the test circuit integration method according to any one of claims 1 to 5 are implemented.