An incremental timing analysis method

By slicing and subgraph analysis of the timing diagram, timing margin and criticality calculations are performed only on the changing delay connection paths, which solves the time-consuming problem of traditional timing analysis and achieves fast timing analysis results in large-scale circuits. Get.

CN117574820BActive Publication Date: 2024-09-17EHIWAY MICROELECTRONIC SCI & TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410051494.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2024-09-17
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

In the traditional timing analysis method, when only changing the delay of some line network paths during the circuit layout or wiring process, it is necessary to perform the timing analysis process of the entire graph, resulting in a large time consumption, especially in large-scale circuits. long.

Method used

Using the incremental timing analysis method, by slicing the timing diagram to create a sub-diagram point set of the timing diagram, only the starting point and end point of the changing delay connection path are analyzed, and the maximum arrival time and minimum requirements within the sub-diagram point set are calculated. time, and then calculate the timing margin and criticality of the connection path.

Benefits of technology

On the premise of ensuring the accuracy of timing analysis, it reduces the time of timing analysis, improves work efficiency, and can obtain the latest timing analysis results more quickly, and is suitable for large-scale circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117574820B
    Figure CN117574820B
Patent Text Reader

Abstract

The present invention provides an incremental timing analysis method, which is based on the timing diagram of the circuit, the circuit netlist and the set of delay-varying connection paths for analysis, and the method includes: slicing the timing diagram to determine the timing diagram subgraph point set; calculating the maximum arrival time and the minimum required time of each node in the subgraph point set; and calculating the timing margin and criticality of the connection path according to the maximum arrival time and the minimum required time. When the delay of some edges on the timing diagram changes, it is not necessary to call the timing analysis process of the entire diagram, but only to traverse and analyze the timing diagram subgraph according to the edges with delay changes, which reduces the time of timing analysis, thereby quickly obtaining the latest timing analysis results, improving work efficiency, and being better applicable to large-scale circuits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of FPGA EDA software design, and in particular to an incremental timing analysis method. Background Art

[0002] The complete design process of FPGA EDA software includes the main steps of circuit design and input, synthesis, mapping, packing, layout, routing, timing analysis, programming download, etc. Among them, timing analysis is to calculate the arrival time and required time of all nodes in the timing graph after layout and routing, and analyze the timing margin and criticality of each connection path from the starting point to the end point. The timing margin and criticality obtained through timing analysis will serve as guidance information for the timing layout and routing algorithm, promoting the layout and routing algorithm to further optimize the timing performance of the circuit.

[0003] In some processing of the layout or routing algorithm, only the path delay of some wire nets is changed, and the updated timing analysis results are expected. The traditional processing method is to perform the timing analysis process of the entire graph, perform arrival time analysis and required time analysis on all points on the timing graph through two traversals, and then calculate the timing margin and criticality of all connections from the starting node to the end node. Although this method ensures the accuracy of the timing analysis, it is time-consuming, especially when encountering large-scale circuits, the timing analysis time is often longer. Summary of the invention

[0004] The present invention provides an incremental timing analysis method, which can analyze only a timing diagram subgraph while ensuring the accuracy of the timing analysis, thereby quickly obtaining the latest timing analysis results and reducing the time of the timing analysis.

[0005] Other purposes and advantages of the present invention can be further understood from the technical features disclosed in the present invention.

[0006] To achieve one, part, or all of the above purposes or other purposes, the present invention provides an incremental timing analysis method, comprising:

[0007] Step 1: Slice the timing graph, including creating a timing graph subgraph point set, determining the starting point node v and the ending point node d corresponding to the starting point and the ending point of each delay change connection path on the timing graph, and placing the starting point node v and the ending point d into the point set of the timing graph subgraph; adding the nodes in the timing graph that have a connection relationship with the starting point node v and the ending point d into the point set of the timing graph subgraph;

[0008] Step 2: Calculate the maximum arrival time and the minimum required time of each node in the subgraph point set;

[0009] Step 3: Calculate the timing margin and criticality of the connection path according to the maximum arrival time and the minimum required time.

[0010] The point set of the timing graph subgraph is obtained by traversing the timing graph.

[0011] The method of traversing the timing diagram includes:

[0012] The nodes that are connected to the starting point node v and the end point node d are traversed on the timing graph, and the nodes obtained by the traversal are placed into the point set of the timing graph subgraph.

[0013] The traversal methods on the timing diagram include:

[0014] Traverse layer by layer from the end node d to the start node v, and add each node passed by the end node d at each level to the point set of the timing graph subgraph;

[0015] Traverse layer by layer from the starting node v to the end node d, traverse the edges corresponding to each node at each level, and determine whether the end point of the edge is a point in the point set of the subgraph; if the judgment result is yes, add each node at each level to the point set of the timing graph subgraph.

[0016] The step 2 also includes:

[0017] According to each of the delay variation connection paths, an edge on the timing graph corresponding to the delay variation connection path is found, and the delay of the edge is updated.

[0018] The calculation of the maximum arrival time of each node in the subgraph point set includes:

[0019] The timing graph subgraph is traversed layer by layer from the smallest level to the previous level of the largest level, and the edges corresponding to each node of each level are traversed to determine whether the end point of the edge is a point in the point set of the timing graph subgraph; if the judgment result is yes, the maximum arrival time of each node in the point set of the timing graph subgraph is calculated according to the delay of the edge.

[0020] The calculation formula of the maximum arrival time is as follows:

[0021] Where: Tarrival(i) represents the arrival time of the signal at node i, represents any fan-in point of j belonging to i, and delay(j,i) represents the delay of the edge from j to i.

[0022] The minimum required time for calculating each node in the subgraph point set includes:

[0023] The timing graph subgraph is traversed layer by layer from the previous level of the largest level to the smallest level, and the edges corresponding to each node of each level are traversed to determine whether the end point of the edge is a point in the point set of the timing graph subgraph; if the judgment result is yes, the minimum required time of each node in the point set of the timing graph subgraph is calculated according to the delay of the edge.

[0024] The calculation formula of the minimum required time is as follows:

[0025] Where: Trequired(i) represents the required time for the signal to arrive at node i, represents any fan-out point of j belonging to i, and delay(i,j) represents the delay of the edge from i to j.

[0026] The step 3 also includes:

[0027] Traverse each line net in the circuit netlist, find the starting point of each line net corresponding to the starting point node on the timing diagram, and judge whether the starting point node is within the point set of the subgraph; if the judgment result is yes, traverse the end point of each line net, find the end point node on the timing diagram corresponding to the end point of each line net, and judge whether the end point node is within the point set of the subgraph; if the judgment result is yes, calculate the timing margin and criticality of each connection path formed by the end point node corresponding to the line net and the starting point node according to the formula.

[0028] The calculation formula of the timing margin is as follows:

[0029] Where: slack(i,j) represents the time margin of the connection from the starting point to the end point (i,j), Tarrival(i) represents the arrival time of the signal at node i, Trequired(j) represents the required time for the signal to arrive at node j, and delay(i,j) represents the delay of the edge from i to j.

[0030] The calculation formula of the criticality is as follows:

[0031] Where: Crit(i,j) represents the criticality of the connection (i,j) from the starting point to the end point, MaxCrit represents the maximum criticality, η is the parameter value, D max Represents the delay of the longest critical path.

[0032] The timing margin and criticality obtained from the timing analysis will serve as guidance information for the timing layout and routing algorithm, driving the layout and routing algorithm to further optimize the timing performance of the circuit.

[0033] Compared with the prior art, the beneficial effects of the present invention mainly include:

[0034] 1. The present invention creates a subgraph point set according to the set of delay-changing connection paths by slicing the timing graph. When the delay of some edges on the timing graph changes, there is no need to call the timing analysis process of the entire graph. It is only necessary to traverse the nodes in the subgraph point set according to the edge with the changed delay, find the node corresponding to the changed edge, and analyze the node, which reduces the time of timing analysis, thereby quickly obtaining the latest timing analysis results, improving work efficiency, and can be better applied to large-scale circuits.

[0035] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 A flowchart of an incremental timing analysis method provided for a related technical solution.

[0038] Figure 2 A schematic diagram of a timing diagram in a timing analysis method provided in an embodiment of the present application.

[0039] Figure 3 A flowchart of the timing diagram slicing process provided in an embodiment of the present application.

[0040] Figure 4 A schematic diagram of the arrival time analysis process provided in an embodiment of the present application.

[0041] Figure 5 A schematic diagram of the required time analysis process provided in an embodiment of the present application.

[0042] Figure 6 A schematic diagram of a flow chart for calculating timing margin and criticality provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The above and other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of a preferred embodiment with reference to the drawings. The directional terms mentioned in the following embodiments, such as up, down, left, right, front or back, etc., are only referenced to the directions of the attached drawings. Therefore, the directional terms used are used to illustrate and not to limit the present invention.

[0044] The present invention provides an incremental timing analysis method, which only analyzes the affected points and edges on the timing diagram based on the previous complete timing analysis, but the arrival time and required time of other unaffected points and edges still reuse the results of the previous complete analysis, thereby achieving the purpose of quickly obtaining the latest timing analysis results.

[0045] The following is a detailed description of an incremental timing analysis method provided by the present invention in conjunction with the accompanying drawings. Figure 1 The figure is a flow chart of an incremental timing analysis method provided by a related technical solution.

[0046] Timing analysis is performed on the timing graph model. The timing graph G (V, E) is a directed graph, where V represents input / output ports, input / output ports on logic blocks, etc., and E represents the connection relationship between nodes. The edges on the timing graph, such as the edges from the input port to the input port of the logic block, the output port of the logic block to the input port of the logic block, and the output port of the logic block to the output port, need to be routed before the delay size can be determined. Therefore, after each iteration, the routing algorithm calculates the delay of the routing connection path and then marks the delay on the corresponding edge of the timing graph. Figure 2 The figure shows a schematic diagram of a timing diagram in a timing analysis method provided in an embodiment of the present application. s represents the starting point of the path, and t represents the end point of the path.

[0047] The present invention provides an incremental timing analysis method, which performs analysis based on a timing diagram of a circuit, a circuit netlist and a set of delay variation connection paths, outputs new timing margins and criticalities, and further obtains new timing analysis results.

[0048] First, the timing graph is sliced, including creating a timing graph subgraph point set, determining the starting point node v and the ending point node d corresponding to the starting point and the ending point of each delay change connection path on the timing graph, and placing the starting point node v and the ending point d into the point set of the timing graph subgraph; adding the nodes in the timing graph that have a connection relationship with the starting point node v and the ending point d into the point set of the timing graph subgraph.

[0049] Secondly, calculate the maximum arrival time and minimum required time of each node in the subgraph point set;

[0050] Finally, the timing margin and criticality of the connection path are calculated based on the maximum arrival time and the minimum required time.

[0051] Timing graph slicing is a key step of the present invention. A subgraph G'(V', E') consisting of the affected points and edges is cut out from the original timing graph, and the timing analysis algorithm is only analyzed on the subgraph of the timing graph, thereby reducing the points and edges that need to be analyzed, thereby reducing the time of timing analysis. The subgraph G' still uses the data structure of the original timing graph G, but on the basic data structure, a slice array is added to identify which points belong to the points of V' in the subgraph G'. For each node v of V', if slice(v)=true, the node v is placed in the timing graph subgraph subset.

[0052] like Figure 3 The figure is a flow chart of the timing diagram slicing process provided by the embodiment of the present application, and the specific process is as follows:

[0053] Traverse each delay change connection path, find the starting point and end point of each delay change connection path corresponding to the starting point node v and the end point node d on the timing graph, and put the starting point node v and the end point node d into the point set V' of the timing graph subgraph, that is, set slice(v)=true, slice(d)=true.

[0054] Traverse the time graph G layer by layer from the end node d to the start node v, and add each point passed through to the subgraph set V'. Let the level of node d be level, and the maximum level of graph G be N. First, add the end point d' of each output edge of node d to the subgraph point set V', that is, set slice(d') = true. Then for each level i from level+1 to N-1, for each node v' of level i, if slice(v') = true, then add the end point d' of each output edge of node v' to the subgraph point set V', that is, slice(d') = true.

[0055] Traverse the time graph G layer by layer from the starting node v to the end node d, traverse each level from node v, and add each node that can reach the subgraph G to the subgraph set V'. The level of node v is level, and the minimum level of graph G is 0. For each level i from level-1 to 0, for each node v' at level i, traverse each output edge e of node v'. If the end point d' of e is a node in the subgraph V', that is, slice(d') = true is satisfied, then add node v' to the subgraph point set V', that is, set slice(v') = true.

[0056] Calculate the maximum arrival time and minimum required time for each node in the subgraph point set.

[0057] First, according to each delay change connection path, find the edge (v, d) corresponding to each delay change connection path on the timing graph, and update the delay of the edge (v, d). According to the delay of the edge (v, d), calculate the maximum arrival time and minimum required time of each node in the point set of the timing graph subgraph.

[0058] like Figure 4 The figure shows a schematic diagram of the arrival time analysis process provided by the embodiment of the present application, and the specific process is as follows:

[0059] Step 1: Traverse each node v in V' and find the minimum value min_level and the maximum value max_level of the level where the node v is located;

[0060] Step 2: Traverse each level i from min_level to max_level-1, and execute steps 3 to 7;

[0061] Step 3: For each point v at level i, execute steps 4 to 7;

[0062] Step 4: If slice(v)=true, execute steps 5-7;

[0063] Step 5: Traverse each outgoing edge e of node v;

[0064] Step 6: If the end point d of e satisfies slice(d)=true, go to step 7;

[0065] Step 7: Calculate the arrival time of the node according to the arrival time formula.

[0066] The formula for calculating the arrival time is:

[0067] Where: Tarrival(i) represents the arrival time of the signal at node i, represents any fan-in point of j belonging to i, and delay(j,i) represents the delay of the edge from j to i.

[0068] like Figure 5 The figure shows a schematic diagram of the required time analysis process provided by the embodiment of the present application, and the specific process is as follows:

[0069] Step 1: Traverse each level i from max_level-1 to min_level and execute steps 2 to 6;

[0070] Step 2: For each point v at level i, perform steps 3 to 6;

[0071] Step 3: If slice(v)=true, execute steps 4-6;

[0072] Step 4: Traverse each outgoing edge e of node v;

[0073] Step 5: If the end point d of e satisfies slice(d)=true, execute step 6;

[0074] Step 6: Calculate the required time of the node according to the required time formula.

[0075] The required time is calculated as:

[0076] Where: Trequired(i) represents the required time for the signal to arrive at node i, represents any fan-out point of j belonging to i, and delay(i,j) represents the delay of the edge from i to j.

[0077] The connection path timing margin and criticality are calculated based on the maximum arrival time and the minimum required time.

[0078] like Figure 6 The figure shows a flow chart of calculating the timing margin and criticality provided by an embodiment of the present application, and the specific process is as follows:

[0079] Step 1: Traverse each net in the netlist and find the node v on the timing diagram corresponding to the starting point of the net;

[0080] Step 2: If slice(v)=true, execute steps 2-6;

[0081] Step 3: Traverse each end point of the network and find the node d corresponding to each end point on the timing diagram;

[0082] Step 4: If d satisfies slice(d)=true, execute steps 5-6;

[0083] Step 5: Calculate the timing margin of the connection (v, d) according to the formula;

[0084] Step 6: Calculate the criticality of the connection (v, d) according to the formula.

[0085] The calculation formula for timing margin is:

[0086] Where: slack(i,j) represents the time margin of the connection from the starting point to the end point (i,j), Tarrival(i) represents the arrival time of the signal at node i, Trequired(j) represents the required time for the signal to arrive at node j, and delay(i,j) represents the delay of the edge from i to j.

[0087] The calculation formula for criticality is:

[0088] Among them: Crit(i,j) represents the criticality of the connection (i,j) from the starting point to the end point, MaxCrit represents the maximum criticality, η is the parameter value, D max Represents the delay of the longest critical path.

[0089] In summary, when the delay of certain edges on the timing diagram changes, the present invention only analyzes the points and edges of the affected subgraph of the timing diagram, slices the timing diagram, cuts out the subgraph composed of the affected points and edges on the timing diagram, performs arrival time analysis and required time analysis on the timing diagram subgraph, and then calculates the new timing margin and criticality. The arrival time, required time, etc. of other points and edges on the timing diagram still reuse the results of the previous complete timing analysis, which not only ensures the accuracy of the timing analysis, but also does not need to perform the timing analysis process of the entire diagram by traversing the entire diagram twice like the traditional processing method. Only the subgraph of the timing diagram is traversed and analyzed, which reduces the time of timing analysis, thereby quickly obtaining the latest timing analysis results, improving work efficiency, and can be better applied to large-scale circuits.

[0090] In order to facilitate the description, some common English nouns or letters used in the present invention are only used for exemplary reference rather than restrictive interpretation or specific usage, and the protection scope of the present invention should not be limited by their possible Chinese translations or specific letters.

[0091] It should also be noted that, in this document, relational terms such as "first" and "second" are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

Claims

1. An incremental timing analysis method, the incremental timing analysis method is based on a timing diagram of a circuit, a circuit netlist and a set of delay variation connection paths for analysis, characterized in that: The method includes: Step 1: Slice the timing graph, create a timing graph subgraph point set, determine the starting point node v and the ending point node d corresponding to the starting point and the ending point of each delay change connection path on the timing graph, and put the starting point node v and the ending point d into the point set of the timing graph subgraph; Traverse layer by layer from the end node d to the start node v, and add each node passed by the end node d at each level to the point set of the time series graph subgraph; that is, let the level of node d be level, and the maximum level of graph G be N; first add the end point d' of each output edge of node d to the point set V' of the subgraph, that is, set slice(d') = true; then for each level i from level+1 to N-1, for each node v' of level i, if slice(v') = true, then add the end point d' of each output edge of node v' to the point set V' of the subgraph, that is, slice(d') = true; Traverse layer by layer from the starting node v to the end node d, traverse the edge corresponding to each node at each level, and judge whether the end point of the edge is a point in the point set of the subgraph; if the judgment result is yes, add the nodes passed through each level to the point set of the timing graph subgraph; that is, traverse each level from node v forward, and add each node that can reach the subgraph G to the subgraph set V'; the level of node v is level, and the minimum level of graph G is 0; for each level i from level-1 to 0, for each node v' at level i, traverse each output edge e of node v', if the end point d' of e is a node in the subgraph V', that is, slice(d') = true is satisfied, then add node v' to the subgraph point set V', that is, set slice(v') = true; Step 2: Calculate the maximum arrival time and the minimum required time of each node in the subgraph point set; According to each of the delay variation connection paths, find out the edge on the timing graph corresponding to the delay variation connection path, and update the delay of the edge; Step 3: Calculate the timing margin and criticality of the connection path according to the maximum arrival time and the minimum required time; Traverse each line net in the circuit netlist, find the starting point of each line net corresponding to the starting point node on the timing diagram, and judge whether the starting point node is in the point set of the subgraph; if the judgment result is yes, traverse the end point of each line net, find the end point node on the timing diagram corresponding to the end point of each line net, and judge whether the end point node is in the point set of the subgraph; if the judgment result is yes, calculate the timing margin and criticality of each connection path formed by the end point node corresponding to the line net and the starting point node according to the formula.

2. The incremental timing analysis method according to claim 1, characterized in that: Calculating the maximum arrival time of each node in the subgraph point set in step 2 includes: The timing graph subgraph is traversed layer by layer from the smallest level to the previous level of the largest level, and the edges corresponding to each node of each level are traversed to determine whether the end point of the edge is a point in the point set of the timing graph subgraph; if the judgment result is yes, the maximum arrival time of each node in the point set of the timing graph subgraph is calculated according to the delay of the edge.

3. The incremental timing analysis method according to claim 2, characterized in that: The calculation formula of the maximum arrival time is as follows: in: Tarrival(i) represents the maximum arrival time of the signal to node i. represents any fan-in point of j belonging to i, and delay(j,i) represents the delay of the edge from j to i.

4. The incremental timing analysis method according to claim 3, characterized in that: The step 2 of calculating the minimum required time of each node in the point set of the subgraph includes: The timing graph subgraph is traversed layer by layer from the previous level of the largest level to the smallest level, and the edges corresponding to each node of each level are traversed to determine whether the end point of the edge is a point in the point set of the timing graph subgraph; if the judgment result is yes, the minimum required time of each node in the point set of the timing graph subgraph is calculated according to the delay of the edge.

5. The incremental timing analysis method according to claim 4, characterized in that: The calculation formula of the minimum required time is as follows: in: Trequired(i) represents the minimum required time for the signal to reach node i. represents any fan-out point of j belonging to i, and delay(i,j) represents the delay of the edge from i to j.

6. The incremental timing analysis method according to claim 5, characterized in that: The calculation formula of the timing margin is as follows: in: slack(i,j) represents the time margin of the start-end connection (i,j), Tarrival(i) represents the maximum arrival time of the signal at node i, Trequired(j) represents the minimum required time for the signal to reach node j, and delay(i,j) represents the delay of the edge from i to j.

7. The incremental timing analysis method according to claim 6, characterized in that: The calculation formula of the criticality is as follows: in: Crit(i,j) represents the criticality of the connection (i,j) from the starting point to the end point, MaxCrit represents the maximum criticality, η is the parameter value, D max Represents the delay of the longest critical path.