Chip constraint file generation method and device, equipment and medium

Chip constraint files are generated through information file classification and parsing algorithms, which solves the problems of errors and low efficiency caused by manual handwriting, realizes automatic generation and rapid adaptation, and reduces the research and development cycle.

CN118536441APending Publication Date: 2024-08-23SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410773114.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing chip constraint file generation process relies on manual handwriting, which is error-prone, inefficient, and slow to update, resulting in extended R&D cycles.

Method used

Information file classification and parsing algorithms are used to generate clock constraint files, timing exception constraint files and optimization constraint files, and syntax and consistency checks are performed based on preset check strategies to achieve automated generation.

Benefits of technology

It reduces manpower and material investment, improves chip development efficiency, ensures the correctness of constraint files and quickly adapts to clock level and architecture adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536441A
    Figure CN118536441A
Patent Text Reader

Abstract

The invention discloses a chip constraint file generation method and device, equipment and a medium, and relates to the technical field of computers, and the method comprises the steps: if a constraint information file is a clock information file, analyzing the clock information file based on a clock nested information analysis algorithm to obtain an analysis result, analyzing the clock information file by using an analysis result and a clock attribute information analysis algorithm to generate a clock constraint file; if the constraint information file is a time sequence exception information file, analyzing the time sequence exception information file based on a time sequence exception information analysis algorithm to generate a time sequence exception constraint file; if the constraint information file is an optimization information file, analyzing the optimization information file based on an optimization information analysis algorithm to generate an optimization constraint file; and checking the clock constraint file, the time sequence exception constraint file and the optimization constraint file based on the checking strategy. According to the method, the input cost of manpower and material resources is reduced, the research and development period of the chip is shortened, and the chip development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a chip constraint file generation method, device, equipment and medium. Background Art

[0002] At present, the chip constraint generation process is that chip design engineers manually write chip constraint files according to chip architecture requirements, which has the following obvious disadvantages:

[0003] (1) Error-prone and difficult to maintain. Because it relies on manual writing, the order of constraint options used by different chip designers is inconsistent, which makes it difficult to find errors in constraint files in the first place and difficult to replace them uniformly when problems arise.

[0004] (2) Low efficiency, time-consuming and labor-intensive. When relying on manual writing, multiple options for each constraint setting require repeated operations, which requires a lot of manpower and time, and is prone to writing errors.

[0005] (3) Slow updates. When the system-level chip architecture design or clock architecture or frequency needs to be adjusted, the constraints need to be rewritten manually, which makes it difficult to adapt the architecture or constraint adjustments in a timely manner.

[0006] Therefore, the above-mentioned method of manually writing constraints requires a lot of writing time, and the development efficiency is extremely low, which makes the chip data delivery time too long and increases the chip R&D cycle. Summary of the invention

[0007] In view of this, the purpose of the present invention is to provide a chip constraint file generation method, device, equipment and medium, which can reduce the manpower and material investment costs and the chip R&D cycle, and improve the chip development efficiency. The specific scheme is as follows:

[0008] In a first aspect, the present application discloses a method for generating a chip constraint file, comprising:

[0009] When the information file is a constraint information file, classifying the constraint information file to obtain a clock information file, a timing exception information file or an optimization information file;

[0010] If the information file is the clock information file, the clock information file is parsed based on a clock nesting information parsing algorithm to obtain a parsing result, and the clock information file is parsed using the parsing result and a clock attribute information parsing algorithm to generate a clock constraint file;

[0011] If the information file is the timing exception information file, parsing the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file;

[0012] If the information file is the optimization information file, parsing the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file;

[0013] The clock constraint file, the timing exception constraint file and the optimization constraint file are checked based on a preset checking strategy, and when the checking result is correct, the corresponding constraint file generation process is terminated.

[0014] Optionally, the chip constraint file generation method further includes:

[0015] When the information file is an environment information file, the information file is parsed to obtain a script file carrying corresponding environment information and a history file recording a modification history of the environment information.

[0016] Optionally, the parsing the clock information file based on the clock nesting information parsing algorithm to obtain a parsing result includes:

[0017] Parsing the hierarchical level of the clock information file based on the clock nesting information parsing algorithm;

[0018] When the valid value of the hierarchical level is the first valid value, the layout block corresponding to the clock information file is the general layout, and the general layout name and the instantiation name corresponding to the general layout are parsed;

[0019] When the valid value of the hierarchical level is the second valid value, the layout block corresponding to the clock information file is a sub-layout, and the sub-layout name and the calling path corresponding to the sub-layout are parsed.

[0020] Optionally, the parsing the clock information file using the parsing result and a clock attribute information parsing algorithm to generate a clock constraint file includes:

[0021] Parsing the original clock type of the clock information file based on the clock attribute information parsing algorithm, and determining the target clock type according to the effective value of the original clock type;

[0022] Wherein, when the valid value of the original clock type is the third valid value or the fourth valid value, the target clock type is set to the original clock in the clock information file; when the valid value of the original clock type is the fifth valid value, the target clock type is set to the generated clock, and when the layout block is the total layout, a virtual clock is created; wherein, the third valid value indicates that the original clock type is the input port of the layout block, the fourth valid value indicates that the original clock type is the output port of the internal hardware module of the layout block, and the fifth valid value indicates that the original clock type is the output port of the internal logic unit of the layout block;

[0023] Parsing the original clock name of the clock information file based on the clock attribute information parsing algorithm, and determining the target clock name according to the valid value of the original clock type and a preset naming method;

[0024] Determine the target clock path, the master clock name, the target clock frequency, the target clock pulse, the target frequency division information and the clock synchronization and asynchronous relationship according to the effective value of the original clock type;

[0025] The clock constraint file is generated according to the target clock type, the target clock name, the target clock path, the master clock name, the target clock frequency, the target clock pulse, the target frequency division information, and the clock synchronous and asynchronous relationship.

[0026] Optionally, determining the target clock name according to the valid value of the original clock type and a preset naming method includes:

[0027] If the valid value of the original clock type is the third valid value or the fourth valid value, constructing a name for the target clock based on the first naming method;

[0028] If the valid value of the original clock type is the fifth valid value, the target clock name is constructed based on the second naming method; wherein the first naming method and the second naming method correspond to different prefix and suffix representation methods.

[0029] Optionally, parsing the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file includes:

[0030] The timing path type of the timing exception information file is parsed based on the timing exception information parsing algorithm, and the starting point, passing point and end point of the timing path type as the target timing path are specified by a preset designation method; wherein the target timing path is a timing path that does not need to be analyzed.

[0031] Optionally, the checking the clock constraint file, the timing exception constraint file, and the optimization constraint file based on a preset checking strategy includes:

[0032] The clock constraint file, the timing exception constraint file and the optimization constraint file are checked for syntax errors and constraint consistency.

[0033] In a second aspect, the present application discloses a chip constraint file generation device, comprising:

[0034] A file classification module, for classifying the constraint information file when the information file is a constraint information file, to obtain a clock information file, a timing exception information file or an optimization information file;

[0035] A first parsing module, configured to parse the clock information file based on a clock nesting information parsing algorithm to obtain a parsing result if the information file is the clock information file, and parse the clock information file using the parsing result and a clock attribute information parsing algorithm to generate a clock constraint file;

[0036] A second parsing module, configured to parse the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file if the information file is the timing exception information file;

[0037] A third parsing module, configured to parse the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file if the information file is the optimization information file;

[0038] The constraint checking module is used to check the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset checking strategy, and terminate the corresponding constraint file generation process when the checking result is correct.

[0039] In a third aspect, the present application discloses an electronic device, comprising:

[0040] Memory, used to store computer programs;

[0041] The processor is used to execute the computer program to implement the aforementioned disclosed chip constraint file generation method.

[0042] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed chip constraint file generation method is implemented.

[0043] It can be seen that the present application proposes a chip constraint file generation method, including: when the information file is a constraint information file, classifying the constraint information file to obtain a clock information file, a timing exception information file or an optimization information file; if the information file is the clock information file, parsing the clock information file based on a clock nested information parsing algorithm to obtain a parsing result, and using the parsing result and a clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file; if the information file is the timing exception information file, parsing the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file; if the information file is the optimization information file, parsing the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file; checking the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset inspection strategy, and ending the corresponding constraint file generation process when the inspection result is correct.

[0044] Beneficial effects: First, the present application parses the clock information file based on the clock nesting information parsing algorithm to obtain the parsing result, and uses the parsing result and the clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file. In this way, the present application can generate a clock constraint file that meets the grammar and design requirements, and when the clock level is adjusted, the subsystem clock architecture, or the timing exceptions of each level are modified, the present application can quickly regenerate a new clock constraint file to adapt to the clock requirements and port constraint changes in time. Secondly, the present application designs a timing exception information parsing algorithm and an optimization information parsing algorithm, so that a timing exception constraint file and an optimization constraint file that meet the grammar and design requirements are generated. Further, the present application checks the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset inspection strategy, so that the error probability of the constraint file is reduced and the correctness of the constraint file is guaranteed. Finally, the constraint file generation process of the present application is an automatic generation process, so that the present application reduces the investment of manpower and material resources and the research and development cycle of the chip, and improves the chip development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0046] Figure 1 A flow chart of a chip constraint file generation method disclosed in this application;

[0047] Figure 2 A flowchart of a specific chip constraint file generation method disclosed in this application;

[0048] Figure 3 A module diagram of a device for implementing a chip constraint file generation method disclosed in the present application;

[0049] Figure 4 A schematic diagram of the structure of a chip constraint file generating device disclosed in this application;

[0050] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] At present, the chip constraint generation process is that chip design engineers manually write chip constraint files according to chip architecture requirements, which has the following obvious disadvantages:

[0053] (1) Error-prone and difficult to maintain; (2) Inefficient, time-consuming and labor-intensive; (3) Slow to update.

[0054] To this end, the embodiment of the present application proposes a chip constraint file generation solution, which can reduce the cost of manpower and material resources and the chip R&D cycle, and improve the chip development efficiency.

[0055] The present application embodiment discloses a method for generating a chip constraint file. Figure 1 and Figure 2 As shown, the method includes:

[0056] Step S11: when the information file is a constraint information file, classify the constraint information file to obtain a clock information file, a timing exception information file or an optimization information file.

[0057] In this embodiment, the acquired information files are classified. When the information file is a constraint information file, the constraint information file is classified to obtain a clock information file, a timing exception information file or an optimization information file. When the information file is an environment information file, the information file is parsed to obtain a script file carrying the environment information and a history file recording the modification history of the environment information.

[0058] Step S12: If the information file is the clock information file, the clock information file is parsed based on the clock nesting information parsing algorithm to obtain a parsing result, and the clock information file is parsed using the parsing result and the clock attribute information parsing algorithm to generate a clock constraint file.

[0059] In this embodiment, if the information file is a clock information file, the clock information file is parsed based on the clock nested information parsing algorithm to obtain a parsing result. Specifically, the hierarchical level of the clock information file is parsed based on the clock nested information parsing algorithm. When the effective value of the hierarchical level is the first effective value, the layout block corresponding to the clock information file is the total layout, and the total layout name and instantiation name corresponding to the total layout are parsed. When the effective value of the hierarchical level is the second effective value, the layout block corresponding to the clock information file is the sub-layout, and the sub-layout name and call path corresponding to the sub-layout are parsed.

[0060] In a specific implementation, the first valid value can be expressed as Top, and the second valid value can be expressed as Block. Top is used to identify that the layout block corresponding to the clock information file is the total layout, and Block is used to identify that there is a sub-layout under the layout block corresponding to the clock information file, and the relevant sub-layout information needs to be supplemented. Further, if the effective value of the hierarchy level is Top, the total layout name (module name) and the instantiation name (instancename) corresponding to the total layout are parsed. Further, if the effective value of the hierarchy level is block, the sub-layout name and the call path corresponding to the total layout are parsed, for example: inst_xxx / inst_xxx / inst_sub_block. In addition, if the sub-layout is instantiated multiple times, all instantiation information needs to be parsed. It should be pointed out that this embodiment obtains the call path of the sub-layout through the configuration information file (BlockConstraint Excel) of the sub-layout. In this way, when the clock hierarchy is adjusted, the subsystem clock architecture, or the timing exceptions of each level are modified, the present application can adapt to the clock requirements and port constraint changes in a timely manner.

[0061] Furthermore, this embodiment utilizes the parsing result and the clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file. Specifically, (1) the original clock type of the clock information file is parsed based on the clock attribute information parsing algorithm, and the target clock type is determined according to the effective value of the original clock type; wherein, when the effective value of the original clock type is the third effective value or the fourth effective value, the target clock type is set to the original clock in the clock information file; when the effective value of the original clock type is the fifth effective value, the target clock type is set to the generated clock, and when the layout block is the overall layout, a virtual clock is created; wherein, the third effective value indicates that the original clock type is the input port of the layout block, the fourth effective value indicates that the original clock type is the output port of the internal hardware module of the layout block, and the fourth effective value indicates that the original clock type is the output port of the internal hardware module of the layout block. (5) The valid value indicates that the original clock type is the output port of the internal logic unit of the layout block; (2) the original clock name of the clock information file is parsed based on the clock attribute information parsing algorithm, and the target clock name is determined according to the valid value of the original clock type and the preset naming method; (3) the target clock path, the main clock name, the target clock frequency, the target clock pulse, the target frequency division information and the clock synchronization and asynchronous relationship are determined according to the valid value of the original clock type; (4) the clock constraint file is generated according to the target clock type, the target clock name, the target clock path, the main clock name, the target clock frequency, the target clock pulse, the target frequency division information and the clock synchronization and asynchronous relationship.

[0062] It should be pointed out that, for the preset naming method, if the valid value of the original clock type is the third valid value or the fourth valid value, the target clock name is constructed based on the first naming method; if the valid value of the original clock type is the fifth valid value, the target clock name is constructed based on the second naming method; wherein, the first naming method and the second naming method correspond to different prefix and suffix representation methods.

[0063] In a specific implementation, the third valid value of the original clock type can be represented as Port, the fourth valid value of the original clock type can be represented as PLL, and the fifth valid value of the original clock type can be represented as Pin. The output ports of the internal logic units of the layout block include the output of the frequency divider, the gate clock unit, the clock selector, etc. Further, when the layout block is the master layout, a virtual clock is created, and a string VCLK_COMB is defined to represent the virtual clock.

[0064] In a specific implementation, if the original clock type is Port or PLL, the target clock name is prefixed with PCLK and suffixed with CLK, with a character string corresponding to the clock name in the middle; if the original clock type is Pin, the target clock name is prefixed with GCLK and suffixed with CLK, with a character string corresponding to the clock name in the middle. In addition, the clock name needs to be considered globally.

[0065] In a specific implementation, if the valid value of the original clock type is Port, the target clock path is usually the pin input of the layout block; if the valid value of the original clock type is PLL, the target clock path is usually the pin output within the sub-layout; if the valid value of the original clock type is Pin, the target clock path is usually the pin output of an inseparable unit within the sub-layout; further, if the inseparable unit is a clock gating unit, it ends with rccu1 / Q; if the inseparable unit is a register, it ends with _reg / Q; if the inseparable unit is a combinational unit, it ends with rccu1 / Z.

[0066] In a specific implementation, if the original clock type is Pin, it is necessary to provide the corresponding master clock name for the generated clock; the target clock frequency of the defined clock is interpreted by Frequency, and the corresponding decimal value is parsed in MHz; the rising edge and falling edge relationship of the clock, that is, the target clock pulse, is parsed by Waveform; when the clock is generated, the target frequency division relationship EDGE can be parsed, and the positions of the rising edge and falling edge in the target frequency division relationship are identified, which are three decimal values ​​separated by spaces. The target frequency division relationship can refer to Table 1:

[0067] Table 1

[0068]

[0069] Furthermore, a target frequency division coefficient of the clock is generated through the Divider identifier, and the target frequency division coefficient is used in conjunction with the target frequency division relationship.

[0070] Furthermore, the synchronous and asynchronous relationship between clocks is defined through the Clock Group. This value is similar to the target clock name and needs to be defined from the global top to the bottom. The names at each level need to be related. The rules for the Clock Group name are as follows: The underscore in the name is used to distinguish different combinations. Groups with the same prefix will be classified into the synchronous group, as shown in Table 2:

[0071] Table 2

[0072]

[0073] Step S13: If the information file is the timing exception information file, the timing exception information file is parsed based on a timing exception information parsing algorithm to generate a timing exception constraint file.

[0074] In this embodiment, the timing path type of the timing exception information file is parsed based on the timing exception information parsing algorithm, and the starting point, passing point and end point of the timing path type as the target timing path are specified by a preset designation method; wherein the target timing path is a timing path that does not need to be analyzed. In this embodiment, the valid values ​​representing the timing path type specifically include case_analysis, set_false_path, set_multicycle_path, set_min_delay, and set_max_delay. case_analysis represents setting a constant signal, set_false_path represents a timing path that does not need to be analyzed, set_multicycle_path represents the number of clock cycles required to propagate data from the beginning to the end of the path, set_min_delay represents the minimum delay, and set_max_delay represents the maximum delay. Further, the starting point From path of the target timing path may include a clock, a pin or a port, the passing point Throughpath of the target timing path is the passing point of the target clock path, and the end point To path of the target timing path may include a clock, a pin or a port. When a From_list is not specified, all paths whose endpoints are in the To_list are set to prohibited. It should be noted that if the -Through option is used in combination with the -From or -To option, the prohibited path is only valid when the -From or -To condition is met and the -Through condition is also met. At this time, the path rationality is checked in the precompiled module.

[0075] In addition, this embodiment also includes the analysis of Value, whose valid values ​​can be 0 and 1, the analysis of Setup, whose valid values ​​can be integers greater than 2, and further includes the analysis of Option1, whose valid values ​​include start and end, and finally includes the analysis of Comment, whose valid value is a string.

[0076] Finally, this embodiment generates a timing exception constraint file based on the results obtained from the above analysis.

[0077] Step S14: If the information file is the optimization information file, the optimization information file is parsed based on an optimization information parsing algorithm to generate an optimization constraint file.

[0078] In this embodiment, the optimization information file is parsed based on the optimization information parsing algorithm. Specifically, Command is parsed, and its valid values ​​include set_max_area (maximum area), set_min_area (minimum area), and set_voltage (voltage value). An optimization constraint file is generated based on the parsed results.

[0079] Step S15: Check the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset check strategy, and terminate the corresponding constraint file generation process when the check result is correct.

[0080] In this embodiment, syntax error checking and constraint consistency checking are performed on the clock constraint file, the timing exception constraint file and the optimization constraint file, thereby reducing the error probability in the handwriting constraint process and ensuring the correctness of the constraints.

[0081] In addition, the present application proposes a chip constraint file generation device, which includes a history record module, an environment building module, a constraint generation module, a compilation check module and a parsing module. The device automatically outputs the constraint file and checks the constraint file, thereby improving the grammatical accuracy and generation efficiency of the constraint and improving the work efficiency of the design engineer. Specifically, the history record module is used to record the modification author and modification content corresponding to each version constraint, and the environment building module describes the environment building information, including the operating environment (operation condition), the wire load model (wire load mode), and the design rules. The constraint generation module classifies the parsing content of each parsing submodule of the parsing module to generate a constraint file. The compilation check module performs syntax check, top-level port and subsystem consistency check on the generated constraint file. Further, the parsing module includes: ① configuration information parsing submodule, which performs parsing of the nested information of the layout block. ② clock information parsing submodule, which performs parsing of the clock constraint information in the constraint information file of each layout block. ③Exception information parsing submodule; ④Optimization information parsing submodule. The configuration information parsing submodule completes the parsing of different layout block configuration information, which is mainly used for the parsing of clock and exception nested hierarchical calls. Each top-level layout block needs to provide a layout block configuration information file. The clock information parsing submodule completes the interpretation of the clock constraint information of each layout block, which is mainly used for the syntax information of the clock constraint file. Each called layout block needs to provide a constraint information file. The exception constraint parsing submodule completes the parsing of exception constraints, and the optimization information parsing submodule completes the parsing of optimization constraints.

[0082] In summary, this application proposes a device and method for generating chip constraints, which uses a constraint generation process and a parsing algorithm to automatically complete the writing of clock constraint files, exception constraint files, and optimization constraint files through the constraint generation device, and perform constraint consistency and constraint syntax checks. This reduces the error probability in the process of handwriting constraints and greatly improves the efficiency of constraint file generation.

[0083] In addition, in order to further improve the scalability of the present application, the generation process of the constraint file in the present application can be adaptively adjusted, for example, the constraint file is first classified, and then when the constraint information file classification result is a clock information file, the configuration information is parsed. Furthermore, the parsing algorithm for parsing the configuration information content, clock information content, exception information content, and optimization information content can also be replaced, that is, the corresponding parsing algorithm is adjusted according to the actual constraint requirements to meet the generation of different constraint files. Furthermore, the programming language used for the device implementation, the constraint information input method, and the constraint file output type can all be changed.

[0084] It can be seen that the present application proposes a chip constraint file generation method, including: when the information file is a constraint information file, classifying the constraint information file to obtain a clock information file, a timing exception information file or an optimization information file; if the information file is the clock information file, parsing the clock information file based on a clock nested information parsing algorithm to obtain a parsing result, and using the parsing result and a clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file; if the information file is the timing exception information file, parsing the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file; if the information file is the optimization information file, parsing the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file; checking the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset inspection strategy, and ending the corresponding constraint file generation process when the inspection result is correct.

[0085] Beneficial effects: First, the present application parses the clock information file based on the clock nesting information parsing algorithm to obtain the parsing result, and uses the parsing result and the clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file. In this way, the present application can generate a clock constraint file that meets the grammar and design requirements, and when the clock level is adjusted, the subsystem clock architecture, or the timing exceptions of each level are modified, the present application can quickly regenerate a new clock constraint file to adapt to the clock requirements and port constraint changes in time. Secondly, the present application designs a timing exception information parsing algorithm and an optimization information parsing algorithm, so that a timing exception constraint file and an optimization constraint file that meet the grammar and design requirements are generated. Further, the present application checks the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset inspection strategy, so that the error probability of the constraint file is reduced and the correctness of the constraint file is guaranteed. Finally, the constraint file generation process of the present application is an automatic generation process, so that the present application reduces the investment of manpower and material resources and the research and development cycle of the chip, and improves the chip development efficiency.

[0086] Correspondingly, the present application embodiment also discloses a chip constraint file generation device, see Figure 4 As shown, the device comprises:

[0087] A file classification module 11, for classifying the constraint information file when the information file is a constraint information file, to obtain a clock information file, a timing exception information file or an optimization information file;

[0088] A first parsing module 12 is used for, if the information file is the clock information file, parsing the clock information file based on a clock nesting information parsing algorithm to obtain a parsing result, and parsing the clock information file using the parsing result and a clock attribute information parsing algorithm to generate a clock constraint file;

[0089] A second parsing module 13, configured to parse the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file if the information file is the timing exception information file;

[0090] A third parsing module 14 is configured to parse the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file if the information file is the optimization information file;

[0091] The constraint checking module 15 is used to check the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset checking strategy, and terminate the corresponding constraint file generation process when the checking result is correct.

[0092] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0093] It can be seen that the present application proposes a chip constraint file generation method, including: when the information file is a constraint information file, classifying the constraint information file to obtain a clock information file, a timing exception information file or an optimization information file; if the information file is the clock information file, parsing the clock information file based on a clock nested information parsing algorithm to obtain a parsing result, and using the parsing result and a clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file; if the information file is the timing exception information file, parsing the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file; if the information file is the optimization information file, parsing the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file; checking the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset inspection strategy, and ending the corresponding constraint file generation process when the inspection result is correct.

[0094] Beneficial effects: First, the present application parses the clock information file based on the clock nesting information parsing algorithm to obtain the parsing result, and uses the parsing result and the clock attribute information parsing algorithm to parse the clock information file to generate a clock constraint file. In this way, the present application can generate a clock constraint file that meets the grammar and design requirements, and when the clock level is adjusted, the subsystem clock architecture, or the timing exceptions of each level are modified, the present application can quickly regenerate a new clock constraint file to adapt to the clock requirements and port constraint changes in time. Secondly, the present application designs a timing exception information parsing algorithm and an optimization information parsing algorithm, so that a timing exception constraint file and an optimization constraint file that meet the grammar and design requirements are generated. Further, the present application checks the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset inspection strategy, so that the error probability of the constraint file is reduced and the correctness of the constraint file is guaranteed. Finally, the constraint file generation process of the present application is an automatic generation process, so that the present application reduces the investment of manpower and material resources and the research and development cycle of the chip, and improves the chip development efficiency.

[0095] Furthermore, an embodiment of the present application also provides an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0096] Figure 5A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the chip constraint file generation method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0097] In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0098] In addition, the memory 22, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include a computer program 221, and the storage method may be temporary storage or permanent storage. In addition to including a computer program that can be used to complete the chip constraint file generation method executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 221 may further include a computer program that can be used to complete other specific tasks.

[0099] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed chip constraint file generation method is implemented.

[0100] For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.

[0101] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the chip constraint file generation method disclosed above.

[0102] The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0103] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0104] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0105] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0106] The above is a detailed introduction to a chip constraint file generation method, device, equipment, and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A chip constraint file generation method, characterized in that: include: When the information file is a constraint information file, classifying the constraint information file to obtain a clock information file, a timing exception information file or an optimization information file; If the information file is the clock information file, the clock information file is parsed based on a clock nesting information parsing algorithm to obtain a parsing result, and the clock information file is parsed using the parsing result and a clock attribute information parsing algorithm to generate a clock constraint file; If the information file is the timing exception information file, parsing the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file; If the information file is the optimization information file, parsing the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file; The clock constraint file, the timing exception constraint file and the optimization constraint file are checked based on a preset checking strategy, and when the checking result is correct, the corresponding constraint file generation process is terminated.

2. The chip constraint file generation method according to claim 1, characterized in that: Also includes: When the information file is an environment information file, the information file is parsed to obtain a script file carrying corresponding environment information and a history file recording a modification history of the environment information.

3. The chip constraint file generation method according to claim 1, characterized in that: The parsing of the clock information file based on the clock nesting information parsing algorithm to obtain a parsing result includes: Parsing the hierarchical level of the clock information file based on the clock nesting information parsing algorithm; When the valid value of the hierarchical level is the first valid value, the layout block corresponding to the clock information file is the general layout, and the general layout name and the instantiation name corresponding to the general layout are parsed; When the valid value of the hierarchical level is the second valid value, the layout block corresponding to the clock information file is a sub-layout, and the sub-layout name and the calling path corresponding to the sub-layout are parsed.

4. The chip constraint file generation method according to claim 3, characterized in that: The step of parsing the clock information file using the parsing result and the clock attribute information parsing algorithm to generate a clock constraint file includes: Parsing the original clock type of the clock information file based on the clock attribute information parsing algorithm, and determining the target clock type according to the effective value of the original clock type; Wherein, when the valid value of the original clock type is the third valid value or the fourth valid value, the target clock type is set to the original clock in the clock information file; when the valid value of the original clock type is the fifth valid value, the target clock type is set to the generated clock, and when the layout block is the total layout, a virtual clock is created; wherein, the third valid value indicates that the original clock type is the input port of the layout block, the fourth valid value indicates that the original clock type is the output port of the internal hardware module of the layout block, and the fifth valid value indicates that the original clock type is the output port of the internal logic unit of the layout block; Parsing the original clock name of the clock information file based on the clock attribute information parsing algorithm, and determining the target clock name according to the valid value of the original clock type and a preset naming method; Determine the target clock path, the master clock name, the target clock frequency, the target clock pulse, the target frequency division information and the clock synchronization and asynchronous relationship according to the effective value of the original clock type; The clock constraint file is generated according to the target clock type, the target clock name, the target clock path, the master clock name, the target clock frequency, the target clock pulse, the target frequency division information, and the clock synchronous and asynchronous relationship.

5. The chip constraint file generation method according to claim 4, characterized in that: The determining the target clock name according to the valid value of the original clock type and the preset naming method includes: If the valid value of the original clock type is the third valid value or the fourth valid value, constructing a name for the target clock based on the first naming method; If the valid value of the original clock type is the fifth valid value, the target clock name is constructed based on the second naming method; wherein the first naming method and the second naming method correspond to different prefix and suffix representation methods.

6. The chip constraint file generation method according to claim 1, characterized in that: The step of parsing the timing exception information file based on the timing exception information parsing algorithm to generate a timing exception constraint file includes: The timing path type of the timing exception information file is parsed based on the timing exception information parsing algorithm, and the starting point, passing point and end point of the timing path type as the target timing path are specified by a preset designation method; wherein the target timing path is a timing path that does not need to be analyzed.

7. The chip constraint file generation method according to any one of claims 1 to 6, characterized in that: The checking of the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset checking strategy includes: The clock constraint file, the timing exception constraint file and the optimization constraint file are checked for syntax errors and constraint consistency.

8. A chip constraint file generation device, characterized in that: include: A file classification module, for classifying the constraint information file when the information file is a constraint information file, to obtain a clock information file, a timing exception information file or an optimization information file; A first parsing module, configured to parse the clock information file based on a clock nesting information parsing algorithm to obtain a parsing result if the information file is the clock information file, and parse the clock information file using the parsing result and a clock attribute information parsing algorithm to generate a clock constraint file; A second parsing module, configured to parse the timing exception information file based on a timing exception information parsing algorithm to generate a timing exception constraint file if the information file is the timing exception information file; A third parsing module, configured to parse the optimization information file based on an optimization information parsing algorithm to generate an optimization constraint file if the information file is the optimization information file; The constraint checking module is used to check the clock constraint file, the timing exception constraint file and the optimization constraint file based on a preset checking strategy, and terminate the corresponding constraint file generation process when the checking result is correct.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the chip constraint file generation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the chip constraint file generation method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Timing constraint file generation method and device, electronic equipment and storage medium

    CN121189272A

  • DFT (Discrete Fourier Transform) clock architecture establishment method and device and electronic equipment

    CN121541741A

  • Chip asynchronous path inspection method and device, computer equipment, storage medium and computer program product

    CN122334136A