Device, method and terminal for automatic cross-checking and optimizing CTL and DOFILE files

By automating cross-checking and optimizing the scan chain data of CTL and DOFILE files, the problem of cumbersome and inconsistent manual checking in the existing technology is solved, efficient file checking and optimization is achieved, and the reliability and consistency of the design are improved.

CN117494652BActive Publication Date: 2024-10-08SUZHOU POWERCORE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311516101.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2024-10-08
Estimated Expiration
2043-11-14

AI Technical Summary

Technical Problem

In the prior art, the scan chain data of CTL and DOFILE files are inconsistent, resulting in cumbersome manual inspection and prone to human errors, and there is a lack of effective automated cross-check and optimization devices.

Method used

Provides an automated cross-check and optimization device for CTL and DOFILE files, including a file input module, a scan chain analysis module, a cross-check module and an optimization module. It obtains scan chain data by parsing files, performs cross-checks, and performs cross-checks according to standards when necessary. File optimization fails data.

Benefits of technology

It accelerates the file inspection and optimization process, improves efficiency, reduces the possibility of human error, and improves design reliability and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117494652B_ABST
    Figure CN117494652B_ABST
Patent Text Reader

Abstract

The present invention provides an automated cross-checking and optimization device, method and terminal for CTL and DOFILE files. The scan chain data in the two files are obtained by parsing the CTL file and the DOFILE file, and the data of the two files are cross-checked. When there is an optimization requirement, the CTL file that fails the cross-check and / or the inappropriate data in the DOFILE file are automatically optimized according to a specified standard file. The present invention accelerates the process of checking and optimizing the CTL and DOFILE files, greatly improving the efficiency. The automated checking and optimization process reduces the possibility of human error and improves the reliability and consistency of the design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to an automatic cross-checking and optimizing device, method and terminal for CTL and DOFILE files. Background Art

[0002] CTL is a software language for high-level design for test (SOC DFT) of system-on-chip, just like COBOL. The language is oriented towards business applications and describing string processing algorithms, edited for text string manipulation. CTL can be used to capture all the data required to test each IP core in the device hierarchy. It enables clear communication of test-related information between core providers and system integrators with test issues on the system-on-chip. If successful, CTL, along with other standard test interface languages, will greatly promote IP cores and IP core test reuse in system-on-chip.

[0003] The DFT team uses custom scripts to customize the wrapper cells and create new CTL models for scan compression insertion at the macro level of the design. The new CTL model is created using the DFT compiler scan extraction flow, treating the wrapper chains as any other internal scan chain. Scan chain compression insertion is done at the top level using the new macro CTL model. The information represented in the CTL is partitioned across design configurations. These configurations are called test patterns. The CTL provides information about the available structures, characteristics of the design terminals, related connectivity test applications and test patterns.

[0004] The DOFILE file defines the scan chain and is used to define the clock, scan chain, scan group and pin constraints. That is, during the design rule checking phase, the test vector automatic generation tool will track the scan chain through the definition in the DOFILE file and the test program file.

[0005] The scan chain connects all the triggers in the design into a chain and drives them with a unified network scan clock. This allows the pre-designed scan pattern to be sent into the chip, and then the capture enable is turned on. In this way, the Q-end output of each trigger is transmitted to the combinational circuit they drive, and the D-end of the next-level trigger in the scan chain captures the output of the combinational circuit. Then the capture enable is disabled, and this set of vectors is compared with the expectations pre-calculated by the tool to determine whether there are manufacturing errors in the chip.

[0006] Because the scan chain data in the DOFILE and CTL files should be consistent, but due to human factors or other reasons, the scan chain data in the CTL and DOFILE files may be inconsistent.

[0007] There is no effective device for checking DOFILE files in the prior art, and all of them are manually checked by design engineers. To check the CTL file, the .tcd_scan file is first obtained through a tool, and then manually checked by engineers based on the .tcd_scan file. Since text data is very unintuitive, the file checking process and manual file optimization process in the prior art are very cumbersome, and manual checking is prone to human errors. Summary of the invention

[0008] In view of the above-mentioned shortcomings of the prior art, the object of the present invention is to provide an automated cross-checking and optimization device, method and terminal for CTL and DOFILE files, so as to solve the above-mentioned problems of the prior art.

[0009] To achieve the above-mentioned purpose and other related purposes, the present invention provides an automated cross-check and optimization device for CTL and DOFILE files, the device comprising: a file input module, used to input multiple target files and specify a standard file; wherein each input target file includes at least: a CTL file and a DOFILE file; a scan chain parsing module, connected to the file input module, used to parse each target file separately to obtain scan chain data corresponding to each target file; wherein the scan chain data includes: scan chain information corresponding to multiple scan chains arranged in sequence; a cross-check module, connected to the scan chain parsing module, used to cross-check the scan chain data of the CTL file and the DOFILE file, and record the corresponding check results; an optimization module, connected to the cross-check module, used to optimize the CTL file and / or DOFILE file that fails the cross-check by the scan chain data of the standard file when there is an optimization requirement, and record the corresponding optimization result.

[0010] In one embodiment of the present invention, the method of specifying the standard file includes: when each input target file also includes a configuration file for auxiliary inspection and optimization, specifying the configuration file as the standard file. When each input target file only includes a CTL file and a DOFILE file, specifying one of the CTL file and the DOFILE file as the standard file.

[0011] In one embodiment of the present invention, the scan chain information includes multiple information items, including: a scan chain name item corresponding to the scan chain, a scan chain length item, a scan chain enable item, a scan chain input item, a scan chain output item and a scan chain clock item.

[0012] In one embodiment of the present invention, cross-checking the scan chain data of the CTL file and the DOFILE file includes: performing a comparative check operation on the scan chain data in the CTL file and the DOFILE file based on the scan chain data of the standard file, and determining mismatches in the scan chain data of the CTL file and / or DOFILE file that fail the cross-check.

[0013] In one embodiment of the present invention, when the input configuration file is designated as a standard file, the comparison check operation includes: sequentially traversing the scan chain information of each scan chain in the scan chain data of the configuration file, and searching for the scan chain information of the corresponding scan chain in the scan chain data in the CTL file and the DOFILE file respectively; if the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain of the configuration file is compared with the corresponding information item of the corresponding scan chain in the CTL file and / or the DOFILE file in which the scan chain information of the scan chain is found, and if the comparison is inconsistent, obtain the mismatch items in the scan chain information of the corresponding scan chain in the CTL file and / or the DOFILE file with the configuration file; if the scan chain information of the corresponding scan chain is not found, each information item of the corresponding scan chain of the configuration file is used as the mismatch item of the corresponding scan chain in the CTL file and / or the DOFILE file in which the scan chain information of the scan chain is not found.

[0014] In one embodiment of the present invention, when the input CTL file or DOFILE file is designated as a standard file, the comparison check operation includes: sequentially traversing the scan chain information of each scan chain of the scan chain data of the CTL file or DOFILE file designated as the standard file, and searching for the scan chain information of the corresponding scan chain in the scan chain data in the CTL file or DOFILE file that is not designated as the standard file; if the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is compared with the corresponding information item of the corresponding scan chain in the CTL file or DOFILE file that is not designated as the standard file, and if the comparison is inconsistent, obtaining the mismatch items in the scan chain data of the CTL file or DOFILE file that is not designated as the standard file and the standard file; if the scan chain information of the corresponding scan chain is not found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is used as the mismatch item of the corresponding scan chain of the CTL file or DOFILE file that is not designated as the standard file.

[0015] In one embodiment of the present invention, optimizing a CTL file and / or DOFILE file that fails the cross check using scan chain data of a standard file includes: using information items corresponding to mismatch items in the scan chain data of the standard file, updating mismatch items in the CTL file and / or DOFILE file that fails the cross check, and obtaining optimized scan chain data in the CTL file and / or DOFILE file.

[0016] In one embodiment of the present invention, the device further includes: an automatic optimization selection module, connected to the optimization module, for determining whether to automatically optimize the CTL file and / or DOFILE file that fails the cross-check if the cross-check fails.

[0017] To achieve the above-mentioned purpose and other related purposes, the present invention provides an automated cross-checking and optimization method for CTL and DOFILE files, the method comprising: inputting multiple target files and specifying a standard file; parsing each target file separately to obtain scan chain data corresponding to each target file; cross-checking the scan chain data of the CTL file and the DOFILE file, and recording the corresponding inspection results; if there is still an optimization requirement, optimizing the CTL file and / or DOFILE file that fails the cross-check based on the scan chain data of the standard file, and recording the corresponding optimization results.

[0018] To achieve the above-mentioned objectives and other related objectives, the present invention provides an automated cross-checking and optimization terminal for CTL and DOFILE files, comprising: one or more memories and one or more processors; the one or more memories are used to store computer programs; the one or more processors are connected to the memories and are used to run the computer programs to execute the automated cross-checking and optimization method for the CTL and DOFILE files.

[0019] As described above, the present invention is an automated cross-check and optimization device, method and terminal for CTL and DOFILE files, which has the following beneficial effects: the present invention obtains scan chain data in the two files by parsing the CTL file and the DOFILE file, and cross-checks the data of the two files. It can also automatically optimize the CTL file that fails the cross-check and / or the inappropriate data in the DOFILE file according to the specified standard file when there is an optimization requirement; the present invention accelerates the process of checking and optimizing CTL and DOFILE files, greatly improving efficiency; and the automated inspection and optimization process reduces the possibility of human errors and improves the reliability and consistency of the design. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1Shown is a schematic diagram of the structure of an automated cross-checking and optimization device for CTL and DOFILE files in one embodiment of the present invention.

[0021] Figure 2 Shown is a schematic diagram of the structure of an automated cross-checking and optimization device for CTL and DOFILE files in one embodiment of the present invention.

[0022] Figure 3 Shown is a flowchart of an automated cross-checking and optimization method for CTL and DOFILE files in one embodiment of the present invention.

[0023] Figure 4 Shown is a flowchart of an automated cross-checking and optimization method for CTL and DOFILE files in one embodiment of the present invention.

[0024] Figure 5 Shown is a schematic diagram of the structure of an automated cross-check and optimization terminal for CTL and DOFILE files in one embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0026] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It should be understood that other embodiments may also be used, and that mechanical composition, structural, electrical and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present invention is limited only by the claims of the published patents. The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.

[0027] Throughout the specification, when a part is said to be "connected" to another part, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a part is said to "include" a certain constituent element, unless otherwise stated, it does not exclude other constituent elements, but means that other constituent elements may be included.

[0028] The terms first, second and third mentioned herein are used to describe various parts, components, regions, layers and / or segments, but are not limited thereto. These terms are only used to distinguish a certain part, component, region, layer or segment from other parts, components, regions, layers or segments. Therefore, the first part, component, region, layer or segment described below may refer to the second part, component, region, layer or segment within the scope of the present invention.

[0029] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.

[0030] The present invention provides an automated cross-checking and optimization device for CTL and DOFILE files. The device obtains scan chain data in the two files by parsing the CTL file and the DOFILE file, and cross-checks the data of the two files. When there is an optimization requirement, the device can also automatically optimize the CTL file that fails the cross-check and / or the inappropriate data in the DOFILE file according to a specified standard file. The present invention accelerates the process of checking and optimizing the CTL and DOFILE files, greatly improving the efficiency. The automated checking and optimization process reduces the possibility of human error, and improves the reliability and consistency of the design.

[0031] At the same time, in order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution in the embodiment of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the invention.

[0032] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:

[0033] <1> CTL (Core Test Language), Core Test Language (CTL) for Design for Test (DFT) language. CTL (P1450.6) is an extension of Standard Test Interface Language (STIL) and is used as a standard format for describing IP core and System on Chip (SOC) testing. CTL also helps in software testing of various electronic circuits.

[0034] <2> DOFILE, the wiring control file, is a definition of the scan chain, which is used to define the clock, scan chain, scan group and pin constraints. That is, during the design rule checking phase, the test vector automatic generation tool will track the scan chain through the definition in the DOFILE file and the test program file.

[0035] <3> SOC DFT, advanced test design for system on chip; in SoC design, the main optimization strategies of DFT include using built-in self-test, introducing boundary scan and using mixed mode scan.

[0036] <4> COBOL (Common Business-Oriented Language) is a process-oriented high-level programming language, mainly used for data processing. It is the most widely used high-level language in the world.

[0037] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.

[0038] like Figure 1 A schematic diagram of the structure of an automated cross-checking and optimization device for CTL and DOFILE files in an embodiment of the present invention is shown.

[0039] The device comprises:

[0040] The file input module 1 is used to input multiple target files and specify standard files; wherein each input target file includes at least: a CTL file and a DOFILE file; preferably, each input target file may also include a configuration file for auxiliary inspection and optimization;

[0041] The scan chain parsing module 2 is connected to the file input module 1, and is used to parse each target file separately to obtain the scan chain data corresponding to each target file; wherein the scan chain data includes: the scan chain information corresponding to a plurality of scan chains arranged in sequence; if the file input module 1 also inputs a configuration file, the scan chain parsing module 2 also parses the configuration file to obtain the scan chain data corresponding to the configuration file.

[0042] The cross-check module 3 is connected to the scan chain parsing module 2 and is used to cross-check the scan chain data of the CTL file and the DOFILE file, and record the corresponding check results; specifically, the check results include: whether the cross-check is qualified, and unqualified files and unqualified items;

[0043] The optimization module 4 is connected to the cross-check module 3 and is used to optimize the CTL file and / or DOFILE file that fails the cross-check based on the scan chain data of the standard file when there is an optimization requirement, and record the corresponding optimization results.

[0044] In one embodiment, the target file input by the file input module has two conditions, and each condition corresponds to a different designated standard file.

[0045] If the target files input by the file input module include: CTL file, DOFILE file and configuration file, then the configuration file is designated as a standard file;

[0046] If the target files input by the file input module are only CTL files and DOFILE files, one of the CTL file and DOFILE files is designated as the standard file.

[0047] In one embodiment, the scan chain data includes: scan chain information corresponding to a plurality of scan chains arranged in sequence; the scan chain information includes a plurality of information items, including: a scan chain name item (scanchain), a scan chain length item (scan length), a scan chain enable item (scan enable), a scan chain input item (scaninput), a scan chain output item (scan output), and a scan chain clock item (scan clock) corresponding to the scan chain;

[0048] As shown in the following table, the scan chain data is in the following form:

[0049] Table 1: Parsed scan chain data

[0050] Scan chain Scan input Scan output Scan length Scan enable Scan clock Scan chain 1 Scan input 1 Scan output 1 Num 1 Scan enable 1 Scan clock 1 …… …… …… …… …… …… Scan chain n Scan input n Scan output n Number n Scan enable n Scan clock n

[0051] In one embodiment, the cross-check module 3 performs a cross-check on the scan chain data of the CTL file and the DOFILE file, including:

[0052] Based on the scan chain data of the standard file, a comparison check operation is performed on the scan chain data in the CTL file and the DOFILE file, and mismatches in the scan chain data of the CTL file and / or the DOFILE file that failed the cross check are determined.

[0053] For different standard documents, different comparison and checking operations are used for cross-checking.

[0054] In a specific embodiment, when the input configuration file is designated as a standard file, the comparison check operation includes:

[0055] The scan chain information of each scan chain in the scan chain data of the configuration file is traversed in order, and the scan chain information of the corresponding scan chain is searched in the scan chain data in the CTL file and the DOFILE file respectively;

[0056] If the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain in the configuration file is compared with the corresponding information item of the corresponding scan chain in the CTL file and / or DOFILE file in which the scan chain information of the scan chain is found, and if the comparison is inconsistent, obtain the mismatching items in the scan chain information of the current scan chain in the CTL file and / or DOFILE file with the configuration file;

[0057] If the scan chain information of the corresponding scan chain is not found, each information item of the corresponding scan chain in the configuration file is used as a mismatch item of the CTL file and / or DOFILE file whose scan chain information is not found.

[0058] For example, first obtain the scan chain information of the first scan chain in the scan chain data of the configuration file, and search for the scan chain information of the scan chain in the scan chain data in the CTL file and the DOFILE file respectively; if the scan chain information of the scan chain is found in the CTL file, but not in the DOFILE file, then compare the scan chain name item, scan chain length item, scan chain enable item, scan chain input item, scan chain output item and scan chain clock item of the first scan chain in the scan chain data of the configuration file with the scan chain name item, scan chain length item, scan chain enable item, scan chain input item, scan chain output item and scan chain clock item of the corresponding scan chain in the scan chain data in the CTL file, if they are inconsistent, treat the inconsistent information items as mismatch items of the CTL file; treat each information item of the corresponding scan chain of the configuration file as a mismatch item of the corresponding scan chain in the DOFILE file. Next, traverse the scan chain information of the second scan chain in the scan chain data of the configuration file, and compare again until the scan chain information of all scan chains has been compared.

[0059] In a specific embodiment, when the input CTL file or DOFILE file is designated as a standard file, the comparison and checking operation includes:

[0060] Sequentially traverse the scan chain information of each scan chain of the scan chain data of the CTL file or the DOFILE file designated as the standard file, and search for the scan chain information of the corresponding scan chain in the scan chain data of the CTL file or the DOFILE file not designated as the standard file;

[0061] If the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is compared with the corresponding information item of the corresponding scan chain in the CTL file or DOFILE file not designated as the standard file, and if the comparison is inconsistent, the mismatch items in the scan chain data of the CTL file or DOFILE file not designated as the standard file and the standard file are obtained;

[0062] If the scan chain information of the corresponding scan chain is not found, each information item of the scan chain corresponding to the CTL file or DOFILE file designated as the standard file is regarded as a mismatch item of the scan chain corresponding to the CTL file or DOFILE file not designated as the standard file.

[0063] For example, the CTL file is a designated standard file, firstly, the scan chain information of the first scan chain in the scan chain data of the CTL file is obtained, and the scan chain information of the scan chain is searched for in the scan chain data in the DOFILE file which is not designated as the standard file; if the DOFILE file finds the information of the scan chain, then the scan chain name item, scan chain length item, scan chain enable item, scan chain input item, scan chain output item and scan chain clock item of the first scan chain in the scan chain data of the CTL file are compared with the scan chain name item, scan chain length item, scan chain enable item, scan chain input item, scan chain output item and scan chain clock item of the corresponding scan chain in the scan chain data in the DOFILE file, if they are inconsistent, then the inconsistent information items are regarded as the mismatch items of the corresponding scan chain of the DOFILE file; if the DOFILE file finds the information of the scan chain, then each information item of the corresponding scan chain of the CTL file is regarded as the mismatch item in the scan chain data of the DOFILE file. Next, the scan chain information of the second scan chain in the scan chain data of the CTL file is traversed and compared again until the scan chain information of all scan chains is compared.

[0064] In one embodiment, the optimization module 4 optimizes the CTL file and / or DOFILE file that fails the cross-check based on the scan chain data of the standard file, including:

[0065] The information items corresponding to the mismatch items in the scan chain data of the standard file are used to update the mismatch items in the CTL file and / or DOFILE file that failed the cross check, and the optimized scan chain data in the CTL file and / or DOFILE file is obtained.

[0066] Specifically, the information items corresponding to the mismatched items in the scan chain data of the standard file are used to replace, modify or supplement the mismatched items in the CTL file and / or DOFILE file that failed the cross check to obtain the optimized scan chain data in the CTL file and / or DOFILE file.

[0067] In one embodiment, if Figure 2 As shown, the device also includes: an automatic optimization selection module 5, connected to the optimization module 4, for determining whether to automatically optimize the CTL file and / or DOFILE file that fails the cross-check if the cross-check fails.

[0068] Similar to the principle of the above embodiment, the present invention provides an automated cross-checking and optimization method for CTL and DOFILE files.

[0069] The following provides specific embodiments in conjunction with the accompanying drawings:

[0070] like Figure 3A flowchart showing an automated cross-checking and optimization method for CTL and DOFILE files in an embodiment of the present invention is shown.

[0071] The method comprises:

[0072] Step S1: Input multiple target files and specify the standard file.

[0073] In one embodiment, the method of specifying the standard file includes:

[0074] When each input target file also includes a configuration file for assisting inspection and optimization, the configuration file is designated as a standard file.

[0075] When each input target file includes only a CTL file and a DOFILE file, one of the CTL file and the DOFILE file is designated as a standard file.

[0076] Step S2: parse each target file separately to obtain the scan chain data corresponding to each target file.

[0077] In one embodiment, the scan chain information includes multiple information items, including: a scan chain name item corresponding to the scan chain, a scan chain length item, a scan chain enable item, a scan chain input item, a scan chain output item, and a scan chain clock item.

[0078] Step S3: cross-check the scan chain data of the CTL file and the DOFILE file, and record the corresponding check results.

[0079] It should be noted that if there is no optimization requirement, the process can be terminated after step 3 is executed; if there is an optimization requirement, step S4 is continued to be executed.

[0080] In one embodiment, cross-checking the scan chain data of the CTL file and the DOFILE file includes: performing a comparative check operation on the scan chain data in the CTL file and the DOFILE file based on the scan chain data of the standard file, and determining mismatches in the scan chain data of the CTL file and / or the DOFILE file that failed the cross-check.

[0081] In one embodiment, when the input configuration file is designated as a standard file, the comparison and checking operation includes:

[0082] The scan chain information of each scan chain in the scan chain data of the configuration file is traversed in order, and the scan chain information of the corresponding scan chain is searched in the scan chain data in the CTL file and the DOFILE file respectively;

[0083] If the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain in the configuration file is compared with the corresponding information item of the corresponding scan chain in the CTL file and / or DOFILE file in which the scan chain information of the scan chain is found, and if the comparison is inconsistent, the mismatch items in the scan chain information of the corresponding scan chain in the CTL file and / or DOFILE file and the configuration file are obtained;

[0084] If the scan chain information of the corresponding scan chain is not found, each information item of the corresponding scan chain in the configuration file is used as a mismatch item corresponding to the scan chain in the CTL file and / or DOFILE file whose scan chain information is not found.

[0085] In one embodiment, when the input CTL file or DOFILE file is designated as a standard file, the comparison and checking operation includes:

[0086] Sequentially traverse the scan chain information of each scan chain of the scan chain data of the CTL file or the DOFILE file designated as the standard file, and search for the scan chain information of the corresponding scan chain in the scan chain data of the CTL file or the DOFILE file not designated as the standard file;

[0087] If the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is compared with the corresponding information item of the corresponding scan chain in the CTL file or DOFILE file not designated as the standard file, and if the comparison is inconsistent, the mismatch items in the scan chain data of the CTL file or DOFILE file not designated as the standard file and the standard file are obtained;

[0088] If the scan chain information of the corresponding scan chain is not found, each information item of the scan chain corresponding to the CTL file or DOFILE file designated as the standard file is regarded as a mismatch item of the scan chain corresponding to the CTL file or DOFILE file not designated as the standard file.

[0089] Step S4: If there is still a need for optimization, the CTL file and / or DOFILE file that fails the cross-check is optimized using the scan chain data of the standard file, and the corresponding optimization results are recorded.

[0090] In one embodiment, optimizing a CTL file and / or DOFILE file that fails the cross check using scan chain data of a standard file includes: using information items corresponding to mismatch items in the scan chain data of the standard file, updating mismatch items in the CTL file and / or DOFILE file that fails the cross check, and obtaining optimized scan chain data in the CTL file and / or DOFILE file.

[0091] In one embodiment, before step S1, the method further includes: step S0: determining whether there is an optimization requirement to automatically optimize the CTL file and / or DOFILE file that fails the cross-check if the cross-check fails.

[0092] In order to better describe the automated cross-checking and optimization device for CTL and DOFILE files, the following specific embodiments are provided for illustration;

[0093] Embodiment 1: A method for automatic cross-checking and optimizing CTL and DOFILE files. Figure 4 Shown is a schematic diagram of the automated cross-checking and optimization method of the automated cross-checking and optimization device for CTL and DOFILE files of this embodiment.

[0094] The method comprises:

[0095] Enter option;

[0096] Determine whether to automatically optimize the erroneous data that appears in the cross-check. If so, enter the first process; if not, enter the second process;

[0097] After the first process or the second process is completed, the process ends.

[0098] The first process includes:

[0099] Step 1: Input CTL, DOFILE and config file or input CTL, DOFILE and specify the optimized standard file;

[0100] Step 2: Parse the input file to obtain the scan chain of CTL and DOFILE; if a config file is input, parse the config file to obtain the scan chain;

[0101] Step 3: Cross-check the CTL and DOFILE file scan chain data based on the specified standard file;

[0102] Step 4: Automatically optimize the scan chain data in the CTL and DOFILE files based on the specified standard file;

[0103] Step 5: Output the result file, inspection results and optimization details.

[0104] The second process includes:

[0105] Step 1: Input CTL, DOFILE and config file or input CTL, DOFILE and specify the optimized standard file;

[0106] Step 2: Parse the input file to obtain the scan chain of CTL and DOFILE; if a config file is input, parse the config file to obtain the scan chain;

[0107] Step 3: Cross-check the CTL and DOFILE file scan chain data based on the specified standard file;

[0108] Step 4: Output the result file and inspection results.

[0109] like Figure 5 A schematic diagram showing the structure of an automated cross-check and optimization terminal for CTL and DOFILE files in an embodiment of the present invention.

[0110] The CTL and DOFILE file automatic cross-check and optimization terminal 100 includes: a memory 101 and a processor 102. The memory 101 is used to store computer programs; the processor 102 runs the computer program to achieve the following Figure 3 The described automated cross-checking and optimization method for CTL and DOFILE files.

[0111] Optionally, the number of the memory 101 can be one or more, the number of the processor 102 can be one or more, and Figure 5 Take one as an example.

[0112] Optionally, the processor 102 in the automated cross-check and optimization terminal 100 of the CTL and DOFILE files will perform the following operations: Figure 3 In the above steps, one or more instructions corresponding to the process of the application are loaded into the memory 101, and the processor 102 runs the application stored in the first memory 101, thereby achieving the following Figure 3 Automated cross-checking of the CTL and DOFILE files with various functions in the optimization method.

[0113] Optionally, the memory 101 may include but is not limited to high-speed random access memory and non-volatile memory. For example, one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices; the processor 102 may include but is not limited to a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0114] Optionally, the processor 102 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0115] The present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program is executed as follows: Figure 3 The automated cross-check and optimization method of the CTL and DOFILE files shown. The computer-readable storage medium may include, but is not limited to, a floppy disk, an optical disk, a CD-ROM (Compact Disc Read Only Memory), a magneto-optical disk, a ROM (Read Only Memory), a RAM (Random Access Memory), an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), a magnetic card or an optical card, a flash memory, or other types of media / machine-readable media suitable for storing machine-executable instructions. The computer-readable storage medium may be a product that is not connected to a computer device, or a component that is connected to a computer device for use.

[0116] In summary, the automatic cross-check and optimization device, method and terminal of the CTL and DOFILE files of the present invention obtain the scan chain data in the two files by parsing the CTL file and the DOFILE file, and cross-check the data of the two files. In addition, the CTL file that fails the cross-check and / or the inappropriate data in the DOFILE file can be automatically optimized according to the specified standard file when there is an optimization requirement; the present invention accelerates the process of checking and optimizing the CTL and DOFILE files, greatly improving the efficiency; and the automated inspection and optimization process reduces the possibility of human error and improves the reliability and consistency of the design. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.

[0117] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. An automated cross-check and optimization device for CTL and DOFILE files, It is characterized in that The device comprises: A file input module is used to input multiple target files and specify standard files; wherein each input target file includes at least: a CTL file and a DOFILE file; A scan chain parsing module, connected to the file input module, for parsing each target file respectively to obtain scan chain data corresponding to each target file; wherein the scan chain data includes: scan chain information corresponding to a plurality of scan chains arranged in sequence; A cross-check module, connected to the scan chain parsing module, is used to cross-check the scan chain data of the CTL file and the DOFILE file, and record the corresponding check results; An optimization module, connected to the cross-check module, for optimizing the CTL file and / or DOFILE file that fails the cross-check based on the scan chain data of the standard file when there is an optimization requirement, and recording the corresponding optimization result; The method of specifying the standard file includes: when each input target file also includes a configuration file for auxiliary inspection and optimization, specifying the configuration file as the standard file; when each input target file only includes a CTL file and a DOFILE file, specifying one of the CTL file and the DOFILE file as the standard file; Cross-checking the scan chain data of the CTL file and the DOFILE file includes: performing a comparison check operation on the scan chain data in the CTL file and the DOFILE file based on the scan chain data of the standard file, and determining mismatches in the scan chain data of the CTL file and / or the DOFILE file that failed the cross-check; In the case where the input configuration file is designated as a standard file, the comparison check operation includes: sequentially traversing the scan chain information of each scan chain of the scan chain data of the configuration file, and searching for the scan chain information of the corresponding scan chain in the scan chain data in the CTL file and the DOFILE file respectively; if the scan chain information of the corresponding scan chain is found, comparing each information item of the corresponding scan chain of the configuration file with the corresponding information item of the corresponding scan chain in the CTL file and / or the DOFILE file in which the scan chain information of the scan chain is found, and obtaining the mismatching items of the configuration file in the scan chain information of the corresponding scan chain in the CTL file and / or the DOFILE file if the comparison is inconsistent; if the scan chain information of the corresponding scan chain is not found, using each information item of the corresponding scan chain of the configuration file as the mismatching item of the corresponding scan chain of the CTL file and / or the DOFILE file in which the scan chain information of the scan chain is not found; In the case where the input CTL file or DOFILE file is designated as a standard file, the comparison check operation includes: sequentially traversing the scan chain information of each scan chain in the scan chain data of the CTL file or DOFILE file designated as the standard file, and searching for the scan chain information of the corresponding scan chain in the scan chain data in the CTL file or DOFILE file that is not designated as the standard file; if the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is compared with the corresponding information item of the corresponding scan chain in the CTL file or DOFILE file that is not designated as the standard file, and if the comparison is inconsistent, obtaining the mismatch items in the scan chain data of the CTL file or DOFILE file that is not designated as the standard file and the standard file; if the scan chain information of the corresponding scan chain is not found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is used as the mismatch item of the corresponding scan chain of the CTL file or DOFILE file that is not designated as the standard file.

2. The automated cross-checking and optimizing device for CTL and DOFILE files according to claim 1, It is characterized in that The scan chain information includes multiple information items, including: a scan chain name item corresponding to the scan chain, a scan chain length item, a scan chain enable item, a scan chain input item, a scan chain output item, and a scan chain clock item.

3. The automated cross-checking and optimizing device for CTL and DOFILE files according to claim 1, It is characterized in that Optimizing the CTL file and / or DOFILE file that failed the cross-check based on the scan chain data of the standard file includes: The information items corresponding to the mismatch items in the scan chain data of the standard file are used to update the mismatch items in the CTL file and / or DOFILE file that failed the cross check, and the optimized scan chain data in the CTL file and / or DOFILE file is obtained.

4. The automated cross-checking and optimizing device for CTL and DOFILE files according to claim 1, It is characterized in that The device further comprises: an automatic optimization selection module connected to the optimization module, for determining whether to automatically optimize the CTL file and / or DOFILE file that fails the cross-check if the cross-check fails.

5. An automated cross-checking and optimization method for CTL and DOFILE files, It is characterized in that The method comprises: Input multiple target files and specify standard files; Parse each target file separately to obtain the scan chain data corresponding to each target file; Cross-check the scan chain data of the CTL file and the DOFILE file, and record the corresponding check results; If there is still a need for optimization, the CTL file and / or DOFILE file that failed the cross-check is optimized using the scan chain data of the standard file, and the corresponding optimization results are recorded; The method of specifying the standard file includes: when each input target file also includes a configuration file for auxiliary inspection and optimization, specifying the configuration file as the standard file; when each input target file only includes a CTL file and a DOFILE file, specifying one of the CTL file and the DOFILE file as the standard file; Cross-checking the scan chain data of the CTL file and the DOFILE file includes: performing a comparison check operation on the scan chain data in the CTL file and the DOFILE file based on the scan chain data of the standard file, and determining mismatches in the scan chain data of the CTL file and / or the DOFILE file that failed the cross-check; In the case where the input configuration file is designated as a standard file, the comparison check operation includes: sequentially traversing the scan chain information of each scan chain of the scan chain data of the configuration file, and searching for the scan chain information of the corresponding scan chain in the scan chain data in the CTL file and the DOFILE file respectively; if the scan chain information of the corresponding scan chain is found, comparing each information item of the corresponding scan chain of the configuration file with the corresponding information item of the corresponding scan chain in the CTL file and / or the DOFILE file in which the scan chain information of the scan chain is found, and obtaining the mismatching items of the configuration file in the scan chain information of the corresponding scan chain in the CTL file and / or the DOFILE file if the comparison is inconsistent; if the scan chain information of the corresponding scan chain is not found, using each information item of the corresponding scan chain of the configuration file as the mismatching item of the corresponding scan chain of the CTL file and / or the DOFILE file in which the scan chain information of the scan chain is not found; In the case where the input CTL file or DOFILE file is designated as a standard file, the comparison check operation includes: sequentially traversing the scan chain information of each scan chain in the scan chain data of the CTL file or DOFILE file designated as the standard file, and searching for the scan chain information of the corresponding scan chain in the scan chain data in the CTL file or DOFILE file that is not designated as the standard file; if the scan chain information of the corresponding scan chain is found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is compared with the corresponding information item of the corresponding scan chain in the CTL file or DOFILE file that is not designated as the standard file, and if the comparison is inconsistent, obtaining the mismatch items in the scan chain data of the CTL file or DOFILE file that is not designated as the standard file and the standard file; if the scan chain information of the corresponding scan chain is not found, each information item of the corresponding scan chain of the CTL file or DOFILE file designated as the standard file is used as the mismatch item of the corresponding scan chain of the CTL file or DOFILE file that is not designated as the standard file.

6. An automated cross-check and optimization terminal for CTL and DOFILE files, It is characterized in that include: one or more memories and one or more processors; The one or more memories are used to store computer programs; The one or more processors, connected to the memory, are configured to run the computer program to perform the method as claimed in claim 5.