Method and device for constructing clock tree and chip

By constructing an optimized clock tree network in a three-dimensional integrated circuit and combining global and sub-regional clock trees, the problem of clock network complexity in three-dimensional integrated circuits is solved, a clock tree design with low power consumption and low clock deviation is achieved, and synchronization is improved. sex and practical value.

CN118780238APending Publication Date: 2024-10-15HUAWEI TECH CO LTD
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202310389214.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In three-dimensional integrated circuits, there are challenges in designing a synchronous clock network with low latency, low clock skew, and low register flip delay in a cross-die vertical stacking scenario, especially because the Z-direction clock network distribution increases complexity and affects the clock Latency and clock skew.

Method used

A method of building a clock tree is adopted, through a global clock tree with a two-dimensional structure and a sub-region clock tree with a three-dimensional structure, optimizing the clock tree layout based on the location of obstacles, moving the root node and sub-node positions to avoid obstacles, using through silicon vias and The buffer balances clock delays, reducing clock skew and power consumption.

Benefits of technology

A clock tree network architecture with low power consumption and low clock deviation in three-dimensional integrated circuits is realized, which avoids the problems of low clock tree establishment efficiency, large area, and high power consumption, and improves the synchronization and practical value of the clock tree network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780238A_ABST
    Figure CN118780238A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for constructing a clock tree, and the method comprises the steps: determining a global clock tree on a first bare chip according to the position of an obstacle on the first bare chip, the global clock tree comprises a clock source and a plurality of child nodes, and there is no obstacle on the clock source, the child nodes and a connection line used for connecting the clock source and the child nodes, the clock source is used for time synchronization of the plurality of sub-nodes; and on the at least two layers of second bare chips, a first sub-region clock tree is constructed, and a root node of the first sub-region clock tree is connected with one of the plurality of sub-nodes of the global clock tree. According to the embodiment of the invention, the power consumption and clock skew of the synchronous clock network in the three-dimensional integrated circuit can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic design automation, and in particular to a method, device and chip for constructing a clock tree. Background Art

[0002] With the advent of the intelligent era, people's demands for high-performance, high-reliability, low-power, and low-cost integrated circuit chips are becoming increasingly strong, and three-dimensional integrated circuits (3DIC) have emerged. Among them, how to physically design a synchronous clock network with low power consumption, low clock deviation, and low register flip delay in a vertical stacking scenario across bare chips is still a key step in the physical design of 3DIC, and it also poses great challenges. Summary of the invention

[0003] The embodiments of the present application provide a method, device and chip for constructing a clock tree, which can reduce the power consumption and clock deviation of a synchronous clock network in a three-dimensional integrated circuit.

[0004] In a first aspect, a method for constructing a clock tree is provided, comprising: determining a global clock tree on a first bare chip according to a position of an obstacle on the first bare chip, the global clock tree comprising a clock source and a plurality of sub-nodes, so that the obstacle does not exist on the clock source, the sub-nodes, and the lines connecting the clock source and the sub-nodes, wherein the clock source is used for time synchronization of the plurality of sub-nodes; constructing a first sub-region clock tree on at least two layers of second bare chips, wherein a root node of the first sub-region clock tree is connected to one of the plurality of sub-nodes.

[0005] In an embodiment of the present application, a clock tree network architecture in a three-dimensional integrated circuit is implemented through a global clock tree with a two-dimensional structure and a sub-region clock tree with a three-dimensional structure, thereby avoiding the problems of low clock tree establishment efficiency, large clock tree network area, and high power consumption caused by building the entire clock tree from a root node.

[0006] In combination with the first aspect, in certain implementations of the first aspect, determining the global clock tree on the first bare chip based on the position of the obstacle on the first bare chip includes: constructing the global clock tree; determining the final position of the clock source in the global clock tree based on the relative positions of the clock source and the obstacle in the global clock tree; and determining the final positions of the multiple sub-nodes based on the final positions of the clock source.

[0007] In the embodiment of the present application, the overall obstacle avoidance of the global clock tree is achieved by moving the position of the root node, and then the obstacles are avoided one by one for each child node, so that the wiring of the global clock tree is closer to actual application and the practical value of the embodiment is improved.

[0008] In combination with the first aspect, in certain implementations of the first aspect, determining the final position of the clock source in the global clock tree based on the relative positions of the clock source and the obstacle in the global clock tree includes: determining that the clock source is inside the obstacle and the clock path where the clock source is located is placed horizontally, and the clock path includes the clock source and the multiple sub-nodes; moving the clock path up or down to avoid the obstacle.

[0009] In combination with the first aspect, in certain implementations of the first aspect, determining the final position of the clock source in the global clock tree based on the relative positions of the clock source and the obstacle in the global clock tree includes: determining that the clock source is inside the obstacle, and the clock path where the clock source is located is placed vertically, and the clock path includes the clock source and the multiple sub-nodes; moving the clock path to the left or right to avoid the obstacle.

[0010] In combination with the first aspect, in certain implementations of the first aspect, the final positions of the multiple subnodes are determined based on the final position of the clock source, including: determining that the clock source is not within the obstacle; and determining that a first subnode is within an obstacle block, the first subnode being one of the multiple subnodes; moving the first subnode out of the obstacle block to a first position; and obtaining an updated clock path based on the first position, the updated clock path including the clock source and the multiple subnodes.

[0011] In combination with the first aspect, in certain implementations of the first aspect, the final positions of the multiple subnodes are determined based on the final position of the clock source, including: determining that the clock source is not within the obstacle; and determining that there is an obstacle block on the clock path between a first subnode and the clock source, the first subnode is one of the multiple subnodes, and the clock path includes the clock source and the multiple subnodes; obtaining the updated clock path to avoid the obstacle block.

[0012] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: determining clock delays of the multiple sub-nodes based on the updated clock path; and balancing the clock delays of the multiple sub-nodes.

[0013] After the clock path is updated, the clock delay from each node on the clock path to the root node will also change accordingly, that is, there may be a large difference in the clock delay from each node to the root node, thereby causing the clock deviation of the entire clock tree to increase. In an embodiment of the present application, after determining the clock delay between multiple child nodes and the root node, the clock deviation of the entire clock tree network is reduced by balancing the clock delays between the multiple child nodes and the root node, thereby better achieving the synchronization of the clock tree network.

[0014] Optionally, the clock delays among the multiple sub-nodes may be balanced by increasing the routing length, moving buffers, and / or adding buffers on the clock path.

[0015] In combination with the first aspect, in certain implementations of the first aspect, constructing a first sub-region clock tree on at least two layers of second bare chips includes: constructing a topological structure of the first sub-region clock tree; according to the topological structure, connecting a first merged segment and a second merged segment to any one of the at least two layers of second bare chips through silicon vias to obtain a third merged segment and a fourth merged segment, wherein the third merged segment corresponds to the first merged segment, and the fourth merged segment corresponds to the second merged segment; determining a position of a parent merged segment to obtain the first sub-region clock tree, wherein the parent merged segment is a parent merged segment of the third merged segment and the fourth merged segment.

[0016] In an embodiment of the present application, the sub-merged segments existing in different dies are integrated on the same die, which simplifies the method of finding the parent merged segment, so that the parent merged segment of the three-dimensional clock tree can be solved by using the method of finding the parent merged segment in the two-dimensional clock tree.

[0017] In combination with the first aspect, in some implementations of the first aspect, any one layer of the at least two layers of second dies includes the parent merged segment.

[0018] In an embodiment of the present application, the third merged segment mapped to the first merged segment on any layer of die, the fourth merged segment mapped to the second merged segment on any layer of die, and the parent merged segment are all set on any layer of die, which can shorten the line length and thus reduce power consumption.

[0019] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: adding a buffer between the through silicon vias on the at least two layers of the second die.

[0020] In the embodiment of the present application, when any layer of bare die is far away from the first merged section or the second merged section, adding a buffer between the through silicon vias can avoid the problem of not being able to drive the clock tree circuit due to increasing the line length or increasing the through silicon vias, thereby ensuring the normal operation of the clock tree. In addition, adding a buffer can also reduce the register flip delay.

[0021] In combination with the first aspect, in some implementations of the first aspect, determining the position of the parent merged segment includes: determining an initial position of the parent merged segment so that clock delays of the third merged segment and the fourth merged segment are equal; determining a third distance between the parent merged segment and the third merged segment and a fourth distance between the parent merged segment and the fourth merged segment according to the initial position of the parent merged segment; and determining the position of the parent merged segment according to the third distance and the fourth distance.

[0022] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: determining a maximum clock delay, wherein the maximum clock delay refers to the maximum value of the clock delays of multiple sub-regional clock trees, wherein a root node of the sub-regional clock tree is connected to one of the multiple sub-nodes, and the multiple sub-regional clock trees include a first sub-regional clock tree; and inserting a buffer on a connection line between the sub-regional clock tree and the global clock tree to ensure that the clock delays of the multiple sub-regional clock trees are all less than or equal to the maximum clock delay.

[0023] In the embodiment of the present application, by balancing the clock delay between the sub-region clock tree and the global clock tree, the clock deviation of the entire clock tree network can be reduced.

[0024] In combination with the first aspect, in some implementations of the first aspect, the global clock tree is a GHtree structure.

[0025] In the embodiment of the present application, the global clock tree using the GHtree structure has a shorter line length, lower power consumption, and smaller clock deviation, thereby reducing the clock deviation and total power consumption of the entire clock tree network.

[0026] In a second aspect, a device for constructing a clock tree is provided, the device being used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the device may include a unit and / or module for executing the method in the first aspect or any possible implementation of the first aspect.

[0027] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, enable the computer to execute the first aspect or any possible implementation of the first aspect.

[0028] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the first aspect or any possible implementation of the first aspect.

[0029] In the fifth aspect, an embodiment of the present application provides a chip, characterized in that it includes: a processor and a memory coupled to the processor, the memory stores a computer program, and the chip is located in the computer. When the processor executes the computer program, the computer executes the first aspect or any possible implementation method of the first aspect.

[0030] In a sixth aspect, an embodiment of the present application provides a chip system, which includes a logic circuit, which is used to couple with an input / output interface and transmit data through the input / output interface to execute the first aspect or any possible implementation method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a schematic diagram of the algorithm principle of MMM.

[0032] Figure 2 It is a schematic diagram of a clock tree topology.

[0033] Figure 3 It is a schematic diagram of the algorithm principle of DME.

[0034] Figure 4 It is a structural diagram of a 2D clock tree.

[0035] Figure 5 This is another structural diagram of a 2D clock tree.

[0036] Figure 6 It is a schematic diagram of the GHtree topology.

[0037] Figure 7 It is a schematic diagram of the principle of 3D-MMM algorithm.

[0038] Figure 8 It is a schematic diagram of the principle of sDMBE algorithm.

[0039] Fig. 9 This is a flow chart of a 3D clock tree network provided in an embodiment of the present application.

[0040] Fig.10 This is a flowchart of a clock tree obstacle avoidance provided in an embodiment of the present application.

[0041] Fig.11 It is a schematic diagram of a parent node obstacle avoidance method provided in an embodiment of the present application.

[0042] Fig.12 It is a schematic diagram of a branch node obstacle avoidance method provided in an embodiment of the present application.

[0043] Fig.13 This is a flowchart of generating a clock tree merging segment provided by an embodiment of the present application.

[0044] Fig.14 It is a schematic diagram of merging sub-merging points on different layers of bare chips provided in an embodiment of the present application.

[0045] Fig.15 It is an equivalent model of a delay balancing circuit provided in an embodiment of the present application.

[0046] Fig.16 It is an equivalent model of another delay balancing circuit proposed in an embodiment of the present application.

[0047] Fig.17 It is an equivalent model of another delay balancing circuit proposed in an embodiment of the present application.

[0048] Fig.18 It is an equivalent model of another delay balancing circuit proposed in an embodiment of the present application.

[0049] Fig.19 It is a structural diagram of a 3DIC clock tree network proposed in an embodiment of the present application.

[0050] Fig. 20 It is a schematic diagram of the hardware structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0052] To facilitate understanding of the embodiments of the present application, the terms involved in the present application are briefly described.

[0053] 1. Clock Tree Synthesis (CTS)

[0054] The clock tree can also be called a clock network. In a synchronous circuit system, as a time reference for data stream transmission, the clock signal controls the operation of the synchronous unit. The clock tree is used to buffer the clock signal, which can come from the same clock source (Source) and be transmitted to all clock endpoints (sink) in the clock tree, such as registers. For each register, due to differences in connection length and load size, the clock delay of the clock signal input to them is different, which not only reduces the working efficiency of the system, but also causes logical errors in the circuit. In the design of synchronous circuits, in order to avoid the above problems and ensure the normal operation of the circuit, it is required that the time when the clock signal reaches the clock pins of these registers is basically the same, so as to ensure the synchronous transformation of the states of these registers. In order to achieve this requirement, the clock tree must be carefully designed and optimized. Clock tree synthesis is a clock network that meets certain requirements such as clock deviation, bus length, and total power consumption when the location information of the clock endpoint is known.

[0055] 2. Clock delay

[0056] It can also be referred to as delay. The time it takes for a clock signal to travel from the clock source to the clock input port of a register is called clock delay. Since there is a certain distance between the clock source and the register, there will be a certain delay when the clock signal is transmitted to the register through the connecting line (i.e., the connection line). This delay is caused by the resistance and capacitance of the connecting line itself.

[0057] 3. Clock skew

[0058] It can also be referred to as skew. In an ideal synchronous circuit, the clock delay from the clock source to the clock pin of each register should be consistent, but in actual circuits, there are the following situations:

[0059] ①The lengths of the connection lines between the clock source and each register are different;

[0060] ②The delay of the clock buffer or inverter inserted in the clock network is different;

[0061] ③ The physical parameters of the connection lines on the clock path are different, such as link resistance, dielectric constant, connection line thickness, contact hole, through hole (such as through silicon via (TSV)) resistance, connection line and edge capacitance, etc.;

[0062] ④ Differences in device parameters on the clock path, such as the threshold voltage and channel mobility of MOS transistors.

[0063] The above situations will cause the clock delays of clock signals from the same clock source to reach different registers through different clock paths to be different. In general, the clock deviation is equal to the maximum clock delay minus the minimum clock delay.

[0064] Generally speaking, the clock deviation does not exceed 10% of the clock period. In clock tree synthesis, clock deviation and clock delay are both important parameters for measuring clock tree performance. In order to make the clock deviation of the clock tree as close to the design target as possible, more buffers or inverters can be appropriately introduced into the clock path with smaller clock delay to appropriately increase the clock delay of the clock path, thereby balancing the clock deviation between different clock paths in the clock tree.

[0065] In this application, connecting lines and connecting lines are used to represent the physical connection between the clock source and the register, and this application does not restrict the names.

[0066] In this application, clock tree, clock tree network, clock network, physical clock network, and physical clock tree network have the same meaning, and this application does not limit the names.

[0067] To facilitate understanding of the embodiments of the present application, several classic 2D clock tree syntheses are introduced.

[0068] Example 1

[0069] 2D chip clock tree synthesis can generally be divided into two steps: ① Generate the clock tree logic topology based on the clock logic connection relationship; ② Based on the generated clock tree logic topology, generate a physical clock tree network with as little skew as possible by embedding buffers or detours. Among them, step ① can be implemented using the Means and Medians (MMM) method, and step ② can be implemented by the Deferred-Merge Embedding (DME) method. The following is an explanation of the MMM algorithm and the DME algorithm.

[0070] Figure 1 A schematic diagram of the algorithm principle of MMM is shown, wherein the dots may represent sink points in the die, and each dot may be a register.

[0071] As an example, Figure 1 As shown in (a), assume that there are 8 sink points on a die and their respective coordinates are known. According to the MMM algorithm, the coordinates of the average point b11 of the entire die can be obtained. The X coordinate of b11 can be the average of the X coordinates of the 8 sink points in the die, and the Y coordinate of b11 can be the average of the Y coordinates of the 8 sink points in the die, as shown in Figure 1 The square point b11 in (b) is shown in Figure 1. According to the MMM algorithm, the eight sink points are evenly divided into two groups according to their coordinates, for example Figure 1 As shown in (b), the eight sink points are divided into left and right, and the four sink points s1, s3, s5, and s6 are located on the left side of the tangent X-cut11, and the four sink points s2, s4, s7, and s8 are located on the right side of the tangent X-cut11, wherein the X coordinate of the tangent X-cut11 can be the median value of the X coordinates of the eight sink points in the die.

[0072] It should be noted that, since the number of sink points is an even number, the median value of the X coordinates of the eight sink points may be the average value of the X coordinates of the two median sink points (eg, s4 and s5).

[0073] In the embodiment of the present application, the average value points (for example, points b11, b21, b22, b31, b32, b33, and b34) may also be referred to as weight center points.

[0074] It should be noted that when dividing the above 8 points, it is also possible to divide them up and down. The principle is the same as the left and right division, except that the Y coordinate is used for the corresponding calculation, which will not be repeated here.

[0075] Then, if Figure 1 As shown in (c), the coordinates of the regional average point b21 can be obtained according to the MMM algorithm. The X coordinate of b21 can be the average of the X coordinates of the four sink points s1, s3, s5, and s6 in the die. The Y coordinate of b21 can be the average of the Y coordinates of the four sink points s1, s3, s5, and s6 in the die. Similarly, the coordinates of the regional average point b22 can also be obtained. Continue to divide all the two groups of sink points into upper and lower parts, such as Figure 1 (c) shows the cut lines Y-cut21 and Y-cut22.

[0076] Then, if Figure 1 As shown in (d), according to the above algorithm steps, left-right division and up-down division are performed alternately until there is only one clock sink point in the divided sink group.

[0077] Figure 2 A schematic diagram showing a logical topology structure of a clock tree is shown.

[0078] like Figure 2 As shown, after all sink points in the die are divided according to the above steps of the MMM algorithm and regional average points (such as b11, b21, b22, b31, b32, b33, and b34) are obtained, the regional average points obtained before each regional division are connected together, and the logical topology structure of the clock tree of all sink points in the die is obtained.

[0079] Figure 3 A schematic diagram showing the algorithm principle of DME is shown. The DME algorithm can be divided into two stages.

[0080] Phase 1: Based on the logical topology of the clock tree generated by the aforementioned MMM algorithm, a merged segment is generated at each level of the clock tree from bottom to top. The delay from any point on the merged segment to its child node is equal.

[0081] In the prior art, Figure 3 As shown in (a), the 45-degree oblique line in the ring is called a Manhattan arc. There is a Manhattan arc between any two points in the plane, and the Manhattan distances from any point on the Manhattan arc to these two points are equal. Based on this Manhattan arc, there is a Manhattan ring, and the shortest Manhattan distances from any point on the ring to the Manhattan arc are equal. Figure 3 As shown in (b), the line segment ms(v) where the two Manhattan loops trr_a and trr_b intersect forms a new Manhattan arc. Figure 3 As shown in (c), the DME algorithm can obtain the merged segment ms(12) of s2 and s1, the merged segment ms(34) of s3 and s4, the merged segment ms(56) of s5 and s6, and the merged segment ms(78) of s7 and s8 based on the relationship between two arbitrary points and the Manhattan arc; Figure 3 As shown in (c), based on the relationship between Manhattan arcs and Manhattan rings, the DME algorithm can obtain the merged segments ms(1-4) of the merged segments ms(12) and ms(34), and the merged segments ms(5-8) of the merged segments ms(56) and ms(78), and generate the merged segments of each level of the clock tree from bottom to top, until the root node of the synthesized clock tree merges the segments ms(1-8), and finally forms the following: Figure 3 All merged segments of the clock tree shown in (c).

[0082] Phase 2: Based on all merged segments of the clock tree, generate the intermediate node positions of each level of the clock tree from top to bottom.

[0083] Starting from the root node merge segment ms(1-8) of the clock tree, a point can be selected arbitrarily or based on certain conditions as the starting point on the root node merge segment, and then, on each merge segment, a point that can make the clock delays of multiple child nodes corresponding to the same parent node to the parent node equal is determined as the node position of each level. For example, Figure 3 As shown in (d), after the position of the parent node p is determined, the position of the child node v can be the intersection of the merged segment ms(v) and the Manhattan ring trr_p of the parent node p, that is, segment a in ms(v) in the figure. Figure 3 The dotted lines in (c) illustrate the clock tree network connection relationship after the positions of nodes at each level are determined.

[0084] In one embodiment, the clock delay may be calculated using a linear delay model.

[0085] An ideal synchronous clock tree can be constructed through the above-mentioned MMM algorithm and DME algorithm.

[0086] Example 2

[0087] Figure 4 and Figure 5 Schematic diagrams of the structures of two 2D clock trees are shown.

[0088] like Figure 4 As shown in the figure, the complete binary H-tree is a classic clock tree structure. In the complete binary H-tree, since the line length from each sink point to the root node is exactly the same, the skew value of the H-tree recursively constructed by the complete binary tree is very small, but the overall line length is long, so there may be relatively large clock delay and clock power consumption.

[0089] like Figure 5 As shown in the figure, the fishbone tree with multiple branches is also a classic clock tree structure. The fishbone tree structure uses shorter wire lengths than the fully binary Htree, so the clock delay and clock power consumption are lower. However, since the wire lengths from each sink point to the root node are different, the time (clock delay) for the clock signal to propagate from the same clock source along different propagation paths from a given fishbone trunk to the branch point to each sink is also different. Therefore, compared with the fully binary Htree, the fishbone tree has a larger skew value.

[0090] In order to avoid large skew values ​​and long line lengths at the same time, the GH tree (Generalized Htree, GHtree) was developed. Compared with the fully binary Htree structure and the fishbone tree structure, it can better balance skew and line length, that is, compared with the fully binary Htree, it has a shorter line length, shorter clock delay, and smaller clock power consumption; compared with the fishbone tree, it has a smaller skew value, that is, better synchronization. GHtree combines the advantages of both Htree and fishbone tree. Like Htree, GHtree is a multi-level topology; like fishbone tree, each level can have more than 2 branches.

[0091] Figure 6 A GHtree with 8 levels of branches is shown.

[0092] like Figure 6 As shown, the GHtree depth P is equal to 8, and the branching factors of these 8 layers of branches are 4, 2, 2, 2, 4, 2, 2, 2, respectively, that is, the first layer has 4 branches, the second layer has 2 branches, the third layer has 2 branches, the fourth layer has 2 branches, the fifth layer has 4 branches, the sixth layer has 2 branches, the seventh layer has 2 branches, and the eighth layer has 2 branches. For example, assume that a region (for example, a die) has 1024 (1024 = 4 × 2 × 2 × 2 × 4 × 2 × 2 × 2) sink points, and the root node of the clock tree is located at the center of the region (for example Figure 6), the path from the root node to each leaf node (or sink point) will sequentially contain horizontal line segments of length [(3×W) / 4], (W / 8), [(3×W) / 32], and (W / 64), and vertical line segments of length (H / 2), (H / 4), (H / 8), and (H / 16), where W can represent the length of a die and H can refer to the width of the die. In this way, the 2D clock tree with a GHtree structure can make the line length from each sink point (such as a register) to the root node (clock source) the same, thereby achieving the goal of small overall skew; at the same time, since the 2D clock tree with a GHtree structure can have a hierarchy with a branching factor greater than 2, the line length is shorter than that of the Htree, and thus the clock delay and clock power consumption can also be smaller.

[0093] In this application, leaf nodes and sink points have the same meaning, both representing the end nodes or the lowest nodes of the clock tree. This application does not impose any restrictions on the names.

[0094] Each node of GHtree can have multiple branches, that is, the value of branching factor can exist in multiple situations, so there can be multiple GHtree structures on the same wiring area. For example, assuming that a certain area (such as a die) has 1024 sink points, GHtree can be divided into 8 layers, and the branching factors of these 8 layers can be 4, 2, 2, 4, 2, 2, 2, 2 (1024 = 4 × 2 × 2 × 2 × 4 × 2 × 2 × 2), and the branching factors of these 8 layers can also be 8, 2, 2, 2, 2, 2, 2, 2 (1024 = 8 × 2 × 2 × 2 × 2 × 2 × 2); GHtree can also be divided into 6 layers, and the branching factors of these 6 layers can be 4, 2, 4, 4, 2, 4 (1024 = 4 × 2 × 4 × 4 × 2 × 4). Since the same number of sinks can have many GHtree structures, we can use, for example, a dynamic programming (DP) algorithm to find the GHtree with the minimum clock power consumption under the conditions of a given clock delay and a given skew to obtain the optimal solution (the most appropriate depth P and branching factor). In addition, heuristic algorithms based on clustering and integer linear programming (ILP) can be used to embed a GHtree with a given sink distribution.

[0095] The aforementioned clock tree structures are only applicable to 2D chips (or single-layer dies).

[0096] With the advent of the intelligent era, people's demands for high-performance, high-reliability, low-power, and low-cost integrated circuit chips are becoming increasingly strong. Since Gordon Moore proposed the chip industry's technical motto, Moore's Law, in the 1960s, it has been leading the world's semiconductor industry to achieve lower costs, stronger performance, and higher economic benefits. However, as semiconductor manufacturing processes gradually approach the size limit of silicon processes, challenges such as lithography complexity, process design constraints, yield, heat dissipation, reliability margin, and manufacturing costs have gradually become prominent. The challenge of simply miniaturizing the size of 2D single-chip manufacturing processes to achieve the optimal balance between performance, power consumption, and area is becoming increasingly greater. To this end, in addition to Moore's Law and Deep Moore's Law, the semiconductor industry has also explored two major technical directions, More than Moore and new devices, to continue to explore better integrated circuit chip solutions.

[0097] As a key technology beyond Moore's Law, three-dimensional integrated circuit (3DIC) technology is gradually being adopted by chip design companies. Among them, how to design a synchronous clock network with low latency, low skew, and low register flip delay (slew) in the vertical stacking scenario across bare dies is still an important topic in 3DIC physical design, and it also poses great challenges. The main reason is that in the vertical stacking scenario across bare dies, in addition to the clock network distribution in the X and Y directions of the 2D single chip, the clock network distribution in the Z direction is also added, that is, it is necessary to consider the influence of the interconnection structure (such as through-hole TSV) between different layers of bare dies, such as the number of TSVs used, the placement, and the influence of their own resistance and capacitance on clock delay and skew.

[0098] In this application, die can be called a bare chip or a tube core, both of which are used to represent a layer of an unpackaged multi-layer chip, and this application does not impose any restrictions on this.

[0099] The following combination Figure 7 and Figure 8 This paper introduces a solution for building a 3D clock tree network.

[0100] This solution extends the classic MMM algorithm in 2DIC technology to 3DIC technology. First, the logical topology of the 3D clock tree is generated based on the 3D-MMM algorithm, and then the 3D-DME (such as sDMBE (slew-aware Deferred-MergeBuffering and Embedding)) algorithm is used to generate merged segments at all levels based on the logical topology of the 3D clock tree, determine the location of TSV and buffer, and thus complete the construction of the cross-die synchronous clock network in the 3DIC scenario.

[0101] Figure 7 A schematic diagram showing the principle of the 3D-MMM algorithm.

[0102] As an example, Figure 7 As shown in (a), the cross-die synchronous clock network involves three layers of bare chips, namely d1, d2 and d3, where d1 has a child node L1, d2 has child nodes L2 and L3, and d3 has a child node L4. First, the 3D-MMM algorithm is used to divide the four child nodes L1, L2, L3 and L4 on the X-axis, dividing L1 and L2 to one side to obtain their parent node N1; dividing L3 and L4 to the other side to obtain their parent node N2, and then obtaining the relationship between N1, N2 and their parent node R1, and adding TSV to it, so as to complete the following. Figure 7 Construction of the topology of the cross-die synchronous clock network shown in (b).

[0103] Then, the sDMBE algorithm is used to Figure 7 In the topology shown in (b), the merged segment is generated from bottom to top, and the merged segment needs to satisfy the clock delay from any point on the merged segment to its two child nodes is equal.

[0104] Figure 8 Schematic diagram showing the principle of the sDMBE algorithm.

[0105] As an example, Figure 8 As shown in (a), if v and u are any two child nodes that are not on the same die, the die where the child node v is located and the die where the child node u is located are connected through TSV. Ideally, if only the effect of the line length on the clock delay is considered (without considering TSV), the lengths of their respective lines to the merged segment MS(p) are equal, and their clock delays to the merged segment MS(p) are also equal.

[0106] Finally, if Figure 8As shown in (b), the sDMBE algorithm is further used to determine the specific location of the intermediate node (e.g., point p) of each clock path on the clock tree, the specific location of the TSV, and the specific location of the buffer (e.g., point b) from top to bottom. For example, when selecting an intermediate node on the merged segment, the distance from its parent node (e.g., Figure 7 The nearest point of R1 in is taken as the specific position of the intermediate node, and the specific positions of the buffer and TSV are determined according to the line length and clock deviation between the parent node and the child node.

[0107] On the basis of 2D clock tree and 3D clock tree, the embodiment of the present application proposes a method for constructing a 3D clock tree in the form of a global clock tree + local clock tree. The method proposes a method for constructing a global clock tree and a local clock tree, and considers and solves the integration problem between the global clock tree and the local clock tree. The integration problem may include the delay balance problem between the entire clock tree network and each local clock tree network. Among them, the method also proposes a solution when obstacles or complex areas are encountered during the construction of the clock tree. Specifically, an algorithm for constructing a 2D global clock tree considering the placement or winding obstacles within the die is proposed to solve the problem of encountering obstacles or complex areas during the construction of the global clock tree; an algorithm for merging segment generation during the construction of a cross-die 3D clock tree is also proposed to provide a specific solution for constructing a local clock tree; an algorithm for solving the delay balance between the global clock tree and the local 3D cross-die clock tree is also proposed to achieve the purpose of low power consumption, low skew, and low slew of the clock tree as a whole.

[0108] In the embodiment of the present application, obstacles or complex areas in the clock tree include but are not limited to areas where routing is too concentrated, modules in the chip, intellectual property (IP) cores, and sub-modules within the chip.

[0109] In an embodiment of the present application, a clock tree network architecture in a three-dimensional integrated circuit is implemented through a global clock tree with a two-dimensional structure and a sub-region clock tree with a three-dimensional structure, thereby avoiding the problems of low clock tree establishment efficiency, large clock tree network area, and high power consumption caused by building the entire clock tree from a root node.

[0110] In this application, a 3D cross-die clock tree may be referred to as a 3D clock tree, a local clock tree may be referred to as a sub-region clock tree, or may be referred to as a local tree, and a global clock tree may be referred to as a global tree. This application does not impose any restrictions on this.

[0111] Fig. 9 A 3D clock tree network construction scheme proposed in an embodiment of the present application is shown and described below.

[0112] 1. Build a global clock tree

[0113] Specifically, according to the position of the obstacle on the first die, a global clock tree on the first die is determined, the global clock tree including a clock source and a plurality of sub-nodes, so that there is no obstacle on the clock source, the sub-nodes, and a line connecting the clock source and the sub-nodes, wherein the clock source is used for time synchronization of the plurality of sub-nodes; specifically, the following steps may be included:

[0114] Optionally, S910, a standard cell buffer (buffer) / metal line (net) combination delay lookup table (LUT) with a fixed length is generated based on process information such as standard cell device (cell) delay and metal line resistance and capacitance.

[0115] In the present application, the standard unit buffer may also be referred to as a buffer for short, and the present application does not impose any limitation on this.

[0116] Optionally, S920 , based on the LUT, a dynamic programming algorithm is used to construct a global tree topology of an optimal branching pattern and a buffer solution.

[0117] For example, a dynamic programming algorithm is used to find a GHtree with minimum clock power consumption under the conditions of a given clock delay and a given skew to obtain the optimal branching pattern, that is, the most appropriate depth P and branching factor. For details, please refer to Figure 6 Corresponding description.

[0118] S930: Based on the global tree topology structure, construct a global tree taking obstacles into consideration. Specifically, the steps include:

[0119] S9301 builds a global clock tree.

[0120] Optionally, the original structure can be a GHtree structure.

[0121] Optionally, the original structure may also be an Htree structure.

[0122] To help understand the present application, the following describes the embodiments of the present application using the GHtree structure as an example.

[0123] S9302: Determine a final position of the root node in the global clock tree according to the relative position of the root node and the obstacle in the original structure.

[0124] In the present application, the root node in the global clock tree may be a clock source.

[0125] Optionally, determining a final position of the root node in the global clock tree according to a relative position of the root node in the global clock tree and an obstacle includes:

[0126] Make sure that the root node is inside the obstacle and the clock path where the root node is located is horizontally placed. The clock path includes the root node and multiple child nodes in the global clock tree.

[0127] Move the clock path up or down to avoid obstacles.

[0128] Optionally, determining a final position of the root node in the global clock tree according to a relative position of the root node and the obstacle includes:

[0129] Make sure that the root node is inside the obstacle and the clock path where the root node is located is placed vertically. The clock path includes the root node and multiple child nodes in the global clock tree.

[0130] Move the clock path left or right to avoid obstacles.

[0131] Optionally, the root node can also cling to obstacles.

[0132] S9303: Determine final positions of multiple child nodes in the global clock tree according to the final position of the root node in the global clock tree.

[0133] Optionally, determining final positions of multiple child nodes in the global clock tree according to the final position of the root node in the global clock tree includes:

[0134] Make sure the root node in the global clock tree is not within the obstacle;

[0135] Determining that a first child node is within a barrier block, the first child node being one of a plurality of child nodes in a global clock tree;

[0136] Move the first child node out of the obstacle block to the first position;

[0137] According to the first position, an updated clock path is obtained, where the updated clock path includes a root node in a global clock tree and a plurality of child nodes in the global clock tree.

[0138] Optionally, determining final positions of multiple child nodes in the global clock tree according to the final position of the root node in the global clock tree includes:

[0139] Make sure the root node in the global clock tree is not within the obstacle;

[0140] Determine that there is an obstacle block on a clock path between a first child node and a root node, the first child node is one of multiple child nodes in a global clock tree, and the clock path includes the root node in the global clock tree and multiple child nodes in the global clock tree;

[0141] Get updated clock paths to avoid obstructing blocks.

[0142] S9304: construct a global clock tree based on the final position of the root node in the global clock tree and the final positions of multiple child nodes in the global clock tree.

[0143] Optionally, S9305, determine clock delays of multiple sub-nodes in the global clock tree according to the updated clock path.

[0144] Optionally, S9306, balance clock delays of multiple sub-nodes in the global clock tree.

[0145] Fig.10 A flowchart of a clock tree obstacle avoidance provided by an embodiment of the present application is shown.

[0146] For example, Fig.10 As shown, S930 may include S931 to S933. This process uses an example of avoiding obstacles by modifying the topological structure of the original GHtree clock tree, that is, first consider whether the root node is in the obstacle, and then solve the problem of the child node in the obstacle step by step.

[0147] S931: Build a global clock tree.

[0148] Exemplarily, the global clock tree may be a GHtree structure, or other structures may be used, which is not limited in the present application.

[0149] In the embodiment of the present application, the global clock tree using the GHtree structure has a shorter line length, lower power consumption, and smaller clock deviation, thereby reducing the clock deviation and total power consumption of the entire clock tree network.

[0150] S932, determine whether the parent node of the global tree is in the obstacle.

[0151] In the present application, obstacles refer to obstacles or complex areas that hinder the routing of various clock paths in the clock tree. Obstacles or complex areas may include areas where routing is too concentrated, modules in the chip, IP cores, sub-modules within the chip, etc. This application does not impose any restrictions on this.

[0152] In the embodiment of the present application, the overall obstacle avoidance of the global clock tree is achieved by moving the position of the root node, and then the obstacles are avoided one by one for each child node, so that the wiring of the global clock tree is closer to actual application and the practical value of the present solution is improved.

[0153] Fig.11 A schematic diagram of a parent node obstacle avoidance method provided by an embodiment of the present application is shown. The specific position of the parent node needs to be determined before the position of the downstream node can be determined. If the parent node is within the obstacle, it is moved out of the obstacle. Among them, the relationship between the parent node R and the obstacle may exist in the following two situations:

[0154] Case ①: The branch of the parent node is placed horizontally, and the parent node is within the obstacle block (such as Fig.11 (a) in the figure), the parent node is moved up and down to avoid obstacles (as shown in Fig.11 (as shown in (b)).

[0155] Case ②: The branch of the parent node is placed vertically, and the parent node is inside the obstacle block (such as Fig.11 (c) in the figure), then move the parent node left or right to avoid obstacles (as shown in Fig.11 as shown in (d) above.

[0156] Optionally, the shortest moving distance may be selected when selecting a route to move out of the obstacle block.

[0157] Optionally, the topmost root node of the global tree topology is also the parent node, and obstacle avoidance of the root node can be implemented preferentially.

[0158] In the embodiment of the present application, the root node is also the parent node of its next-level node, and is also applicable to the above obstacle avoidance method.

[0159] It should be noted that no matter in which direction the parent node is moved, as long as the parent node can be moved out of the obstacle, it should fall within the scope of protection required by the embodiment of the present application, and the present application does not limit the specific moving distance.

[0160] S933, determine the position of each branch from the fixed root node from top to bottom until the end node of the global tree.

[0161] Fig.12 A schematic diagram of a branch node obstacle avoidance method provided in an embodiment of the present application is shown.

[0162] In the present application, a branch node may also be referred to as a child node, that is, a subordinate node of a parent node.

[0163] After the root node R is fixed, we can start to determine the location of its downstream branch nodes. The key is to avoid obstacles while maintaining the clock delay between the end nodes of each clock branch in the global tree and the root node. There are also two cases:

[0164] Case ①: For example, the weight center point A of the sub-region (for its meaning, please refer to the description of Figure 1 In the explanation of points b11, b21, etc.) within the obstacle block, such as Fig.12 As shown in (a), after the branch node N2 is close to the weight center point A, the branch node N2 will also appear in the obstacle block. In this case, the branch point in the obstacle block can be moved out of the obstacle block, for example Fig.12The position of N2 in (b); according to the change of the clock delay before and after the branch node N2, the length of the two sections of the routing before and after the branch node or the position of the buffer on the routing is adjusted to achieve the child node avoiding obstacles while maintaining the clock delay between the end node of each clock branch in the global tree and the root node.

[0165] Optionally, the branch node N2 may be placed at a position closest to the weight center point, for example, close to the barrier block and just outside the barrier block, so as to ensure the shortest line length and thus minimize clock power consumption.

[0166] In the present application, there is no restriction on the moving distance of the branch point out of the obstacle block, and as long as the aforementioned purpose can be achieved, it should fall within the scope of protection required by the embodiments of the present application.

[0167] Case ②: For example, the obstacle block blocks the path from the root node R to the weight center point A, such as Fig.12 As shown in (c), the branch path will also pass through the obstacle block. In this case, the path can be detoured around the obstacle block to achieve obstacle avoidance, as shown in Fig.12 As shown in (d), the length of the two routing sections before and after the branch node or the position of the buffer on the routing section is adjusted according to the change of the delay before and after the branch node, so that the child node can avoid obstacles while maintaining the clock delay between the end node and the root node of each clock branch in the global tree.

[0168] Optionally, when selecting a route around an obstacle block, a shortest detour route may be selected.

[0169] In the present application, there is no specific limitation on the path that bypasses the obstacle block, and as long as the aforementioned purpose can be achieved, it should fall within the scope of protection required by the embodiments of the present application.

[0170] S940: According to the actual distribution of sinks, the sinks are allocated to the end nodes of the global tree.

[0171] In the embodiment of the present application, in the process of constructing the global clock tree in the 3D clock tree, the obstacle factors that may be encountered in the actual project are taken into consideration in the clock tree wiring, so that the 3D clock tree is closer to the actual application and thus has more engineering value; in addition, obstacles will affect the clock path of the clock tree, and the difference in the clock path will affect the clock delay, so the embodiment of the present application can also ensure that the skew of the 3D clock tree is lower. In addition, after the clock path is updated, the clock delay from each node to the root node on the clock path will also change accordingly, that is, the clock delay between each node to the root node may have a large difference, thereby causing the deviation of the entire clock tree to increase. In the embodiment of the present application, after determining the clock delay between multiple child nodes and the root node, the clock deviation of the entire clock tree network is reduced by balancing the clock delay between multiple child nodes and the root node, thereby better realizing the synchronization of the clock tree network.

[0172] 2. Constructing a sub-region 3D clock tree

[0173] Specifically, a plurality of mutually isolated sub-region clock trees are constructed, wherein the plurality of mutually isolated sub-region clock trees include a first sub-region clock tree, wherein the first sub-region clock tree includes a multi-layer die or at least two layers of die, wherein the multi-layer die are interconnected through silicon vias on each layer of die, and the sub-region clock trees are connected to one or more sub-nodes of the global clock tree, specifically including the following steps:

[0174] S1001: Construct a topological structure of a first sub-region clock tree in the sub-region clock trees.

[0175] S1002, according to the topological structure, connect the first merged segment and the second merged segment to one of the layers of the multi-layer die through silicon vias to obtain a third merged segment and a fourth merged segment, wherein the first die includes a parent merged segment of the first merged segment and the second merged segment, the third merged segment corresponds to the first merged segment, and the fourth merged segment corresponds to the second merged segment.

[0176] S1003 : Determine the position of the parent merged segment to obtain a first sub-region clock tree of the sub-region clock tree, where the parent merged segment is the parent merged segment of the third merged segment and the fourth merged segment.

[0177] Optionally, determine the location of the parent merge segment, including:

[0178] Determine the initial position of the parent merged segment so that the clock delays of the third merged segment and the fourth merged segment are equal;

[0179] Determine, according to the initial position of the parent merged segment, a third distance between the parent merged segment and the third merged segment and a fourth distance between the parent merged segment and the fourth merged segment;

[0180] The position of the parent merged segment is determined according to the third distance and the fourth distance.

[0181] Optionally, the parent merged segment, the third merged segment, and the fourth merged segment exist in the same die.

[0182] Optionally, S1004, buffers are added between through silicon vias on each layer of the die.

[0183] The following is a specific method for constructing a sub-region 3D clock tree provided by an embodiment of the present application.

[0184] 1. Construct the sub-area 3D cross-die clock tree topology structure through the 3D-MMM algorithm.

[0185] Please refer to Figure 7 The corresponding description will not be repeated here.

[0186] 2. Based on the sub-region 3D cross-die clock tree topology, generate merged segments from bottom to top starting from the sink point.

[0187] Generally, the delay from any point on the merged segment to its two sub-merged segments is equal, and the left and right sub-nodes determine the specific position of the merged segment by balancing the delay. The embodiment of the present application generates merged segments at all levels from bottom to top starting from the sink point in a recursive manner.

[0188] Optionally, the multiple sub-region clock trees may all be of a 3D cross-die clock tree topology structure, or one or more sub-region clock trees among the multiple sub-region clock trees may be of a 3D cross-die clock tree topology structure.

[0189] In the embodiment of the present application, the aforementioned first sub-region clock tree may adopt the above-mentioned specific method for constructing a sub-region 3D clock tree.

[0190] Fig.13 A flowchart of generating a clock tree merging segment proposed in an embodiment of the present application is shown, which specifically includes the following steps:

[0191] S1310: Preprocess the sub-merged segments.

[0192] When the sub-merged segment and the parent node (such as the root node of the clock tree) are not on the same die, the sub-merged segment is connected to the die of the parent node through TSV, and the clock delay and capacitance information of this node after adding TSV is updated. The sub-merged segment on the die where the parent node is located to which the sub-merged segment is connected is used as a new merged segment, so that the sub-merged segments that were originally not on the same die appear on the same die.

[0193] In the present application, a merge segment may also be a merge point, and the present application does not impose any limitation on this.

[0194] Through the embodiments of the present application, the sub-merged segments existing in different dies are integrated on the same die, which simplifies the method of finding the parent merged segment, so that the parent merged segment of the three-dimensional clock tree can be solved by using the method of finding the parent merged segment in the two-dimensional clock tree.

[0195] In the embodiment of the present application, the third merged segment mapped to the first die, the fourth merged segment mapped to the first die, and the parent merged segment are all arranged on the first die, which can shorten the line length and thus reduce power consumption.

[0196] Fig.14 A schematic diagram of merging sub-merging points on dies of different layers provided in an embodiment of the present application is shown.

[0197] As an example, Fig.14 As shown in (a), there are two layers of die, namely d1 and d2, where there is a sub-merge point ms1 on d1 and a sub-merge point ms2 on d2. ms1 is connected to d2 through TSVs of each layer, and a new sub-merge point ms1' is established. Then ms1' is merged with ms2 to obtain a parent merge point.

[0198] As another example, Fig.14 As shown in (b), there are four layers of die, namely d1, d2, d3 and d4, where there is a sub-merging point ms1 on d1 and a sub-merging point ms2 on d4. ms1 is connected to d4 through TSVs on each layer, and a new sub-merging point ms1' is established. Then ms1' is merged with ms2 to obtain a parent merging point. Because the TSV capacitance on the vertical path is too large, a buffer needs to be inserted between TSVs on different layers, so the sub-merging point ms1' also needs to be updated.

[0199] In the embodiment of the present application, when the first die is far from the first merged section or the second merged section, adding a buffer between the through silicon vias can avoid the problem of not being able to drive the clock tree circuit due to increasing the line length or increasing the through silicon vias, thereby ensuring the normal operation of the clock tree. In addition, adding the buffer can also reduce the register flip delay.

[0200] In the above two embodiments, the information of the merging point mainly includes clock delay and capacitance information, and the Elmore model can be used to update this information.

[0201] S1320 , perform delay balancing on the sub-merged segments to generate parent merged segments until the root node of the sub-region clock tree ends.

[0202] Fig.15 An equivalent model of a delay balancing circuit provided in an embodiment of the present application is shown.

[0203] First, perform preliminary delay balancing using the Elmore delay model. Fig.15 As shown in the figure, L1 and L2 are two sub-merging points, MP is the merging point of L1 and L2, and the lines between MP and L1 and between MP and L2 are equivalent to the RC π model, where el represents the distance between MP and L1, and er represents the distance between MP and L2. The Elmore formula is used to obtain the el value and er value that can make the clock delays from the two sub-nodes L1 and L2 to the node MP equal, that is, satisfying the equation:

[0204]

[0205] Among them, Delay1 and Delay2 are the intrinsic delays of the two child nodes L1 and L2, r and c are the resistance and capacitance of the unit length line, and l is the shortest Manhattan distance from the child node L1 to the child node L2. The above formula can be used to calculate el and er that satisfy the equal delays of the child nodes L1 and L2 to the merged segment (point) MP:

[0206] Case 1: When the calculated results el and er are both greater than 0, it means that the requirement of balanced delay can be achieved within the length range of l. This includes two cases:

[0207] ① When the downstream capacitance of MP (Cap1+Cap2+Cel+Cer) is less than or equal to CMAX, return el and er to construct the parent merge point, where CMAX represents the maximum capacitance that can drive the bufffer cell, buffer cell, metal line capacitance, etc.

[0208] ② When the downstream capacitance (Cap1+Cap2+Cel+Cer) of MP is greater than CMAX, the maximum downstream load constraint is not met and buffers need to be inserted on both sides.

[0209] Fig.16 An equivalent model of another delay balancing circuit proposed in an embodiment of the present application is shown.

[0210] As an example, Fig.16 As shown, buffers bufl and bufr are inserted into subnodes L1 and L2 respectively at distances offset by lbufl and lbufr, so that the capacitance of the portion from L1 to bufl (including L1 and bufl) is less than or equal to CMAX, and the capacitance of the portion from L2 to bufr (including L2 and bufr) is less than or equal to CMAX, and new subnodes L3 and L4 are generated at the buffer insertion points. At this time, the capacitance of the nodes is the buffer input capacitance, and the distance l2 between the two new nodes L3 and L4 is updated. Based on the new distance l2, preliminary delay balancing is continued through the Elmore delay model.

[0211] Case 2: When the calculated result el or er is less than 0, it means that the delay balance requirement cannot be achieved within the length range of l. The main reason for this situation is that the delay of one of the child nodes is too small, and an interconnection line length greater than l is required to achieve delay balance with the other child node. Case 2 can have two solutions under different conditions.

[0212] Method ①

[0213] As an example, Fig.17 FIG. 2 shows an equivalent model of another delay balancing circuit proposed in an embodiment of the present application. Fig.17 As shown, it can be on the side with small delay ( Fig.17 Insert the winding det on the L1 side to make its delay equal to the other side ( Fig.17 The delay on the L2 side) such as Fig.18 As shown, det represents the additional distance ldet required for winding based on the distance l, and the MP point is close to the side with large delay.

[0214] Method ②

[0215] As an example, Fig.18 FIG. 2 shows an equivalent model of another delay balancing circuit proposed in an embodiment of the present application. Fig.18 As shown in , a buffer can be added to the side with smaller delay to balance the delay. Fig.18 As shown, the delay of node L1 is small. We make the delay of node L1 equal to the delay of node L2 by offsetting the distance of L1, bufl (ensuring that the downstream capacitance is less than CMAX). Finally, the new L5 node after inserting the buffer continues to balance the delay with L2.

[0216] In the embodiment of the present application, adding a buffer can reduce the register flip delay.

[0217] It should be noted that, in general, when adding windings can solve the balance delay, the above method ① can be used; when adding windings still cannot solve the balance delay, method ② can be used.

[0218] Optionally, in some cases, method ① and method ② may be used simultaneously, that is, both adding windings and adding buffers to solve the balanced delay.

[0219] In this application, clock delay may also be referred to as delay, and this application does not limit the name.

[0220] 2. Starting from the root node of the sub-region clock tree, determine the location of TSVs and buffers on the clock tree from top to bottom.

[0221] In an embodiment of the present application, the Elmore delay model is used to balance the clock delays between multiple sub-merging points (segments) and the parent merging point in the sub-region cross-die clock tree, so that a regional 3D clock tree with low skew can be obtained, thereby laying a good foundation for constructing a clock tree with low overall skew.

[0222] 3. Integrate the global clock tree and the local 3D clock tree

[0223] When the end point of the global clock tree is connected to the root node of the corresponding local tree, the physical distances between different end points and the root node of the corresponding local tree are not the same, and the clock deviation of each local clock tree itself will also be different, so the overall skew is still relatively large.

[0224] After the global clock tree and the sub-region clock tree are constructed, it is necessary to integrate or merge the global clock tree and the sub-region 3D clock tree to achieve overall delay balance.

[0225] Optionally, integrating a global clock tree with a plurality of mutually isolated sub-region clock trees includes:

[0226] Determine a maximum clock delay, where the maximum clock delay includes a sub-region clock tree having the largest clock delay among a plurality of sub-region clock trees isolated from each other;

[0227] A buffer is inserted between the sub-region clock tree and the global clock tree to ensure that the clock delays of all sub-region clock trees are less than or equal to the maximum clock delay.

[0228] For example, the global tree is a GHtree structure (such as Figure 6 ), the sub-region clock tree is a 3D cross-die clock tree structure (such as Figure 7 ) is taken as an example to illustrate this embodiment.

[0229] Fig.19 A schematic diagram of the structure of a 3DIC clock tree network proposed in an embodiment of the present application is shown.

[0230] like Fig.19 As shown, the global tree GHtree contains n (integer) child nodes reg1, reg2, reg3, ..., regn, each of which corresponds to a sub-region, for example: child node reg1 corresponds to sub-region LOCAL1, child node reg2 corresponds to sub-region LOCAL2, child node regn corresponds to sub-region LOCALn, and each sub-region contains a certain amount of sinks (for example Fig.14 The sum of the sinks in all sub-areas is the number of sinks in the entire 3DIC clock tree network.

[0231] In each sub-area, 3D cross-die clock network synthesis can be performed through cross-die clock tree synthesis to obtain the clock tree of each sub-area (refer to Figures 13 to 18 The corresponding embodiment). Fig.19 As shown in (a), through the aforementioned embodiments, the delay and load from the root node to the sink point in each sub-region clock tree can be known. For example, the delay from the root node to the sink point in LOCAL1 is DELAY1, and the load is CAPLOAD1. However, due to the different distribution of sink points in each sub-region and the modules or components (such as buffers, windings, etc.) on the path from each sink point to the root node, the maximum delay obtained after the cross-die clock tree synthesis in each sub-region is quite different. If the unprocessed sub-region clock tree is directly integrated with the global clock tree, that is, the cross-die clock tree synthesis root node of each sub-region is directly connected to the child node of its corresponding global tree GHtree, a large skew will result.

[0232] Optionally, DELAY1 may be an average value of clock delays between all sink points and the root node in the sub-area LOCAL1.

[0233] To avoid the above problems, the embodiment of the present application proposes to balance the overall delay of the global tree and the sub-region 3D clock tree, which specifically includes the following steps:

[0234] S1901, find the subtree with the largest delay from all sub-areas.

[0235] For example, Fig.19 As shown in (a), LOCAL3 is determined to be the sub-region with the largest delay among all sub-regions.

[0236] S1902, insert a buffer between the root node of the largest subtree and the corresponding child node (such as reg3) of the global tree GHtree, and then calculate the delay of the subregion LOCAL3 after the buffer is inserted.

[0237] For example, Fig.19 As shown in (b), the delay DELAY_MAX of the sub-region LOCAL3 (the sub-region with the largest delay) after inserting the buffer can be calculated by, for example, the Elmore model to ensure that the delay of the root nodes of other sub-trees after adding the buffer is less than or equal to DELAY_MAX.

[0238] S1903, iteratively adding buffers between each sub-region and its corresponding child node of the global tree GHtree until the delays of the clock trees of all sub-regions are equal.

[0239] In the embodiment of the present application, adding a buffer can also reduce the register flip delay.

[0240] For example, Fig.19 As shown in (c), DELAY_MAX (the delay of the sub-region with the largest delay) can be used as the benchmark delay. According to, for example, the Elmore model, buffers are iteratively added between each sub-region and its corresponding child nodes of the global tree GHtree until the delay of each sub-region clock tree is equal to DELAY_MAX.

[0241] In an embodiment of the present application, the maximum delay may refer to the largest clock delay between multiple sinks and a root node in a sub-area.

[0242] In the embodiment of the present application, the sub-region clock tree may also be referred to as a local clock tree, or simply as a sub-tree; similarly, the global clock tree may also be simply referred to as a global tree, and the present application does not impose any restrictions on the name.

[0243] Combine the following Fig. 20 The device of the embodiment of the present application is described. It should be understood that the device described below can execute the method of the embodiment of the present application, and in order to avoid unnecessary repetition, repeated descriptions are appropriately omitted when introducing the device of the embodiment of the present application.

[0244] Fig. 20 It is a schematic diagram of the hardware structure of a device for building a clock tree provided in an embodiment of the present application. Fig. 20 The layout quality assessment device 5000 shown (the device 5000 may be a computer device) includes a memory 5001, a processor 5002, a communication interface 5003 and a bus 5004. The memory 5001, the processor 5002 and the communication interface 5003 are connected to each other through the bus 5004.

[0245] The memory 5001 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 5001 may store a program. When the program stored in the memory 5001 is executed by the processor 5002, the processor 5002 is used to execute each step in the method embodiment of the present application.

[0246] Processor 5002 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the various steps of the method embodiment of the present application.

[0247] The processor 5002 may also be an integrated circuit chip with signal processing capability. In the implementation process, each step of the method of the present application may be completed by an integrated logic circuit of hardware in the processor 5002 or by instructions in the form of software.

[0248] The processor 5002 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 5001, and the processor 5002 reads the information in the memory 5001 to execute the various steps in the method embodiments of the present application.

[0249] The communication interface 5003 uses a transceiver such as but not limited to a transceiver to implement communication between the apparatus 5000 and other devices or communication networks. For example, the layout results of multiple macro cells in each of the n modules can be obtained through the communication interface 5003.

[0250] The bus 5004 may include a path for transmitting information between various components of the device 5000 (eg, the memory 5001 , the processor 5002 , and the communication interface 5003 ).

[0251] An embodiment of the present application also provides a computer device, which includes a processor, and the processor is used to couple with a memory, read and execute instructions and / or program codes in the memory to execute a method of any one of the above embodiments.

[0252] An embodiment of the present application also provides a chip system, which includes a logic circuit, which is used to couple with an input / output interface and transmit data through the input / output interface to execute a method of any one of the above embodiments.

[0253] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction or program code in the form of software. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0254] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0255] The present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes the method of any one of the above embodiments.

[0256] The present application also provides a computer-readable medium storing a program code. When the program code is executed on a computer, the computer executes a method of any one of the above embodiments.

[0257] The device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation processes are detailed in the method embodiments above, which will not be repeated here.

[0258] The modules of each example described in the embodiments of the present application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0259] It should be noted that: when the device provided in the above embodiment executes the above method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0260] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0261] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0262] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0263] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0264] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0265] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0266] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for constructing a clock tree, characterized in that: include: Determine a global clock tree on the first die according to a position of an obstacle on the first die, the global clock tree comprising a clock source and a plurality of sub-nodes, the clock source, the plurality of sub-nodes, and a line connecting the clock source and the plurality of sub-nodes having no obstacles, wherein the clock source is used for time synchronization of the plurality of sub-nodes; A first sub-region clock tree is constructed on at least two layers of the second die, wherein a root node of the first sub-region clock tree is connected to one of the plurality of sub-nodes.

2. The method according to claim 1, characterized in that The step of determining a global clock tree on the first die according to a position of an obstacle on the first die includes: Constructing the global clock tree; Determining a final position of the clock source in the global clock tree according to a relative position of the clock source and the obstacle in the global clock tree; The final positions of the multiple subnodes are determined according to the final position of the clock source.

3. The method according to claim 2, characterized in that The determining, according to the relative positions of the clock source and the obstacle in the global clock tree, a final position of the clock source in the global clock tree, comprises: Determining that the clock source is inside the obstacle, and a clock path where the clock source is located is horizontally placed, and the clock path includes the clock source and the multiple sub-nodes; Move the clock path up or down to avoid obstacles.

4. The method according to claim 2, characterized in that: The determining, according to the relative positions of the clock source and the obstacle in the global clock tree, a final position of the clock source in the global clock tree, comprises: Determining that the clock source is inside the obstacle, and a clock path where the clock source is located is placed vertically, and the clock path includes the clock source and the multiple sub-nodes; Move the clock path left or right to avoid obstacles.

5. The method according to any one of claims 2 to 4, characterized in that The determining the final positions of the plurality of subnodes according to the final position of the clock source includes: determining that the clock source is not within an obstruction; and Determining that a first child node is within an obstacle block, the first child node being one of the plurality of child nodes; Move the first child node to a first position, where the first position is outside the obstacle block; According to the first position, an updated clock path is acquired, where the updated clock path includes the clock source and the multiple sub-nodes.

6. The method according to any one of claims 2 to 4, characterized in that Determining the final positions of the plurality of subnodes according to the final position of the clock source includes: determining that the clock source is not within an obstruction; and Determine that there is an obstacle block on a clock path between a first sub-node and the clock source, the first sub-node is one of the multiple sub-nodes, and the clock path includes the clock source and the multiple sub-nodes; An updated clock path is obtained to avoid the obstacle block.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: Determining clock delays of the plurality of subnodes according to the updated clock path; The clock delays of the plurality of sub-nodes are balanced.

8. The method according to any one of claims 1 to 7, characterized in that The step of constructing a first sub-region clock tree on at least two layers of second bare chips includes: Constructing a topological structure of the clock tree of the first sub-region; According to the topological structure, the first merged segment and the second merged segment are connected to any one of the at least two layers of second dies through silicon vias to obtain a third merged segment and a fourth merged segment, wherein the third merged segment corresponds to the first merged segment, and the fourth merged segment corresponds to the second merged segment; A position of a parent merged segment is determined to obtain the first sub-region clock tree, where the parent merged segment is a parent merged segment of the third merged segment and the fourth merged segment.

9. The method according to claim 8, characterized in that Any second die of the at least two layers of second dies includes the parent merged segment.

10. The method according to claim 8 or 9, characterized in that: The method further includes adding a buffer between the through silicon vias on the at least two layers of the second die.

11. The method according to claim 8 or 9, characterized in that: Determining the position of the parent merged segment includes: Determining an initial position of the parent merged segment so that the clock delays of the third merged segment and the fourth merged segment are equal; Determining, according to the initial position of the parent merged segment, a third distance between the parent merged segment and the third merged segment and a fourth distance between the parent merged segment and the fourth merged segment; The position of the parent merged segment is determined according to the third distance and the fourth distance.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: Determine a maximum clock delay, the maximum clock delay being a maximum value of clock delays of a plurality of sub-regional clock trees, a root node of each of the plurality of sub-regional clock trees being connected to one of the plurality of sub-nodes, the plurality of sub-regional clock trees including a first sub-regional clock tree; A buffer is inserted on the connection line between the sub-region clock tree and the global clock tree to make the clock delays of the multiple sub-region clock trees less than or equal to the maximum clock delay.

13. The method according to any one of claims 1 to 12, characterized in that The global clock tree is a GHtree structure.

14. A device for constructing a clock tree, characterized in that: The apparatus comprises: a module for executing the method according to any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 13.

16. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.

17. A chip, characterized in that: include: A processor and a memory coupled to the processor, the memory storing a computer program, the chip being located in a computer, and when the processor executes the computer program, the computer is caused to execute the method according to any one of claims 1 to 13.

18. A chip system, characterized in that: include: A logic circuit, the logic circuit being used to be coupled to an input / output interface, through which data is transmitted, so as to execute the method according to any one of claims 1 to 13.

Citation Information

Cited By

  • Efficient clock tree synthesis method based on complementary Manhattan ring

    CN119940284A

  • Efficient Clock Tree Synthesis Method Based on Complementary Manhattan Rings

    CN119940284B

  • Clock configuration integration method and device, electronic equipment, medium and program product

    CN121389927A

  • Clock configuration integration method and apparatus, electronic device, medium, and program product

    CN121389927B

  • Clock tree generation method and chip

    CN121562523A