A method, device, computer equipment and medium for analyzing multi-terminal angle static timing
By performing hierarchical processing and parallel calculation on the directed acyclic timing diagram of the circuit netlist, the problem of low timing analysis efficiency is solved, fast multi-end angle static timing analysis is achieved, and the calculation time is reduced.
Patent Information
- Application Number
- CN202311825358.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-12-27
AI Technical Summary
In the existing technology, sequentially calculating the arrival time (AT) and the demand arrival time (RT) of each node at different timing end angles has the problems of low timing analysis efficiency and long calculation time.
By hierarchical processing of the directed acyclic timing diagram of the circuit netlist, multi-threads are used to parallelly calculate the AT and RT of nodes in the same level, and the single instruction multiple data flow method is used to parallelly calculate the AT and RT of different end angles in the same node. RT, implements multi-end angle static timing analysis.
Significantly improves the efficiency of timing analysis, reduces calculation time, and improves the verification process speed of chip back-end design.
Smart Images

Figure CN117787162B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of static timing analysis, and in particular to a multi-terminal angle static timing analysis method, device, computer equipment and medium. Background Art
[0002] Static Timing Analysis is widely used in chip back-end design because it does not require input stimulus and can verify whether all paths have timing violations in a single calculation. In order to achieve timing closure of the design, designers usually perform a "static timing analysis-timing optimization" cyclic iteration process at different stages of chip design. Therefore, studying fast timing analysis algorithms can significantly accelerate the back-end design process.
[0003] In the process of static timing analysis, the circuit netlist is usually modeled as a directed acyclic timing graph, where the nodes on the graph represent the ports in the circuit and the pins on the basic circuit units, and the edges in the graph represent the connections between the ports and the pins. For each node, its arrival time (AT) and required arrival time (RT) need to be calculated, where the AT of each node depends on the AT of all predecessor nodes, and the RT of each node depends on the RT of all successor nodes. The overall calculation time increases linearly with the number of nodes.
[0004] In addition, the delay of the circuit will be affected by factors such as process, temperature and voltage. The combination of these different factors is called the timing corner. Under different timing corners, the timing results of the critical path may vary greatly, so it is necessary to calculate key information such as AT and RT of the timing path under each corner.
[0005] In the related art, the AT and RT of each node in a directed acyclic timing graph at different timing end angles are generally calculated in sequence based on a preset order. However, there are many nodes in the directed acyclic timing graph, and the timing end angle data also increases with the reduction of the process step. Calculating the AT and RT of each node at different timing end angles in sequence has the defects of low timing analysis efficiency and long calculation time. Summary of the invention
[0006] In view of this, the present invention provides a multi-terminal angle static timing analysis method, apparatus, computer equipment and medium to solve the problems of low timing analysis efficiency and long calculation time in the related art of sequentially calculating AT and RT of each node at different timing terminal angles.
[0007] In a first aspect, the present invention provides a multi-terminal angle static timing analysis method, the method comprising: obtaining a directed acyclic timing diagram of a circuit netlist and attribute information of each directed edge in the directed acyclic timing diagram, wherein the directed acyclic timing diagram comprises a plurality of nodes and a plurality of directed edges, the nodes are used to characterize the pins of the corresponding ports or basic circuit units in the circuit netlist, the directed edges are used to characterize the connection relationship between the ports and / or the ports, and the attribute information of the directed edges comprises the delays corresponding to different timing terminal angles; hierarchically processing each node in the directed acyclic timing diagram based on the depth of each node, determining the node sets corresponding to different levels and the dependencies between the nodes; and performing parallel analysis on the AT between different nodes in the corresponding level using the node sets of each level, the dependencies between the nodes and the delays of each directed edge at different timing terminal angles. The AT of each node in the corresponding level at different terminal angles is obtained by performing parallel calculations on the RT between different nodes in the same level at different terminal angles, wherein the AT between different nodes in the same level is calculated in parallel by using a plurality of pre-set threads, and the AT at different terminal angles in the same node is calculated in parallel by using a single instruction multiple data stream method; the RT between different nodes in the corresponding level is calculated in parallel by using a set of nodes in each level, the dependencies between nodes, and the delays of each directed edge at different timing terminal angles, and the RT of each node in the corresponding level at different terminal angles is obtained, wherein the RT between different nodes in the same level is calculated in parallel by using a plurality of pre-set threads, and the RT at different terminal angles in the same node is calculated in parallel by using a single instruction multiple data stream method; based on the AT and RT of each node at different terminal angles, the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist is determined.
[0008] The multi-terminal angle static timing analysis method provided by the present invention obtains a directed acyclic timing diagram obtained by modeling a circuit netlist and the delay corresponding to each edge of the directed acyclic timing diagram at different timing terminal angles, performs hierarchical processing on each node in the directed acyclic timing diagram, determines the node sets corresponding to different levels and the dependencies between the nodes; uses the node sets of each level, the dependencies between the nodes and the delays of each directed edge at different timing terminal angles to perform parallel calculations on the AT and RT between different nodes in the corresponding level, and obtains the AT and RT of each node in the corresponding level at different terminal angles, wherein the AT and RT between different nodes in the same level are calculated in parallel by a plurality of pre-set threads, and the AT and RT at different terminal angles in the same node are calculated in parallel by a single instruction multiple data stream method, and the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist is determined based on the AT and RT of each node in different levels. The method provided by the present invention hierarchically processes the nodes in the directed acyclic timing diagram of the circuit netlist, and uses multi-threading to realize parallel calculation of AT and RT of each node in the same layer set, wherein AT and RT at different end angles in the same node are calculated in parallel through a single instruction multiple data stream method, which effectively improves the efficiency of timing analysis and reduces the calculation time of timing analysis.
[0009] In an optional embodiment, the steps of obtaining a directed acyclic timing graph of a circuit netlist and attribute information of each directed edge in the directed acyclic timing graph include: obtaining a circuit netlist; identifying ports in the circuit netlist, pins of basic units, and connection relationships between ports and / or pins; constructing a directed acyclic timing graph using ports in the circuit netlist and pins of basic units as nodes and connection relationships between ports and / or pins as edges; traversing the timing arcs of all basic units and obtaining the delay of each timing arc at different timing end angles; and determining the attribute information of each directed edge in the directed acyclic timing graph based on the delay of each timing arc at different timing end angles.
[0010] In an optional embodiment, each node in the directed acyclic timing graph is hierarchically processed based on the depth of each node, and the steps of determining the node sets corresponding to different levels and the dependency relationships between the nodes include: extracting the in-degree of each node in the directed acyclic timing graph; determining the depth of the corresponding node based on the in-degree of each node and the maximum depth of the predecessor node connected to it; hierarchically processing the directed acyclic timing graph with nodes of the same depth as the same level to obtain a hierarchical timing graph; based on the hierarchical timing graph, determining the node sets corresponding to different levels and the dependency relationships between the nodes.
[0011] The method provided by this optional implementation can accurately determine the nodes belonging to the same level and confirm the dependency relationship between the nodes.
[0012] In an optional embodiment, the steps of constructing a directed acyclic timing graph by taking the ports in the circuit netlist and the pins of the basic units as nodes and the connection relationships between the ports and / or pins as edges include: constructing a topology graph by taking the ports in the circuit netlist and the pins of the basic units as nodes and the connection relationships between the ports and / or pins as edges; determining whether there are back edges in the topology graph by using a preset path search algorithm to obtain a determination result; and when there are back edges in the topology graph, removing the back edges in the topology graph to obtain a directed acyclic timing graph.
[0013] In an optional implementation, the AT between different nodes in the corresponding level is calculated in parallel by using the node set of each level, the dependency between nodes, and the delay of each directed edge at different timing end angles, so as to obtain the AT of each node in the corresponding level at different end angles, including: determining the maximum delay and the minimum delay corresponding to the different timing end angles based on the attribute information of each directed edge; and calculating the AT between different nodes in the corresponding level in parallel by using the node set of each level, the dependency between nodes, and the maximum delay and the minimum delay of each directed edge at different timing end angles, so as to determine the maximum AT and the minimum AT of each node in the corresponding level at different end angles.
[0014] In an optional embodiment, the RT between different nodes in the corresponding level is calculated in parallel using the node set of each level, the dependencies between nodes, and the delays of each directed edge at different timing end angles to obtain the RT of each node in the corresponding level at different end angles, including: using the node set of each level, the dependencies between nodes, and the maximum delay and minimum delay of each directed edge at different timing end angles to calculate the RT between different nodes in the corresponding level in parallel to determine the maximum RT and minimum RT of each node in the corresponding level at different end angles.
[0015] In a second aspect, the present invention provides a multi-terminal angle static timing analysis device, the device comprising:
[0016] An acquisition module is used to acquire the directed acyclic timing diagram of the circuit netlist and the attribute information of each directed edge in the directed acyclic timing diagram, wherein the directed acyclic timing diagram contains multiple nodes and multiple directed edges, wherein the nodes are used to represent the corresponding ports or pins of the basic circuit units in the circuit netlist, and the directed edges are used to represent the connection relationship between the ports and / or the ports, and the attribute information of the directed edges includes the delays corresponding to different timing end angles; a processing module is used to hierarchically process each node in the directed acyclic timing diagram based on the depth of each node, determine the node sets corresponding to different levels and the dependencies between the nodes; a first calculation module is used to perform parallel calculations on the AT between different nodes in the corresponding level by using the node sets of each level, the dependencies between the nodes and the delays of each directed edge at different timing end angles, and obtain the delays of each node in the corresponding level. AT of nodes at different end angles, wherein AT between different nodes in the same level is calculated in parallel by multiple threads pre-set, and AT at different end angles in the same node is calculated in parallel by a single instruction multiple data stream method; a second calculation module, used to use the node set of each level, the dependency relationship between the nodes and the delay of each directed edge at different timing end angles to parallelly calculate the RT between different nodes in the corresponding level to obtain the RT of each node in the corresponding level at different end angles, wherein RT between different nodes in the same level is calculated in parallel by multiple threads pre-set, and RT at different end angles in the same node is calculated in parallel by a single instruction multiple data stream method; a determination module, used to determine the multi-end angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist based on the AT and RT of each node at different end angles.
[0017] In an optional embodiment, the acquisition module includes: a first acquisition submodule, used to acquire a circuit netlist; an identification submodule, used to identify ports in the circuit netlist, pins of basic units, and connection relationships between ports and / or pins; a construction submodule, used to construct a directed acyclic timing graph using ports in the circuit netlist and pins of basic units as nodes and connection relationships between ports and / or pins as edges; a second acquisition submodule, used to traverse the timing arcs of all basic units and acquire the delay of each timing arc at different timing end angles; and a first determination submodule, used to determine the attribute information of each directed edge in the directed acyclic timing graph based on the delay of each timing arc at different timing end angles.
[0018] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the multi-terminal angle static timing analysis method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0019] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the multi-terminal angle static timing analysis method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 is a flow chart of a multi-terminal angle static timing analysis method according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of another multi-terminal angle static timing analysis method according to an embodiment of the present invention;
[0023] Figure 3 is a flow chart of another multi-terminal angle static timing analysis method according to an embodiment of the present invention;
[0024] Figure 4 is a structural block diagram of a multi-terminal angle static timing analysis device according to an embodiment of the present invention;
[0025] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0027] In the related art, the AT and RT of each node in a directed acyclic timing graph at different timing end angles are generally calculated in sequence based on a preset order. However, there are many nodes in the directed acyclic timing graph, and the timing end angle data also increases with the reduction of the process step. Calculating the AT and RT of each node at different timing end angles in sequence has the defects of low timing analysis efficiency and long calculation time.
[0028] In view of this, an embodiment of the present invention provides a multi-terminal angle static timing analysis method, which can be applied to a server to implement multi-terminal angle static timing analysis of each node in a circuit netlist. The method provided by the embodiment of the present invention hierarchically processes the nodes in the directed acyclic timing diagram of the circuit netlist, and uses multi-threading to implement parallel calculation of AT and RT of each node in the same layer set, wherein AT and RT at different terminal angles in the same node are calculated in parallel through a single instruction multiple data flow method, which effectively improves the efficiency of timing analysis and reduces the calculation time of timing analysis.
[0029] According to an embodiment of the present invention, an embodiment of a multi-terminal angle static timing analysis method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] In this embodiment, a multi-terminal angle static timing analysis method is provided, which can be used for the above-mentioned server. Figure 1 is a flow chart of a multi-terminal angle static timing analysis method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0031] Step S101, obtaining a directed acyclic timing graph of a circuit netlist and attribute information of each directed edge in the directed acyclic timing graph.
[0032] Exemplarily, a directed acyclic timing diagram includes multiple nodes and multiple directed edges, the nodes are used to represent the corresponding ports or pins of basic circuit units in the circuit netlist, the directed edges are used to represent the connection relationship between the ports and / or the ports, and the attribute information of the directed edges includes the delays corresponding to different timing end angles. In the embodiment of the present application, the circuit netlist describes the connection relationship between the basic units in the circuit, the delay data and the constraint file information, the delay data includes all the timing arcs in the circuit, and the constraint file is stored in the SDC format and includes all the timing constraints.
[0033] Step S102 , hierarchically processing each node in the directed acyclic time sequence graph based on the depth of each node, and determining node sets corresponding to different levels and dependency relationships between nodes.
[0034] Exemplarily, in an embodiment of the present application, nodes with the same depth are taken as a level, the node sets corresponding to each level are determined, and the dependency relationship between different nodes is determined. The corresponding predecessor node and successor node information of each node can be used to characterize the dependency relationship between the node and other nodes.
[0035] Step S103, using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles, parallel calculation is performed on the AT between different nodes in the corresponding level to obtain the AT of each node in the corresponding level at different end angles, wherein the AT between different nodes in the same level is calculated in parallel by a plurality of pre-set threads, and the AT at different end angles in the same node is calculated in parallel by a single instruction multiple data stream method.
[0036] Exemplarily, ATs between different nodes in the same level are calculated in parallel through a plurality of pre-set threads, wherein ATs at different end angles in the same node are calculated in parallel, and the calculation is implemented through a single instruction multiple data flow method.
[0037] Step S104, using the node set of each level, the dependencies between nodes and the delays of each directed edge at different timing end angles, parallelly calculate the RT between different nodes in the corresponding level to obtain the RT of each node in the corresponding level at different end angles.
[0038] Exemplarily, the RT between different nodes in the same level is calculated in parallel by pre-set multiple threads, and the RT under different end angles in the same node is calculated in parallel by a single instruction multiple data stream method. In an embodiment of the present application, the parallel calculation of nodes in the same level is based on multi-threading, and the parallel calculation between corners of the same node uses a single instruction multiple data stream method (Single Instruction Multiple Data, SIMD). For each node, the AT and RT under each corner are stored using 32-bit floating point numbers, and for each edge, the delay data under each corner is also stored using 32-bit floating point numbers. The SIMD method is based on the Intel SSE instruction set, which provides multiple 128-bit registers, which can support 4 single-precision floating-point numbers to be calculated simultaneously. For each node, the parallel calculation AT and RT of 4 corners can be realized simultaneously. For instruction sets such as SSE2 and AVX instructions, the method provided in an embodiment of the present invention is also applicable, but the number of parallel calculations of corners needs to be adjusted according to the instruction set.
[0039] Step S105 , based on the AT and RT of each node at different terminal angles, determine the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist.
[0040] Illustratively, the method provided in the embodiment of the present application can effectively realize the parallel calculation of AT and RT of nodes in the timing diagram under multiple timing end angles, reduce the running time of static timing analysis, and accelerate the chip back-end verification process.
[0041] The multi-terminal angle static timing analysis method provided in the present embodiment obtains the directed acyclic timing diagram obtained by modeling the circuit netlist and the delay corresponding to each edge of the directed acyclic timing diagram at different timing terminal angles, hierarchically processes each node in the directed acyclic timing diagram, and determines the node sets corresponding to different levels and the dependencies between the nodes; uses the node sets of each level, the dependencies between the nodes, and the delays of each directed edge at different timing terminal angles to parallel calculate the AT and RT between different nodes in the corresponding level to obtain the AT and RT of each node in the corresponding level at different terminal angles, wherein the AT and RT between different nodes in the same level are parallel calculated by multiple threads set in advance, and the AT and RT at different terminal angles in the same node are parallel calculated by a single instruction multiple data stream method, and the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist is determined based on the AT and RT of each node in different levels. The method provided by the present invention hierarchically processes the nodes in the directed acyclic timing diagram of the circuit netlist, and uses multi-threading to realize parallel calculation of AT and RT of each node in the same layer set, wherein AT and RT at different end angles in the same node are calculated in parallel through a single instruction multiple data stream method, which effectively improves the efficiency of timing analysis and reduces the calculation time of timing analysis.
[0042] In this embodiment, a multi-terminal angle static timing analysis method is provided, which can be used for the above-mentioned server. Figure 2 is a flow chart of a multi-terminal angle static timing analysis method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0043] Step S201, obtain the directed acyclic timing diagram of the circuit netlist and the attribute information of each directed edge in the directed acyclic timing diagram, the directed acyclic timing diagram contains multiple nodes and multiple directed edges, the nodes are used to represent the corresponding ports or pins of the basic circuit unit in the circuit netlist, the directed edges are used to represent the connection relationship between the ports and / or, and the attribute information of the directed edges includes the delays corresponding to different timing terminal angles. For details, please refer to Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0044] Specifically, the above step S201 includes:
[0045] Step S2011, obtaining a circuit netlist.
[0046] Step S2012, identifying the ports in the circuit netlist, the pins of the basic unit, and the connection relationship between the ports and / or the pins.
[0047] Exemplarily, all ports and pins of basic units in the circuit netlist and all wire nets in the circuit netlist are traversed to identify the ports in the circuit netlist, the pins of the basic units and the connection relationships between the ports and / or the pins.
[0048] Step S2013, using the ports and pins of the basic unit in the circuit netlist as nodes, and the connection relationship between the ports and / or pins as edges, to construct a directed acyclic timing graph. Exemplarily, the directed edges are determined based on the connection relationship between the driving port / pin and all driven ports / pins.
[0049] In some optional implementations, the above step S2013 includes:
[0050] Step a1, taking the ports in the circuit netlist and the pins of the basic unit as nodes, and the connection relationships between the ports and / or pins as edges, to construct a topology graph.
[0051] Step a2: using a preset path search algorithm to determine whether there is a back edge in the topology graph, and obtaining a determination result. Exemplarily, the preset path search algorithm may include but is not limited to a depth first search (DFS) algorithm.
[0052] Step a3: When there is a back edge in the topology graph, remove the back edge in the topology graph to obtain a directed acyclic timing graph.
[0053] Step S202 , hierarchically processing each node in the directed acyclic time sequence graph based on the depth of each node, and determining node sets corresponding to different levels and dependency relationships between nodes.
[0054] Specifically, the above step S202 includes:
[0055] Step S2021, extracting the in-degree of each node in the directed acyclic time-series graph.
[0056] For example, in a directed acyclic time-series graph, arrows have directions, pointing from one node to another, and the number of arrows pointing to each vertex is its in-degree.
[0057] Step S2022: Determine the depth of the corresponding node based on the in-degree of each node and the maximum depth of the predecessor node connected to it.
[0058] Exemplarily, in an embodiment of the present application, the depth of a node whose in-degree is not 0 is the maximum depth of all predecessor nodes plus 1.
[0059] Step S2023 , hierarchically process the directed acyclic timing graph by treating nodes with the same depth as the same level to obtain a hierarchical timing graph.
[0060] Exemplarily, in the embodiment of the present application, the hierarchical processing process of the directed acyclic timing graph can be shown in Algorithm 1 in Table 1 below:
[0061] Table 1
[0062]
[0063] Step S2024, based on the hierarchical timing diagram, determine the node sets corresponding to different levels and the dependency relationships between the nodes.
[0064] Step S203, using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles, parallel calculation is performed on the AT between different nodes in the corresponding level to obtain the AT of each node at different end angles in the corresponding level, wherein the AT between different nodes in the same level is calculated in parallel by multiple threads set in advance, and the AT at different end angles in the same node is calculated in parallel by the single instruction multiple data method. For details, please refer to Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0065] Step S204, using the node set of each level, the dependencies between nodes, and the delays of each directed edge at different timing angles, parallel calculation is performed on the RT between different nodes in the corresponding level to obtain the RT of each node at different angles in the corresponding level, where the RT between different nodes in the same level is calculated in parallel by multiple threads set in advance, and the RT at different angles in the same node is calculated in parallel by the single instruction multiple data method. For details, please refer to Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0066] Step S205: Based on the AT and RT of each node at different terminal angles, determine the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0067] In this embodiment, a multi-terminal angle static timing analysis method is provided, which can be used for the above-mentioned server. Figure 3 is a flow chart of a multi-terminal angle static timing analysis method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0068] Step S301, obtain the directed acyclic timing diagram of the circuit netlist and the attribute information of each directed edge in the directed acyclic timing diagram, the directed acyclic timing diagram contains multiple nodes and multiple directed edges, the nodes are used to represent the corresponding ports or pins of the basic circuit units in the circuit netlist, the directed edges are used to represent the connection relationship between the ports and / or, and the attribute information of the directed edges includes the delays corresponding to different timing end angles.
[0069] Step S302: hierarchically process each node in the directed acyclic time sequence graph based on the depth of each node, and determine the node sets corresponding to different levels and the dependency relationship between nodes. Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.
[0070] Step S303, using the node set of each level, the dependency relationship between nodes, and the delay of each directed edge at different timing end angles, parallel calculation is performed on the AT between different nodes in the corresponding level to obtain the AT of each node in the corresponding level at different end angles, wherein the AT between different nodes in the same level is calculated in parallel by a plurality of pre-set threads, and the AT at different end angles in the same node is calculated in parallel by a single instruction multiple data stream method.
[0071] Specifically, the above step S303 includes:
[0072] Step S3031, based on the attribute information of each directed edge, determine the maximum delay and minimum delay corresponding to different timing end angles. Exemplarily, in the embodiment of the present application, by reading the attribute information of the directed edge, the maximum delay and minimum delay corresponding to the directed edge can be determined.
[0073] Step S3032, using the node set of each level, the dependency relationship between nodes, and the maximum delay and minimum delay of each directed edge at different timing end angles, parallel calculation is performed on the AT between different nodes in the corresponding level to determine the maximum AT and minimum AT of each node in the corresponding level at different end angles.
[0074] For example, in the embodiment of the present application, the algorithm for parallel calculation of AT is shown in Table 2 below:
[0075] Table 2
[0076]
[0077] Step S304, using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles, the RT between different nodes in the corresponding level is calculated in parallel to obtain the RT of each node in the corresponding level at different end angles, wherein the RT between different nodes in the same level is calculated in parallel through multiple threads that are pre-set, and the RT at different end angles in the same node is calculated in parallel through a single instruction multiple data stream method.
[0078] Specifically, the above step S304 includes:
[0079] Step S3041, using the node set of each level, the dependency relationship between nodes, and the maximum delay and minimum delay of each directed edge at different timing end angles, parallelly calculate the RT between different nodes in the corresponding level, and determine the maximum RT and minimum RT of each node in the corresponding level at different end angles.
[0080] For example, in the embodiment of the present application, the algorithm for parallel calculation of RT is shown in Table 3 below:
[0081] Table 3
[0082]
[0083] In the embodiment of the present application, the algorithm for parallel computing between nodes is shown in Table 4 below:
[0084] Table 4
[0085]
[0086] In the embodiment of the present application, the parallel calculation between different timing terminal angles of a single node is performed to obtain the maximum RT and the minimum RT corresponding to the corresponding node at different terminal angles, which is implemented by the algorithm shown in Table 5 below:
[0087] Table 5
[0088]
[0089]
[0090] The method provided in the embodiment of the present application hierarchically topologically calculates AT and RT of nodes in the same level in multi-threaded parallel manner. At the same time, based on the SIMD method, registers with larger bit widths (128 bits, 256 bits, etc.) are used to respectively store AT, RT and edge delay under multiple corners, thereby realizing parallel calculation of multiple corners.
[0091] Step S305: Based on the AT and RT of each node at different terminal angles, determine the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist. Figure 2 Step S205 of the illustrated embodiment will not be described in detail here.
[0092] In this embodiment, a multi-terminal angle static timing analysis device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0093] This embodiment provides a multi-terminal angle static timing analysis device, such as Figure 4 As shown, including:
[0094] An acquisition module 401 is used to acquire a directed acyclic timing diagram of a circuit netlist and attribute information of each directed edge in the directed acyclic timing diagram, wherein the directed acyclic timing diagram includes a plurality of nodes and a plurality of directed edges, wherein the nodes are used to represent the corresponding ports or pins of basic circuit units in the circuit netlist, and the directed edges are used to represent the connection relationship between the ports and / or the ports, and the attribute information of the directed edges includes the delays corresponding to different timing end angles;
[0095] The processing module 402 is used to perform hierarchical processing on each node in the directed acyclic time sequence graph based on the depth of each node, and determine the node sets corresponding to different levels and the dependency relationship between the nodes;
[0096] The first calculation module 403 is used to perform parallel calculation on the AT between different nodes in the corresponding level by using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles, so as to obtain the AT of each node in the corresponding level at different end angles, wherein the AT between different nodes in the same level is calculated in parallel by using a plurality of pre-set threads, and the AT at different end angles in the same node is calculated in parallel by using a single instruction multiple data flow method;
[0097] The second calculation module 404 is used to perform parallel calculation on the RT between different nodes in the corresponding level by using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles, so as to obtain the RT of each node in the corresponding level at different end angles, wherein the RT between different nodes in the same level is calculated in parallel by using a plurality of pre-set threads, and the RT at different end angles in the same node is calculated in parallel by using a single instruction multiple data flow method;
[0098] The determination module 405 is used to determine the multi-terminal angle static timing analysis result of the directed acyclic timing diagram corresponding to the circuit netlist based on the AT and RT of each node at different terminal angles.
[0099] In some optional implementations, the acquisition module 401 includes:
[0100] A first acquisition submodule is used to acquire a circuit netlist;
[0101] An identification submodule, used to identify ports in a circuit netlist, pins of basic units, and connection relationships between ports and / or pins;
[0102] A construction submodule is used to construct a directed acyclic timing graph by using the ports and pins of the basic unit in the circuit netlist as nodes and the connection relationships between the ports and / or pins as edges;
[0103] The second acquisition submodule is used to traverse the timing arcs of all basic units and obtain the delay of each timing arc under different timing end angles;
[0104] The first determination submodule is used to determine the attribute information of each directed edge in the directed acyclic timing graph based on the delay of each timing arc at different timing end angles.
[0105] In some optional implementations, the processing module 402 includes:
[0106] The extraction submodule is used to extract the in-degree of each node in the directed acyclic time series graph;
[0107] A second determination submodule is used to determine the depth of the corresponding node based on the in-degree of each node and the maximum depth of the predecessor node connected thereto;
[0108] A processing submodule is used to hierarchically process the directed acyclic timing graph by treating nodes with the same depth as the same level to obtain a hierarchical timing graph;
[0109] The third determination submodule is used to determine the node sets corresponding to different levels and the dependency relationship between the nodes based on the hierarchical timing diagram.
[0110] In some optional embodiments, the above-mentioned building block includes:
[0111] A construction unit is used to construct a topology graph by taking the ports in the circuit netlist and the pins of the basic unit as nodes and the connection relationships between the ports and / or the pins as edges;
[0112] A judgment unit, used to use a preset path search algorithm to judge whether there is a back edge in the topology graph and obtain a judgment result;
[0113] The removal unit is used to remove the back edges in the topology graph when there are back edges in the topology graph, so as to obtain a directed acyclic timing graph.
[0114] In some optional implementations, the first calculation module 403 includes:
[0115] A fourth determination module, configured to determine the maximum delay and the minimum delay corresponding to different timing end angles based on the attribute information of each directed edge;
[0116] The first calculation submodule is used to use the node set of each level, the dependency relationship between the nodes, and the maximum delay and minimum delay of each directed edge at different timing end angles to parallelly calculate the AT between different nodes in the corresponding level, and determine the maximum AT and minimum AT of each node in the corresponding level at different end angles.
[0117] In some optional implementations, the second calculation module 404 includes:
[0118] The second calculation submodule is used to use the node set of each level, the dependency relationship between nodes, and the maximum delay and minimum delay of each directed edge at different timing end angles to parallelly calculate the RT between different nodes in the corresponding level, and determine the maximum RT and minimum RT of each node in the corresponding level at different end angles.
[0119] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0120] The multi-terminal angle static timing analysis device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0121] The embodiment of the present invention also provides a computer device having the above Figure 4 The multi-terminal corner static timing analysis device is shown.
[0122] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0123] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0124] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0125] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0126] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0127] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0128] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0129] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A multi-terminal angle static timing analysis method, characterized in that: The method comprises: Obtaining a directed acyclic timing diagram of a circuit netlist and attribute information of each directed edge in the directed acyclic timing diagram, wherein the directed acyclic timing diagram comprises a plurality of nodes and a plurality of directed edges, wherein the nodes are used to characterize the corresponding ports or pins of basic circuit units in the circuit netlist, and the directed edges are used to characterize the connection relationship between the ports and / or the ports, and the attribute information of the directed edges comprises the delays corresponding to different timing end angles; hierarchically processing each node in the directed acyclic time sequence graph based on the depth of each node, and determining the node sets corresponding to different levels and the dependency relationships between the nodes; By using the node set of each level, the dependency relationship between nodes, and the delay of each directed edge at different timing end angles, the AT between different nodes in the corresponding level is calculated in parallel to obtain the AT of each node in the corresponding level at different end angles. Among them, the AT between different nodes in the same level is calculated in parallel by multiple threads set in advance, and the AT at different end angles in the same node is calculated in parallel by the single instruction multiple data method. By using the node set of each level, the dependencies between nodes, and the delays of each directed edge at different timing angles, the RT between different nodes in the corresponding level is calculated in parallel to obtain the RT of each node in the corresponding level at different angles. The RT between different nodes in the same level is calculated in parallel by multiple threads that are pre-set, and the RT at different angles in the same node is calculated in parallel by the single instruction multiple data method. Based on the AT and RT of each node at different terminal angles, determine the multi-terminal angle static timing analysis results of the directed acyclic timing diagram corresponding to the circuit netlist; The steps of hierarchically processing each node in the directed acyclic time sequence graph based on the depth of each node, and determining the node sets corresponding to different levels and the dependency relationship between the nodes include: Extracting the in-degree of each node in the directed acyclic time-series graph; Determine the depth of the corresponding node based on the in-degree of each node and the maximum depth of the predecessor nodes connected to it; hierarchical processing is performed on the directed acyclic timing graph by treating nodes with the same depth as the same level to obtain a hierarchical timing graph; Based on the hierarchical timing diagram, node sets corresponding to different levels and dependencies between nodes are determined.
2. The method according to claim 1, characterized in that The step of obtaining a directed acyclic timing graph of a circuit netlist and attribute information of each directed edge in the directed acyclic timing graph comprises: Get the circuit netlist; Identifying ports in the circuit netlist, pins of basic units, and connection relationships between ports and / or pins; The ports and pins of the basic units in the circuit netlist are used as nodes, and the connection relationships between the ports and / or pins are used as edges to construct the directed acyclic timing graph; Traverse the timing arcs of all basic units and obtain the delay of each timing arc at different timing end angles; The attribute information of each directed edge in the directed acyclic timing graph is determined based on the delay of each timing arc at different timing end angles.
3. The method according to claim 2, characterized in that The steps of constructing the directed acyclic timing graph by using the ports and pins of the basic unit in the circuit netlist as nodes and the connection relationships between the ports and / or pins as edges include: The ports and pins of the basic units in the circuit netlist are used as nodes, and the connection relationships between the ports and / or pins are used as edges to construct a topology graph; Using a preset path search algorithm to determine whether there is a back edge in the topology graph, and obtaining a determination result; When there is a back edge in the topological graph, the back edge in the topological graph is removed to obtain the directed acyclic timing graph.
4. The method according to claim 1, characterized in that: The steps of performing parallel calculation on the AT between different nodes in the corresponding level by using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles to obtain the AT of each node in the corresponding level at different end angles include: Based on the attribute information of each directed edge, the maximum delay and the minimum delay corresponding to different timing end angles are determined; By using the node set of each level, the dependencies between nodes, and the maximum and minimum delays of each directed edge at different timing end angles, the AT between different nodes in the corresponding level is calculated in parallel to determine the maximum and minimum AT of each node in the corresponding level at different end angles.
5. The method according to claim 4, characterized in that The steps of performing parallel calculation on the RT between different nodes in the corresponding level by using the node set of each level, the dependency relationship between the nodes, and the delay of each directed edge at different timing end angles to obtain the RT of each node in the corresponding level at different end angles include: By using the node set of each level, the dependency relationship between nodes, and the maximum and minimum delays of each directed edge at different timing end angles, the RT between different nodes in the corresponding level is calculated in parallel to determine the maximum and minimum RT of each node in the corresponding level at different end angles.
6. A multi-terminal angle static timing analysis device, characterized in that: The device comprises: An acquisition module is used to acquire a directed acyclic timing diagram of a circuit netlist and attribute information of each directed edge in the directed acyclic timing diagram, wherein the directed acyclic timing diagram includes a plurality of nodes and a plurality of directed edges, wherein the nodes are used to characterize the corresponding ports or pins of basic circuit units in the circuit netlist, and the directed edges are used to characterize the connection relationship between the ports and / or the ports, and the attribute information of the directed edges includes the delays corresponding to different timing end angles; A processing module, used to perform hierarchical processing on each node in the directed acyclic timing graph based on the depth of each node, and determine the node sets corresponding to different levels and the dependency relationship between the nodes; The first calculation module is used to perform parallel calculation on the AT between different nodes in the corresponding level by using the node set of each level, the dependency relationship between nodes and the delay of each directed edge at different timing end angles, so as to obtain the AT of each node in the corresponding level at different end angles, wherein the AT between different nodes in the same level is calculated in parallel by using a plurality of pre-set threads, and the AT at different end angles in the same node is calculated in parallel by using a single instruction multiple data flow method; The second calculation module is used to use the node set of each level, the dependency relationship between the nodes and the delay of each directed edge at different timing end angles to parallel calculate the RT between different nodes in the corresponding level, and obtain the RT of each node in the corresponding level at different end angles, wherein the RT between different nodes in the same level is calculated in parallel by a plurality of pre-set threads, and the RT at different end angles in the same node is calculated in parallel by a single instruction multiple data stream method; A determination module, for determining a multi-terminal-angle static timing analysis result of a directed acyclic timing diagram corresponding to a circuit netlist based on AT and RT of each node at different terminal angles; The steps of hierarchically processing each node in the directed acyclic time sequence graph based on the depth of each node, and determining the node sets corresponding to different levels and the dependency relationship between the nodes include: Extracting the in-degree of each node in the directed acyclic time-series graph; Determine the depth of the corresponding node based on the in-degree of each node and the maximum depth of the predecessor nodes connected to it; hierarchical processing is performed on the directed acyclic timing graph by treating nodes with the same depth as the same level to obtain a hierarchical timing graph; Based on the hierarchical timing diagram, node sets corresponding to different levels and dependencies between nodes are determined.
7. The device according to claim 6, characterized in that The acquisition module comprises: A first acquisition submodule is used to acquire a circuit netlist; An identification submodule, used to identify ports in the circuit netlist, pins of basic units, and connection relationships between ports and / or pins; A construction submodule, used to construct the directed acyclic timing graph by taking the ports and pins of the basic units in the circuit netlist as nodes and the connection relationships between the ports and / or pins as edges; The second acquisition submodule is used to traverse the timing arcs of all basic units and obtain the delay of each timing arc under different timing end angles; The first determination submodule is used to determine the attribute information of each directed edge in the directed acyclic timing graph based on the delay of each timing arc at different timing end angles.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the multi-terminal angle static timing analysis method according to any one of claims 1 to 5 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the multi-terminal angle static timing analysis method according to any one of claims 1 to 5.
