Method, device, equipment, medium and program product for arranging spare units
By dynamically adjusting the placement of spare cells using the standard cell density value obtained through the analysis window after chip placement is completed, the problem of uneven resource allocation is solved, the density distribution of spare cells is matched with that of standard cells, and the resource utilization efficiency and cost-effectiveness of chip design are improved.
Patent Information
- Application Number
- CN202611230339.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-24
AI Technical Summary
Existing backup cell deployment methods suffer from uneven resource allocation in chip design, resulting in insufficient resources in high-density areas and redundant resources in low-density areas, which affects the efficiency and cost of chip design.
After the standard cell layout of the chip is completed, the chip layout is traversed through an analysis window of a preset size to obtain the density value of the standard cells. The placement of the spare cells is dynamically adjusted according to the density threshold range to ensure that the distribution of the spare cells matches the density distribution of the standard cells.
This achieves a uniform distribution of spare unit resources, improves the rationality of chip layout and resource utilization efficiency, and reduces chip design costs and time.
Smart Images

Figure CN123159243A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of chip technology, and in particular to a method, apparatus, device, medium, and program product for deploying a backup cell. Background Technology
[0002] With the continuous development of integrated circuit technology, the feature sizes of transistors and metal interconnects are constantly shrinking, leading to a continuous increase in chip integration and complexity, and a significant increase in tape-out costs. To repair functional or performance defects exposed after the initial tape-out of a chip without remanufacturing the entire photomask, the industry commonly employs metal layer repair technology based on Engineering Change Orders (ECOs). The core of this technology is to pre-deploy spare cells with basic logic functions during the chip design phase. When needed, these cells are connected only by modifying the metal mask, thus achieving circuit correction at a lower cost.
[0003] Currently, the method for deploying spare cells in related technologies is usually to uniformly insert spare cells into a predefined set of standard cells in the circuit layout before the layout stage of chip physical design.
[0004] However, the above-mentioned method of deploying backup units has the problem of uneven resource allocation. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, apparatus, equipment, medium, and program product for deploying backup units that can achieve even resource allocation, in order to address the aforementioned technical problems.
[0006] In a first aspect, this application provides a method for deploying backup units, the method comprising:
[0007] Once the standard cell layout of the chip is complete, obtain the chip layout diagram;
[0008] The chip layout is traversed using an analysis window of a preset size. During the traversal, the density values of standard cells within the analysis window are obtained. Based on the density values and the density threshold range corresponding to the analysis window, spare cells are deployed within the analysis window.
[0009] In some embodiments, the preset-size analysis window includes at least one analysis window of a specific size. The size of each analysis window is negatively correlated with the boundary value of the density threshold interval. The chip layout is traversed using the preset-size analysis window. During the traversal, the density value of the standard cell within the analysis window is obtained. Based on the density value and the density threshold interval corresponding to the analysis window, spare cells are deployed within the analysis window, including:
[0010] The chip layout is traversed using an analysis window of the first size. During the traversal, the first density value of the standard cell within the analysis window of the first size is obtained. Based on the first density value and the first density threshold range corresponding to the analysis window of the first size, the spare cells are arranged within the analysis window of the first size to obtain the first chip layout.
[0011] The system detects whether there are any unused dimensions in the analysis window and, based on the detection results and the first chip layout, deploys the spare cells within the analysis window.
[0012] In some embodiments, based on the detection results and the first chip layout, the spare units are deployed within the analysis window, including:
[0013] If the detection result indicates that there are still unused analysis windows of a certain size, the next size analysis window is obtained as the second size analysis window. The first chip layout is traversed using the second size analysis window. During the traversal, the second density value of the standard cell within the second size analysis window is obtained. Based on the second density value, the second density threshold range corresponding to the second size analysis window, and the first chip layout, the spare cells are deployed within the second size analysis window to obtain the second chip layout. The second chip layout is used as the new first chip layout, and the process returns to the step of detecting whether there are still unused analysis windows of a certain size.
[0014] If the test results indicate that there are no unused dimensions in the analysis window, the deployment of the spare unit is considered complete.
[0015] In some embodiments, based on a first density value and a first density threshold range corresponding to an analysis window of a first size, spare cells are arranged within the analysis window of the first size to obtain a first chip layout, including:
[0016] Determine whether the first density value is within the first density threshold range;
[0017] When the first density value is within the first density threshold range, utility cells are arranged within an analysis window of the first size to obtain the first chip layout.
[0018] In some embodiments, based on a second density value, a second density threshold range corresponding to a second-sized analysis window, and a first chip layout, spare cells are arranged within the second-sized analysis window to obtain a second chip layout, including:
[0019] Determine whether the second density value falls within the second density threshold range;
[0020] When the second density value is within the second density threshold range, the spare cells are arranged within the analysis window of the second size according to the analysis window of the first chip layout and the second size to obtain the second chip layout.
[0021] In some embodiments, based on the first chip layout and the second-size analysis window, spare cells are arranged within the second-size analysis window to obtain the second chip layout, including:
[0022] Obtain the placement locations of the spare units already deployed in the first chip layout;
[0023] Determine whether the deployment location is within the analysis window of the second size;
[0024] If the placement location is not within the analysis window of the second size, the utility cells are placed within the analysis window of the second size to obtain the second chip layout.
[0025] In some embodiments, when the second-sized analysis window is the last of multiple analysis windows, the spare cells are arranged within the second-sized analysis window according to the first chip layout and the second-sized analysis window to obtain the second chip layout, including:
[0026] Arrange utility cells within the analysis window of the second size to obtain the initial chip layout;
[0027] In the first chip layout and the initial chip layout, the already deployed spare units are deduplicated to obtain the second chip layout.
[0028] In some embodiments, in the first chip layout and the initial chip layout, a deduplication operation is performed on the deployed spare cells, including:
[0029] In the first chip layout and the initial chip layout, the spare unit corresponding to the analysis window with the smallest window size is retained, and the spare units corresponding to analysis windows of other window sizes are deleted.
[0030] In some embodiments, obtaining the density values of standard cells within the analysis window includes:
[0031] Obtain the total area of all standard cells within the analysis window;
[0032] The density values of standard cells within the analysis window are determined based on the total area and the window area of the analysis window.
[0033] Secondly, this application also provides a device for deploying backup units, the device comprising:
[0034] The acquisition module is used to acquire the chip layout after the standard cell layout of the chip has been completed.
[0035] The deployment module is used to traverse the chip layout using an analysis window of a preset size. During the traversal, it obtains the density values of standard cells within the analysis window and deploys spare cells within the analysis window based on the density values and the density threshold range corresponding to the analysis window.
[0036] Thirdly, this application also provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0037] Once the standard cell layout of the chip is complete, obtain the chip layout diagram;
[0038] The chip layout is traversed using an analysis window of a preset size. During the traversal, the density values of standard cells within the analysis window are obtained. Based on the density values and the density threshold range corresponding to the analysis window, spare cells are deployed within the analysis window.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0040] Once the standard cell layout of the chip is complete, obtain the chip layout diagram;
[0041] The chip layout is traversed using an analysis window of a preset size. During the traversal, the density values of standard cells within the analysis window are obtained. Based on the density values and the density threshold range corresponding to the analysis window, spare cells are deployed within the analysis window.
[0042] Fifthly, this application also provides a computer program product, which includes a computer program that, when executed by a processor, performs the following steps:
[0043] Once the standard cell layout of the chip is complete, obtain the chip layout diagram;
[0044] The chip layout is traversed using an analysis window of a preset size. During the traversal, the density values of standard cells within the analysis window are obtained. Based on the density values and the density threshold range corresponding to the analysis window, spare cells are deployed within the analysis window.
[0045] The aforementioned method, apparatus, equipment, medium, and program product for deploying spare cells involve acquiring the chip layout after the standard cell layout is completed, then traversing the chip layout using an analysis window of a preset size. During the traversal, the density values of the standard cells within the analysis window are acquired, and spare cells are deployed within the analysis window based on the density values and the corresponding density threshold range. In this method, acquiring the chip layout after the standard cell layout is completed allows for decisions on spare cell deployment based on accurate and complete standard cell density distribution information. Compared to traditional methods that blindly and uniformly deploy cells before layout, this method precisely sets the timing of spare cell deployment after layout, ensuring that subsequent deployment strategies accurately reflect the density characteristics of each region, fundamentally solving the resource mismatch problem caused by improper deployment timing. Furthermore, because the deployment of spare cells is based on the density values of the standard cells within the analysis window and the density threshold range of the analysis window, the distribution of spare cells matches the density distribution of standard cells, thereby improving the rationality of spare cell resource configuration and the uniformity of resource distribution on the chip layout. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a distribution diagram of medium-spaced spare units in traditional technology.
[0048] Figure 2 These are internal structural diagrams of the computer device in some embodiments;
[0049] Figure 3 This is one of the flowcharts illustrating the deployment method of the backup unit in some embodiments;
[0050] Figure 4 This is a second flowchart illustrating the deployment method of the spare unit in some embodiments;
[0051] Figure 5 This is the third flowchart illustrating the deployment method of the spare unit in some embodiments;
[0052] Figure 6 This is the fourth flowchart illustrating the deployment method of the spare unit in some embodiments;
[0053] Figure 7 This is the fifth flowchart illustrating the deployment method of the spare unit in some embodiments;
[0054] Figure 8 This is a flowchart illustrating the deployment method of the spare unit in some embodiments (sixth example).
[0055] Figure 9 This is the seventh flowchart illustrating the deployment method of the spare unit in some embodiments;
[0056] Figure 10 This is the eighth flowchart illustrating the deployment method of the spare unit in some embodiments;
[0057] Figure 11 This is the ninth flowchart illustrating the deployment method of the spare unit in some embodiments;
[0058] Figure 12 This is a flowchart of a method for determining a spare unit based on a density value in some embodiments;
[0059] Figure 13 This is a distribution diagram of spare units determined based on density values in some embodiments;
[0060] Figure 14 This is a structural block diagram of the deployment device for the spare unit in some embodiments. Detailed Implementation
[0061] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0062] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more, and other quantifiers are similar. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The term "and / or" used in this application refers to one of the solutions, or any combination of multiple solutions. In the embodiments of this application, the term "at least one" means one or more.
[0063] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0064] With the continuous development of integrated circuit technology, the feature sizes of transistors and metal interconnects are constantly shrinking, and chip size and complexity are continuously increasing. This trend leads to a decrease in the reliability and controllability of chip manufacturing processes. Therefore, in the chip design stage, optimizing design methods to improve manufacturing yield and reliability has become a crucial and indispensable aspect of chip design. At the same time, chip tape-out costs also increase significantly with increasing integration density, and cost considerations must be integrated into every stage of chip design.
[0065] In the field of circuit design, introducing spare cells is a key technology for improving design reliability. Its core principle lies in pre-embedding redundant standard cells with basic logic operations or data storage functions in various functional areas of the circuit. When the chip completes its first tape-out and enters the verification stage, if problems are found due to process defects, unreasonable layout structure, or insufficient functional verification in the early stages, corrections need to be made by adjusting the local circuit structure. Such modifications can be achieved using spare cells pre-installed during the design phase. Specifically, only the metal wiring connections of the corresponding pins of the spare cell need to be adjusted. In the fabrication stage, the foundry only needs to replace several layers of metal masks in the area to be modified to easily repair various problems exposed during the first tape-out. Compared with the traditional redesign and re-tape-out process, this method can significantly shorten the design cycle and significantly reduce R&D costs.
[0066] Currently, the commonly used spare cell placement strategy involves inserting a predefined set of standard cells into the circuit layout in a fixed, equally spaced array before the placement phase of the chip physical design flow. Specifically, the cell composition is as follows: each pre-inserted spare cell group consists of various basic logic units, designed to provide the flexibility required for later Engineering Change Orders (ECOs). This typically includes combinational logic units and sequential logic units; distribution characteristics include... Figure 1 The diagram shows the distribution of equally spaced spare cells. These spare cell groups are regularly and equally spaced across the entire chip layout (including the high-density, medium-density, and low-density areas of the standard cells) to form a grid array covering the entire area. The spacing between groups is fixed and usually independent of the actual density distribution characteristics of the standard cells within the target area. This arrangement ensures uniform spatial coverage of the spare cells.
[0067] However, the standard cell distribution density varies significantly across different regions of integrated circuit chips. Empirical analysis shows that high-density standard cell regions have a significantly higher probability of experiencing Energy-Cost-Induced (ECO) events in subsequent design stages compared to low-density regions. Adopting a uniform spatial distribution strategy for spare cells—that is, ignoring the density differences of standard cells and inserting them at equal intervals—will lead to a double resource mismatch problem. Specifically, high-density regions suffer from resource scarcity: due to the higher probability of ECO events, these regions face the risk of insufficient spare cells, potentially failing to meet the needs of later circuit corrections; low-density regions suffer from resource redundancy: excessive placement of spare cells in these regions will introduce unnecessary static power consumption increments and area overhead, resulting in wasted design margins. Therefore, the aforementioned spare cell placement method suffers from uneven resource allocation.
[0068] In view of this, embodiments of this application propose a method, apparatus, device, medium, and program product for deploying spare units. After the chip layout stage is completed, the method dynamically adjusts the deployment spacing of spare units according to the real-time density distribution characteristics of standard units in the chip layout, avoiding the problems of insufficient resources in high-density areas and resource redundancy in low-density areas, thus making resource allocation uniform.
[0069] It should be noted that the beneficial effects or technical problems solved by the embodiments of this application are not limited to this one, but may also be other implicit or related problems. For details, please refer to the description of the embodiments below.
[0070] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0071] In some embodiments, the method for deploying the spare units provided in this application can be applied to, for example... Figure 2 The computer device shown can specifically be a backup unit deployment device or a chip design device, and its internal structure diagram can be as follows: Figure 2As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a method for deploying backup units. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0072] Those skilled in the art will understand that Figure 2 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specifically, the computer device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0073] In some embodiments, such as Figure 3 As shown, a method for deploying a backup unit is provided, which can be applied to... Figure 1 Taking a computer device as an example, the explanation includes the following steps:
[0074] S201: After the standard cell layout of the chip is completed, obtain the chip layout.
[0075] Standard cell placement refers to a stage in the chip physical design process. At this stage, the positions of various standard cells (such as logic gates and flip-flops) required for the functional circuits of the chip are determined on the layout, defining the distribution of standard cells in each area. However, detailed routing of metal interconnects has not yet been performed. Chip layout refers to the layout data file generated after standard cell placement, which records the specific physical location and distribution of each standard cell on the chip.
[0076] In this embodiment, the placement process for backup cells is initiated during the chip physical design flow, after the placement phase and before the global routing phase. The placement process can be initiated by a user-triggered placement command; alternatively, it can be implemented through an automated script. Specifically, the computer device can initiate the placement script for the backup cells once it detects the end of the automated script for the previous phase. After the standard cell placement of the chip is complete, the computer device can obtain the complete layout information of the entire chip by reading the design database or layout exchange file generated during the placement phase. This allows the computer device to obtain the chip layout, which may include, but is not limited to, the type, size, and spatial coordinates of the standard cells already placed in each functional area of the chip.
[0077] S202: Using an analysis window of a preset size, the chip layout is traversed. During the traversal, the density values of standard cells within the analysis window are obtained. Based on the density values and the density threshold range corresponding to the analysis window, spare cells are deployed within the analysis window.
[0078] The analysis window refers to a predefined geometric region (such as a square) used to slide and scan across the chip layout to select a local area to be analyzed. The density value refers to the density of all standard cells within the selected area of the analysis window. The density threshold range is a preset critical value range for determining whether the density of the standard cells within the analysis window belongs to a certain density level, such as a high-density region, a medium-density region, or a low-density region. More refined density regions can also be defined according to actual needs.
[0079] In this embodiment, the computer device can move an analysis window of a preset size across the chip layout according to a preset scan step size and path to traverse the entire layout. The preset analysis window can be a single preset size or multiple preset sizes. When multiple sizes of analysis windows are used, they have different dimensions, and each window corresponds to a different density threshold range. The computer device can traverse the chip layout sequentially using multiple sizes of analysis windows in a random order, or sequentially in descending order of analysis window size, or sequentially in ascending order of analysis window size.
[0080] When traversing each location on the chip layout, the computer device determines the density value of the standard cells within the current analysis window based on the distribution information of all placed standard cells. Then, it determines whether to place utility cells within the analysis window based on whether the density value of the standard cells falls within the density threshold range corresponding to the current analysis window. Optionally, when selecting an analysis window of a preset size, the computer device can determine the preset size based on the density value of the densest region of standard cells, where the size of the densest region can be customized according to actual needs. Specifically, the computer device can use the analysis window of the size corresponding to the density threshold range where the density value of the densest region falls as the analysis window used in this operation. For example, if the density value of the densest region is 'a', the density threshold range where 'a' falls is 'A', and the analysis window of size corresponding to 'A' is 'L'. A Therefore, the preset analysis window size can be determined to be L. A Analysis window size. Optionally, the computer device can determine multiple preset analysis windows based on the density values of the densest and sparsest regions of the standard cells. The size of the sparsest region can be customized according to actual needs. Specifically, the computer device can compare the density range between the density values of the densest and sparsest regions with the density threshold intervals corresponding to each analysis window size, and select one or more analysis windows that can cover the density range as the analysis windows used in this application. This allows high-density regions to be matched with small-sized analysis windows (i.e., denser spacing and more spare cells) and low-density regions to be matched with large-sized analysis windows (i.e., sparser spacing and fewer spare cells). This achieves adaptive matching between the spacing of spare cells and the density of the standard cells. Optionally, the computer device can randomly use analysis windows of different sizes and deploy a group of spare cells within the corresponding window according to the density threshold intervals of the analysis windows of different sizes.
[0081] The spare cell placement method provided in this application involves obtaining the chip layout after the standard cell placement is completed, then traversing the chip layout using an analysis window of a preset size. During the traversal, the density values of the standard cells within the analysis window are obtained, and spare cells are placed within the analysis window based on the density values and the density threshold range corresponding to the analysis window. In this method, obtaining the chip layout after the standard cell placement is completed allows the placement of spare cells to be based on real and complete standard cell density distribution information. Compared to traditional methods that blindly and uniformly place cells before placement, this method precisely sets the placement of spare cells after placement, ensuring that subsequent placement strategies accurately reflect the density characteristics of each region, fundamentally solving the resource mismatch problem caused by improper placement timing. Furthermore, since the placement of spare cells is based on the density values of the standard cells within the analysis window and the density threshold range of the analysis window, the distribution of spare cells matches the density distribution of standard cells, thereby improving the rationality of spare cell resource configuration and the uniformity of resource distribution on the chip layout.
[0082] In some embodiments, the analysis window includes at least one, and the size of each analysis window is negatively correlated with the boundary value of the density threshold interval. Based on this, a specific implementation method for deploying utility units according to the density value and the density threshold interval corresponding to the analysis window is also provided, such as... Figure 4 As shown, the step S202 above, "traversing the chip layout using an analysis window of a preset size, obtaining the density value of the standard cells within the analysis window during the traversal, and deploying spare cells within the analysis window according to the density value and the density threshold range corresponding to the analysis window," includes:
[0083] S301, the chip layout is traversed using an analysis window of the first size. During the traversal, the first density value of the standard cell within the analysis window of the first size is obtained. Based on the first density value and the first density threshold range corresponding to the analysis window of the first size, the spare cells are arranged within the analysis window of the first size to obtain the first chip layout.
[0084] The preset-size analysis window includes at least one analysis window of a specific size. The size of each analysis window is negatively correlated with the boundary values of the density threshold interval. Specifically, the side length of each analysis window is negatively correlated with the upper and lower boundary values of the density threshold interval; that is, the larger the side length of the analysis window, the smaller the corresponding upper and lower boundary values of the density threshold interval, and vice versa. The relationship between the size of each analysis window and the density threshold interval is shown in the table below:
[0085]
[0086] Where D is the density value of the standard cell within the analysis window, D1 and D2 are the boundary values of the density threshold interval, and the density threshold is D1 > D2; the side length of the analysis window is L1. <L2<L3。
[0087] The first density value refers to the density value of the standard cell within the window obtained when traversing the chip layout with an analysis window of the first size. The first density threshold range refers to the density threshold range of the analysis window of the first size. The first chip layout refers to the chip layout after traversing and deploying spare cells through the analysis window of the first size, which records the location information of the spare cells deployed in this round.
[0088] In this embodiment, when there is a single analysis window, that analysis window is the analysis window of the first size. When there are multiple analysis windows, the computer device can select the analysis window of the first size from multiple analysis windows of preset sizes based on a preset traversal order; specifically, the analysis window of the first size is the analysis window that appears first in the preset traversal order. For example, if the preset traversal order is from smallest to largest, then the smallest analysis window is the analysis window of the first size; if the preset traversal order is from largest to smallest, then the largest analysis window is the analysis window of the first size.
[0089] After determining the analysis window of the first size, the computer device uses this window to slide and traverse the chip layout in a predetermined step size (e.g., row-by-row and column-by-column) according to a preset step size. While traversing each window position, a first density value is calculated. Based on the first density value and the first density threshold range of the analysis window of the first size, it is determined whether a set of spare cells needs to be placed within that analysis window. After the analysis window of the first size has completed its traversal of the entire chip layout, the computer device obtains the first chip layout, which records the placement results of this round.
[0090] S302 detects whether there are still unused size analysis windows, and based on the detection results and the first chip layout, deploys the spare cells within the analysis window.
[0091] Unused analysis windows refer to analysis windows of multiple sizes that have not yet been used for traversing the chip layout for placement operations, such as the second-to-last analysis window in the preset traversal order. The detection results are used to indicate whether there are other analysis windows of different sizes waiting to be traversed and placed.
[0092] In this embodiment of the application, after the computer device completes the traversal and deployment of the analysis window of the current size, it checks multiple analysis windows of preset sizes to determine whether there are still analysis windows that have not been used for traversal. Then, based on the detection results and the first chip layout with the backup unit already deployed, it continues to execute the subsequent deployment operation or ends the deployment process.
[0093] Specifically, such as Figure 5 As shown, S302 above includes:
[0094] S3021, if the detection result indicates that there are still unused size analysis windows, obtain the next size analysis window as the second size analysis window, and use the second size analysis window to traverse the first chip layout. During the traversal, obtain the second density value of the standard cell within the second size analysis window, and according to the second density value, the second density threshold range corresponding to the second size analysis window, and the first chip layout, deploy the spare cells within the second size analysis window to obtain the second chip layout. Use the second chip layout as the new first chip layout, and return to execute the step of detecting whether there are still unused size analysis windows.
[0095] Here, the second-size analysis window refers to the next analysis window to be used after the currently used analysis window among multiple preset-size analysis windows. The second density threshold range refers to the density threshold range of the second-size analysis window. The second density value refers to the density value of the standard cells within the window obtained when traversing the first chip layout using the second-size analysis window. The second chip layout refers to the updated layout obtained after traversing the first chip layout using the second-size analysis window and continuing to place utility cells on top of the first chip layout.
[0096] In this embodiment, when the computer device detects that there are still unused analysis windows of a certain size, it obtains the next size analysis window from multiple preset size analysis windows as the second size analysis window. Then, the second size analysis window is used to traverse the first chip layout. When traversing each window position, a second density value is calculated, and based on the second density value, the second density threshold range corresponding to the second size analysis window, and the first chip layout, it is determined whether a set of spare units needs to be deployed in that analysis window. After the second size analysis window has completed the traversal of the entire chip layout, the computer device obtains the second chip layout, then uses the second chip layout as the new first chip layout, and returns to continue executing the step of detecting whether there are unused size analysis windows, that is, returning to execute step S302. This process is repeated iteratively until all sizes of analysis windows have been used.
[0097] S3022, if the test results indicate that there are no unused dimensions in the analysis window, determine that the deployment of the spare unit is complete.
[0098] In this embodiment of the application, when the detection result indicates that there are no unused analysis windows of different sizes, it means that the analysis windows of multiple preset sizes have been traversed and deployed. Then it can be determined that the deployment process of all rounds of spare units has ended, and the final chip layout with spare units is obtained.
[0099] The method described in this application embodiment traverses the chip layout using an analysis window of a first size to deploy spare cells, and detects whether there are any unused analysis windows of different sizes. If so, it obtains the next size analysis window and continues traversing and deploying until all sizes of analysis windows are deployed, thus achieving progressive iterative deployment of multiple analysis windows of different sizes. In the above method, the deployment operation of analysis windows of different sizes is performed in rounds, and each round of deployment is based on the chip layout obtained in the previous round. This allows the deployment of spare cells to gradually cover areas of different density levels according to the size of different analysis windows, effectively ensuring the supply of spare cell resources in high-density areas, while avoiding resource redundancy in low-density areas, and achieving optimized allocation of overall design resources.
[0100] In some embodiments, a specific implementation method for obtaining the first chip layout is also provided, such as... Figure 6 As shown, the step S301 above, "based on the first density value and the first density threshold interval corresponding to the first size analysis window, the spare cells are arranged within the first size analysis window to obtain the first chip layout," includes:
[0101] S401, determine whether the first density value is within the first density threshold range.
[0102] The first density threshold interval is the density threshold interval corresponding to the analysis window of the first size. The first density threshold interval is defined as follows: if the density value is greater than the preset first density threshold, such as (D>D1), it indicates that the window area belongs to a high-density area.
[0103] In this embodiment, when a computer device traverses a chip layout using an analysis window of a first size, it can obtain the first density threshold interval corresponding to the analysis window of the first size from a pre-created mapping relationship between the size and density threshold intervals of the analysis window. The mapping relationship between the size and density threshold intervals of the analysis window is pre-configured by the user according to the chip design requirements, including the correspondence between multiple sizes and multiple density threshold intervals, and is stored in the density threshold interval.
[0104] After acquiring the first density value, the computer device compares the first density value with the boundary value of a preset first density threshold interval to determine whether the first density value is within the first density threshold interval. For example, it determines whether the first density value of the current window is greater than the first density threshold D1. If it is greater, the first density value is determined to be within the first density threshold interval; if it is less than or equal to the first density threshold D1, the first density value is determined not to be within the first density threshold interval.
[0105] S402, when the first density value is within the first density threshold range, the utility cells are arranged within the analysis window of the first size to obtain the first chip layout.
[0106] In this embodiment, when the computer device determines that the first density value at the current window position is within the first density threshold range, it deploys a set of spare units at the center of the analysis window, with the spacing between the spare units being the side length of the analysis window. If the first density value is not within the first density threshold range, the computer device does not deploy any units at that window position and continues to slide the analysis window to the next position. The computer device traverses the entire chip layout according to a preset step size, performing spare unit deployment operations on all window positions within the first density threshold range. After the traversal is completed, a first chip layout recording the deployment results of this round is obtained.
[0107] The method described in this application uses a comparison between a first density value and a first density threshold interval as the basis for deployment judgment. This directly links the insertion decision of spare units to the actual density of standard units, thereby enabling the accurate deployment of spare units in areas meeting the density conditions and improving the targeting of deployment. In areas with higher standard unit density, more window positions are located within the density threshold interval during analysis window traversal, resulting in a greater number of deployed spare units. Conversely, in areas with lower standard unit density, fewer window positions are located within the density threshold interval, naturally leading to a smaller number of deployed spare units. By analyzing whether the density value of the standard unit within the window is located within the corresponding density threshold interval, the distribution of spare units can be matched with the density distribution of standard units. This allows for the deployment of denser spare units in areas with higher standard unit density, ensuring sufficient spare unit resources in areas with a high probability of engineering change instructions, and the deployment of sparser spare units in areas with lower standard unit density, avoiding redundant spare unit insertion. This improves the rationality of spare unit resource configuration on the chip layout and the uniformity of resource distribution.
[0108] In some embodiments, a specific implementation of obtaining the second chip layout is also provided, such as... Figure 7As shown, the step S3021 above, "based on the second density value, the second density threshold range corresponding to the second-sized analysis window, and the first chip layout, the spare cells are arranged within the second-sized analysis window to obtain the second chip layout," includes:
[0109] S501, determine whether the second density value is within the second density threshold range.
[0110] The second density threshold range is the density threshold range corresponding to the analysis window of the second size. The second density threshold range is defined as follows: the density value is between the second density threshold and the first density threshold, such as D2 < D ≤ D1, which indicates that the analysis window area belongs to the medium density area or the low density area; or the density value is less than the second density threshold, such as D ≤ D2, which indicates that the window area belongs to the low density area.
[0111] In this embodiment of the application, when a computer device traverses a chip layout using an analysis window of the second size, it can obtain the second density threshold interval corresponding to the analysis window of the second size from the pre-created mapping relationship between the size and density threshold interval of the analysis window.
[0112] After acquiring the second density value, if the second analysis window is not the last of multiple analysis windows of preset sizes (for example, if there are three analysis windows of different sizes and the second analysis window is the second window), then the second density threshold range is: the density value is between the first density threshold and the second density threshold, indicating that the window area belongs to the medium density region. If the second analysis window is the last analysis window (e.g., the third window), then the second density threshold range is: the density value is less than or equal to the second density threshold, indicating that the window area belongs to the low density region. The second density threshold is less than the first density threshold.
[0113] After obtaining the second density value and the second density threshold range, the computer device can determine whether the second density value falls within a preset threshold range in the second density threshold range. If it falls within the range, the second density value is determined to be within the second density threshold range; if it is not within the range, the second density value is determined not to be within the second density threshold range.
[0114] S502, when the second density value is within the second density threshold range, the spare cells are arranged within the analysis window of the second size according to the analysis window of the first chip layout and the second size to obtain the second chip layout.
[0115] In this embodiment of the application, when the computer device determines that the second density value of the current window position is within the second density threshold range, it can arrange the spare units in the second-size analysis window without repeating the arrangement of spare units, based on the arrangement of spare units in the first chip layout and the arrangement of spare units in the second-size analysis window, to obtain the second chip layout.
[0116] The method described in this application introduces a second density threshold range for judgment during the layout process of the second size analysis window, and performs subsequent layout based on the existing layout results of the first chip layout. This makes the layout decision of different size windows not only related to the density status of the standard cells in their respective windows, but also able to inherit the results of the previous round of layout, thereby improving the connection between multiple rounds of layout and the hierarchy of density judgment.
[0117] In some embodiments, a specific implementation of obtaining the second chip layout is also provided, such as... Figure 8 As shown, the step S503 above, "based on the analysis window of the first chip layout and the second size, the spare cells are arranged within the analysis window of the second size to obtain the second chip layout," includes:
[0118] S601, obtain the placement location of the spare units already deployed in the first chip layout.
[0119] In this context, "deployed spare cells" refers to spare cells that have been inserted into the chip layout during previous rounds of analysis window traversal. "Deployment location" refers to the specific physical coordinates of the deployed spare cells on the chip layout.
[0120] In this embodiment, during the process of traversing the first chip layout using an analysis window of the second size, the computer device reads the recorded spare cell layout information from the layout data of the first chip layout to obtain the layout positions of all deployed spare cells on the chip layout. These layout positions can be recorded in coordinate form to characterize the specific area where each spare cell is located on the layout.
[0121] S602, determine whether the placement location is within the analysis window of the second size.
[0122] In this embodiment of the application, after the computer device obtains the placement positions of the spare units already deployed in the first chip layout, it compares the coordinates of each placement position with the layout area covered by the current second-size analysis window to determine whether there are any placement positions of the deployed spare units that fall within the area of the current second-size analysis window, so as to determine whether there are any spare units that have been deployed in the previous traversal rounds within the current analysis window.
[0123] S603, if the placement position is not within the analysis window of the second size, place the utility cells within the analysis window of the second size to obtain the second chip layout.
[0124] In this embodiment, when the computer device determines that none of the deployed spare units are located within the current second-size analysis window, it indicates that no spare units have been deployed in the area covered by the analysis window. The computer device then deploys a set of spare units at the center of the second-size analysis window. When the computer device determines that a deployment location exists within the current second-size analysis window, it indicates that a spare unit already exists in the area covered by the analysis window. The computer device skips this window location and does not perform repeated deployment. The computer device slides the second-size analysis window according to a preset step size (such as the side length of the second-size analysis window), performing the above judgment and deployment operations for each window location. After traversal, the second chip layout is obtained.
[0125] The method described in this application embodiment obtains the placement position of the deployed utility units in the first chip layout and determines whether the placement position is within the analysis window of the second size. The placement operation is only performed when the placement position is not within the window. This can effectively avoid repeatedly placing utility units at the same position during the traversal of analysis windows of different sizes, ensuring that each round of placement only supplements the areas that have not yet been covered. This achieves precise complementarity of multiple rounds of placement and avoids waste of chip area and power consumption caused by redundant placement.
[0126] In some embodiments, a specific implementation method for obtaining the second chip layout is also provided when the analysis window of the second size is the last analysis window among multiple analysis windows, such as... Figure 9 As shown, the step S503 above, "based on the analysis window of the first chip layout and the second size, the spare cells are arranged within the analysis window of the second size to obtain the second chip layout," includes:
[0127] S701, place the utility cells within the analysis window of the second size to obtain the initial chip layout.
[0128] The second-sized analysis window is the last of the multiple analysis windows and is used as the final round. The initial chip layout refers to the chip layout obtained after traversing and deploying using the last round of analysis windows, without deduplication. This layout may contain overlapping spare cells deployed in multiple rounds.
[0129] In this embodiment, when the computer device detects that the analysis window of the second size is the last analysis window to be used among multiple analysis windows, it uses the analysis window of the second size to traverse the current first chip layout. During the traversal, the computer device obtains a second density value and determines whether the second density value is within a density threshold range. If it is within the density threshold range, the computer device directly deploys a set of spare units at the center position of the analysis window of the second size, without comparing the position with the existing spare units. After the traversal is completed, the computer device obtains an initial chip layout, which may simultaneously contain spare units already deployed in the first chip layout and newly deployed spare units in this round, and some areas may have duplicate deployments.
[0130] S702, in the first chip layout and the initial chip layout, performs a deduplication operation on the deployed spare cells to obtain the second chip layout.
[0131] In this embodiment, after obtaining the initial chip layout, the computer device compares the placement positions of the spare units already deployed in the first chip layout with the placement positions of the spare units already deployed in the initial chip layout to detect whether there are any spare units with overlapping placement positions. When duplicate placement is detected, the computer device performs retention and deletion operations according to preset deduplication rules.
[0132] Specifically, in the first chip layout and the initial chip layout, the computer device retains the spare cells corresponding to the analysis window with the smallest window size, and deletes duplicate spare cells placed in the same position by analysis windows of other window sizes. After completing the deduplication operation, the computer device obtains a second chip layout with a uniquely determined layout result.
[0133] The method described in this application embodiment performs the deduplication operation centrally after the last analysis window is completed, allowing each round of deployment to be carried out independently without having to check for duplicates in real time during each deployment. This simplifies the judgment logic of the intermediate traversal process, while ensuring the uniqueness of the deployment result through the final deduplication operation, thus balancing deployment efficiency and result accuracy.
[0134] In some embodiments, a specific implementation method for obtaining the density values of standard cells within an analysis window is also provided, such as... Figure 10 As shown, "obtaining the density value of the standard cell within the analysis window" in S202 above includes:
[0135] S801, obtain the total area of all standard cells within the analysis window.
[0136] The total area refers to the sum of the physical areas of all the standard cells that have been laid out within the area covered by the current analysis window.
[0137] In this embodiment, during the process of traversing the chip layout using an analysis window, the computer device reads all the laid-out standard cells within the analysis window area from the chip layout data for each position of the current analysis window. Then, it extracts the physical area data of each standard cell and sums these area data to obtain the total area of all standard cells within the analysis window. The layout data records the boundary dimensions of each standard cell; the computer device can calculate its area based on the width and height of each standard cell, or it can directly read pre-recorded cell area attributes from the layout database.
[0138] S802, determine the density value of the standard cells within the analysis window based on the total area and the window area of the analysis window.
[0139] The window area of the analysis window refers to the geometric area of the analysis window, which is determined by the side length of the analysis window.
[0140] In this embodiment, after obtaining the total area, the computer device can further obtain the window area of the current analysis window. The window area is calculated based on the side length of the analysis window; for example, for a square analysis window with side length L, its window area is the square of L. The computer device divides the total area by the window area, and the resulting ratio is the density value of the standard cells within the analysis window. This density value is a numerical value representing the coverage rate of the standard cells within the analysis window area.
[0141] The method described in this application, since the density value is calculated based on the total area of all standard cells within the window and the window area, can accurately reflect the actual density of standard cells within the analysis window area, providing reliable data for subsequent deployment decisions of backup cells.
[0142] In summary, based on all the above embodiments, a method for deploying a backup unit is also provided, such as... Figure 11 As shown, the method includes:
[0143] S901 obtains the chip layout after the standard cell layout of the chip is completed.
[0144] S902, using an analysis window of the first size to traverse the chip layout, during the traversal, obtains the first density value of the standard cells within the analysis window of the first size. Specifically, this includes: obtaining the total area of all standard cells within the analysis window, and determining the density value of the standard cells within the analysis window based on the total area and the window area of the analysis window.
[0145] S903, determine whether the first density value is within the first density threshold range corresponding to the analysis window of the first size.
[0146] S904, when the first density value is within the first density threshold range, the utility cells are arranged within the analysis window of the first size to obtain the first chip layout.
[0147] S905, an analysis window for detecting whether there are still unused dimensions.
[0148] S906, if the detection result indicates that there is still an unused analysis window of a certain size, the next size analysis window is obtained as the second size analysis window, and the first chip layout is traversed using the second size analysis window. During the traversal, the second density value of the standard cell within the second size analysis window is obtained.
[0149] S907, determine whether the second density value is within the second density threshold range corresponding to the analysis window of the second size.
[0150] S908, when the second density value is within the second density threshold range, based on the first chip layout and the second-sized analysis window, spare units are deployed within the second-sized analysis window to obtain the second chip layout. Specifically, this includes: obtaining the deployment positions of the spare units already deployed in the first chip layout; determining whether the deployment positions are within the second-sized analysis window; if the deployment positions are not within the second-sized analysis window, deploying spare units within the second-sized analysis window to obtain the second chip layout; or, if the second-sized analysis window is the last analysis window among multiple analysis windows, deploying spare units within the second-sized analysis window to obtain the initial chip layout; in both the first chip layout and the initial chip layout, retaining the spare units corresponding to the analysis window with the smallest window size, and deleting the spare units corresponding to analysis windows of other window sizes to obtain the second chip layout.
[0151] S909, the second chip layout is used as the new first chip layout, and the process returns to the step of checking whether there are still unused dimensions in the analysis window, that is, it returns to execute S905.
[0152] S910, if the test results indicate that there are no unused dimensions in the analysis window, the deployment of the spare unit is determined to be complete.
[0153] In the embodiments of the present application, a method for dynamically determining the insertion spacing of spare cells based on the distribution density of placed standard cells is provided, which is illustrated using square analysis windows of three different sizes as an example. The density threshold of standard cells (D1, D2) and the insertion spacing parameters of spare cells, i.e., side lengths (L1, L2, L3), are all user-configurable parameters. Through this method, spare cells can be inserted with a smaller spacing in high-density regions of standard cells, while a larger spacing can be adopted in low-density regions of standard cells. Its advantages lie in: ensuring sufficient spare cell resources in regions with a high probability of engineering change order (ECO) occurrence; meanwhile, avoiding introducing redundant spare cells in regions with a low probability of ECO occurrence, as shown in Figure 12 the flowchart of the method for inserting spare cells with spacing adjusted according to density threshold. The specific implementation steps are described as follows:
[0154] Step 1, Insertion in high-density regions: After the chip completes the placement stage, the entire chip layout is traversed using an analysis window with a side length of L1. The density of standard cells in each analysis window is calculated. When the density value is higher than the preset threshold D1, a group of spare cells is inserted at the center of the analysis window; otherwise, no insertion is performed.
[0155] Step 2, Insertion in medium-density regions: The entire chip layout is traversed using an analysis window with a side length of L2 (L2 > L1). The density value of standard cells in each analysis window is calculated. When the density value is higher than the preset threshold D2 (D2 < D1) and lower than or equal to the preset threshold D1, and there are no spare cells inserted in the previous step (Step 1) within the analysis window, spare cells are inserted at the center of the analysis window; otherwise, no insertion is performed.
[0156] Step 3, Insertion in low-density regions: The entire chip layout is traversed using an analysis window with a side length of L3 (L3 > L2). The density value of standard cells in each analysis window is calculated. When the density value is lower than the preset threshold D2, and there are no spare cells inserted in the previous steps (Step 1 or Step 2) within the analysis window, spare cells are inserted at the center of the analysis window; otherwise, no insertion is performed. Finally, the distribution diagram of spare cells with spacing adjusted according to density is shown in Figure 13
[0157] It should be noted that this embodiment provides high configurability of key parameters: the adjustable range of standard cell density threshold, the adjustable insertion step size (spacing) of spare cells, and the adjustable number of insertion iterations. This comprehensive parameter configuration mechanism enables users to dynamically optimize the distribution pattern of spare cells according to specific project objectives (such as maximizing ECO success rate, minimizing area overhead, and balancing power budget), thereby ensuring that the method can achieve the optimal balance between resource efficiency and post-correction capability in different application scenarios.
[0158] The method described in this application addresses the limitations of conventional random or uniform placement strategies for spare cells by proposing a layout density-adaptive spare cell placement method and its implementation mechanism. After chip placement is completed, this method dynamically adjusts the placement spacing of spare cells based on the real-time density distribution characteristics of standard cells in the layout: a smaller placement spacing is used in high-density areas of standard cells, while a larger placement spacing is used in low-density areas. This density-driven differentiated placement strategy effectively solves the core pain point faced by existing uniform placement methods in high-density areas. Specifically, the following measures are implemented: High-density area resource shortage: This avoids the shortage of spare cells due to the high probability of Engineering Change Orders (ECOs) in this area; Low-density area resource redundancy: This eliminates unnecessary increases in static power consumption and area overhead caused by excessive placement of spare cells in this area; Insufficient ECO resource guarantee: This significantly reduces or eliminates the risk of a shortage of spare cells due to the high probability of ECOs in high-density areas, ensuring sufficient logic resource margin for later circuit function modifications or performance optimizations, and improving the feasibility and flexibility of successful ECOs; Optimized resource utilization: This reduces unnecessary spare cell insertion in low-density areas, simultaneously reducing static power consumption, incremental power consumption, and chip area overhead introduced by idle cells, achieving a better overall design resource allocation.
[0159] The methods described in each of the above steps have been described in the foregoing embodiments. For details, please refer to the foregoing descriptions. They will not be repeated here.
[0160] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0161] Based on the same inventive concept, this application also provides a spare unit deployment device for implementing the above-described spare unit deployment method. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in the one or more spare unit deployment device embodiments provided below can be found in the limitations of the spare unit deployment method described above, and will not be repeated here.
[0162] In some embodiments, such as Figure 14 As shown, a backup unit deployment device is provided, comprising:
[0163] The acquisition module 141 is used to acquire the chip layout after the standard cell layout of the chip has been completed.
[0164] The deployment module 142 is used to traverse the chip layout using an analysis window of a preset size. During the traversal, it obtains the density value of the standard cell within the analysis window and deploys the spare cell within the analysis window according to the density value and the density threshold range corresponding to the analysis window.
[0165] In some embodiments, the above-mentioned deployment module includes:
[0166] The deployment unit is used to traverse the chip layout using an analysis window of the first size. During the traversal, the first density value of the standard cell within the analysis window of the first size is obtained. Based on the first density value and the first density threshold range corresponding to the analysis window of the first size, the spare cells are deployed within the analysis window of the first size to obtain the first chip layout.
[0167] The detection unit is used to detect whether there are still unused dimensions in the analysis window, and to deploy the spare units within the analysis window based on the detection results and the first chip layout.
[0168] In some embodiments, the detection unit includes:
[0169] The loop subunit is used to obtain the next size analysis window as the second size analysis window when the detection result indicates that there are still unused size analysis windows. It then uses the second size analysis window to traverse the first chip layout. During the traversal, it obtains the second density value of the standard cells within the second size analysis window. Based on the second density value, the second density threshold range corresponding to the second size analysis window, and the first chip layout, it deploys the spare cells within the second size analysis window to obtain the second chip layout. The second chip layout is then used as the new first chip layout, and the unit returns to execute the step of detecting whether there are still unused size analysis windows.
[0170] The sub-cells are deployed to determine the end of the spare cell deployment if the detection results indicate that there are no unused dimensions in the analysis window.
[0171] In some embodiments, the above-mentioned deployment unit includes:
[0172] A sub-unit is determined to determine whether the first density value is within the first density threshold range.
[0173] The sub-cells are arranged to place utility cells within an analysis window of a first size when the first density value is within a first density threshold range, thereby obtaining a first chip layout.
[0174] In some embodiments, the above-mentioned loop subunit is specifically used to determine whether the second density value is within the second density threshold range; if the second density value is within the second density threshold range, the spare unit is deployed within the analysis window of the second size according to the analysis window of the first chip layout and the second size to obtain the second chip layout.
[0175] In some embodiments, the above-described loop subunit is specifically used to obtain the placement position of the spare unit already placed in the first chip layout; determine whether the placement position is located within the analysis window of the second size; and if the placement position is not located within the analysis window of the second size, place the spare unit within the analysis window of the second size to obtain the second chip layout.
[0176] In some embodiments, the above-mentioned loop subunit is specifically used to place spare units within an analysis window of the second size to obtain an initial chip layout; in the first chip layout and the initial chip layout, a deduplication operation is performed on the placed spare units to obtain a second chip layout.
[0177] In some embodiments, the above-mentioned loop subunit is specifically used to retain the spare unit corresponding to the analysis window with the smallest window size in the first chip layout and the initial chip layout, and delete the spare units corresponding to the analysis windows with other window sizes.
[0178] In some embodiments, the above-mentioned deployment module includes:
[0179] Get Cells: Used to obtain the total area of all standard cells within the analysis window.
[0180] The cell definition is used to determine the density value of the standard cells within the analysis window based on the total area and the window area of the analysis window.
[0181] Each module in the aforementioned backup unit deployment device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0182] In some embodiments, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the backup unit deployment method described in any of the above embodiments.
[0183] In some embodiments, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the backup unit deployment method described in any of the above embodiments.
[0184] In some embodiments, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the backup unit deployment method described in any of the above embodiments.
[0185] The computer program product provided in the above embodiments has a similar implementation principle and technical effect to the above method embodiments, and will not be described again here.
[0186] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0187] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0188] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for deploying backup units, characterized in that, The method includes: Once the standard cell layout of the chip is completed, obtain the chip layout diagram of the chip; The chip layout is traversed using an analysis window of a preset size. During the traversal, the density value of the standard cell within the analysis window is obtained. Based on the density value and the density threshold range corresponding to the analysis window, the spare cells are deployed within the analysis window.
2. The method according to claim 1, characterized in that, The preset-size analysis window includes at least one analysis window of a specific size. The size of each analysis window is negatively correlated with the boundary value of the density threshold interval. The process involves traversing the chip layout using the preset-size analysis window, obtaining the density value of the standard cell within the analysis window during the traversal, and deploying spare cells within the analysis window based on the density value and the density threshold interval corresponding to the analysis window. This includes: The chip layout is traversed using an analysis window of the first size. During the traversal, the first density value of the standard cell within the analysis window of the first size is obtained. Based on the first density value and the first density threshold range corresponding to the analysis window of the first size, the spare cells are arranged within the analysis window of the first size to obtain the first chip layout. The system detects whether there are any unused size analysis windows, and based on the detection results and the first chip layout, it deploys the spare units within the analysis windows.
3. The method according to claim 2, characterized in that, The step of deploying the backup unit within the analysis window based on the detection results and the first chip layout includes: If the detection result indicates that there are still unused size analysis windows, the next size analysis window is obtained as the second size analysis window, and the first chip layout is traversed using the second size analysis window. During the traversal, the second density value of the standard cell within the second size analysis window is obtained, and the spare cell is deployed within the second size analysis window according to the second density value, the second density threshold range corresponding to the second size analysis window, and the first chip layout to obtain the second chip layout. The second chip layout is used as the new first chip layout, and the process returns to the step of detecting whether there are still unused size analysis windows. If the detection results indicate that there is no analysis window for the unused size, the deployment of the spare unit is deemed complete.
4. The method according to claim 2, characterized in that, The step of deploying the spare units within the analysis window of the first size according to the first density value and the first density threshold interval corresponding to the first size analysis window to obtain the first chip layout includes: Determine whether the first density value is within the first density threshold range; When the first density value is within the first density threshold range, the spare unit is deployed within the analysis window of the first size to obtain the first chip layout.
5. The method according to claim 3, characterized in that, The step of deploying the spare units within the analysis window of the second size according to the second density value, the second density threshold range corresponding to the analysis window of the second size, and the first chip layout to obtain the second chip layout includes: Determine whether the second density value is within the second density threshold range; When the second density value is within the second density threshold range, the spare units are arranged within the analysis window of the second size according to the first chip layout and the second size analysis window to obtain the second chip layout.
6. The method according to claim 5, characterized in that, The step of laying out the spare units within the analysis window of the second size based on the first chip layout and the second-sized analysis window to obtain the second chip layout includes: Obtain the placement location of the spare units already deployed in the first chip layout; Determine whether the placement location is within the analysis window of the second size; If the placement location is not within the analysis window of the second size, the spare unit is placed within the analysis window of the second size to obtain the second chip layout.
7. The method according to claim 5, characterized in that, When the analysis window of the second size is the last analysis window among multiple analysis windows, the step of laying out the spare units within the analysis window of the second size according to the first chip layout and the analysis window of the second size to obtain the second chip layout includes: The spare units are arranged within the analysis window of the second size to obtain the initial chip layout; In the first chip layout and the initial chip layout, the deployed spare units are deduplicated to obtain the second chip layout.
8. The method according to claim 7, characterized in that, The step of deduplicating the deployed spare units in the first chip layout and the initial chip layout includes: In the first chip layout and the initial chip layout, the spare unit corresponding to the analysis window with the smallest window size is retained, and the spare units corresponding to analysis windows of other window sizes are deleted.
9. The method according to claim 1, characterized in that, Obtaining the density value of the standard cell within the analysis window includes: Obtain the total area of all standard cells within the analysis window; The density value of the standard cells within the analysis window is determined based on the total area and the window area of the analysis window.
10. A device for deploying backup units, characterized in that, The device includes: The acquisition module is used to acquire the chip layout of the chip after the standard cell layout of the chip has been completed; The deployment module is used to traverse the chip layout using an analysis window of a preset size. During the traversal, the density value of the standard cell within the analysis window is obtained, and the spare cells are deployed within the analysis window according to the density value and the density threshold range corresponding to the analysis window.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
