Clock path analysis method, device, electronic device, storage medium and computer program product
By using an index table to record the identification and polarity of the clock source in clock path analysis, the problem of low efficiency in analyzing complex clock signals and multiple clock signals in the existing technology is solved, and efficient clock path analysis and data storage management are achieved.
Patent Information
- Application Number
- CN202410756673.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-13
AI Technical Summary
When existing clock path analysis methods deal with complex clock signals and multiple clock signals, there are problems such as long processing time and excessive data storage, making it difficult to analyze and process efficiently.
The index table mechanism is used to determine the clock source of the target integrated circuit and the clock signal it provides, create an index table, record the identification and clock polarity of the clock source, and perform clock path analysis based on this to reduce repeated analysis and data storage.
It realizes efficient processing of complex clock signals and path analysis of multiple clock signals, shortens the analysis time, reduces the amount of data storage, and does not affect the analysis efficiency of a single clock signal.
Smart Images

Figure CN118332988B
Abstract
Description
Technical Field
[0001] The present application generally relates to the field of integrated circuit technology, and more specifically, to a clock path analysis method, device, electronic device, storage medium and computer program product. Background Art
[0002] With the advancement of manufacturing technology and design technology, the design methods of electronic systems have undergone profound changes, from computer-aided design (CAD), computer-aided engineering (CAE) to electronic design automation (EDA), the degree of design automation is getting higher and higher, and the complexity of design is getting stronger and stronger.
[0003] Integrated circuit EDA refers to the design method that uses computer-aided design software to complete the functional design, synthesis, verification, physical design (including layout, wiring, layout, design rule checking, etc.) of ultra-large-scale integrated circuit chips. At present, EDA technology has become a powerful tool for modern electronic design. Without the support of EDA technology, it is unimaginable to complete the design and manufacture of ultra-large-scale integrated circuits. Integrated circuit designers need to use EDA tools to design complex integrated circuits with hundreds of thousands to tens of billions of transistors to reduce design deviations, improve the success rate of tape-out and save tape-out costs.
[0004] Sequential logic circuits usually follow the synchronous design principle. The state change of the circuit is always triggered by the change of the clock signal. The rising and falling edges of the clock signal can usually be used as the trigger conditions of the circuit state. Since the clock signal serves the sequential logic circuit, when performing clock path analysis, the EDA tool will record the corresponding analysis data for all combinational logic circuits on the clock path (including but not limited to buffers and inverters).
[0005] However, with the continuous improvement of chip integration and complexity, EDA tools are increasingly encountering the situation of processing complex clock signals and multiple clock signals when performing clock path analysis. These situations may involve multiple clock domains, complex clock distribution structures, multiple clock sources, etc. In these cases, EDA tools need to analyze and process complex clock signals and multiple clock signals more accurately when performing clock path analysis. However, existing clock path analysis methods have problems such as requiring too much processing time and too much data storage. Summary of the invention
[0006] An exemplary embodiment of the present application is to provide a clock path analysis method, device, electronic device, storage medium and computer program product, which can shorten the analysis time of the clock path as much as possible and reduce the data storage volume of the clock path analysis.
[0007] According to a first aspect of an embodiment of the present application, a clock path analysis method is provided, comprising: determining each actual clock source of the target integrated circuit and at least one clock signal provided by the target integrated circuit based on the clock information of the target integrated circuit; creating an index table, wherein the index table initially includes data records corresponding to the each actual clock source and an index value of each data record, and the data record corresponding to each actual clock source includes: an identifier of the actual clock source and an identifier and clock polarity of at least one clock signal provided by the actual clock source; performing clock path analysis on the target integrated circuit according to the index table to obtain an analysis result, wherein the analysis result includes: index values and signal flip information corresponding to each line network for transmitting clock signals in the target integrated circuit.
[0008] According to a second aspect of an embodiment of the present application, a clock path analysis device is provided, comprising: an information determination unit, configured to: determine, based on the clock information of the target integrated circuit, each actual clock source of the target integrated circuit and at least one clock signal provided by the target integrated circuit; an index table creation unit, configured to: create an index table, wherein the index table initially includes data records corresponding to the actual clock sources one by one and an index value of each data record, and the data record corresponding to each actual clock source includes: an identifier of the actual clock source and an identifier and clock polarity of at least one clock signal provided by the target integrated circuit; an analysis unit, configured to: perform clock path analysis on the target integrated circuit according to the index table to obtain an analysis result, wherein the analysis result includes: the index value and signal flip information of the data record corresponding to each line network for transmitting the clock signal in the target integrated circuit.
[0009] According to a third aspect of an embodiment of the present application, a computer-readable storage medium storing instructions is provided. When the instructions are executed by a processor of an electronic device, the electronic device is enabled to perform the clock path analysis method as described above.
[0010] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the clock path analysis method as described above.
[0011] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising computer executable instructions, which, when executed by at least one processor, implement the clock path analysis method as described above.
[0012] According to the clock path analysis method, device, electronic device, storage medium and computer program product of the exemplary embodiment of the present application, a clock path analysis method is proposed that can avoid repeated analysis and reduce the amount of data storage. It can efficiently process the path analysis of complex clock signals and multiple clock signals without affecting the analysis efficiency of a single clock signal.
[0013] Other aspects and / or advantages of the general inventive concept of the present application will be set forth in part in the following description, and some will be clear from the description or may be learned through practice of the general inventive concept of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other objects and features of the exemplary embodiments of the present application will become more apparent through the following description in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, wherein:
[0015] Figure 1 An example of an existing clock path analysis method is shown;
[0016] Figure 2 Another example of an existing clock path analysis method is shown;
[0017] Figure 3 A flowchart showing a clock path analysis method according to an exemplary embodiment of the present application is shown;
[0018] Figure 4 An example of a clock path analysis method according to an exemplary embodiment of the present application is shown;
[0019] Figure 5 A flow chart showing a method for determining an identification and clock polarity of a clock signal corresponding to a target network according to an exemplary embodiment of the present application;
[0020] Figure 6 An example of determining the identity and clock polarity of a corresponding clock signal at a target node according to an exemplary embodiment of the present application is shown;
[0021] Figure 7 A structural block diagram of a clock path analysis device according to an exemplary embodiment of the present application is shown;
[0022] Figure 8 A structural block diagram of an electronic device according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] Reference will now be made in detail to embodiments of the present application, examples of which are shown in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below with reference to the accompanying drawings in order to explain the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0025] It should be noted that the phrase "at least one of the items" in this application includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0026] Logic gates are basic gate-level components on integrated circuits, such as NOT, OR, NOR, AND, XOR, XNOR, etc.
[0027] At a high level, logic gate circuits can be divided into combinatorial logic circuits and sequential logic circuits.
[0028] Combinational logic circuit: The output at any time depends only on the input at the current time, and has nothing to do with the previous historical state of the circuit (i.e., no memory capability). The logic does not involve the processing of transition edge signals, such as multiplexers, encoders, decoders, shifters, comparators, etc.
[0029] Sequential logic circuit: The output depends not only on the current input, but also on the historical state of the circuit. There are storage elements in the circuit to memorize state information, such as flip-flops and latches. From the perspective of circuit behavior, no matter how the input changes, the output can only change when the rising or falling edge of the clock signal arrives.
[0030] Sequential logic circuits usually follow the synchronous design principle. The state changes of their circuits are always triggered and controlled by changes in clock signals. The rising and falling edges of the clock signals can usually be used as trigger conditions for the circuit state.
[0031] The most basic clock source in integrated circuit design usually comes from an external crystal oscillator, but it may also come from within the design. For example, a phase-locked loop (PLL) integrated into the circuit can generate a clock signal.
[0032] The clock signal in the integrated circuit design needs to drive all the sequential logic units in the circuit, so the clock source end gate unit carries a lot of load, and its load delay is large and unbalanced. Buffers need to be inserted to reduce the load and balance the delay. The clock source and the buffers on its driving path constitute the clock tree. In addition to the buffer, sometimes several inverters are inserted into the clock tree according to design requirements. The inverter here can be regarded as a buffer with a signal flipping function.
[0033] In other words, the clock tree is a mesh structure built by many buffers in a balanced manner. It has at least one source point, which is usually the clock input port, or it may be a cell output pin inside the design. Then it is built up by buffers at each level. The number of buffers depends on the specific situation. The purpose is to make the clock skew, insertion delay and transition time of all endpoints meet the design requirements.
[0034] The clock tree is usually composed of a large number of buffers and phase shifters, and the clock signal is the signal with the highest toggle rate in IC (Integrated Circuit) design, so the power consumption of the clock tree may be as high as 30% of the entire design.
[0035] Clock gating is a technique / method to turn off the clock signal of certain parts of the IC design when they are not needed. The simplest implementation method is to perform an AND logic on the system clock signal and the enable signal. When the enable signal is 1, the clock signal will be provided to the corresponding sequential logic unit. When the enable signal is 0, the clock signal will be turned off and the corresponding sequential logic unit will be inactive.
[0036] When the data is invalid, the clock signal of the sequential logic unit is turned off, that is, adding a gated clock circuit can reduce the switching behavior of the clock tree, thereby saving the dynamic power consumption of the system. At the same time, since the switching behavior of the clock pin is reduced, the internal power consumption of the sequential logic unit is also reduced. Therefore, the use of a gated clock circuit can effectively reduce the power consumption of the design, generally saving 20% to 60% of the power consumption.
[0037] Clock tree synthesis (CTS) is a key step in EDA tools to perform clock-related checks and is the basis of static timing analysis (STA), which involves transmitting clock signals to various parts of the entire design to confirm that all sequential logic circuits can be driven with the correct clock signal.
[0038] During the clock tree generation process, the path analysis of the clock tree, that is, analyzing whether the clock signal can be accurately transmitted to each part of the entire design, is the basis for generating the clock tree and the key to whether the subsequent timing optimization, timing constraints, and timing checks can be accurately performed.
[0039] Since the clock signal serves the sequential logic circuit, the EDA tool will record the corresponding analysis data for all combinational logic units (including buffers and inverters) on the clock path when performing clock path analysis.
[0040] When dealing with the path analysis of a single clock signal / simple clock signal, a concise data structure can be used to complete the analysis. Figure 1 There is only clock signal C1 in the data. You can give the clock signal C1 an id (for example, id 1), and then use the id directly for path analysis. That is, starting from the clock source, along the direction of signal propagation, record the corresponding id data one level at a time on the clock path until you reach the end of the path.
[0041] For slightly more complicated situations, refer to Figure 1 For example, when clock path analysis is required for C1 and C2, two analyses are required respectively, and the data stored on the path will be twice that of a single analysis. If there are n clock signals, n analyses are required and n times the data is stored.
[0042] Alternatively, many existing clock path analysis tools do not support multiple clock signals and can only be analyzed in an overlay format. Figure 2 ,When analyzing, only the clock signal created for the last time, for example, C1-3, C3, is used.
[0043] This application takes into account that when processing multiple clock signals / complex clock signals, the simple data structure in the existing solution will cause problems such as excessive processing time and excessive data storage to complete the path analysis. This application proposes to use a data structure based on the concept of index to perform clock path analysis, so that it can efficiently process the path analysis of complex clock signals and multiple clock signals without affecting the efficiency of the path analysis of a single clock signal. In addition, it can also improve the analysis efficiency of special clock sources in integrated circuits (including but not limited to clock gating circuits). The following will be combined with Figures 3 to 8 Provide detailed explanation.
[0044] Figure 3 A flow chart of a clock path analysis method according to an exemplary embodiment of the present application is shown. The method may be implemented by a computer program, for example, the method may be executed by application software (eg, EDA tool) installed in an electronic device.
[0045] Reference Figure 3 In step S101, actual clock sources of the target integrated circuit and at least one clock signal provided by the clock sources are determined according to the clock information of the target integrated circuit.
[0046] As an exemplary embodiment, the clock information of the target integrated circuit can be read from the design constraint (Synopsys DesignConstraints, SDC) file of the target integrated circuit. As an example, the clock signal is usually defined first in SDC. For a synchronous circuit, the path delay time between buffers must be less than one clock period. For example, an example of a clock constraint statement in SDC is as follows:
[0047] create_clocks -name clk_name -period 10 [get_ports clk_in],
[0048] It means that a clock signal named clk_name is created for the clock source clk_in, so that layout and routing can be performed based on the created clock signal and a timing analysis report can be given.
[0049] As an exemplary embodiment, the number of actual clock sources may be one or more, and each actual clock source may provide at least one clock signal (i.e., at least one clock signal may be created for each actual clock source in the SDC). The actual clock source may come from outside the target integrated circuit (e.g., a crystal oscillator) or from inside the target integrated circuit (e.g., a phase-locked loop). It should be understood that the actual clock source is a clock source that can actually generate a clock signal (i.e., a clock source for which a clock signal is created in the SDC), and the special clock source in the following embodiments merely processes an existing clock signal.
[0050] In step S102, a first index table is created.
[0051] The first index table initially includes data records corresponding to each actual clock source and an index value of each data record, and the data record corresponding to each actual clock source includes: the identifier of the actual clock source and the identifier and clock polarity of at least one clock signal that it can provide. It should be understood that as step S103 is executed, the first index table can be updated, and the specific update method will be described in detail in the following embodiments, which will not be expanded here.
[0052] As an exemplary embodiment, the index values of the data records in the first index table may be consecutive integers starting from 0.
[0053] As an exemplary embodiment, when the actual clock source is an external clock source, the identifier of the actual clock source may be: the name of the clock input port of the target integrated circuit corresponding to the actual clock source, for example, clk1port. When the actual clock source is an internal clock source, the identifier of the actual clock source may be: the name of the cell output pin of the actual clock source.
[0054] As an exemplary embodiment, the identifier of the clock signal may be a name of the clock signal or a clock ID.
[0055] As an exemplary embodiment, the clock polarity of the clock signal refers to the property of the initial signal of the clock signal, and a true polarity (for example, represented by 1) indicates that the initial signal is at a high level, and a non-true polarity (for example, represented by 0) indicates that the initial signal is at a low level. In other words, a clock polarity of 1 indicates that the idle state (initial state) of the clock signal is a high level, and a clock polarity of 0 indicates that the idle state (initial state) of the clock signal is a low level.
[0056] For example, a data record in the first index table includes: <clk1 port,<1, 1> <2, 1><3, 1>> indicates that a clock signal with ID 1 (hereinafter referred to as clock signal 1), a clock signal with ID 2, and a clock signal with ID 3 are created for the actual clock source clk1 port, and the clock polarity of each clock signal is 1.
[0057] In addition, as an exemplary embodiment, a second index table may be created, and the second index table is used to store the index values of the data records corresponding to each actual clock source in the first index table, so as to facilitate the subsequent identification of which index values correspond to the actual clock source. The following Table 1 is an example of the first index table, and Table 2 is an example of the second index table. The first index table and the second index table will be described in detail in combination with Table 1 and Table 2, which will not be expanded here.
[0058] In step S103, clock path analysis is performed on the target integrated circuit according to the first index table to obtain an analysis result.
[0059] The analysis result includes: index values corresponding to each line net (net) used to transmit the clock signal in the target integrated circuit (index values of data recorded in the first index table) and signal flip information.
[0060] As an exemplary embodiment, step S103 may include: performing a clock path analysis on each actual clock source according to the first index table to obtain an analysis result.
[0061] According to an exemplary embodiment of the present application, in a scenario of multiple clock signals, for example, clock signal 1, clock signal 2, and clock signal 3 are created for the same port, then clock signal 1, clock signal 2, and clock signal 3 all correspond to the same index value (that is, the index value of the data record corresponding to the port), then for these three clock signals, only one path analysis needs to be performed based on the same index value, without the need for repeated analysis or storage of multiple analysis data.
[0062] As an exemplary embodiment, the process of performing a clock path analysis for each actual clock source may include: starting from the actual clock source along the signal propagation direction, each time passing through a line network, if the index value and signal flip information corresponding to the line network have not been recorded, then recording the index value and signal flip information corresponding to the line network; if the index value and signal flip information corresponding to the line network have been recorded (that is, they have been recorded when the clock path analysis was previously performed on other actual clock sources), then ending the clock path analysis for the actual clock source.
[0063] As an exemplary embodiment, the signal inversion information may indicate whether the signal is inverted (ie, whether the clock polarity is changed). For example, inversion may be indicated by 1, and non-inversion may be indicated by 0.
[0064] As an exemplary embodiment, for a wire net connected to an actual clock source (for example, a wire net connected to a clock input port corresponding to the actual clock source, a wire net connected to an output pin of the actual clock source), an index value corresponding to the wire net is: an index value of a data record corresponding to the actual clock source, and signal flip information corresponding to the wire net indicates no flip.
[0065] As an exemplary embodiment, for a line net connected to an output pin of a first type unit, the index value corresponding to the line net is the same as the index value corresponding to the previous line net, and the signal flip information corresponding to the line net is opposite to the signal flip information corresponding to the previous line net. For example, if the signal flip information corresponding to the previous line net of the line net indicates no flip (for example, represented by 0), then the signal flip information corresponding to the line net indicates flip (for example, represented by 1); if the signal flip information corresponding to the previous line net of the line net indicates flip (for example, represented by 1), then the signal flip information corresponding to the line net indicates no flip (for example, represented by 0). The previous line net of the line net is a line net connected to the input pin of the first type unit that just passed before passing through the line net. As an example, the first type unit may include, but is not limited to: a phase shifter.
[0066] As an exemplary embodiment, for a line net connected to an output pin of a second type unit, the index value corresponding to the line net is the same as the index value corresponding to the previous line net, and the signal flip information corresponding to the line net is the same as the signal flip information corresponding to the previous line net. As an example, the second type unit may include but is not limited to: a buffer.
[0067] In addition, as an exemplary embodiment, the process of performing a clock path analysis for each actual clock source may also include: each time a special clock source is passed, if the first index table already includes a data record corresponding to the special clock source, then new information is added to the data record corresponding to the special clock source; if the first index table does not include a data record corresponding to the special clock source, then the data record corresponding to the special clock source is saved in the first index table. As an example, the special clock source may be a combinational logic unit other than a phase shifter and a buffer.
[0068] Specifically, as an example, each time a special clock source is passed, if the first index table does not include a data record corresponding to the special clock source, a data record corresponding to the special clock source is generated; the generated data record is added to the first index table, and an index value is assigned to the newly added data record in the first index table. The generated data record corresponding to the special clock source may include: the identifier of the special clock source, the index value corresponding to a wire network connected to the input pin of the special clock source that just passed by before passing by the special clock source this time, and signal flip information.
[0069] Specifically, as an example, each time a special clock source is passed, if the first index table already includes a data record corresponding to the special clock source, the index value and signal flip information corresponding to a wire network connected to the input pin of the special clock source that just passed through the special clock source before this time will be added to the data record.
[0070] As an exemplary embodiment, the identifier of the special clock source may be: the name of the output pin of the special clock source. For example, when the special clock source is AND gate circuit 1, the identifier of the special clock source may be: and1 / out.
[0071] It is worth noting that the data record corresponding to the special clock source in the first index table no longer stores the identification and clock polarity of the clock signal, but the index value and signal inversion information.
[0072] As an exemplary embodiment, for a wire net connected to an output pin of a special clock source, the index value corresponding to the wire net is: the index value of the data record corresponding to the special clock source, and the signal flip information corresponding to the wire net indicates whether the special clock source will flip the signal. As an example, when the special clock source is a NAND gate circuit, the special clock source will flip the signal (for example, represented by 1), and when the special clock source is an AND gate circuit, the special clock source will not flip the signal (for example, represented by 0).
[0073] As an exemplary embodiment, the actual storage location of the index value and signal flip information corresponding to the recorded wire net can be stored in the wire net (for example, in the attribute of the wire net), and can be stored in the input port connected to the wire net or the output pin of the internal unit (for example, the attribute of the input port or the output pin) as another example. It should be understood that it can also be stored in other locations, and this application does not limit this.
[0074] The following will combine Table 1, Table 2 and Figure 4 The above exemplary embodiments are described in detail by way of example.
[0075] Table 1 First index table
[0076]
[0077] Table 2 Second index table
[0078]
[0079] Table 1 is an example of the first index table. The values in the first column of Table 1 are the index values of each data record. Figure 4 Table 1 initially includes only two data records (i.e., a data record with an index value of 1 and a data record with an index value of 2) corresponding to two actual clock sources (i.e., CLK1 and CLK2). Each data record includes the identifier of the actual clock source, the clock id and clock polarity of the clock signal that the actual clock source can provide, and <CLK1,<1,0> Taking <2, 1>> as an example, CLK1 represents the clock source. Since two clock signals are created for the clock source, the information of the two clock signals is recorded accordingly in the internal information of the same data record, namely, <1, 0> and <2, 1>. Specifically, the "1" in <1, 0> represents the clock signal with clock id 1 (also referred to as clock signal 1), and the "0" in <1, 0> represents the clock polarity of clock signal 1 is 0; the "2" in <2, 1> represents the clock signal with clock id 2 (also referred to as clock signal 2), and the "1" in <2, 1> represents the clock polarity of clock signal 2 is 1.
[0080] Table 2 is an example of a second index table, which is used to record the index values of the data records corresponding to the actual clock sources in Table 1. That is, the index values recorded in Table 2 include 1 and 2, which means that the internal information of the data records with index values of 1 and 2 in Table 1 records the information of the actual clock sources and their corresponding clock signals. The index values appearing in Table 2 are also called initial index values, which refer to the index values of the data records established for the initially created clock signals.
[0081] Perform clock path analysis based on the initial index value recorded in the table. Whenever the clock signal passes through the input port on the top module (top) or the output pin of the internal unit (cell), record the corresponding index value and flip information on the path. Figure 4 , perform clock path analysis for an actual clock source (for example, CLK1, or CLK2 first, with no restriction on the analysis order): starting from the clock source CLK1 and following the signal propagation direction, first record the index value corresponding to net 1 as 1 (i.e., the index value of the data record corresponding to the clock source CLK1), and the signal flip information corresponding to net 1 as 0 (indicating no flip); then, due to the buffer , record that the index value corresponding to net 2 is the same as that of the previous net (net 1), and the signal flip information corresponding to net 2 is the same as that of the previous net (net 1); then, due to the inverter , record that the index value corresponding to line net 3 is the same as that of the previous line net (that is, line net 2), and the signal flip information corresponding to line net 3 is opposite to that of the previous line net (that is, line net 2); then, due to the buffer , record that the index value corresponding to line 4 is the same as that of the previous line (that is, line 3), and the signal flip information corresponding to line 4 is the same as that of the previous line (that is, line 3); then encounter a fork node, so it is divided into two paths, one path is then due to the inverter , the index value corresponding to the recorded line network 5 is the same as that of the previous line network (that is, line network 4), and the signal flip information corresponding to line network 5 is opposite to that of the previous line network (that is, line network 4). Since the other path then passes through a special clock source, it is necessary to add a data record for the special clock source in Table 1 and generate an index value for it. The index value of the data record other than the initial index value in Table 1 can be called a newly added index value. The newly added index value refers to the index value of the data record newly created when a special clock source is encountered in the path analysis. In the internal information of the data record corresponding to the newly added index value, information such as clock id is no longer directly recorded, but the corresponding index value is recorded. Specifically, the data record corresponding to the newly added index value internally records the special clock source, index value (which may be the initial index value or other newly added index values), and information on whether the clock signal is flipped. Continue with the above reference Figure 4 In the embodiment, another path then adds a new data record in Table 1 and generates an index value for it because it passes through a special clock source. The newly added data record includes: the identifier of the special clock source (i.e., combinational logic gate / out), the index value (i.e., 1) and signal flip information (i.e., 1) corresponding to the wire net (i.e., wire net 4) connected to the input pin of the special clock source passed through this time. Therefore, the newly added data record includes: <combinational logic gate / out, <1, 1>>, and its index value is 3. After adding the data record, the path analysis continues. Because it passes through a special clock source, the index value corresponding to wire net 10 is recorded as 3 (i.e., the index value of the data record corresponding to the special clock source), and the signal flip information corresponding to wire net 10 is 0 (indicating that the special clock source does not flip the signal).
[0082] After the analysis of the actual clock source CLK1 is completed, the clock path analysis is continued for the next actual clock source CLK2: starting from the clock source CLK2 and following the signal propagation direction, first record the index value corresponding to the line net 6 as 2 (that is, the index value of the data record corresponding to the clock source CLK2), and the signal flip information corresponding to the line net 6 as 0 (indicating no flip); next, in the order they pass through, record the index values and signal flip information corresponding to the line nets 7, 8, and 9 (such as Figure 4 As shown, no further description is given); afterwards, since a special clock source is passed through and a data record for the special clock source has been generated before, it is only necessary to add new information inside the data record corresponding to the special clock source. The specific method is: add inside the data record for the special clock source: the index value (i.e., 2) and signal flip information (i.e., 1) corresponding to the wire net (i.e., wire net 9) connected to the input pin of the special clock source passed through this time, that is, add <2, 1> in <combinatorial logic gate / out, <1, 1>>, so as to obtain <combinatorial logic gate / out, <1, 1><2, 1>>. Since the index value and signal flip information corresponding to the wire net 10 reached after passing through the special clock source have been recorded, the clock path analysis for the actual clock source CLK2 is terminated. At this point, all clock signals have been analyzed.
[0083] According to an exemplary embodiment of the present application, when multiple clock signals are created for the same clock source, path analysis of the multiple clock signals can be completed by performing path analysis for only one index value. Figure 4 In the example, clock signal 1 and clock signal 2 correspond to the same index value (i.e., index value 1), and only one path analysis is required based on index value 1. This allows efficient processing of path analysis of multiple clock signals, avoids repeated analysis, and reduces data storage.
[0084] In the case of clock signal merging, such as Figure 4 A special clock source for merging multiple clock signals appears in the present invention. According to the exemplary embodiment of the present application, the path analysis of complex clock signals can be efficiently processed, repeated analysis can be avoided, and the amount of data storage can be reduced.
[0085] According to an exemplary embodiment of the present application, it is proposed to use two additional tables to record key information of the clock path analysis during clock path analysis, thereby facilitating clock path analysis and subsequent application of clock path analysis results.
[0086] An exemplary embodiment of applying the clock path analysis results is shown below.
[0087] As an exemplary embodiment, the clock path analysis method according to the exemplary embodiment of the present application may further include: determining the identity and clock polarity of the clock signal corresponding to the target line network based on the first index table and the above-obtained analysis results. The target line network is the line network at which the identity and clock polarity of the clock signal corresponding to the target line network are to be determined. Figure 5 and Figure 6 for detailed explanation, which will not be expanded here.
[0088] As an exemplary embodiment, the clock path analysis method according to the exemplary embodiment of the present application may also include: determining the identification and clock polarity of the clock signal corresponding to the target node based on the first index table and the analysis results obtained above. The target node is the node whose identification and clock polarity of the clock signal corresponding to the target node are to be determined, for example, it may be the clock input pin of a sequential logic circuit. Specifically, the wire net connected to the target node may be first used as the target wire net, and then based on the first index table and the analysis results obtained above, the identification and clock polarity of the clock signal corresponding to the target wire net may be determined, and the identification and clock polarity of the clock signal corresponding to the target wire net are the identification and clock polarity of the clock signal corresponding to the target node.
[0089] As an exemplary embodiment, the clock path analysis method according to the exemplary embodiment of the present application may further include: performing cross-clock domain analysis based on the analysis results obtained above.
[0090] As an example, if the index value corresponding to the clock input pin of a sequential logic unit is the same as the index value corresponding to the data input pin, the clock input pin and the data input pin of the sequential logic unit belong to the same clock domain, otherwise, they belong to different clock domains. For example, the index value corresponding to the data input pin may be: the index value corresponding to the clock input pin of the sequential logic unit that can be reached from the data input pin along the reverse signal propagation direction.
[0091] As another example, if the index values corresponding to the clock input pins of different sequential logic units connected together through a combinatorial logic unit are the same, then different data input pins of the combinatorial logic unit belong to the same clock domain; otherwise, they belong to different clock domains.
[0092] According to an exemplary embodiment of the present application, when analyzing across clock domains, multiple clock signals can be quickly compared through index values without having to compare the clock signals one by one.
[0093] As an exemplary embodiment, the clock path analysis method according to the exemplary embodiment of the present application may also include: providing information about the special clock source based on the first index table and / or the analysis results obtained above. As an example, the information about the special clock source may include, but is not limited to, at least one of the following items: information about the special clock source in the target integrated circuit (e.g., identification, identification and clock polarity of the clock signal corresponding to each input pin of the special clock source), information about the clock gating unit in the special clock source in the target integrated circuit, information about each special clock source passed from the actual clock source to the target node, the total number of each special clock source passed from the actual clock source to the target node, and whether the clock gating unit is passed from the actual clock source to the target node.
[0094] Figure 5 A flow chart of a method for determining an identity and clock polarity of a clock signal corresponding to a target net according to an exemplary embodiment of the present application is shown.
[0095] Reference Figure 5 In step S201, it is determined whether the clock source corresponding to the data record with the target index value is any actual clock source. The initial value of the target index value is the index value corresponding to the target line network, and the initial value of the target flip information is the signal flip information corresponding to the target line network.
[0096] As an example, the second index table can be used to determine whether the clock source corresponding to the data record with the index value of the target index value is any actual clock source. If the target index value is in the second index table, it is determined that the clock source corresponding to the data record with the index value of the target index value is the actual clock source; otherwise, it is determined that it is not the actual clock source.
[0097] In step S202, if it is determined that the corresponding clock source is any actual clock source, the identifier and clock polarity of the corresponding clock signal at the target network are determined according to the data record and target flip information corresponding to the any actual clock source.
[0098] As an exemplary embodiment, for the identification and clock polarity of each clock signal inside the data record corresponding to any actual clock source (hereinafter also referred to as the original clock polarity), if the target flip information indicates no flip, then the identification and clock polarity of the corresponding clock signal at the target line network are: the identification and original clock polarity of each clock signal inside the data record corresponding to any actual clock source; if the target flip information indicates flip, then the identification and clock polarity of the corresponding clock signal at the target line network are: the identification and the reverse value of the original clock polarity of each clock signal inside the data record corresponding to any actual clock source, that is, if the original clock polarity is 1, the reverse value is 0, and if the original clock polarity is 0, the reverse value is 1.
[0099] Reference Figure 6 If you need to determine the trigger The clock signal identification and clock polarity corresponding to the clock input pin of the trigger need to be determined The identifier and clock polarity of the clock signal corresponding to the wire net 5 connected to the clock input pin of , then take the wire net 5 as the target wire net, execute step S201, determine whether the clock source corresponding to the data record with the index value of the target index value (that is, the index value corresponding to the wire net 5: 1) is any actual clock source, since the index value 1 appears in Table 2, it is determined that the clock source corresponding to the data record with the index value of 1 is the actual clock source; therefore, next, execute step S202, the data record with the index value of 1 includes: <1, 0> (indicating clock signal 1, clock polarity is 0) and <2, 1> (indicating clock signal 2, clock polarity is 1), due to the target flip information (that is, the signal flip information corresponding to the wire net 5 is 0 (indicating no flip)), it is not necessary to flip the clock signal 1 and the clock signal 2, therefore, the identifier and clock polarity of the clock signal corresponding to the wire net 5 are: clock signal 1, clock polarity is 0 (that is, the same as the original polarity of clock signal 1); clock signal 2, clock polarity is 1.
[0100] In step S203, if it is determined that the corresponding clock source is not the actual clock source, the signal flip information currently corresponding to each index value in the at least one index value is determined based on the target flip information, at least one index value included in the data record whose index value is the target index value, and the signal flip information.
[0101] As an exemplary embodiment, for each index value of the at least one index value, if within the data record where the index value is the target index value, the signal flip information corresponding to the index value indicates no flip, and the target flip information indicates no flip, then it is determined that the signal flip information currently corresponding to the index value indicates no flip; if within the data record where the index value is the target index value, the signal flip information corresponding to the index value indicates no flip, and the target flip information indicates flip, then it is determined that the signal flip information currently corresponding to the index value indicates flip; if within the data record where the index value is the target index value, the signal flip information corresponding to the index value indicates flip, and the target flip information indicates flip, then it is determined that the signal flip information currently corresponding to the index value indicates no flip; if within the data record where the index value is the target index value, the signal flip information corresponding to the index value indicates flip, and the target flip information indicates no flip, then it is determined that the signal flip information currently corresponding to the index value indicates flip.
[0102] In step S204, each of the index values is used as a new target index value, and the signal inversion information currently corresponding to each of the index values is used as new target inversion information, and the process returns to step S201.
[0103] Reference Figure 6 If you need to determine the trigger The clock signal identification and clock polarity corresponding to the clock input pin of the trigger need to be determined If the identification and clock polarity of the clock signal corresponding to the wire net 10 connected to the clock input pin of the clock signal are obtained, then wire net 10 is taken as the target wire net, and step S201 is executed to determine whether the clock source corresponding to the data record with the index value of the target index value (that is, the index value corresponding to wire net 10: 3) is any actual clock source. Since the index value 3 does not appear in Table 2, it is determined that the clock source corresponding to the data record with the index value of 3 is not the actual clock source; therefore, next, step S203 is executed, and the data record with the index value of 3 includes: <1, 1> (indicating index value 1, flip) and <2, 1> (indicating index value 2, flip). Since the target flip information (that is, the signal flip information corresponding to wire net 10 is 0 (indicating no flip)), it is determined based on the above information that the signal flip information currently corresponding to the index value 1 is 1, and the signal flip information currently corresponding to the index value 2 is 1. Next, execute step S204. On the one hand, take index value 1 as the new target index value, and take the signal flip information (i.e., 1) currently corresponding to index value 1 as the new target flip information, return to execute step S201, determine whether the clock source corresponding to the data record with index value as the target index value (i.e., index value 1) is any actual clock source. Since index value 1 appears in Table 2, it is determined that the clock source corresponding to the data record with index value 1 is the actual clock source; therefore, next, execute step S202. The data record with index value 1 includes: <1, 0> (indicating clock signal 1, clock polarity is 0) and <2, 1> (indicating clock signal 2, clock polarity is 1). Since the target flip information is 1 (indicating flip), clock signal 1 and clock signal 2 need to be flipped. Therefore, the identification and clock polarity of the clock signal corresponding to line network 10 are determined as follows: clock signal 1, clock polarity is 1 (i.e., opposite to the original polarity of clock signal 1); clock signal 2, clock polarity is 0.
[0104] On the other hand, the index value 2 is used as the new target index value, and the signal flip information currently corresponding to the index value 2 (i.e., 1) is used as the new target flip information, and the process returns to step S201. The specific process is not repeated here, and the identification and clock polarity of the clock signal corresponding to the line network 10 are determined as follows: clock signal 3, clock polarity is 1. In summary, the identification and clock polarity of the clock signal corresponding to the line network 10 are finally determined as follows: clock signal 1, clock polarity is 1; clock signal 2, clock polarity is 0; clock signal 3, clock polarity is 1.
[0105] In fact, the above process can be summarized as follows: determine whether the target index value is recorded in Table 2. If the index value exists in Table 2, it indicates that it is the initial index value. The internal information of the data record with the index value of the index value in Table 1 records the clock id. Therefore, the clock id inside the data record with the index value of the index value is obtained from Table 1. If the index value does not exist in Table 2, it indicates that it is a newly added index value. In Table 1, other index values are nestedly recorded in the internal information of the data record with the index value of the index value. Therefore, determine other index values recorded in the internal information of the data record with the index value of the index value in Table 1, and further determine whether the other index values are recorded in Table 2, ..., until the specific clockid is located. Therefore, the corresponding clock signal information and the corresponding clock polarity can be accurately extracted through the index information, and how many special clock sources have passed and whether they have passed the clock gating unit can also be accurately known.
[0106] According to the exemplary embodiments of the present application, the efficiency of clock path analysis does not increase with the increase in the number and complexity of clock signals. Even in the case of multiple clock signals, clock signal merging, and multiple clock gating, the analysis cost will not be increased, and the more complex the clock signals and the more application scenarios, the more obvious the improvement effect compared with the existing solutions.
[0107] Figure 7 A structural block diagram of a clock path analysis device according to an exemplary embodiment of the present application is shown.
[0108] Reference Figure 7 According to an exemplary embodiment of the present application, a clock path analysis device includes: an information determination unit 100 , an index table creation unit 200 , and an analysis unit 300 .
[0109] Specifically, the information determining unit 100 is configured to determine, according to the clock information of the target integrated circuit, each actual clock source of the target integrated circuit and at least one clock signal provided by the clock source.
[0110] The index table creation unit 200 is configured to: create an index table, wherein the index table initially includes data records corresponding one-to-one to each actual clock source and an index value for each data record, and the data record corresponding to each actual clock source includes: an identifier of the actual clock source and an identifier and clock polarity of at least one clock signal it provides.
[0111] The analysis unit 300 is configured to: perform clock path analysis on the target integrated circuit according to the index table to obtain analysis results, wherein the analysis results include: index values and signal flip information of data records corresponding to each line network used to transmit clock signals in the target integrated circuit.
[0112] As an exemplary embodiment, the analysis unit 300 may be configured to: perform a clock path analysis on each actual clock source according to the index table to obtain the analysis result.
[0113] As an exemplary embodiment, the analysis unit 300 may be configured as follows: for each actual clock source, starting from the actual clock source along the direction of signal propagation, each time a line network is passed, if the line network has not been recorded, then the index value and signal flip information corresponding to the line network is recorded; if the line network has been recorded, then the clock path analysis for the actual clock source is terminated.
[0114] As an exemplary embodiment, the analysis unit 300 can also be configured as follows: in the process of performing clock path analysis on each actual clock source, each time a special clock source is passed, if the index table already includes a data record corresponding to the special clock source, then new information is added to the data record corresponding to the special clock source; if the index table does not include a data record corresponding to the special clock source, then the data record corresponding to the special clock source is saved in the index table.
[0115] As an exemplary embodiment, for a net connected to an actual clock source, the index value corresponding to the net is the index value of the data record corresponding to the actual clock source, and the signal flip information corresponding to the net indicates no flip; for a net connected to an output pin of a first type of unit, the index value corresponding to the net is the same as the index value corresponding to the previous net, and the signal flip information corresponding to the net is opposite to the signal flip information corresponding to the previous net; for a net connected to an output pin of a second type of unit, the index value corresponding to the net is the same as the index value corresponding to the previous net, and the signal flip information corresponding to the net is the same as the signal flip information corresponding to the previous net; for a net connected to an output pin of a special clock source, the index value corresponding to the net is the index value of the data record corresponding to the special clock source, and the signal flip information corresponding to the net indicates whether the special clock source will flip the signal.
[0116] As an exemplary embodiment, the analysis unit 300 may be configured as follows: each time a special clock source is passed, if the data record corresponding to the special clock source is not included in the index table, a data record corresponding to the special clock source is generated; the generated data record is added to the index table, and an index value is assigned to the newly added data record in the index table; wherein the generated data record includes: an identifier of the special clock source, an index value corresponding to the wire network connected to the input pin of the special clock source passed this time, and signal flip information.
[0117] As an exemplary embodiment, the analysis unit 300 can be configured as follows: each time a special clock source is passed, if the index table already includes a data record corresponding to the special clock source, then the index value and signal flip information corresponding to the wire network connected to the input pin of the special clock source passed this time are added to the data record.
[0118] As an exemplary embodiment, the first type unit is a phase transformer.
[0119] As an exemplary embodiment, the second type unit is a buffer.
[0120] As an exemplary embodiment, the special clock source is a combinational logic unit except a phase shifter and a buffer.
[0121] As an exemplary embodiment, the clock path analysis device according to the exemplary embodiment of the present application may further include: an application unit (not shown). The application unit may be configured to: determine the identification and clock polarity of the clock signal corresponding to the target network based on the index table and the analysis result; and / or, determine the identification and clock polarity of the clock signal corresponding to the target node based on the index table and the analysis result; and / or, perform cross-clock domain analysis based on the analysis result; and / or, provide information about a special clock source based on the index table and / or the analysis result.
[0122] As an exemplary embodiment, the application unit may be configured to: take the wire net connected to the target node as the target wire net, determine the index value and signal flip information corresponding to the target wire net according to the analysis result; determine whether the clock source corresponding to the data record with the index value of the target index value is any actual clock source, wherein the initial value of the target index value is the index value corresponding to the target wire net, and the initial value of the target flip information is the signal flip information corresponding to the target wire net; if it is determined that the corresponding clock source is any actual clock source, then determine the identifier and clock polarity of the corresponding clock signal at the target node according to the data record corresponding to the any actual clock source and the target flip information; if it is determined that the corresponding clock source is not an actual clock source, then determine the signal flip information currently corresponding to each index value in the at least one index value according to the target flip information, at least one index value included in the data record with the index value of the target index value, and the signal flip information; respectively take each index value as the target index value and the signal flip information currently corresponding to each index value as the target flip information, and return to execute the step of determining whether the clock source corresponding to the data record with the index value of the target index value is any actual clock source.
[0123] It should be understood that the specific processing performed by the clock path analysis device according to the exemplary embodiment of the present application has been referred to. Figures 1 to 7The details have been described in detail and will not be repeated here.
[0124] It should be understood that each unit in the clock path analysis device according to the exemplary embodiment of the present application may be implemented as a hardware component and / or a software component.
[0125] Figure 8 A structural block diagram of an electronic device according to an exemplary embodiment of the present application is shown.
[0126] Reference Figure 8 The electronic device includes: at least one memory 400 and at least one processor 500, wherein the at least one memory 400 stores a set of computer executable instructions, and when the computer executable instruction set is executed by the at least one processor 500, the clock path analysis method described in the above exemplary embodiment is executed.
[0127] As an example, the electronic device may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instruction set. Here, the electronic device is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above instructions (or instruction sets) individually or in combination. The electronic device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0128] In an electronic device, the processor 500 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. As an example and not limitation, the processor 500 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0129] The processor 500 may execute instructions or codes stored in the memory 400, wherein the memory 400 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.
[0130] The memory 400 may be integrated with the processor 500, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 400 may include a separate device, such as an external disk drive, a storage array, or any other storage device that may be used by a database system. The memory 400 and the processor 500 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 500 can read files stored in the memory.
[0131] In addition, the electronic device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device may be connected to each other via a bus and / or a network.
[0132] According to an exemplary embodiment of the present application, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to perform the clock path analysis method as described in the above exemplary embodiment. Examples of computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0133] According to an exemplary embodiment of the present application, a computer program product may also be provided. Instructions in the computer program product may be executed by at least one processor to implement the clock path analysis method as described in the above exemplary embodiment.
[0134] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0135] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A clock path analysis method, characterized in that: include: Determining, according to the clock information of the target integrated circuit, each actual clock source of the target integrated circuit and at least one clock signal provided by the clock source; Creating an index table, wherein the index table initially includes data records corresponding to the actual clock sources one by one and an index value of each data record, and the data record corresponding to each actual clock source includes: an identifier of the actual clock source and an identifier and clock polarity of at least one clock signal provided by the actual clock source; According to the index table, a clock path analysis is performed for each actual clock source to obtain an analysis result, wherein the analysis result includes: index values and signal flip information corresponding to each line network used to transmit the clock signal in the target integrated circuit; The step of performing a clock path analysis on each actual clock source according to the index table to obtain an analysis result comprises: For each actual clock source, starting from the actual clock source and following the direction of signal propagation, each time a line network is passed, if the line network has not been recorded, the index value and signal flip information corresponding to the line network is recorded; if the line network has been recorded, the clock path analysis for the actual clock source is terminated.
2. The clock path analysis method according to claim 1, characterized in that: The step of performing a clock path analysis for each actual clock source according to the index table to obtain an analysis result further includes: In the process of performing clock path analysis on each actual clock source, each time a special clock source is passed, if the index table already includes the data record corresponding to the special clock source, new information is added to the data record corresponding to the special clock source; if the index table does not include the data record corresponding to the special clock source, the data record corresponding to the special clock source is saved in the index table.
3. The clock path analysis method according to claim 2, characterized in that: For a line network connected to an actual clock source, the index value corresponding to the line network is the index value of the data record corresponding to the actual clock source, and the signal flip information corresponding to the line network indicates no flip; For a line net connected to an output pin of a first type unit, an index value corresponding to the line net is the same as an index value corresponding to a previous line net, and signal flip information corresponding to the line net is opposite to the signal flip information corresponding to the previous line net; For a line net connected to an output pin of a second type unit, an index value corresponding to the line net is the same as an index value corresponding to a previous line net, and signal flip information corresponding to the line net is the same as signal flip information corresponding to the previous line net; For a wire net connected to an output pin of a special clock source, an index value corresponding to the wire net is an index value of a data record corresponding to the special clock source, and signal inversion information corresponding to the wire net indicates whether the special clock source will invert the signal.
4. The clock path analysis method according to claim 2, characterized in that: If the index table does not include the data record corresponding to the special clock source, the step of saving the data record corresponding to the special clock source into the index table comprises: Each time a special clock source is passed, if the index table does not include a data record corresponding to the special clock source, a data record corresponding to the special clock source is generated; Adding the generated data record to the index table, and assigning an index value to the newly added data record in the index table; The generated data record includes: the identifier of the special clock source, the index value corresponding to the wire network connected to the input pin of the special clock source and the signal flip information.
5. The clock path analysis method according to claim 2, characterized in that: If the index table already includes the data record corresponding to the special clock source, the step of adding new information to the data record corresponding to the special clock source includes: Each time a special clock source is passed, if the index table already includes a data record corresponding to the special clock source, the index value and signal flip information corresponding to the wire net connected to the input pin of the special clock source passed this time are added to the data record.
6. The clock path analysis method according to claim 3, characterized in that: The first type of unit is a phase out device; and / or, the second type unit is a buffer; And / or, the special clock source is a combinational logic unit other than a phase shifter and a buffer.
7. The clock path analysis method according to claim 4, characterized in that: Also includes: Based on the index table and the analysis result, determining the identification and clock polarity of the clock signal corresponding to the target line network; and / or, determining an identifier and a clock polarity of a clock signal corresponding to a target node based on the index table and the analysis result; and / or, based on the analysis result, performing cross-clock domain analysis; And / or, based on the index table and / or the analysis result, providing information about a special clock source.
8. The clock path analysis method according to claim 7, characterized in that: The step of determining the identification and clock polarity of the clock signal corresponding to the target node based on the index table and the analysis result includes: Taking the wire net connected to the target node as the target wire net, and determining the index value and signal flip information corresponding to the target wire net according to the analysis result; Determine whether a clock source corresponding to a data record having an index value of a target index value is any actual clock source, wherein an initial value of the target index value corresponds to an index value of the target network, and an initial value of the target flip information corresponds to the signal flip information of the target network; If it is determined that the corresponding clock source is any actual clock source, determining the identifier and clock polarity of the clock signal corresponding to the target node according to the data record corresponding to the any actual clock source and the target flip information; If it is determined that the corresponding clock source is not the actual clock source, determining the signal flip information currently corresponding to each index value in the at least one index value according to the target flip information, at least one index value included in the data record whose index value is the target index value, and the signal flip information; Each of the index values is used as the target index value, and the signal flip information currently corresponding to each of the index values is used as the target flip information, and the step of determining whether the clock source corresponding to the data record whose index value is the target index value is any actual clock source is returned.
9. A clock path analysis device, characterized in that: include: An information determination unit is configured to: determine each actual clock source of the target integrated circuit and at least one clock signal provided by the clock source according to the clock information of the target integrated circuit; An index table creation unit is configured to: create an index table, wherein the index table initially includes data records corresponding to the actual clock sources one by one and an index value of each data record, and the data record corresponding to each actual clock source includes: an identifier of the actual clock source and an identifier and clock polarity of at least one clock signal provided by the actual clock source; An analysis unit is configured to: perform a clock path analysis for each actual clock source according to the index table to obtain an analysis result, wherein the analysis result includes: an index value and signal flip information of a data record corresponding to each line network used to transmit a clock signal in the target integrated circuit; Among them, the analysis unit is specifically configured as follows: for each actual clock source, starting from the actual clock source along the signal propagation direction, each time a line network is passed, if the line network has not been recorded, the index value and signal flip information corresponding to the line network are recorded; if the line network has been recorded, the clock path analysis for the actual clock source is terminated.
10. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the clock path analysis method according to any one of claims 1 to 8.
11. An electronic device, characterized in that: The electronic device comprises: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the clock path analysis method according to any one of claims 1 to 8.
12. A computer program product comprising computer executable instructions, characterized in that: When the computer executable instructions are executed by at least one processor, the clock path analysis method according to any one of claims 1 to 8 is implemented.
