A constraint file checking method, device, electronic device and storage medium
By using timing report files and timing design tools to check constraint files during chip design and generating target constraint files, the project delay problem caused by constraint file errors is solved, and fast and accurate timing path checking and design efficiency improvement are achieved.
Patent Information
- Application Number
- CN202410917329.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In existing technologies, errors in constraint documents cannot be corrected in a timely manner, leading to delays in chip design projects, increased time and economic costs, and frequent communication between front-end and back-end designers.
By obtaining the clock pair interaction status from the timing report file, an initial check file is generated, the constraint file to be tested is iteratively corrected, the target timing result is generated using timing design tools, the clock pair path status is determined, and the constraint file is corrected to generate the target constraint file.
Quickly and accurately check timing path issues in constraint files, reduce front-end and back-end design communication time, shorten project cycle, and improve design efficiency.
Smart Images

Figure CN118468774B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a constraint file checking method, device, electronic equipment and storage medium. Background Art
[0002] The process from chip design to tape-out often costs a lot, so every step in the process from chip design to tape-out needs to be refined. In this process, whether the constraint file is accurate is the key to chip design. Among them, the constraint file is used to constrain the timing in the chip circuit, thereby affecting the area and power consumption of the chip. Therefore, errors in the constraint file written by the design engineer may directly cause the back-end engineer to analyze the wrong timing path, which in turn requires frequent communication between the front-end engineer and the back-end engineer, and multiple corrections to the constraint file. This may not only prolong the project cycle and increase time costs, but may even cause chip damage and economic losses. Therefore, the judgment of the correctness of the constraint file is particularly important in the chip design process.
[0003] In the prior art, it is usually only possible for front-end engineers to manually determine whether the constraint file is correct. Or, in the later stages of chip development, when timing problems are detected in the chip, the errors in the constraint file can be deduced from the timing problems.
[0004] However, manually judging whether the constraint file is correct by front-end engineers often results in omissions and takes a lot of time. If timing problems are not discovered until the late stages of chip development, and the problems in the constraint file are deduced, it will seriously affect the project progress and reduce design efficiency. Summary of the invention
[0005] The purpose of the present invention is to provide a constraint file checking method, device, electronic device and storage medium to address the problem in the prior art that errors in constraint files cannot be corrected in time, thus affecting project progress.
[0006] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, the present invention provides a constraint file checking method, the method comprising:
[0008] Acquire multiple clock pairs in a timing report file and the timing interaction status of each clock pair, and acquire multiple clock pairs in a constraint file to be tested, wherein each of the clock pairs includes two clock signals;
[0009] Perform path checking on the clock pairs in the constraint file to be tested according to the timing interaction status of the clock pairs in the timing report file, and generate an initial first checking file and an initial second checking file, wherein the initial first checking file includes clock pairs without timing paths, and the initial second checking file includes clock pairs with timing paths;
[0010] Determine whether there is a timing path between two clock signals in the clock pair in the initial first inspection file, and if so, iteratively correct the constraint file to be tested to obtain a corrected constraint file, and update the initial second inspection file to be the target second inspection file;
[0011] Reading the corrected constraint file based on the timing design tool, generating a target timing result of each of the clock pairs, determining a path state of each of the clock pairs according to the target second check file and the target timing result of each of the clock pairs, and generating a target check file according to the path state of each of the clock pairs, wherein the path state of the clock pairs includes: an unconstrained path state, a no path state, and a normal state;
[0012] The corrected constraint file is corrected according to the target inspection file to obtain a target constraint file.
[0013] Optionally, determining whether there is a timing path between two clock signals in the clock pair in the initial first check file includes:
[0014] The clock pairs in the initial first inspection file are traversed, and for the traversed first clock pair, it is determined whether the first clock pair exists in the standard inspection file, and if so, it is determined that a timing path exists between two clock signals in the first clock pair in the first inspection file.
[0015] Optionally, determining the path status of each of the clock pairs according to the target second inspection file and the target timing result of each of the clock pairs includes:
[0016] Traversing the clock pairs in the modified constraint file, and for a second clock pair traversed, determining whether there is a timing path between two clock signals in the second clock pair according to a target timing result of the second clock pair;
[0017] If yes, determining that the timing state of the second clock pair is a normal state;
[0018] If not, determining whether the second clock pair is a clock pair in the target second inspection file;
[0019] If yes, determining that the timing state of the second clock pair is an unconstrained path state;
[0020] If not, it is determined that the timing state of the second clock pair is a no-path state.
[0021] Optionally, before obtaining the multiple clock pairs in the timing report file and the timing interaction status of each clock pair, and obtaining the multiple clock pairs in the constraint file to be tested, the method includes:
[0022] Using a timing design tool to read in input files, the input files include an initial constraint file, a gate-level netlist, related library files, and related parasitic parameter files;
[0023] Determine the constraint file to be tested according to the input file;
[0024] According to the relevant library file and the relevant parasitic parameter file, the clock relationship in each clock pair in the constraint file to be tested is created in the gate-level netlist, the clock unit in the gate-level netlist is driven, and the timing report file and analysis report are generated. The analysis report includes the signal establishment time and signal holding time of each clock unit.
[0025] Optionally, after the modified constraint file is modified according to the target inspection file to obtain the target constraint file, the method further comprises:
[0026] Determine whether there is a violation in the timing path where each of the clock units is located according to the analysis report, and use the timing path where the violation occurs as a path to be repaired;
[0027] Correct the gate-level netlist according to the path to be repaired to obtain a target gate-level netlist;
[0028] The target gate-level netlist, the target constraint file, the related library file and the related parasitic parameter file are input into the timing design tool, and the clock relationship in each clock pair in the target constraint file is created into the target gate-level netlist according to the related library file and the related parasitic parameter file, the clock unit in the gate-level netlist is driven, a target analysis report is generated, and the steps of determining whether there is a violation in the timing path where each clock unit is located and subsequent steps are executed cyclically until there is no violation in the timing path where each clock unit is located.
[0029] Optionally, judging whether there is a violation in the timing path where each of the clock units is located according to the analysis report includes:
[0030] Traversing the clock units in the analysis report, for the current clock unit traversed, determining whether the signal establishment time of the current clock unit is greater than the signal establishment time threshold, if not, then there is a violation in the timing path where the current clock unit is located;
[0031] If it is greater than, then determine whether the signal holding time of the current clock unit is greater than the signal holding time threshold; if it is not greater than, then there is a violation in the timing path where the current clock unit is located;
[0032] If it is greater, there is no violation in the timing path where the current clock unit is located.
[0033] Optionally, generating a target inspection file according to the path status of each of the clock pairs includes:
[0034] Establishing an initial check table according to each of the clock pairs, wherein both the row header and the column header of the initial check table include the identification of the clock signal in each of the clock pairs;
[0035] Traversing the path states of each clock pair, for the path state of the traversed third clock pair, if the path state of the third clock pair is an unconstrained path state, generating unconstrained path data in a table unit corresponding to two clock signals of the third clock pair;
[0036] If the path state of the third clock pair is a no-path state, generating no-path data in table cells corresponding to two clock signals of the third clock pair;
[0037] If the path state of the third clock pair is a normal state, normal data is generated in the table cells corresponding to the two clock signals of the third clock pair.
[0038] In a second aspect, the present invention provides a constraint file checking device, the device comprising:
[0039] An acquisition module, used to acquire multiple clock pairs in a timing report file and the timing interaction status of each clock pair, and acquire multiple clock pairs in a constraint file to be tested, wherein each of the clock pairs includes two clock signals;
[0040] A path checking module, configured to perform path checking on the clock pairs in the constraint file to be tested according to the timing interaction status of the clock pairs in the timing report file, and generate an initial first checking file and an initial second checking file, wherein the initial first checking file includes clock pairs without timing paths, and the initial second checking file includes clock pairs with timing paths;
[0041] An updating module, used for determining whether there is a timing path between two clock signals in the clock pair in the initial first inspection file, and if so, iteratively correcting the constraint file to be tested to obtain a corrected constraint file, and updating the initial second inspection file to be a target second inspection file;
[0042] A determination module, configured to read the corrected constraint file based on a timing design tool, generate a target timing result for each of the clock pairs, determine a path state for each of the clock pairs according to the target second check file and the target timing result for each of the clock pairs, and generate a target check file according to the path state for each of the clock pairs, wherein the path state for the clock pairs includes: an unconstrained path state, a no path state, and a normal state;
[0043] The correction module is used to correct the corrected constraint file according to the target inspection file to obtain a target constraint file.
[0044] Optionally, the update module is specifically used to:
[0045] The clock pairs in the initial first inspection file are traversed, and for the traversed first clock pair, it is determined whether the first clock pair exists in the standard inspection file, and if so, it is determined that a timing path exists between two clock signals in the first clock pair in the first inspection file.
[0046] Optionally, the determining module is specifically used to:
[0047] Traversing the clock pairs in the modified constraint file, and for a second clock pair traversed, determining whether there is a timing path between two clock signals in the second clock pair according to a target timing result of the second clock pair;
[0048] If yes, determining that the timing state of the second clock pair is a normal state;
[0049] If not, determining whether the second clock pair is a clock pair in the target second inspection file;
[0050] If yes, determining that the timing state of the second clock pair is an unconstrained path state;
[0051] If not, it is determined that the timing state of the second clock pair is a no-path state.
[0052] Optionally, the acquisition module is further used to:
[0053] Using a timing design tool to read in input files, the input files include an initial constraint file, a gate-level netlist, related library files, and related parasitic parameter files;
[0054] Determine the constraint file to be tested according to the input file;
[0055] According to the relevant library file and the relevant parasitic parameter file, the clock relationship in each clock pair in the constraint file to be tested is created in the gate-level netlist, the clock unit in the gate-level netlist is driven, and the timing report file and analysis report are generated. The analysis report includes the signal establishment time and signal holding time of each clock unit.
[0056] Optionally, the correction module is further used for:
[0057] Determine whether there is a violation in the timing path where each of the clock units is located according to the analysis report, and use the timing path where the violation occurs as a path to be repaired;
[0058] Correct the gate-level netlist according to the path to be repaired to obtain a target gate-level netlist;
[0059] The target gate-level netlist, the target constraint file, the related library file and the related parasitic parameter file are input into the timing design tool, and the clock relationship in each clock pair in the target constraint file is created into the target gate-level netlist according to the related library file and the related parasitic parameter file, the clock unit in the gate-level netlist is driven, a target analysis report is generated, and the steps of determining whether there is a violation in the timing path where each clock unit is located and subsequent steps are executed cyclically until there is no violation in the timing path where each clock unit is located.
[0060] Optionally, the correction module is specifically used to:
[0061] Traversing the clock units in the analysis report, for the current clock unit traversed, determining whether the signal establishment time of the current clock unit is greater than the signal establishment time threshold, if not, then there is a violation in the timing path where the current clock unit is located;
[0062] If it is greater than, then determine whether the signal holding time of the current clock unit is greater than the signal holding time threshold; if it is not greater than, then there is a violation in the timing path where the current clock unit is located;
[0063] If it is greater, there is no violation in the timing path where the current clock unit is located.
[0064] Optionally, the determining module is specifically used to:
[0065] Establishing an initial check table according to each of the clock pairs, wherein both the row header and the column header of the initial check table include the identification of the clock signal in each of the clock pairs;
[0066] Traversing the path states of each clock pair, for the path state of the traversed third clock pair, if the path state of the third clock pair is an unconstrained path state, generating unconstrained path data in a table unit corresponding to two clock signals of the third clock pair;
[0067] If the path state of the third clock pair is a no-path state, generating no-path data in table cells corresponding to two clock signals of the third clock pair;
[0068] If the path state of the third clock pair is a normal state, normal data is generated in the table cells corresponding to the two clock signals of the third clock pair.
[0069] In a third aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the constraint file checking method as described above.
[0070] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, executes the steps of the constraint file checking method as described above.
[0071] The beneficial effect of the present invention is as follows: in this embodiment, before using the timing design tool to read the constraint file, all clock pairs in the constraint file to be tested are checked according to the timing interaction status of each clock pair in the timing report file, so as to determine whether the clock pair has a timing path, so that after reading the constraint file, the three path states of each clock pair can be jointly determined according to the target timing results of each clock pair and the above judgment results. The above method can be used to analyze whether the timing design tool cannot analyze the timing path of the clock pair due to the appearance of clock asynchronous commands in the constraint file, so as to quickly and accurately check the commands that affect the interaction of the timing paths of the clock pairs in the constraint file to be tested, and obtain the target constraint file. It prevents back-end engineers from using wrong constraint files to optimize timing, area and power consumption, and also reduces the time cost of communication between front-end and back-end designs during chip design, and reduces the number of corrections to the constraint file, thereby shortening the project cycle and improving optimization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0073] Figure 1 It is a flow chart of a constraint file checking method provided by the present invention;
[0074] Figure 2 It is a schematic diagram of a process for determining a clock pair path state provided by the present invention;
[0075] Figure 3It is a flow chart of a method for determining a target constraint file provided by the present invention;
[0076] Figure 4 It is a schematic diagram of a process for generating a target inspection file provided by the present invention;
[0077] Figure 5 It is a flow chart of a method for obtaining a timing report file provided by the present invention;
[0078] Figure 6 It is a flow chart of a method for determining and correcting timing violations provided by the present invention;
[0079] Figure 7 It is a structural schematic diagram of a constraint file checking device provided by the present invention;
[0080] Figure 8 It is a structural schematic diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be understood that the drawings in the present invention only serve the purpose of illustration and description and are not used to limit the scope of protection of the present invention. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowcharts used in the present invention illustrate the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, under the guidance of the content of the present invention, those skilled in the art can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0082] It should be noted that the term “comprising” will be used in the embodiments of the present invention to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0083] The process from chip design to tape-out often costs a lot, so every step in the process from chip design to tape-out needs to be refined. In this process, whether the constraint file is accurate is the key to chip design. Among them, the constraint file is used to constrain the timing in the chip circuit, thereby affecting the area and power consumption of the chip. Therefore, errors in the constraint file written by the front-end engineer may directly cause the back-end engineer to analyze the wrong timing path, which in turn requires repeated and frequent communication between the front-end engineer and the back-end engineer, and multiple corrections to the constraint file. This will not only prolong the project cycle and increase time costs, but may even cause chip damage and economic losses. Therefore, the judgment of the correctness of the constraint file is particularly important in the chip design process.
[0084] In the prior art, usually only the front-end engineer can manually judge whether the constraint file is correct. Or in the later stage of chip development, when the chip is detected to have a timing problem, the error in the constraint file can be reversed through the timing problem. However, the front-end engineer's manual judgment of whether the constraint file is correct often results in omissions, and it takes a lot of time and cost. If the timing problem is not found until the later stage of chip development, and the problem in the constraint file is reversed, it will seriously affect the project progress and reduce the design efficiency. In addition, some commands in the constraint file will affect the visibility of the timing design tool to the timing path interaction involved. For example, if a clock asynchronous command, such as a clock group command and a pseudo-path command, appears, the back-end engineer will not analyze the path involved in the command when performing timing analysis using the timing design tool. If the timing is abnormal when analyzing the timing analysis results obtained by the timing design tool, and it is impossible to determine whether the above path has an error, it will take a lot of time to reverse the source of the error. At this time, modifying the constraint file, iterative routing and static timing analysis will greatly increase the iterative correction time of the front-end design and the back-end design.
[0085] Therefore, the present invention proposes a constraint file checking method, which can first check the timing interaction status of each clock pair in the constraint file to be tested according to the timing report file to generate an initial first check file and an initial second check file. Among them, the initial first check file contains clock pairs without timing paths, and the initial second check file contains clock pairs with timing paths. At this time, the timing paths of each clock pair in the initial first check file are not necessarily correct, and it is necessary to determine whether the circuit connection of each clock pair is correct. If correct, it is determined that there is no timing path for the clock pair. If incorrect, it is necessary to iteratively correct the constraint file to be tested to obtain the corrected constraint file, and update the initial second check file to the target second check file.
[0086] Then, based on the timing design tool, the corrected constraint file is read in, the target timing results of each clock pair are generated, and the clock pairs in the target second inspection file are compared according to the target timing results to determine the path status of each clock pair, thereby outputting the target inspection file. Since all clock pairs with timing paths have been analyzed before the corrected constraint file is read in by the timing design tool, it is possible to determine whether the path status of the clock pair is an unconstrained path state by comparing the timing path results obtained by the timing design tool with the second inspection file, thereby analyzing whether the timing design tool is unable to analyze the timing path of the clock pair due to the appearance of clock asynchronous commands in the constraint file. The corrected constraint file is corrected according to the final target inspection file to obtain the target constraint file. At this time, the target constraint file is uploaded to the back end, so that the constraint file obtained by the back end has a higher accuracy, thereby achieving the purpose of reducing the number of front-end and back-end correction iterations and shortening the project cycle.
[0087] Figure 1 This is a flow chart of a constraint file checking method provided by the present invention. Figure 1 The implementation method of the constraint file checking method is introduced.
[0088] Step 101: Acquire multiple clock pairs in a timing report file and the timing interaction status of each clock pair, and acquire multiple clock pairs in a constraint file to be tested, wherein each clock pair includes two clock signals.
[0089] The constraint file to be tested mainly includes commands for constraining the timing, power consumption and area of the circuit. The constraint on the timing of the circuit can be reflected as the constraint on the timing of multiple clock pairs in the circuit. Furthermore, the clock pair includes any two clock signals involved in the constraint file to be tested.
[0090] Optionally, a timing design tool may be used to read initial input files such as constraint files, gate-level netlists, related library files, and related parasitic parameters, and analyze the initial input files to generate a timing report file. The timing report file includes multiple clock pairs and the timing interaction status of each clock pair. The timing interaction status may indicate whether there is a timing path between each clock pair.
[0091] Step 102: Perform path check on the clock pairs in the constraint file to be tested according to the timing interaction status of the clock pairs in the timing report file, and generate an initial first check file and an initial second check file. The initial first check file includes clock pairs without timing paths, and the initial second check file includes clock pairs with timing paths.
[0092] Optionally, all clock pairs included in the constraint file to be tested may be first obtained, and all clock pairs may be stored in an array file according to their identifiers, wherein the identifier of a clock pair is a combination of identifiers of two clock signals included in the clock pair.
[0093] When it is necessary to perform a path check on the clock pair in the constraint file to be tested, traverse all the clock pairs in the array file, match the clock pair in the timing report file according to the identifier of the current clock pair for the current clock pair, and determine whether there is a timing path between the two clock signals in the clock pair according to the timing interaction status of the clock pair in the timing report file. When there is a timing path between the two clock signals in the current clock pair, the identifier of the current clock pair is stored in the second check file, and when there is no timing path between the two clock signals in the current clock pair, the identifier pair of the current clock is stored in the first check file.
[0094] Step 103, determine whether there is a timing path between the two clock signals in the clock pair in the first inspection file, if so, iteratively correct the constraint file to be tested to obtain a corrected constraint file, and update the initial second inspection file to the target second inspection file.
[0095] As an optional implementation, in order to avoid timing path judgment errors caused by circuit connection errors, the first inspection file can be fed back to the front-end engineer, and the front-end engineer determines whether the circuit connection is correct based on the identification of the clock pair in the first inspection file. Specifically, the front-end engineer can check whether the initial gate-level netlist has circuit connection errors, etc. If an error occurs, the initial gate-level netlist is iteratively corrected to obtain a corrected gate-level netlist. And determine whether there are writing errors in the constraint file to be tested, etc. If so, iteratively correct the constraint file to be tested to obtain a corrected constraint file. Among them, the gate-level netlist can represent the interconnection relationship between clock units in the circuit, usually a text file with marked syntax. The clock unit can be, for example, a register, etc. There can be clock signals between clock units, two clock signals can form a clock pair, and each clock pair can have a timing path.
[0096] It should be understood that step 103 is used to eliminate circuit connection errors caused by writing errors, etc., as well as clock pair constraint errors in the constraint file.
[0097] Exemplarily, the first inspection file includes a clock pair CLK1-CLK2, i.e., a clock pair consisting of clock signal CLK1 and clock signal CLK2. After receiving the first inspection file, the front-end engineer determines whether the gate-level netlist and the constraint file to be tested involving the clock pair CLK1-CLK2 are correct. If it is found that in the clock pair CLK1-CLK2 where a path should have existed in the constraint file to be tested, CLK2 is mistakenly written as CLK3, resulting in the clock signal CLK1 and the clock signal CLK2 in the clock pair CLK1-CLK2 not having a timing path, then the clock pair CLK1-CLK3 in the initial constraint file needs to be corrected to CLK1-CLK2.
[0098] As an optional implementation, if the initial constraint file or gate-level netlist is corrected, it is necessary to update the initial first check file to the target first check file and update the initial second check file to the target second check file according to the corrected gate-level netlist and the corrected constraint file. Exemplarily, if the clock pair CLK1-CLK3 in the initial constraint file needs to be corrected to CLK1-CLK2, so that the clock pair CLK1-CLK2 that does not originally have a timing path is deleted from the initial first check file and added to the initial second check file, the target first check file and the target second check file are obtained.
[0099] It is worth noting that if the gate-level netlist and the constraint file to be tested do not need to be modified, the target first check file is the initial first check file, and the target second check file is the initial second check file.
[0100] Step 104, read the corrected constraint file based on the timing design tool, generate the target timing result of each clock pair, determine the path state of each clock pair according to the target second check file and the target timing result of each clock pair, and generate the target check file according to the path state of each clock pair. The path state of the clock pair includes: unconstrained path state, no path state and normal state.
[0101] Optionally, in addition to reading in the corrected constraint file, the timing design tool can also read in the corrected gate-level netlist, related library files, and related parasitic parameter files. Among them, the related library files are used to describe the timing information of the clock unit, including the delay of each clock signal when it converts between high and low levels, and the delay of the clock unit itself. The related parasitic parameter file is a standard medium file for transferring interconnect parasitic parameters between tools in the integrated circuit design process. After reading the file, the timing design tool can generate the target timing results for each clock pair. The target timing result can indicate whether there is a timing path between the clock pairs.
[0102] Next, all clock pairs are traversed, and for the current clock pair traversed, whether there is a timing path for the current clock pair is determined according to its target timing result, and whether the current clock pair is included in the target second check file is determined according to the identifier of the current clock pair, and the path status of each clock pair is determined according to the above judgment results.
[0103] As an optional implementation, the path state of the clock pair can be divided into an unconstrained path state, a no path state, and a normal state. Among them, the cause of the unconstrained path state is: there is a path between the two clock signals in the clock pair, but the timing path disappears when it is read into the timing design tool due to the constraint file. The cause of the no path state is that the clock pair itself does not have a timing path during circuit design. The normal state is the path state except the unconstrained path state and the no path state.
[0104] Optionally, the target check file can be in a tabular format, containing the path status of all clock pairs.
[0105] Step 105: Correct the corrected constraint file according to the target inspection file to obtain a target constraint file.
[0106] As an optional implementation, the timing of each clock pair can be determined based on the path status of each clock pair in the target check file to determine whether the timing of each clock pair is correct, thereby correcting the corrected constraint file to obtain the target constraint file. The timing paths of each clock pair in the target constraint file are all in the correct state.
[0107] In this embodiment, by obtaining the timing report file and the constraint file to be tested, the path check is performed on the clock pairs in the constraint file to be tested according to the clock interaction status of the clock pairs in the timing report file, and an initial first check file and an initial second check file are generated. Then, it is determined whether the two clock signals in the clock pair in the initial first check file have a timing path, thereby correcting the corrected constraint file and the target second check file. At this time, the target second check file includes the identifier of the clock pair in which the timing path actually exists. Then, based on the timing design tool, the corrected constraint file is read in to generate the target timing results of each clock pair, and then the path status of each clock pair is determined according to the target second check file and the target timing results of each clock pair, and the target check file is generated according to the path status of each clock pair, and finally the corrected constraint file is corrected according to the target check file to obtain the target constraint file. In this embodiment, before using the timing design tool to read the constraint file, all clock pairs in the constraint file to be tested are checked according to the timing interaction status of each clock pair in the timing report file, so as to determine whether there is a timing path for the clock pair, so that after reading the constraint file, the three path states of each clock pair can be jointly determined according to the target timing results of each clock pair and the above judgment results. The above method can be used to analyze whether the timing design tool cannot analyze the timing path of the clock pair due to the presence of clock asynchronous commands in the constraint file, so as to quickly and accurately check the commands that affect the interaction of the timing paths of the clock pairs in the constraint file to be tested, and obtain the target constraint file. It prevents back-end engineers from using wrong constraint files to optimize timing, area and power consumption, and also reduces the time cost of communication between front-end and back-end designs during chip design, and reduces the number of corrections to the constraint file, thereby shortening the project cycle and improving optimization efficiency.
[0108] As another optional implementation, the step of determining whether there is a timing path between the two clock signals in the clock pair in the initial first check file in step 103 can be implemented by the following method in addition to being determined by a front-end engineer:
[0109] The clock pairs in the initial first check file are traversed, and for the traversed first clock pair, it is determined whether the first clock pair exists in the standard check file, and if so, it is determined that a timing path exists between two clock signals in the first clock pair in the first check file.
[0110] The standard inspection file may be an inspection file uploaded in advance by a front-end engineer, and the inspection file includes identifications of clock pairs with circuit connections. For example, if the clock pair CLK1-CLK2 circuit connection is actually required, the standard inspection file includes the clock pair CLK1-CLK2.
[0111] Since the clock pairs in the initial first inspection file have no timing paths, if the standard inspection file contains the same clock pair as that in the initial first inspection file, it means that there is a timing path between the two clock signals in the clock pair in the first inspection file, which further indicates that the circuit connection of the clock pair is incorrect and needs to be corrected.
[0112] In this embodiment, by traversing the clock pairs in the initial first inspection file, for the traversed first clock pair, it is determined whether the first clock pair exists in the standard inspection file. If so, it is determined that there is a timing path between the two clock signals in the first clock pair in the first inspection file, thereby indicating that the circuit connection of the first clock pair is wrong, and then the constraint file to be tested and the initial second inspection file are needed. The above method can avoid work duplication and rework caused by circuit errors in advance.
[0113] Figure 2 is a flow chart of determining the clock pair path state provided by the present invention. Next, refer to Figure 2 The specific steps of how to determine the path status of each clock pair according to the target second inspection file and the target timing results of each clock pair in the above step 104 are introduced:
[0114] Step 201 , traverse the clock pairs in the modified constraint file, and for the traversed second clock pair, determine whether there is a timing path between two clock signals in the second clock pair according to the target timing result of the second clock pair.
[0115] The target timing result can indicate whether there is a timing path between two clock signals in the clock pair.
[0116] Step 202: If yes, determine that the timing state of the second clock pair is normal.
[0117] If there is a timing path between the two clock signals in the second clock pair, it can be indicated that the timing state of the second clock pair is normal, that is, the second clock pair is not disturbed by the constraint file.
[0118] Step 203: If not, determine whether the second clock pair is a clock pair in the target second inspection file.
[0119] Optionally, since the target timing result of the second clock pair is generated by a timing design tool, and the timing design tool is affected by the modified constraint file and cannot check the paths of the two clock signals in some clock pairs. Since the target second check file contains the clock pairs with timing paths determined before the constraint file is read, by comparing the second clock pair with the clock pairs in the target second check file, it can be determined whether the clock state of the second clock pair is an unconstrained path state or a no path state.
[0120] Step 204: If yes, determine that the timing state of the second clock pair is an unconstrained path state.
[0121] For example, if a homologous clock pair CLK4-CLK5 with a frequency division relationship appears, and the following command exists in the corrected constraint file: set clock groups -group [get clocks CLK4] -group [get clocksCLK5]-asynchronous, or set false path -from [get clocks CLK4] -to [get clocksCLK5], then the timing state of the clock pair CLK4-CLK5 is an unconstrained path state.
[0122] Step 205: If not, determine that the timing state of the second clock pair is a no-path state.
[0123] Optionally, the cause of the no-path state may include: the timing paths in the clock pair have different sources.
[0124] In this embodiment, it is determined whether there is a path for the traversed second clock pair based on the target timing result. If so, it is determined that the timing state of the second clock pair is normal. If not, it is determined whether the second clock pair is the clock pair in the target second check file, thereby avoiding the disappearance of the timing path due to the commands in the constraint file, and providing a basis for the subsequent correction of the corrected constraint file.
[0125] Figure 3 This is a flow chart of a method for determining a target constraint file provided by the present invention. Figure 3 Clearly explain how to obtain the target constraints file.
[0126] First, obtain the timing report file and the constraint file to be tested. Without reading the constraint file to be tested, generate the initial first check file and the initial second check file according to the timing report file. Then, modify the constraint file to be tested according to the first check file, and update the initial second check file to the target second check file. At this time, the target second check file contains all clock pairs with timing paths. Then read the modified constraint file and generate the target timing results of each clock pair. Traverse the clock pairs in the modified constraint file. For the traversed second clock pair, determine whether the second clock pair has a timing path according to the target timing result of the second clock pair. If so, determine that the timing state of the second clock pair is normal. If not, determine whether the second clock pair is included in the target second check file. If so, determine that the timing state of the second clock pair is an unconstrained path state. If not, determine that the timing state of the second clock pair is a no-path state. Then modify the modified constraint file according to the target check file to obtain the target constraint file.
[0127] Alternatively, the target check file may be a table or list containing the status of all clock pair paths. Figure 4 This is a flow chart of a target inspection file generated by the present invention. Figure 4 This section describes how to generate a target check file based on the path status of each clock pair.
[0128] Step 401: Create an initial check table according to each clock pair. The row header and column header of the initial check table both include the identifier of the clock signal in each clock pair.
[0129] Optionally, the row header and the column header of the initial check table include identifiers of all clock signals involved in all revised constraint files.
[0130] For example, if the modified constraint file involves clock signal CLK1, clock signal CLK3, clock signal CLK4, clock signal CLK5, clock signal CLK6, clock signal CLK7, clock signal CLK8, clock signal CLK9 and clock signal CLK10, then the initial check table may be as shown in Table 1:
[0131] Table 1 Initial inspection form
[0132]
[0133] Step 402, traverse the path status of each clock pair, and for the path status of the traversed third clock pair, if the path status of the third clock pair is an unconstrained path status, generate unconstrained path data in the table cells corresponding to the two clock signals of the third clock pair.
[0134] Optionally, the unconstrained path data may be an identifier of an unconstrained path state. Exemplarily, the identifier of the unconstrained path state may be np.
[0135] It should be understood that the table cells are the table cells of the initial inspection table.
[0136] Step 403: If the path state of the third clock pair is a no-path state, no-path data is generated in table cells corresponding to the two clock signals of the third clock pair.
[0137] Optionally, the unconstrained path data may be an identifier of a no-path state. Exemplarily, the identifier of the no-path state may be np.
[0138] Step 404: If the path state of the third clock pair is a normal state, normal data is generated in the table cells corresponding to the two clock signals of the third clock pair.
[0139] Optionally, the normal data may be an identifier of a normal state. Exemplarily, the identifier of a normal state may be tr.
[0140] Exemplarily, the target check table generated based on the initial check table and the path status of each clock pair may be the following Table 2:
[0141] Table 2 Target inspection form
[0142]
[0143] In this embodiment, an initial check table is established according to each clock pair, and then data is generated in the corresponding table cell in the initial check table according to the path state of each clock pair, so that the modified constraint file can be checked according to the data of each clock pair in the target check table. Through the above method, when encountering a project involving a large number of clock signals, the correctness of the clock interaction can be efficiently confirmed through a highly readable target check file.
[0144] After introducing how to modify the constraint file to be tested according to the timing report file and the constraint file to be tested to finally obtain the target constraint file, the following will introduce how to obtain the timing report file mentioned in step 101.
[0145] Figure 5 This is a flow chart of a method for obtaining a timing report file provided by the present invention. Figure 5 , introduce the steps before obtaining multiple clock pairs in the timing report file and the timing interaction status of each clock pair, and obtaining multiple clock pairs in the constraint file to be tested:
[0146] Step 501: Use a timing design tool to read in input files, where the input files include an initial constraint file, a gate-level netlist, related library files, and related parasitic parameter files.
[0147] It is worth noting that the initial constraint file input at this time is not the same as the constraint file to be tested in step 101 .
[0148] Step 502: Determine the constraint file to be tested according to the input file.
[0149] As an optional implementation, the initial constraint file may be first checked for integrity, thereby avoiding problems caused by writing errors.
[0150] Specifically, check whether there are clock units without clock drivers in the initial constraint file, or clock units with clock drivers but without constraints, based on the gate-level netlist. The reasons for the above problems may include: the initial constraint file is not fully defined, the clock source definition of the generated clock signal is incorrect, and there is an asynchronous clock path.
[0151] Therefore, it is necessary to check the integrity of the initial constraint file according to the gate-level netlist and generate the constraint file to be tested. Specifically, the initial constraint file can be checked for integrity according to the pre-uploaded integrity check comparison table, which may include the clock driving status of each clock unit.
[0152] After the constraint file to be tested is generated, as an implementation method, the constraint file to be tested, the gate-level netlist, the related library files and the related parasitic parameter files can be read in again using a timing design tool.
[0153] Step 503: Create the clock relationship in each clock pair in the constraint file to be tested into the gate-level netlist according to the relevant library files and the relevant parasitic parameter files, drive the clock unit in the gate-level netlist, generate a timing report file and an analysis report, and the analysis report includes the signal setup time and signal hold time of each clock unit.
[0154] Optionally, the clock defined in the constraint file to be tested can be used to drive the gate-level netlist, where the clock defined in the constraint file to be tested can be a homologous clock. A homologous clock is a clock with the same initial phase derived from the same clock source, and its frequency ratio is a power of 2. Use the homologous clock to drive the clock unit in the gate-level netlist, and propagate the clock signal backward from the creation point. At this time, all clock units in the design have clock drive. Analyze the timing interaction status of each clock pair to generate a timing report file.
[0155] Optionally, the analysis report is used to determine whether there are violations in the timing path of each clock unit. Specifically, if the signal setup time and signal hold time of each clock unit meet the requirements, the timing convergence can be guaranteed. If the signal setup time or signal hold time of a clock unit does not meet the requirements, it means that the timing path of the current clock unit has a violation.
[0156] In this embodiment, the timing design tool is used to read the input file, and then the constraint file to be tested is determined based on the input file. This can avoid timing problems caused by writing errors in advance. Next, based on the relevant library files and relevant parasitic parameter files, the clock relationship in each clock pair in the constraint file to be tested is created into the gate-level netlist, the clock unit in the gate-level netlist is driven, and the timing report file and analysis report are generated, thereby providing a basis for generating the target constraint file and determining whether the timing path is converged.
[0157] Next, refer to Figure 6 This section introduces how to use the above analysis report to determine whether the timing path has converged. Figure 6 As an optional implementation, after step 105, that is, after the corrected constraint file is corrected according to the target inspection file to obtain the target constraint file, the following steps may be performed:
[0158] Step 601: Determine whether there are violations in the timing paths of each clock unit according to the analysis report, and use the timing paths with violations as paths to be repaired.
[0159] Optionally, it is determined whether the signal setup time and signal hold time of each clock unit in the analysis report meet the requirements. If both meet the requirements, the timing path converges. If the signal setup time or signal hold time of a clock unit does not meet the requirements, there is a violation in the timing path where the clock unit is located. At this time, the timing path with the violation is used as a path to be repaired.
[0160] It is worth noting that if all timing paths converge, there is no need to continue with the following steps 602 to 604 .
[0161] Step 602: Correct the gate-level netlist according to the path to be repaired to obtain a target gate-level netlist.
[0162] Optionally, if a violation occurs in the timing path, it is necessary to iteratively correct the connection relationship of the clock unit in the gate-level netlist so that all timing paths converge after the target gate-level netlist is finally input into the timing design tool. It is worth noting that if the gate-level netlist is corrected in step S103, the corrected gate-level netlist is corrected in this step to obtain the target gate-level netlist.
[0163] Step 603, input the target gate-level netlist, target constraint file, related library files and related parasitic parameters into the timing design tool, create the clock relationship in each clock pair in the target constraint file into the target gate-level netlist according to the related library file and related parasitic parameter file, drive the clock unit in the target gate-level netlist, generate a target analysis report, and loop to determine whether there is a violation in the timing path where each clock unit is located and subsequent steps until there is no violation in the timing path where each clock unit is located.
[0164] Optionally, before inputting the target gate-level netlist, target constraint file, related library files and related parasitic parameters into the timing design tool, since the gate-level netlist has been corrected, the integrity of the target constraint file can also be checked based on the corrected netlist. If there is no error in the target constraint file at this time, continue to create the clock relationship in each clock pair in the target constraint file into the target gate-level netlist based on the related library files and related parasitic parameter files. If there is an error in the target constraint file, correct the target constraint file, replace the target constraint file with the corrected target constraint file, and then execute the next step.
[0165] Optionally, after generating the target analysis report, continue to perform the steps of judging whether there are violations in the timing paths of each clock unit and the subsequent steps. Each cycle requires repairing the gate-level netlist, and the integrity of the constraint file can be judged based on the repaired gate-level netlist until there are no violations in the timing paths of each clock unit. At this time, each timing path achieves convergence.
[0166] In this embodiment, firstly, it is determined whether there are violations in the timing paths of each clock unit according to the analysis report. If there are violations, the gate-level netlist is corrected to obtain the target gate-level netlist, and then the target gate-level netlist, the target constraint file, the relevant library files and the relevant parasitic parameters are input into the timing design tool to generate the target analysis report, and the steps of determining whether there are violations in the timing paths of each clock signal and the subsequent steps are executed cyclically until there are no violations in the timing paths of each clock unit. In this embodiment, each timing path converges quickly by iteratively correcting the gate-level netlist. Among them, since the target constraint file has been determined according to the actual path status of the clock pair in steps 101 to 105, the target constraint file will not have the problem of timing errors, thereby improving the efficiency of violation repair.
[0167] Next, we will introduce how to determine whether there are violations in the timing paths of each clock unit based on the analysis report:
[0168] As an optional implementation, the clock units in the traversal analysis report are determined to determine whether the signal establishment time of the current clock unit is greater than the signal establishment time threshold. If not, there is a violation in the timing path where the current clock unit is located.
[0169] Optionally, the signal setup time threshold is the shortest time that the data signal should remain stable before a clock event occurs. If the signal setup time is not greater than the signal setup time threshold, stable and reliable data sampling cannot be guaranteed.
[0170] If it is greater, it is determined whether the signal holding time of the current clock unit is greater than the signal holding time threshold; if it is not greater, there is a violation in the timing path where the current clock unit is located.
[0171] Optionally, the signal hold time threshold is the shortest time that the data signal should remain stable after the clock event occurs. If the signal hold time is not greater than the signal hold time threshold, stable and reliable data sampling cannot be guaranteed.
[0172] If it is greater, there is no violation in the timing path where the current clock unit is located.
[0173] In this embodiment, the signal setup time threshold and the signal hold time threshold are used to determine whether there is a violation in the timing path of the clock unit, and the gate-level netlist is adjusted according to the determination result, thereby ensuring that the timing path of each clock unit converges.
[0174] Based on the same inventive concept, an embodiment of the present invention also provides a constraint file checking device corresponding to the constraint file checking method. Since the principle of solving the problem by the device in the embodiment of the present invention is similar to the above-mentioned constraint file checking method in the embodiment of the present invention, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0175] Reference Figure 7 , which is a schematic diagram of the structure of a constraint file checking device provided by the present invention, the device comprises: an acquisition module 701, a path checking module 702, an update module 703, a determination module 704 and a correction module 705; wherein:
[0176] An acquisition module 701 is used to acquire multiple clock pairs in a timing report file and a timing interaction state of each clock pair, and acquire multiple clock pairs in a constraint file to be tested, wherein each clock pair includes two clock signals;
[0177] A path checking module 702 is used to perform path checking on the clock pairs in the constraint file to be tested according to the timing interaction status of the clock pairs in the timing report file, and generate an initial first checking file and an initial second checking file, wherein the initial first checking file includes clock pairs without timing paths, and the initial second checking file includes clock pairs with timing paths;
[0178] An updating module 703 is used to determine whether there is a timing path between two clock signals in the clock pair in the initial first inspection file. If so, iteratively correct the constraint file to be tested to obtain a corrected constraint file, and update the initial second inspection file to be the target second inspection file;
[0179] The determination module 704 is used to read the corrected constraint file based on the timing design tool, generate the target timing result of each clock pair, determine the path state of each clock pair according to the target second check file and the target timing result of each clock pair, and generate the target check file according to the path state of each clock pair, where the path state of the clock pair includes: unconstrained path state, no path state and normal state;
[0180] The correction module 705 is used to correct the corrected constraint file according to the target inspection file to obtain the target constraint file.
[0181] Optionally, the updating module 703 is specifically used for:
[0182] The clock pairs in the initial first check file are traversed, and for the traversed first clock pair, it is determined whether the first clock pair exists in the standard check file, and if so, it is determined that a timing path exists between two clock signals in the first clock pair in the first check file.
[0183] Optionally, the determination module 704 is specifically configured to:
[0184] Traverse the clock pairs in the corrected constraint file, and for the traversed second clock pair, determine whether there is a timing path between two clock signals in the second clock pair according to the target timing result of the second clock pair;
[0185] If yes, determining that the timing state of the second clock pair is a normal state;
[0186] If not, determining whether the second clock pair is a clock pair in the target second inspection file;
[0187] If so, determining that the timing state of the second clock pair is an unconstrained path state;
[0188] If not, it is determined that the timing state of the second clock pair is a no-path state.
[0189] Optionally, the acquisition module 701 is further used for:
[0190] Use the timing design tool to read in the input files, which include the initial constraint file, gate-level netlist, related library files and related parasitic parameter files;
[0191] Determine the constraint file to be tested according to the input file;
[0192] According to the relevant library files and related parasitic parameter files, the clock relationship in each clock pair in the constraint file to be tested is created into the gate-level netlist, the clock unit in the gate-level netlist is driven, and the timing report file and analysis report are generated. The analysis report includes the signal setup time and signal hold time of each clock unit.
[0193] Optionally, the correction module 705 is further used for:
[0194] Determine whether there are violations in the timing paths of each clock unit according to the analysis report, and take the timing paths with violations as paths to be repaired;
[0195] Correct the gate-level netlist according to the path to be repaired to obtain the target gate-level netlist;
[0196] The target gate-level netlist, target constraint file, related library files and related parasitic parameter files are input into the timing design tool. According to the related library files and related parasitic parameter files, the clock relationship in each clock pair in the target constraint file is created into the target gate-level netlist, the clock unit in the gate-level netlist is driven, a target analysis report is generated, and the steps of judging whether there are violations in the timing path where each clock unit is located and subsequent steps are executed repeatedly until there are no violations in the timing path where each clock unit is located.
[0197] Optionally, the correction module 705 is specifically used for:
[0198] Traverse the clock units in the analysis report, and determine whether the signal establishment time of the current clock unit is greater than the signal establishment time threshold for the traversed current clock unit. If not, there is a violation in the timing path where the current clock unit is located.
[0199] If it is greater than, determine whether the signal holding time of the current clock unit is greater than the signal holding time threshold; if it is not greater than, there is a violation in the timing path where the current clock unit is located;
[0200] If it is greater, there is no violation in the timing path where the current clock unit is located.
[0201] Optionally, the determination module 704 is specifically configured to:
[0202] An initial check table is established according to each clock pair, wherein both the row header and the column header of the initial check table include the identification of the clock signal in each clock pair;
[0203] Traversing the path states of each clock pair, for the traversed path state of the third clock pair, if the path state of the third clock pair is an unconstrained path state, generating unconstrained path data in the table cells corresponding to the two clock signals of the third clock pair;
[0204] If the path state of the third clock pair is a no-path state, generating no-path data in table cells corresponding to two clock signals of the third clock pair;
[0205] If the path state of the third clock pair is a normal state, normal data is generated in the table cells corresponding to the two clock signals of the third clock pair.
[0206] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0207] The embodiment of the present invention further provides an electronic device, such as Figure 8 FIG. 8 is a schematic diagram of the structure of an electronic device provided by the present invention, comprising: a processor 801, a memory 802 and a bus. The memory 802 stores machine-readable instructions executable by the processor 801 (for example, Figure 7 In the device, the execution instructions corresponding to the acquisition module 701, the path checking module 702, the updating module 703, the determining module 704 and the correcting module 705 are obtained, etc.), when the computer device is running, the processor 801 communicates with the memory 802 through a bus, and when the machine-readable instructions are executed by the processor 801, the above-mentioned constraint file checking method is executed.
[0208] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the constraint file checking method are executed.
[0209] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in the present invention. In the several embodiments provided by the present invention, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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 through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0210] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. If the function 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 invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0211] The above are only specific embodiments 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 constraint file checking method, characterized in that: The method comprises: Acquire multiple clock pairs in a timing report file and the timing interaction status of each clock pair, and acquire multiple clock pairs in a constraint file to be tested, wherein each of the clock pairs includes two clock signals; Perform path checking on the clock pairs in the constraint file to be tested according to the timing interaction status of the clock pairs in the timing report file, and generate an initial first checking file and an initial second checking file, wherein the initial first checking file includes clock pairs without timing paths, and the initial second checking file includes clock pairs with timing paths; Determine whether there is a timing path between two clock signals in the clock pair in the initial first inspection file, and if so, iteratively correct the writing errors in the constraint file to be tested to obtain a corrected constraint file, and update the initial second inspection file to a target second inspection file according to the corrected constraint file; Reading the corrected constraint file based on the timing design tool, generating a target timing result of each of the clock pairs, determining a path state of each of the clock pairs according to the target second check file and the target timing result of each of the clock pairs, and generating a target check file according to the path state of each of the clock pairs, wherein the path state of the clock pairs includes: an unconstrained path state, a no path state, and a normal state; Modify the modified constraint file according to the target inspection file to obtain a target constraint file; Determining the path status of each of the clock pairs according to the target second inspection file and the target timing results of each of the clock pairs includes: Traversing the clock pairs in the modified constraint file, and for a second clock pair traversed, determining whether there is a timing path between two clock signals in the second clock pair according to a target timing result of the second clock pair; If yes, determining that the timing state of the second clock pair is a normal state; If not, determining whether the second clock pair is a clock pair in the target second inspection file; If yes, determining that the timing state of the second clock pair is an unconstrained path state; If not, it is determined that the timing state of the second clock pair is a no-path state.
2. The constraint file checking method according to claim 1, characterized in that: Determining whether there is a timing path between two clock signals in the clock pair in the initial first check file comprises: The clock pairs in the initial first inspection file are traversed, and for the traversed first clock pair, it is determined whether the first clock pair exists in the standard inspection file, and if so, it is determined that a timing path exists between two clock signals in the first clock pair in the first inspection file.
3. The constraint file checking method according to claim 1, characterized in that: Before obtaining multiple clock pairs in the timing report file and the timing interaction status of each clock pair, and obtaining multiple clock pairs in the constraint file to be tested, including: Using a timing design tool to read in input files, the input files include an initial constraint file, a gate-level netlist, related library files, and related parasitic parameter files; Determine the constraint file to be tested according to the input file; According to the relevant library file and the relevant parasitic parameter file, the clock relationship in each clock pair in the constraint file to be tested is created in the gate-level netlist, the clock unit in the gate-level netlist is driven, and the timing report file and analysis report are generated. The analysis report includes the signal establishment time and signal holding time of each clock unit.
4. The constraint file checking method according to claim 3, characterized in that: After the modified constraint file is modified according to the target inspection file to obtain the target constraint file, the method includes: Determine whether there is a violation in the timing path where each of the clock units is located according to the analysis report, and use the timing path where the violation occurs as a path to be repaired; Correct the gate-level netlist according to the path to be repaired to obtain a target gate-level netlist; The target gate-level netlist, the target constraint file, the related library file and the related parasitic parameter file are input into the timing design tool, and the clock relationship in each clock pair in the target constraint file is created into the target gate-level netlist according to the related library file and the related parasitic parameter file, the clock unit in the gate-level netlist is driven, a target analysis report is generated, and the steps of determining whether there is a violation in the timing path where each clock unit is located and subsequent steps are executed cyclically until there is no violation in the timing path where each clock unit is located.
5. The constraint file checking method according to claim 4, characterized in that: The determining, according to the analysis report, whether there is a violation in the timing path where each of the clock units is located includes: Traversing the clock units in the analysis report, for the current clock unit traversed, determining whether the signal establishment time of the current clock unit is greater than the signal establishment time threshold, if not, then there is a violation in the timing path where the current clock unit is located; If it is greater than, then determine whether the signal holding time of the current clock unit is greater than the signal holding time threshold; if it is not greater than, then there is a violation in the timing path where the current clock unit is located; If it is greater, there is no violation in the timing path where the current clock unit is located.
6. The constraint file checking method according to claim 1, characterized in that: Generating a target inspection file according to the path status of each of the clock pairs includes: Establishing an initial check table according to each of the clock pairs, wherein both the row header and the column header of the initial check table include the identification of the clock signal in each of the clock pairs; Traversing the path states of each clock pair, for the path state of the traversed third clock pair, if the path state of the third clock pair is an unconstrained path state, generating unconstrained path data in a table unit corresponding to two clock signals of the third clock pair; If the path state of the third clock pair is a no-path state, generating no-path data in table cells corresponding to two clock signals of the third clock pair; If the path state of the third clock pair is a normal state, normal data is generated in the table cells corresponding to the two clock signals of the third clock pair.
7. A constraint file checking device, characterized in that: The device comprises: An acquisition module, used to acquire multiple clock pairs in a timing report file and the timing interaction status of each clock pair, and acquire multiple clock pairs in a constraint file to be tested, wherein each of the clock pairs includes two clock signals; A path checking module, configured to perform path checking on the clock pairs in the constraint file to be tested according to the timing interaction status of the clock pairs in the timing report file, and generate an initial first checking file and an initial second checking file, wherein the initial first checking file includes clock pairs without timing paths, and the initial second checking file includes clock pairs with timing paths; An updating module, used for determining whether there is a timing path between two clock signals in the clock pair in the initial first inspection file, and if so, iteratively correcting the writing errors in the constraint file to be tested to obtain a corrected constraint file, and updating the initial second inspection file to a target second inspection file according to the corrected constraint file; A determination module, configured to read the corrected constraint file based on a timing design tool, generate a target timing result for each of the clock pairs, determine a path state for each of the clock pairs according to the target second check file and the target timing result for each of the clock pairs, and generate a target check file according to the path state for each of the clock pairs, wherein the path state for the clock pairs includes: an unconstrained path state, a no path state, and a normal state; A correction module, used for correcting the corrected constraint file according to the target inspection file to obtain a target constraint file; The determination module is specifically used for: Traversing the clock pairs in the modified constraint file, and for a second clock pair traversed, determining whether there is a timing path between two clock signals in the second clock pair according to a target timing result of the second clock pair; If yes, determining that the timing state of the second clock pair is a normal state; If not, determining whether the second clock pair is a clock pair in the target second inspection file; If yes, determining that the timing state of the second clock pair is an unconstrained path state; If not, it is determined that the timing state of the second clock pair is a no-path state.
8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the steps of the constraint file checking method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the constraint file checking method according to any one of claims 1 to 6 are executed.
