Method and apparatus for automatic generation of clock trees

By using an iterative, layer-by-layer construction mechanism, and leveraging tap point pairing and Manhattan distance optimization to generate clock trees, the shortcomings of existing automatic clock tree construction schemes are addressed. This approach optimizes clock skew and propagation delay, thereby improving construction efficiency and accuracy.

CN123139922APending Publication Date: 2026-11-20T-HEAD (SHANGHAI) SEMICON CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611090217.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing automatic clock tree construction schemes lack tap point pairing optimization and branch symmetry enforcement mechanisms, resulting in poor clock skew and clock propagation delay performance. Manual design methods are cumbersome and inefficient.

Method used

An iterative, layer-by-layer construction mechanism is adopted. The clock tree is generated by tap point pairing, Manhattan distance optimization, and equal-length common traces, ensuring that the branch trace lengths of each layer are consistent, thus realizing the automated construction of the clock tree.

Benefits of technology

The clock skew and clock propagation delay metrics have been optimized, improving the efficiency and accuracy of clock tree construction and avoiding the tedious process of manual design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139922A_ABST
    Figure CN123139922A_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to a kind of automatic generation method and device of clock tree, and the present application is realized the automatic generation of clock tree by iterative layer-by-layer construction mechanism.In each layer construction, first, the tap point of current layer is paired, so that the total length of connection of each pairing scheme meets the requirement;Then the combination of the tap point with the maximum distance is taken as reference, and the maximum distance is determined as the reference branch length of current layer;Then the branch point is determined for each tap point combination, so that the branch wire length of each combination is equal to the reference branch length;Finally, equal length common wire is extended from each branch point to the center direction, and the end of each common wire constitutes the tap point of next layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuit design automation, specifically to a method and apparatus for automatically generating clock trees, as well as corresponding electronic devices and computer program products. Background Technology

[0002] In the physical design of integrated circuits, clock tree construction is a crucial step affecting chip timing performance and power consumption. With the continuous increase in chip size and operating frequency, the propagation latency of the clock signal from the clock source to various timing units (registers, flip-flops, etc.) and the clock skew between different paths play a significant role in whether the chip can meet timing convergence requirements. To achieve a balanced clock distribution globally, the industry widely adopts the H-type clock tree (HTree) structure. The H-type clock tree is named for its physical shape resembling the letter H. Its characteristic is that each stage's drivers are physically connected through an H-shaped conductive network, gradually expanding from the clock root node to cover all clock sinks. Through its geometrically symmetrical tree structure, the H-type clock tree ensures that the propagation path length of the clock signal from the source to each sink is as equal as possible, thereby reducing clock skew and improving the timing performance of synchronous circuits.

[0003] In existing technologies, clock design engineers often employ manual design methods to achieve clock trees with greater configuration flexibility. This involves engineers manually planning the positions of taps at each level, placing buffers, and routing clock traces. While this manual approach can achieve better clock skew and propagation delay, it is cumbersome and inefficient, requiring designers to determine optimal pairings for each set of taps and repeatedly coordinate trace lengths across different levels to achieve geometric symmetry. Although some Electronic Design Automation (EDA) tools offer automated clock tree construction schemes, such as the flexHtree scheme in Cadence Innovus, the clock trees constructed by these schemes lack sufficient precision to meet the engineers' needs for fine-tuning. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method and apparatus for automatically generating clock trees, as well as corresponding electronic devices and computer program products, which aim to improve clock skew and clock propagation delay indicators while automatically constructing clock trees.

[0005] Firstly, a method for automatically generating a clock tree is provided, the method comprising: Obtain configuration information, which includes the positions of multiple initial tap points and the position of the root node of the clock tree; Based on the tap point of the current layer, the layer-by-layer construction steps are iteratively executed to determine the topology of each layer of the clock tree until the preset termination condition is met. Based on the topology of each layer of the clock tree determined through iteration, device placement and clock routing are performed. The layer-by-layer construction step includes: Pair multiple taps in the current layer to determine a target pairing scheme that includes combinations of multiple taps; Determine the combination of taps with the largest Manhattan distance, and use the largest Manhattan distance as the reference branch length for the current layer; Based on the reference branch length, the bifurcation point of each tap point combination is determined, such that the branch trace length corresponding to each tap point combination is equal to the reference branch length. Starting from each of the aforementioned branching points, a common route of equal length extends towards the center. The end of each of the aforementioned common routes serves as the tap point of the next layer. The center direction is either the direction in which the clock tree root node converges or the direction in which the center point determined based on the initial tap point converges.

[0006] In some implementations, multiple taps in the current layer are paired to determine a target pairing scheme that includes combinations of multiple taps, including: Iterate through each tap point in the current layer to determine multiple possible pairing schemes; Calculate the connection length parameters for each pairing scheme; The target pairing scheme is determined based on the connection length parameter.

[0007] In some implementations, the connection length parameter is the sum of the squares of the connection lengths between the tap points in the pairing scheme; The target pairing scheme is determined based on the connection length parameter, specifically as follows: The pairing scheme with the minimum connection length parameter is determined as the target pairing scheme.

[0008] In some implementations, the method further includes: In response to the fact that the number of initial taps is not an integer power of 2, multiple virtual taps are introduced according to the configuration information so that the total number of initial taps and virtual taps is equal to an integer power of 2.

[0009] In some implementations, the branching points of each tap combination are determined based on the reference branch length, including: For a combination of tap points, search for the line connecting the target points of the tap points, where the length of the line connecting the target points is equal to the length of the reference branch. The midpoint of the line connecting the target points is taken as the branching point of the tap point combination.

[0010] In some implementations, the configuration information also includes the maximum wiring length per layer; Starting from each of the aforementioned branching points, common routes of equal length extend towards the center, including: The length of the common trace extending towards the center is controlled based on the maximum wiring length.

[0011] In some implementations, the configuration information also includes horizontal routing layer information and vertical routing layer information; The clock wiring includes: Based on the horizontal and vertical routing layer information, clock tree routing is performed on the corresponding metal layers.

[0012] In some implementations, the configuration information may also include buffer type and / or antenna element type; The placement of the device includes: Place the buffers according to the buffer type and / or place the antenna elements according to the antenna element type.

[0013] In some implementations, the method further includes: Perform receiver allocation, assigning the receivers of the clock tree to the corresponding buffers.

[0014] In some implementations, the distance is the Manhattan distance.

[0015] Secondly, an automatic clock tree generation device is provided, the device comprising: A configuration unit is used to obtain configuration information, which includes the positions of multiple initial tap points and the position of the root node of the clock tree; The iterative unit is used to iteratively execute the layer-by-layer construction steps based on the tap point of the current layer, determine the topology of each layer of the clock tree, until the preset termination condition is met; The routing unit is used to place buffers and route clocks according to the topology of each layer of the clock tree determined iteratively. The iterative unit includes: The pairing module is used to pair multiple tap points in the current layer to determine the target pairing scheme that includes combinations of multiple tap points; the branching module is used to determine the combination of tap points with the largest Manhattan distance, and uses the largest Manhattan distance as the reference branch length for the current layer. The branch point determination module is used to determine the branch point of each tap point combination according to the reference branch length, such that the branch trace length corresponding to each tap point combination is equal to the reference branch length. The convergence module is used to extend common traces of equal length from each of the branching points toward the center. The end of each common trace serves as the tap point of the next layer. The center direction is the direction of convergence toward the root node of the clock tree, or the direction of convergence toward the center point determined by the initial tap point.

[0016] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in the first aspect.

[0017] Fourthly, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the method described in the first aspect.

[0018] This invention achieves automatic clock tree generation through an iterative, layer-by-layer construction mechanism. In each layer's construction, the taps of the current layer are first paired to ensure the total connection length of each pairing meets requirements. Then, the combination of taps with the largest distance is used as a reference, and this maximum distance is determined as the reference branch length for the current layer. Next, branching points are determined for each combination of taps, ensuring that the branch trace length of each combination is equal to the reference branch length. Finally, equal-length common traces are extended from each branching point towards the center, and the ends of these common traces constitute the taps of the next layer. Thus, this embodiment solves the problem of poor clock skew and clock propagation delay performance caused by limited configurable parameters, lack of tap pairing optimization, and lack of branch symmetry enforcement mechanisms in existing EDA tools' built-in clock tree generation schemes. It also avoids the tedious process of manually constructing schemes, planning tap pairings one by one, and manually routing, optimizing clock skew and clock propagation delay performance while automatically generating the clock tree. Attached Figure Description

[0019] The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the invention with reference to the accompanying drawings, in which: Figure 1 This is a flowchart of the automatic generation method of the clock tree according to an embodiment of the present invention; Figure 2 This is an exemplary schematic diagram illustrating the tap point pairing method according to an embodiment of the present invention; Figure 3 This is an exemplary schematic diagram illustrating the method for selecting a bifurcation point according to an embodiment of the present invention; Figure 4 This is a schematic diagram of an exemplary logical structure of a clock tree generated by the method of an embodiment of the present invention; Figure 5 This is an example of the initial state diagram of the clock tree generation process according to an embodiment of the present invention; Figure 6This is a schematic diagram of the clock tree topology after tap point pairing according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the clock tree topology after determining the bifurcation point using the method of an embodiment of the present invention; Figure 8 This is a schematic diagram of the clock tree topology after determining the tap point of the next layer according to the method of this embodiment of the invention; Figure 9 This is a schematic diagram of the clock tree topology after the tap point pairing and branch point determination are completed in the second iteration of the method of this embodiment of the invention; Figure 10 This is a schematic diagram of the clock tree topology after further iterations to determine the new layer of tap points and branch points, according to an embodiment of the present invention. Figure 11 This is a schematic diagram of the clock tree topology generated by the method of this embodiment of the invention; Figure 12 This is a flowchart illustrating one implementation of the automatic clock tree generation method according to an embodiment of the present invention; Figure 13 This is a block diagram of an automatic clock tree generation device according to an embodiment of the present invention; Figure 14 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0020] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.

[0021] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0022] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".

[0023] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0024] In existing technologies, manually constructing clock trees requires engineers to plan the pairing of taps at each level one by one and repeatedly coordinate the trace lengths between different levels to achieve geometric symmetry. This process is tedious and inefficient. Meanwhile, the built-in automatic clock tree construction scheme of EDA tools has limited configurable parameters and lacks a global optimization mechanism for tap pairing and a mandatory mechanism for branch symmetry, making it difficult to meet the requirements of designers.

[0025] To facilitate understanding of the technical solution in this embodiment, the terms used in the following description are explained: A tap is a node in the clock tree that needs to be driven or relayed. The initial tap is the target node at the end of the clock tree specified by the designer, such as the clock input of various functional modules in a chip. Taps generated during iteration are intermediate-level taps, used to connect the previous and next level branches. The root node of the clock tree is the starting input point of the clock signal, such as the clock output of a phase-locked loop (PLL) or the clock output pin of a standard cell.

[0026] The trace length refers to the distance traveled along the chip wiring direction between two tap points. In chip physical design, traces are usually routed in horizontal and vertical directions, so the trace length between two tap points is usually measured using Manhattan distance.

[0027] Manhattan distance, which is the sum of the difference between the coordinates of two points in the horizontal direction (X-axis) and the difference between the coordinates in the vertical direction (Y-axis), reflects the actual trace length between two points in chip wiring.

[0028] A bifurcation point is a branch node from a single node, where two branch lines lead to two separate tap points.

[0029] Branch routing length refers to the routing length from the fork point along the branch routing line to the corresponding tap point.

[0030] The reference branch length is a standard for branch routing length that is uniformly adopted for all tap combinations within the same layer. It is determined by the Manhattan distance of the tap combination with the largest Manhattan distance in that layer.

[0031] A common route refers to a route segment extending from a branching point towards the center. Common routes from multiple branching points converge towards the same central area. The end of the common route determines the location of the tap point for the next layer.

[0032] The center direction can be the direction towards the root node of the clock tree, or it can be the direction determined by the geometric center of all initial tap points.

[0033] Clock routing refers to actually drawing metal interconnects on the chip's metal layer according to a defined clock tree topology, connecting the branching points, taps, and buffers at each level according to the topology.

[0034] A buffer is a clock drive unit inserted at a fork or tap point to enhance the driving capability of the clock signal and ensure that the signal can be transmitted to the next layer of load.

[0035] Figure 1 This is a flowchart of the automatic clock tree generation method according to an embodiment of the present invention. Figure 1 As shown, the automatic generation method of the clock tree in this embodiment includes the following steps.

[0036] In step S110, configuration information is obtained, which includes the positions of multiple initial tap points and the position of the root node of the clock tree.

[0037] Configuration information can be pre-defined by the designer based on the chip layout plan through configuration files or a human-machine interface. The initial tap is the target endpoint that the clock tree ultimately needs to drive; the number and position of the initial taps can be arbitrary, not limited to a regular array arrangement. The root node of the clock tree is the signal source for the entire clock tree.

[0038] In step S120, multiple tap points of the current layer are paired to determine a target pairing scheme that includes combinations of multiple tap points.

[0039] In the first iteration, the tap point of the current layer is the initial tap point obtained in step S110. The pairing operation groups the tap points of the current layer into pairs, with each pair forming a tap point combination. That is, each tap point combination includes two paired tap points. The target pairing scheme is selected based on the criterion that the total length of the connection between each group of tap points meets a preset requirement.

[0040] In one implementation, all possible pairing schemes for the taps in the current layer can be traversed. Within each pairing scheme, all taps in the current layer are paired in different ways, forming multiple tap combinations. That is, in different pairing schemes, at least two tap combinations are different. In one example, for different pairing schemes, the sum of squares of the connection lengths (i.e., the Manhattan distance between two taps within a group) of each tap combination under each pairing scheme can be calculated, and the pairing scheme with the smallest sum of squares can be selected as the target pairing scheme. By using the sum of squares metric, the situation where individual combinations have excessively long connections can be avoided, resulting in a globally optimal total connection length. By replacing manual judgment with this global optimization method, tap pairing results with shorter total winding lengths can be obtained automatically.

[0041] It should be understood that, as an alternative, one can also use the summation of the lengths of the lines connecting all tap point combinations, or comprehensively consider statistical parameters such as the mean and variance to select a better pairing scheme.

[0042] To more clearly illustrate the specific implementation of tap point pairing in step S120, the following will be combined with... Figure 2 The following description uses a specific example with four initial taps. It should be understood that one or more examples in the following description are for illustrative purposes only; the actual number of initial taps in a real integrated circuit design will be much larger than these examples, and their arrangement will not be a regular array. In the following description, Manhattan distance is used as the distance metric; however, it is readily understood that other types of distance definitions can be used as the distance metric. Furthermore, if the integrated circuit design constraints do not require clock routing to be horizontal or vertical, planar distance can be directly used as the distance metric.

[0043] Figure 2 This is an exemplary schematic diagram illustrating the tap point pairing method according to an embodiment of the present invention. Figure 2 As shown, assume there are four initial tap points T1-T4, located at the four corners of a rectangular region, with coordinates T1(0,0), T2(100,0), T3(0,60) and T4(100,60).

[0044] For the four tap points, there are three possible pairing schemes.

[0045] The first pairing scheme is as follows: Figure 2 As shown in section (a), adjacent tap points in the horizontal direction are paired up, i.e., combination P1a is (T1, T2) and combination P1b is (T3, T4). The Manhattan distances for each combination are calculated: in combination P1a, the Manhattan distance between T1 and T2 is |100-0|+|0-0|=100; in combination P1b, the Manhattan distance between T3 and T4 is |100-0|+|60-60|=100. The sum of the squares of the line lengths in this pairing scheme is 20000.

[0046] The second pairing scheme is as follows: Figure 2 As shown in section (b), adjacent tap points in the vertical direction are paired up, i.e., combination P2a is (T1, T3) and combination P2b is (T2, T4). The Manhattan distances for each combination are calculated: in combination P2a, the Manhattan distance between T1 and T3 is |0-0|+|60-0|=60; in combination P2b, the Manhattan distance between T2 and T4 is |100-100|+|60-0|=60. The sum of the squares of the line lengths in this pairing scheme is 7200.

[0047] The third matching scheme is as follows: Figure 2As shown in section (c), the tap points along the diagonal are paired up in pairs, i.e., combination P3a is (T1, T4) and combination P3b is (T2, T3). The Manhattan distances for each pair are calculated: in combination P3a, the Manhattan distance between T1 and T4 is |100-0|+|60-0|=160; in combination P3b, the Manhattan distance between T2 and T3 is |0-100|+|60-0|=160. The sum of the squares of the line lengths in this pairing scheme is 51200.

[0048] Compare the sums of squares of the three pairing schemes: 20000 (Scheme 1), 7200 (Scheme 2), and 51200 (Scheme 3). Scheme 2 has the smallest sum of squares, therefore Scheme 2 (vertical pairing) is selected as the target pairing scheme, resulting in two tap point combinations (T1, T3) and (T2, T4). Thus, by traversing all possible pairing schemes and calculating and comparing their sums of squares, global optimization of tap point pairing is achieved, avoiding the problem of manually selecting non-optimal schemes based solely on experience.

[0049] In step S130, the combination of tap points with the largest Manhattan distance is determined, and the largest Manhattan distance is used as the reference branch length of the current layer.

[0050] In all tap combinations obtained in step S120, the Manhattan distance between the two taps in each combination is calculated, and the combination with the largest Manhattan distance is identified. This largest Manhattan distance is used as the unified reference branch length for the current layer. The reference branch length is used as the basis for subsequently determining the bifurcation points of each tap combination. Thus, a unified branch routing length standard can be established for all tap combinations within the same layer to ensure the geometric symmetry of each branch.

[0051] In step S140, based on the reference branch length, the fork points of each tap combination are determined such that the branch trace length corresponding to each tap combination is equal to the reference branch length.

[0052] For each tap combination, the branch line length refers to the sum of the line lengths from the bifurcation point to each of the two taps in the combination. For tap combinations with the largest Manhattan distance, the Manhattan distance between the two taps is equal to the reference branch length, so the bifurcation point can be directly taken as the midpoint of the line connecting the two taps. For other tap combinations, since the Manhattan distance between the two taps is less than the reference branch length, it is necessary to search for a line between the two taps such that the length of this line is exactly equal to the reference branch length, and then take the midpoint of this line as the bifurcation point of the combination. That is, starting from the shortest connection between the two taps, one or more line segments need to be moved away from or closer to the tap combination, and the other line segments need to be adaptively changed to obtain a new, longer line between the taps (i.e., the line between the taps). By repeatedly moving and searching, a position can be found where the length of the line between the taps is equal to or approximately equal to the reference branch length. Therefore, the branch routing length of all tap point combinations within the same layer is unified as the reference branch length.

[0053] It should be understood that in the process of searching for connecting points that meet the requirements, the search direction can be subject to certain constraints. For tap point combinations close to the root node, the search can prioritize connecting points in the direction away from the root node. For tap point combinations that are relatively further away from the root node, the search can prioritize connecting points in the direction pointing to the root node.

[0054] After determining the target pairing scheme, proceed to steps S130 and S140, which determine the reference branch length and the forking points of each combination. The following section combines... Figure 3 This is illustrated with an example containing two pairs of tap points with different Manhattan distances.

[0055] Figure 3 This is an exemplary schematic diagram illustrating the method for selecting bifurcation points according to an embodiment of the present invention. Figure 3 As shown, assuming that after the pairing operation in step S120, the current layer obtains two tap point combinations: combination C1 and combination C2. The Manhattan distance between the two tap points T5 and T6 of combination C1 is 130, while the Manhattan distance between the two tap points T7 and T8 of combination C2 is 90; the two are not equal.

[0056] In step S130, the combination with the largest Manhattan distance is determined from all tap point combinations. Comparing the Manhattan distance 130 of combination C1 with the Manhattan distance 90 of combination C2, it can be seen that the Manhattan distance of combination C1 is larger. Therefore, this largest Manhattan distance 130 is used as the reference branch length for the current layer.

[0057] In step S140, for combination C1, the Manhattan distance 130 between its two taps is equal to the reference branch length 130. Therefore, the bifurcation point of this combination can be directly taken as the midpoint of the line connecting the two taps. It should be understood that the tap connection refers to a connection between points that conforms to routing constraints. For example, if the constraint requires routing to be in either a horizontal or vertical direction, and the x and y coordinates of the two taps are not the same, then a connection between the two taps is formed according to the routing constraints, and the midpoint is taken as the bifurcation point. Figure 3 As shown, the midpoint of the line connecting the midpoints of combination C1 is the branch point B1. The length of the line from the branch point B1 to each of the two tap points is 65, and the sum of the branch line lengths is 130, which is equal to the reference branch length.

[0058] For combination C2, the Manhattan distance between its two taps is 90, which is less than the reference branch length of 130. If the midpoint of the line connecting the two taps is simply taken as the bifurcation point, the sum of the branch path lengths is only 90, which is inconsistent with the reference branch length of 130. The different branch path lengths of the two combinations within the same layer will lead to unequal propagation delays for each path, failing to guarantee geometric symmetry. Therefore, for combination C2, a line segment needs to be searched along the direction of the line connecting the two taps, such that the length of this line is equal to the reference branch length of 130, and then the midpoint of this line is taken as the bifurcation point B2 of combination C2. For example... Figure 3 As shown, the branch point B2 is not located at the midpoint of the straight line connecting the two tap points. Relative to the two tap points of combination C2, the route starting from B2 is detoured, so that the sum of the branch route lengths is also 130, consistent with combination C1.

[0059] Therefore, by using the combination with the largest Manhattan distance as the benchmark to unify the reference branch length, and by using the bifurcation point search to achieve detour compensation for the branch routing of the combination with smaller distance, the branch routing length of all tap point combinations in the same layer is equal. This mechanism ensures the geometric symmetry of each branch, thereby laying the foundation for the optimization of consistent propagation delay and clock skew of each path.

[0060] In step S150, starting from each of the bifurcation points, a common trace of equal length is extended towards the center. The end of each common trace is taken as the tap point of the next layer. The center direction is the direction in which the traces converge towards the root node of the clock tree, or the direction in which the traces converge towards the center point determined by the initial tap point. For example, if the bifurcation point is located to the lower left of the root node, the common trace extends from the bifurcation point to the upper right. The specific extension method, such as whether it is vertical first and then horizontal, or horizontal first and then vertical, can be determined under routing constraints based on the capabilities provided by various routing algorithms or EDA tools.

[0061] Within the same layer, all branching points extend common traces of equal length towards their respective center directions. The center direction can be determined in two ways: one is by pointing towards the root node of the clock tree, where all common traces converge towards the root node; the other is by determining a center point based on the geometric center of all initial taps, with all common traces extending towards that center point. The coordinates of the ends of the common traces form a new set of taps for the next layer, serving as input for the next iteration. The equal length of the common traces, combined with the uniform branch trace length, ensures that the total trace length from the clock tree root node to each end tap is equal via any path, thus achieving consistent propagation delay across paths and reducing clock skew.

[0062] In step S160, it is determined whether a preset termination condition is met. The termination condition may be that the number of taps in the current layer has decreased to meet the convergence requirement (e.g., the number has decreased to one or a pair), or that a preset maximum number of iterations has been reached. If the termination condition is not met, the next layer tap generated in step S150 is used as the new current layer tap, and the process returns to step S120 to continue layer-by-layer construction. If the termination condition is met, the iteration ends, and the process proceeds to step S170.

[0063] In step S170, device placement and clock routing are performed based on the topology of each layer of the clock tree determined by iteration.

[0064] After the above iterative process, the coordinates of all taps and branch points have been determined, forming a complete clock tree topology. Based on this topology, buffers or antenna units are placed at the branch points and taps at each level, and metal traces are routed on the corresponding metal layers of the chip according to the connection relationships determined by the topology, completing the physical connection from the root node to each end tap point, and realizing the physical construction of the clock tree.

[0065] In one implementation, step S170 may include the following sub-steps: In step S171, buffers are placed at the coordinate positions of each branch point and tap point according to the buffer type specified in the configuration information. The buffer type can be pre-specified by the designer through the configuration information, for example, specifying a specific buffer cell from the standard cell library. Simultaneously with buffer placement, antenna cells can also be placed at required locations according to the antenna cell type specified in the configuration information to mitigate potential process antenna effects during chip manufacturing. Antenna cells refer to logic gates or standard cells whose input pins are connected to diodes or special protection units. These cells function to discharge accumulated charge on metal lines to ground or power supply, preventing the gate oxide layer from being broken down.

[0066] In step S172, clock tree traces are drawn on the corresponding metal layers according to the horizontal and vertical routing layers specified in the configuration information. For example, the designer can specify that horizontal traces are routed on the high-level metal layer M14 and vertical traces are routed on the high-level metal layer M15 using the configuration information. Using high-level metal layers for clock routing can reduce signal transmission delay on the traces by utilizing the lower resistance characteristics of the high-level metals. At the same time, the high-level metals are farther from the substrate, resulting in smaller parasitic capacitance, which helps to reduce power consumption. In specific implementations, the actual metal traces can be drawn by calling the routing commands built into the physical implementation tools, such as the editAddRoute and editCommitRoute commands in the Cadence Innovus tool. The length of each level of trace can be controlled by the maximum trace length parameter in the configuration information, allowing the designer to flexibly adjust the upper limit of the length of each level of trace according to specific design requirements and layout space constraints.

[0067] In step S173, the connection between the buffer pins and the clock tree traces is completed. In the above steps, each level of buffer has been placed at the corresponding branching point and tap point coordinates, and the main trunk of the clock tree traces has been drawn on the corresponding metal layer according to the topology. At this time, the input and output pins of each buffer are physically connected to the corresponding clock tree trace segments, so that the clock signal starting from the root node can be amplified and shaped sequentially through each level of buffers, and finally reach each receiving end. In one implementation, the routing between the buffer pins and the clock tree traces can be automatically completed by calling a preset connection command.

[0068] In step S174, after the clock routing (including the main traces and buffer pin windings) is completed, shielding lines are added to the clock traces. In one example, the shielding lines are laid on both sides of the clock traces and connected to ground or power supply potentials to isolate the crosstalk of adjacent signal lines to the clock signal, ensuring the integrity and stability of the clock signal during transmission. Since the shielding lines are added after all routing is completed, the main traces and each buffer pin winding are covered by the shielding lines, forming crosstalk isolation for the complete clock routing network. In one implementation, the shielding lines can be drawn automatically by calling a preset shielding line addition command.

[0069] Finally, in step S175, sink assignment is performed, allocating each clock receiver (e.g., clock input pin of a register) in the chip to its corresponding end tap, driven by the buffer at the assigned end tap. Sink assignment can be automated using built-in assignment commands in the physical implementation tools, such as the `assign_clock_tree_source_groups` command in CadenceInnovus; alternatively, the designer can customize the assignment based on the physical location of each receiver to better adapt to specific layout constraints.

[0070] It should be noted that the method steps in steps S110 to S150 above, including determining the target pairing scheme for tap point pairing, distance calculation, determining the reference branch length, searching for bifurcation points, and extending common routes, can be implemented using Tcl or Python. Tcl is the native scripting language of mainstream physical implementation tools and has good tool integration capabilities. Python, on the other hand, has a rich algorithm library and data processing capabilities, making it easy to implement computationally intensive operations such as global traversal optimization. The above method interacts with specific physical implementation tools by calling the tool's routing commands and cell placement commands. Therefore, by adapting the specific commands, the method of this embodiment can be ported to run in other physical implementation tools besides Cadence Innovus, exhibiting good platform adaptability.

[0071] It should be understood that other types of scripting languages ​​or programming languages ​​can also be used to implement the above steps.

[0072] Figure 4 This is an exemplary logical structure diagram of the clock tree generated by the method of this embodiment of the invention. Figure 4 As shown, from a logical topology perspective, the entire clock tree starts from the root node 41 and expands downwards layer by layer, presenting a symmetrical tree structure with H-shaped nested levels.

[0073] The root node 41 is connected to the first-level branch point 43 via the main branch line 42. Starting from the first-level branch point 43, first-level branch lines 44a and 44b are symmetrically branched to the left and right, respectively, with the two branch lines being of equal length. The ends of the first-level branch lines 44a and 44b are the first-level tap points 45a and 45b, respectively.

[0074] First-level tap points 45a and 45b serve as the branching starting points for the second level. Taking first-level tap point 45a as an example, the route starting from 45a reaches the second-level branching point 46a, and then symmetrically branches into second-level branch routes 47a and 47b, reaching second-level tap points 48a and 48b. Symmetrically, starting from first-level tap point 45b, passing through second-level branching point 46b, branching into second-level branch routes 47c and 47d, reaching second-level tap points 48c and 48d. The lengths of all second-level branch routes 47a to 47d are equal, and they use the same reference branch length determination mechanism as the first-level branch routes 44a and 44b, ensuring geometric symmetry within the same level and across levels.

[0075] In each branch, the branching points at the same level extend towards the center (i.e., towards the convergence direction of the root node 41) through common traces 49a and 49b, forming part of the H-shape of each level in the clock tree structure. The length of the common traces remains equal within the same level, and their ends constitute the positions of the tap points of the next level.

[0076] The process iterates layer by layer in the manner described above until the tap points cover all the initial tap point positions. Starting from the root node 41, the route passes through the main trunk line 42, various branching points (43, 46a, 46b...), various branch lines (44a, 44b, 47a to 47d...), and various common lines (49a, 49b...), finally reaching each terminal tap point. Since the length of each branch line is uniform and the common lines are of equal length, the total route length from the root node 41 to any terminal tap point is equal.

[0077] Therefore, the clock tree generated by the method in this embodiment logically constitutes a strictly symmetrical multi-level H-shaped topology. Each level ensures the equalization of path length through a unified reference branch length and equal-length common traces, providing a structural basis for clock skew optimization from a topological perspective.

[0078] To more intuitively demonstrate the complete iterative construction process of the method in this embodiment, from the initial tap point to the final clock tree topology, the following combines... Figures 5 to 11 Using a specific example containing eight initial tap points and one root node, the state changes after each step are explained step by step in the execution order of steps S110 to S170.

[0079] Figure 5 This is a schematic diagram of the initial state of an example of the automatic clock tree generation method according to an embodiment of the present invention. Figure 5As shown, in step S110, eight initial taps 51a to 51h and one root node 52 are specified through configuration information. The eight initial taps 51a to 51h are distributed at the clock input positions of various functional modules in the chip layout, and their coordinates are different. Their positions can be arbitrary and are not constrained by a regular array arrangement. The root node 52 is located at a preset position in the layout, such as the output of a phase-locked loop (PLL). At this time, no pairing or wiring operations have been performed, and there is no connection or binding relationship between the taps or between the taps and the root node.

[0080] Figure 6 This is a schematic diagram of the clock tree topology after tap point pairing in the method of this embodiment of the invention, corresponding to the state after step S120 is completed in the first iteration. Figure 6 As shown, after obtaining the initial tap points 51a to 51h, according to step S120, these eight tap points are paired up as tap points of the current layer. Specifically, all possible pairing schemes of the eight tap points are traversed, the sum of squares of the connection lengths of each combination under each pairing scheme is calculated, and the scheme with the smallest sum of squares is selected as the target pairing scheme. Figure 6 The results of the target pairing scheme are shown: the initial tap points are divided into four tap point combinations: 61a, 61b, 61c, and 61d. As can be seen from the figure, the Manhattan distance between the two tap points within each combination is relatively short, avoiding pairings that span large diagonal areas, thus achieving a globally optimal total connection length within each group of the pairing scheme. It should be noted that this stage only determines the logical pairing; the branching points and actual routing have not yet been determined.

[0081] Figure 7 This is a schematic diagram of the clock tree topology after determining the bifurcation point, according to an embodiment of the present invention, corresponding to the state after steps S130 and S140 are completed in the first iteration. Figure 7 As shown, after obtaining four tap point combinations 61a to 61d, step S130 is first executed to calculate the Manhattan distance between the two tap points in each combination. The combination with the largest Manhattan distance is then selected and used as the unified reference branch length for the current layer. Then, step S140 is executed to determine the bifurcation point for each tap point combination based on the reference branch length. For combinations where the Manhattan distance equals the reference branch length, the bifurcation point is directly taken as the midpoint of the line connecting the two tap points. For combinations where the Manhattan distance is less than the reference branch length, a line connecting points with a length equal to the reference branch length is searched, and its midpoint is taken as the bifurcation point. Figure 7The four tap combinations are indicated by black dots, which define the branch points 71a, 71b, 71c, and 71d. At this point, the two taps within each combination form branch traces with their corresponding branch points, and the length of the branch traces for all combinations is equal to the reference branch length.

[0082] Figure 8 This is a schematic diagram of the clock tree topology after determining the tap point of the next layer in the method of this embodiment of the invention, corresponding to the state after step S150 is completed in the first iteration. Figure 8 As shown, after determining the branching points 71a to 71d for each combination, step S150 is executed. Starting from each branching point 71a to 71d, equal-length common traces 82a, 82b, 82c, and 82d are extended towards the center. The center direction can be determined based on the location of the root node 52 (i.e., the direction towards which they converge), or based on the geometric centers of the eight initial taps 51a to 51h. The four common traces 82a to 82d are of equal length, and their ends form four new taps 81a, 81b, 81c, and 81d, respectively. These four new taps are the next layer taps and will serve as input for the second iteration. At this point, the layer-by-layer construction steps of the first iteration are complete, and the initial eight taps have converged into four new taps. Since the common traces are of equal length and the branch traces are of uniform length, the path length from the root node through any new tap and its corresponding branch to the initial tap it covers is consistent.

[0083] Figure 9 This is a schematic diagram of the clock tree topology after the tap point pairing and branch point determination are completed in the second iteration of the method of this embodiment of the invention, corresponding to the state after steps S120 to S140 are executed in the second iteration. Figure 9 As shown, in the second iteration, the newly generated tap points 81a to 81d from the first iteration are used as the tap points of the current layer, and the layer-by-layer construction steps are executed again. First, step S120 is executed, pairing the four tap points 81a to 81d in pairs. By traversing all possible pairing schemes and calculating the sum of squared connection lengths, the optimal combination of two tap points is selected. Next, step S130 is executed, determining the combination with the larger Manhattan distance, and using that Manhattan distance as the reference branch length for this iteration. Then, step S140 is executed, determining the two branch points 91a and 91b respectively. Figure 9 As shown, the bifurcation points 91a and 91b are determined in the same way as in the previous round. That is, the combination whose Manhattan distance is equal to the reference branch length takes the midpoint, and the combination whose Manhattan distance is less than the reference branch length is compensated to the reference branch length by connecting the search points.

[0084] Figure 10This is a schematic diagram of the clock tree topology after determining the new layer of tap points and branch points following further iterations in the method of this embodiment of the invention. It corresponds to the state after step S150 is completed in the second iteration and after steps S120 to S140 are completed in the third iteration. Figure 10 As shown, after determining the bifurcation points in the second iteration, common traces of equal length are extended from bifurcation points 91a and 91b towards the center, forming another layer of tap points 101a and 101b at their ends (corresponding to step S150 of the second iteration). The third iteration then proceeds, using tap points 101a and 101b as the tap points of the current layer. In the third iteration, step S120 directly pairs these two tap points into a combination; step S130 determines the Manhattan distance of this combination as the reference branch length for this round; and step S140 determines the bifurcation point 102 of this combination. After three iterations, the process converges layer by layer from the initial eight tap points to two tap points 101a and 101b and one bifurcation point 102.

[0085] Figure 11 This is a schematic diagram of the clock tree topology generated by the method of this embodiment of the invention, corresponding to the state after step S160 determines that the termination condition is met. Figure 11 As shown, after the third iteration, the number of taps 101a and 101b in the current layer has converged to two, satisfying the preset termination condition (step S160), and the iteration process ends. At this point, starting from the root node 52, the clock tree topology is formed by sequentially passing through branch point 102, taps 101a and 101b, branch points 91a and 91b, taps 81a to 81d, and branch points 71a to 71d, finally reaching the initial taps 51a to 51h. Based on this topology, step S170 is executed, placing buffers at each branch point and tap position, and performing clock routing on the corresponding metal layer according to the connection relationship determined by the topology. The final routing connection relationship is shown in solid lines in the figure, presenting a multi-layered H-shaped nested symmetrical tree structure. The total routing length from the root node 52 to any initial tap is equal, providing a physical guarantee for the consistency of clock propagation delay and the minimization of clock skew in each path.

[0086] In practical applications, the initial number of taps specified by the designer may not be an integer power of 2, for example, six initial taps. In this case, since the number of taps is not a power of 2, a situation may arise where a certain layer cannot form complete pairwise pairings during the layer-by-layer construction process, thus failing to guarantee geometric symmetry. To address this situation, the method in this embodiment also includes a virtual tap introduction mechanism.

[0087] Specifically, after obtaining the configuration information in step S110, it is determined whether the number of initial taps is a power of 2. If the number of initial taps is not a power of 2, multiple virtual taps are introduced according to the configuration information, so that the total number of initial taps and virtual taps equals a power of 2, where N is a positive integer. For example, when there are six initial taps, two virtual taps can be introduced, bringing the total number of taps to eight. The coordinates of the virtual taps can be specified by the designer in the configuration information or automatically determined by the system based on the existing distribution of taps. In the iterative construction process of subsequent steps S120 to S160, the virtual taps participate in pairing, branch point determination, and common trace extension together with the real initial taps. When placing devices in step S170, the virtual taps are also placed in buffers, but these buffers do not drive any clock receivers or the next layer buffers. The virtual taps are only set to ensure the complete operation of the pairing and symmetry enforcement mechanism and do not affect the actual function and performance of the clock tree. By introducing virtual tap points, the method in this embodiment can be applied to any number of initial tap point configurations, without being limited by the number of tap points, thus expanding the applicable scenarios of the solution.

[0088] Figure 12 This is a flowchart illustrating one implementation of the automatic clock tree generation method according to an embodiment of the present invention. Figure 12 This illustrates the complete operational flow from parameter configuration to the completion of the clock tree physical implementation. For example... Figure 12 As shown, in a specific implementation, the method of this embodiment is based on the Cadence Innovus physics implementation tool, and the above method is implemented in the form of Tcl script combined with Python script.

[0089] In step S210, parameter configuration is obtained. Specifically, the designer sets the values ​​of various configuration variables in the Tcl script, including: specifying the two-dimensional coordinates of multiple initial tap points by setting tap point position variables (e.g., locs variable); specifying the coordinates of the root node by setting root node position variables (e.g., root_loc variable); specifying the buffer standard cell name used by setting buffer type variables (e.g., buf_cell variable); specifying the standard cell name of the antenna element by setting antenna element type variables (e.g., antenna_cell variable); specifying the metal layers used for the horizontal and vertical traces of the clock tree by setting horizontal trace layer variables (e.g., horizontal_layer variable) and vertical trace layer variables (e.g., vertical_layer variable); and controlling the upper limit of the length of each trace level by setting the maximum trace length parameter (e.g., -max_length parameter).

[0090] In step S220, the physical implementation tool's layout database is opened. This database is the version prior to placement, at which point the physical locations of each standard cell and macromodule in the chip have been determined, but the clock tree has not yet been constructed. A script file containing the method of this embodiment (e.g., htree_proc.tcl) is read in, and the various function calls are loaded into the tool's runtime environment.

[0091] In step S230, an initialization operation is performed (e.g., calling the my_init function) to complete the preparation of the runtime environment and the verification of configuration information.

[0092] In step S240, the main function for automatically constructing the clock tree is executed. Depending on the initial number of taps, the main function may need to be called multiple times to complete the iterative construction round by round. For example, when there are sixteen initial taps (2 to the power of 4), four iterations are required; when there are eight initial taps (2 to the power of 3), three iterations are required. Each call to the main function completes steps S120 to S150 of one iteration round. A maximum trace length parameter (e.g., max_length) can be attached to each call to control the trace length in the current round. After multiple calls, the topology of each level of the clock tree is determined, and the coordinates of each branch point and tap, as well as the geometric information of each branch trace and common trace, are recorded.

[0093] In step S250, a device placement operation is performed (e.g., calling the my_add_tap_cell function), automatically placing the specified type of buffer and antenna unit at each level of bifurcation point and tap point location as described in step S171.

[0094] In step S260, a routing operation is performed between the buffer pins and the clock tree traces (e.g., calling the my_route_nets function), and the physical connection between each buffer pin and the corresponding clock tree trace segment is completed in the manner described in step S173.

[0095] In step S270, a shielding line addition operation is performed (e.g., calling the my_add_shield function). As described in step S174, shielding lines are automatically drawn on both sides of all completed clock traces (including branch traces at all levels, common traces, and buffer pin wraps) to form crosstalk isolation coverage for the entire clock routing network.

[0096] In step S280, receiver allocation is performed, and each clock receiver is allocated to the corresponding end tap point in accordance with the method described in step S175.

[0097] After the above steps S210 to S280, the automatic construction process of the clock tree is completed, and the clock distribution network of the chip forms a complete physical connection from the root node to each receiving end.

[0098] This embodiment achieves automatic clock tree generation through an iterative layer-by-layer construction mechanism. In each iteration, the reference branch length of the layer is unified based on the combination of taps with the largest distance. For other combinations, the branch trace length is made consistent with the reference branch length through a branch point search. At the same time, common traces of equal length are extended from each branch point towards the center to form the taps of the next layer. This solves the problems of poor clock skew and clock propagation delay due to the lack of tap pairing optimization and branch symmetry enforcement mechanism in the built-in clock tree generation scheme of existing EDA tools, as well as the low efficiency of manual construction schemes that plan and pair one by one and manual routing. It achieves the technical effect of making the propagation delay of each path consistent and the clock skew comparable to the manual construction scheme while automatically generating the clock tree.

[0099] Furthermore, by traversing all possible pairing schemes of the tap points in the current layer and calculating the sum of squares of the lengths of the connections between tap points in each scheme, the scheme with the smallest sum of squares is selected as the target pairing scheme. This embodiment replaces manual judgment with a quantifiable global optimization method, obtaining the tap point pairing result with the shortest total winding length under the premise of automation, thereby saving the winding resources of the clock tree. At the same time, for tap point combinations where the Manhattan distance is less than the reference branch length, by searching for connections between points that satisfy the reference branch length in the connection direction and taking the midpoint as the branch point, the routing after the branching undergoes detour compensation to a unified reference branch length. This mechanism forcibly guarantees the geometric symmetry of each branch within the same layer, thereby providing structural guarantees for consistent propagation delays and minimizing clock skew across paths.

[0100] For cases where the initial number of taps is not an integer power of 2, virtual taps are introduced to pave the total number of taps to a power of 2, enabling the pairing and symmetry enforcement mechanisms described above to function correctly with any number of taps, thus expanding the applicability of the solution. In physical implementation, virtual taps are simply placed in buffers without driving any receiver or lower-level buffers, and therefore do not affect the actual functionality of the clock tree.

[0101] Furthermore, by supporting custom settings for parameters such as maximum wiring length per layer, horizontal and vertical routing metal layers, buffer type, and antenna element type in the configuration information, this embodiment provides designers with customization flexibility comparable to manual construction schemes, adaptable to different process nodes and specific design constraints. Automated receiver allocation further reduces manual intervention, improving the overall automation level from topology generation to physical implementation. The above method is implemented based on industry-standard Tcl or Python languages, interacting with specific physical implementation tools by calling routing and element placement commands. It can be ported to different physical implementation platforms by adapting specific commands, demonstrating good versatility.

[0102] Figure 13 This is a block diagram of an automatic clock tree generation device according to an embodiment of the present invention. Figure 13 As shown, the automatic clock tree generation device 130 of this embodiment includes a configuration unit 131, an iteration unit 132, and a wiring unit 133.

[0103] Configuration unit 131 is used to acquire configuration information, which includes the positions of multiple initial tap points and the position of the root node of the clock tree. Configuration unit 131 receives configuration parameters input by the designer through script variables or a graphical interface, and passes them to subsequent units.

[0104] Iteration unit 132 is used to iteratively execute layer-by-layer construction steps based on the tap points of the current layer, determining the topology of each layer of the clock tree until a preset termination condition is met. Iteration unit 132 further includes a pairing module 132a, a branching module 132b, a fork point determination module 132c, and a convergence module 132d. Pairing module 132a is used to pair multiple tap points of the current layer to determine a target pairing scheme including multiple tap point combinations. Branching module 132b is used to determine the tap point combination with the largest distance, using the largest distance as the reference branch length of the current layer. Fork point determination module 132c is used to determine the fork points of each tap point combination according to the reference branch length, such that the branch trace length corresponding to each tap point combination is equal to the reference branch length. Convergence module 132d is used to extend a common trace of equal length from each fork point towards the center direction, with the end of each common trace serving as the tap point of the next layer. The center direction is the direction of convergence towards the root node of the clock tree, or the direction of convergence towards the center point determined based on the initial tap points.

[0105] The routing unit 133 is used to place buffers and perform clock routing based on the tap points and branch points of each layer of the clock tree and the routing lines (i.e., the topology of each layer of the clock tree) determined iteratively by the iteration unit 132. The routing unit 133 automatically places buffers at the corresponding coordinate positions according to the buffer type specified in the configuration information, and performs clock routing on the corresponding metal layers according to the horizontal and vertical routing layers specified in the configuration information. It can also further complete the addition of shielding lines, receiver allocation, and connection between buffer pins and routing lines.

[0106] The data flow between the above units and modules is as follows: the configuration unit 131 transmits the configuration information to the iteration unit 132 and the routing unit 133; during the iteration process, the iteration unit 132 transmits the topology information at each level (including the coordinates of the branch point, the coordinates of the tap point, the geometric information of the branch routing and the common routing) to the routing unit 133; the routing unit 133 completes the physical implementation of the clock tree based on the configuration information and the topology information.

[0107] Figure 14 This is a schematic diagram of an electronic device according to an embodiment of the present invention. (For example...) Figure 14 As shown, the electronic device 140 includes at least one processor 141; and a memory 142 communicatively connected to at least one processor 141; and a communication component 143, which receives and transmits data under the control of the processor 141; wherein the memory 142 stores instructions executable by at least one processor 141, which are executed by at least one processor 141 to implement the above-described automatic clock tree generation method.

[0108] Specifically, the electronic device includes one or more processors 141 and a memory 142. Figure 14 Taking a processor 141 as an example, the processor 141 and the memory 142 can be connected via a bus or other means. Figure 14 Taking a bus connection as an example, memory 142, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Processor 141 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in memory 142, thereby realizing the above-mentioned automatic clock tree generation method.

[0109] The memory 142 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function. The data storage area may store configuration information, tap coordinates, topology information, and other data involved in this embodiment. Furthermore, the memory 142 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 142 may optionally include memory remotely located relative to the processor 141, and these remote memories may be connected to the electronic device 140 via a network.

[0110] One or more modules are stored in memory 142 and, when executed by one or more processors 141, perform the automatic clock tree generation method in any of the above method embodiments.

[0111] The product described herein can execute the method provided in this embodiment, and has the corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, please refer to the relevant descriptions in the method provided in this embodiment.

[0112] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for automatically generating a clock tree, characterized in that, The method includes: Obtain configuration information, which includes the positions of multiple initial tap points and the position of the root node of the clock tree; Based on the tap point of the current layer, the layer-by-layer construction steps are iteratively executed to determine the topology of each layer of the clock tree until the preset termination condition is met. Based on the topology of each layer of the clock tree determined through iteration, device placement and clock routing are performed. The layer-by-layer construction step includes: Pair multiple taps in the current layer to determine a target pairing scheme that includes combinations of multiple taps; Determine the combination of taps with the largest distance, and use the maximum distance as the reference branch length for the current layer; Based on the reference branch length, the bifurcation point of each tap point combination is determined, such that the branch trace length corresponding to each tap point combination is equal to the reference branch length. Starting from each of the aforementioned branching points, a common route of equal length extends towards the center. The end of each of the aforementioned common routes serves as the tap point of the next layer. The center direction is either the direction in which the clock tree root node converges or the direction in which the center point determined based on the initial tap point converges.

2. The method according to claim 1, characterized in that, Pair multiple taps in the current layer to determine a target pairing scheme that includes combinations of multiple taps, including: Iterate through each tap point in the current layer to determine multiple possible pairing schemes; Calculate the connection length parameters for each pairing scheme; The target pairing scheme is determined based on the connection length parameter.

3. The method according to claim 2, characterized in that, The connection length parameter is the sum of the squares of the connection lengths between the points in each tap combination in the pairing scheme; The target pairing scheme is determined based on the connection length parameter, specifically as follows: The pairing scheme with the minimum connection length parameter is determined as the target pairing scheme.

4. The method according to claim 2, characterized in that, The method further includes: In response to the fact that the number of initial taps is not an integer power of 2, multiple virtual taps are introduced according to the configuration information so that the total number of initial taps and virtual taps is equal to an integer power of 2.

5. The method according to claim 1, characterized in that, Based on the reference branch length, the bifurcation points of each tap point combination are determined, including: For a combination of tap points, search for the line connecting the target points of the tap points, where the length of the line connecting the target points is equal to the length of the reference branch. The midpoint of the line connecting the target points is taken as the branching point of the tap point combination.

6. The method according to claim 1, characterized in that, The configuration information also includes the maximum cabling length per layer; Starting from each of the aforementioned branching points, common routes of equal length extend towards the center, including: The length of the common trace extending towards the center is controlled based on the maximum wiring length.

7. The method according to claim 1, characterized in that, The configuration information also includes horizontal routing layer information and vertical routing layer information; The clock wiring includes: Based on the horizontal and vertical routing layer information, clock tree routing is performed on the corresponding metal layers.

8. The method according to claim 1, characterized in that, The configuration information also includes buffer type and / or antenna unit type; The placement of the device includes: Place the buffers according to the buffer type and / or place the antenna elements according to the antenna element type.

9. The method according to claim 1, characterized in that, The method further includes: Perform receiver allocation, assigning the receivers of the clock tree to the corresponding buffers.

10. The method according to claim 1, characterized in that, The distance mentioned is the Manhattan distance.

11. An automatic clock tree generation device, characterized in that, The device includes: A configuration unit is used to obtain configuration information, which includes the positions of multiple initial tap points and the position of the root node of the clock tree; The iterative unit is used to iteratively execute the layer-by-layer construction steps based on the tap point of the current layer, determine the topology of each layer of the clock tree, until the preset termination condition is met; The routing unit is used to place devices and route clocks according to the topology of each layer of the clock tree determined iteratively. The iterative unit includes: The pairing module is used to pair multiple tap points in the current layer and determine the target pairing scheme that includes combinations of multiple tap points. The branching module is used to determine the combination of tap points with the largest distance, and uses the maximum distance as the reference branch length for the current layer. The branch point determination module is used to determine the branch point of each tap point combination according to the reference branch length, such that the branch trace length corresponding to each tap point combination is equal to the reference branch length. The convergence module is used to extend common traces of equal length from each of the branching points toward the center. The end of each common trace serves as the tap point of the next layer. The center direction is either the direction of convergence toward the root node of the clock tree or the direction of convergence toward the center point determined by the initial tap point.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-10.

13. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method as described in any one of claims 1-10.