Method, system, terminal and medium for automatically inserting power switch unit avoiding macro unit
By importing configuration files and layout planning into digital back-end tools, the power switch unit is automatically inserted, which solves the problem of difficult insertion of power switch units in complex designs, achieving efficient resource utilization and improving design efficiency.
Patent Information
- Application Number
- CN202311444603.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-11-01
AI Technical Summary
In complex chip designs, existing technology is difficult to automatically and completely insert the power switch unit, especially in the scenario of multiple macro units, resulting in a waste of resources and an increase in user workload.
By importing configuration files based on digital back-end tools, macro unit layout planning is carried out, channel areas are reserved and power switch units are added, loops are traversed to find channel areas that meet the width requirements, and the power switch unit layout is adjusted to achieve automatic insertion.
It realizes automatic and complete insertion of power switch units under complex designs, avoiding waste of resources, reducing user workload and improving design efficiency.
Smart Images

Figure CN117436398B
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip design technology, and in particular to a method, system, terminal and medium for automatically inserting a power switch unit that avoids a macro unit. Background Art
[0002] At present, with the rapid development of microelectronics technology, more and more attention is paid to the balance between power consumption and performance in large-scale digital design. Power shutdown is a common method to reduce chip power consumption. For example, if a module is not needed in some scenarios, the voltage of the module can be turned off at these times and turned on again when needed to achieve the purpose of reducing power consumption.
[0003] In most cases, the insertion of power switch cells in designs mainly relies on the native commands of EDA (Electronic Design Automation) tools, that is, using the native cmd (command) of the tool, which can perfectly insert power switch cells into simple designs. However, with the development of chip technology and the evolution of processes, more and more designs tend to be complex, and usually multiple Macros are introduced due to design requirements. Due to the limitations of native commands, it is still impossible to insert a complete and complete power switch cell through a single and simple EDA native command, and users are often required to specify many parameters themselves. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method, system, terminal and medium for automatically inserting a power switch unit that avoids macro units, which are used to solve the problem that it is difficult to automatically avoid macro units and insert power switches in the floorplan stage under a complex design with multiple macro units in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a method for automatically inserting a power switch unit that avoids a macro unit, comprising: importing a configuration file based on a digital backend tool; performing layout planning on the macro unit based on the configuration file, and reserving a channel area for adding a power switch unit during the layout planning process; adding a power switch unit in the channel area based on a function command in the digital backend tool; looping through the macro units to find out whether there is a channel area around each of the macro units that meets the width requirements but has no power switch unit added; if so, adding the corresponding power switch unit to the found channel area; checking the power switch units that have been added in all channel areas and adjusting the layout of the power switch units.
[0006] In some embodiments of the first aspect of the present application, the method of adjusting the layout of the power switch unit includes any one of the following: adjusting the layout of the power switch unit according to whether the current power switch unit in the channel area optimally allocates power resources to its surrounding macro units; adjusting the layout of the power switch unit according to the positional relationship between adjacent power switch units.
[0007] In some embodiments of the first aspect of the present application, when the layout of the power switch unit is adjusted according to whether the current power switch unit in the channel area optimally allocates power resources to its surrounding macro units, the adjustment process includes the following: obtaining a plurality of power switch units with regular shapes by horizontal and / or vertical cutting, and extracting the power switch unit that meets the power supply requirements of all surrounding macro units and optimizes the power supply resource allocation.
[0008] In some embodiments of the first aspect of the present application, the process after layout planning of the macro unit based on the configuration file includes: performing a standardization check on the macro unit, and adjusting the layout of the macro unit based on the result of the standardization check; the standardization check includes: any one or more combinations of spacing check, integrity check and overlap check.
[0009] In some embodiments of the first aspect of the present application, after the macro unit is laid out based on the configuration file, the method further performs the following: adding corner units that meet the design rule check requirements around the macro unit, and adding standard units between the corner units and the adjacent power switch units.
[0010] In some embodiments of the first aspect of the present application, a method of adding a standard cell between the corner cell and the adjacent power switch cell includes: adding a standard cell only between the corner cell and the power switch cell that meet the distance configuration requirements.
[0011] In some embodiments of the first aspect of the present application, the method also includes: the power switch units are connected in series according to a predefined rule to form one or more power switch chains; traversing each of the power switch chains to check the connection relationship includes the following situations: Case 1: If the power switch units are connected in series to form a power switch chain, traversing the power switch chain to check to determine that the power switch units in the power switch chain are connected in sequence and the connections do not overlap; Case 2: If the power switch units are connected in series to form multiple power switch chains, traversing each of the power switch chains to check to determine that each of the power switch chains meets the power supply requirements of the macro unit and is connected in sequence and the connections do not overlap.
[0012] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a power switch unit automatic insertion system that avoids macro units, including: a configuration file importing module, used to import a configuration file based on a digital backend tool; a macro unit layout planning module, used to plan the layout of the macro unit based on the configuration file, and reserve a channel area for adding the power switch unit during the layout planning process; a power switch unit adding module, used to add the power switch unit in the channel area based on the function command in the digital backend tool; a traversal search module, used to loop through the macro units to find out whether there is a channel area around each macro unit that meets the width requirement but has no power switch unit added; if so, add the corresponding power switch unit to the found channel area; a power switch unit layout adjustment module, used to check the power switch units that have been added in all channel areas and adjust the layout of the power switch units.
[0013] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides an electronic terminal, including: a processor and a memory; the memory is used to store computer programs; the processor is used to execute the computer program stored in the memory, so that the electronic terminal executes the method for automatically inserting a power switch unit that avoids the macro unit.
[0014] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for automatically inserting a power switch unit that avoids a macro unit is implemented.
[0015] As described above, the method, system, terminal and medium for automatically inserting a power switch unit avoiding a macro unit of the present application have the following beneficial effects:
[0016] (1) It realizes automatic and complete insertion of power switch units in various scenarios under complex designs, and can also avoid resource waste caused by inserting too many power switch units, providing convenience for users;
[0017] (2) Reduces the user's floorplan workload and improves user work efficiency and chip design efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Shown is a flow chart of a method for automatically inserting a power switch unit that avoids macro units in one embodiment of the present application.
[0019] Figure 2 Shown is a schematic diagram of macro cell layout planning in one embodiment of the present application.
[0020] Figure 3Shown is a schematic diagram of adding a corner unit in one embodiment of the present application.
[0021] Figure 4 Shown is a schematic diagram of the layout planning of corner cells around a macro cell in one embodiment of the present application.
[0022] Figure 5 Shown is a schematic diagram of adding a power switch unit in an embodiment of the present application.
[0023] Figures 6A-6C Shown is a specific embodiment diagram of the power switch unit layout adjustment in one embodiment of the present application.
[0024] Figure 7 It is a specific embodiment diagram showing prohibition of adding standard cells in an embodiment of the present application.
[0025] Figure 8 A specific embodiment diagram of a method for automatically inserting a power switch unit that avoids macro units in one embodiment of the present application is shown.
[0026] Fig. 9 Shown is a structural schematic diagram of a power switch unit automatic insertion system for avoiding macro units in one embodiment of the present application.
[0027] Fig.10 Shown is a schematic diagram of the structure of an electronic terminal in one embodiment of the present application. DETAILED DESCRIPTION
[0028] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0029] It should be noted that in the following description, with reference to the accompanying drawings, several embodiments of the present application are described in the accompanying drawings. It should be understood that other embodiments may also be used, and mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.
[0030] In this application, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "hold" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0031] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.
[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution in the embodiments of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the invention.
[0033] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0034] <1> EDA (Electronic Design Automation): EDA refers to the design method that uses computer-aided design (CAD) software to complete the functional design, synthesis, verification, physical design (including layout, wiring, layout, design rule checking, etc.) of very large-scale integrated circuit (VLSI) chips. EDA tools support the design and manufacturing process of integrated circuits, are the carrier of integrated circuit design methodology, and are the link and bridge between the two links of design and manufacturing. Integrated circuit companies need to use EDA tools to complete the design and manufacturing process.
[0035] <2> Innovus tool: Innovus is a physical implementation system for ASIC (Application-Specific Integrated Circuit), and is Cadence's design implementation platform for advanced node designs. It implements the overall chip implementation process, from Floorplanning, Placement, Clock tree Synthesis (CTS), Routing to Final Verification, the entire process is automated. The goal of Cadence Innovus is to minimize power consumption, achieve the highest performance, and ensure chip reliability. In addition, it can also coordinate the best design for different process requirements.
[0036] <3> Macro: In digital back-end integrated circuit design, a macro refers to a specific functional module, such as various IP cores including memory, phase-locked loop (PLL), delay locked loop (DLL), etc., that is, a pre-designed circuit functional module used in an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The logic is already integrated inside the macro and can be called according to the process library.
[0037] <4> Power switch cell (PSW): used for power shutdown technology, it reduces static power consumption by shutting down the power supply voltage of a certain area or sub-module that is temporarily not needed in the chip.
[0038] <5> Power Shut Off (PSO): PSO is the most widely used technology in the field of low-power design of VLSI. This technology can completely shut down the local power supply, which has a significant effect on reducing the power consumption of the chip. PSO is one of the most effective ways to reduce power consumption. The idea is to reduce power consumption by shutting down the power supply of the area or macro module in the chip that does not need power supply temporarily.
[0039] <6> Corner cell (endcap cell): It is a boundary cell, also known as endcap cell, commonly known as corner cell. Endcap cell is a special standard cell. In the back-end physical design, in addition to some common standard cells such as AND, NOT, OR, there are also some special physical cells (physical cells). They usually have no logic circuits and do not exist in the netlist (netlist file), but they play a vital role in the operation and stability of the entire chip. The role of the endcap cell is to ensure that each nwell is nwell enclosed, similar to a closed loop, mainly added at the end of the row (both sides), and around the memory or other blocks.
[0040] <7> Standard cell: In semiconductor design, a standard cell refers to a logic circuit that can perform a certain function, such as a logic gate circuit, a memory cell, etc. In the standard cell library of EDA design software, the following common standard cell types are usually included: logic gates, memory cells, encoders and decoders, multiplexers, adders and subtractors, combiners, and device edges. In addition to the above common standard cells, the standard cell library may also include other special-purpose circuits, such as clock drivers, power / ground connection circuits, and high-speed interface circuits. These standard cells can be selected and used according to the requirements of chip design and process characteristics to achieve design goals and meet performance requirements.
[0041] <8> Design rule check (DRC) DRC verification mainly checks whether the physical design meets the manufacturing process specifications. The goal of DRC verification is to ensure that the physical design meets the requirements of the manufacturing process and avoid manufacturing process failures and circuit performance problems.
[0042] <9> Floorplan (layout planning): Floorplan is to place the macro units of the chip and generally determine the placement of various functional circuits, such as IP modules, RAM (Random Access Memory), I / O pins (input and output pins), etc.; floorplan can directly affect the final area of the chip.
[0043] like Figure 1 FIG. 1 is a flow chart showing a method for automatically inserting a power switch unit avoiding a macro unit in an embodiment of the present application. The method mainly includes the following steps:
[0044] Step S11: importing a configuration file based on a digital backend tool. The configuration file includes a netlist library, a physical library, and a timing library. The digital backend tool in this embodiment is preferably an Innovus tool.
[0045] It should be noted that the advantages of the Innovus tool include: low power consumption. Throughout the design process, the Innovus tool always focuses on the design goal of low power consumption, using advanced algorithms and technologies to ensure the power consumption control of the chip; high performance. Innovus's Floorplanning, Placement, CTS and Routing are fully automated. Designers only need to enter the necessary design parameters, and the system can automatically complete important tasks such as layout and routing. This reduces the design time to the greatest extent and increases the delivery speed; compatibility. Innovus can be used in conjunction with other EDA tools (such as SPICE, Virtuoso, etc.) to form a complete chip design ecosystem. It can adapt to different chip processes and architectures to achieve automated chip implementation; user-friendly. The Innovus user interface is intuitive to use and easy to learn. Designers can quickly get started, saving training time and costs.
[0046] Step S12: performing layout planning for the macro unit based on the configuration file, and reserving a channel area for adding a power switch unit during the layout planning process.
[0047] Combination Figure 2 It is explained that in the chip design process, the macro units are first laid out and planned, and all the macro units are placed manually or automatically based on the configuration file, where 110, 120, and 130 are macro units of different sizes. The placement process needs to follow the design specifications corresponding to different processes, and at the same time, a channel area for adding a power switch unit should be reserved. At this time, it is necessary to consider that there is enough distance between the macro units to ensure that the power switch unit can be added, that is, the channel area must meet the process requirements for adding the power switch unit.
[0048] In some examples, the process of performing layout planning for macro cells based on the configuration file includes: performing a standardization check on the macro cells, and adjusting the layout of the macro cells based on the results of the standardization check; the standardization check includes: any one or more combinations of spacing check, integrity check, and overlap check.
[0049] In the process of macro cell layout planning, all macro cells should be traversed for standardization check according to the placement of the macro cells. The standardization check is mainly based on the design requirements of the macro cells in the configuration file to determine whether there are problems such as too small spacing between macro cells (spacing check), missing macro cells (integrity check), and overlap between macro cells (overlap check), and the placement of the macro cells is adjusted according to the results of the standardization check.
[0050] In some examples, after performing layout planning on the macro cell based on the configuration file, the method further performs the following steps: adding corner cells that meet design rule check requirements around the macro cell, and adding standard cells between the corner cells and the adjacent power switch cells.
[0051] Combination Figure 3 It is explained that after completing the layout planning of the macro unit, according to the design requirements of the process, corner units are added around the macro unit, 110 is the macro unit, and 210 is the corner unit. At this time, the macro unit should be at a certain distance from the corner unit to meet the DRC (design rule check) requirements of the process. The corner unit can ensure that the physical environment of each physical unit remains consistent during the chip design process, and at the same time can protect the function of the chip and prevent the macro unit from being damaged during the manufacturing process. Figure 4 As shown, corner cells are inserted around all macro cells, and 210, 220, and 230 are corner cells corresponding to the macro cells, respectively.
[0052] Step S13: adding a power switch unit in the channel area based on the function command in the digital backend tool.
[0053] It should be noted that after completing the layout planning of the macro unit according to the above steps, the power switch unit is added in the channel area reserved for adding the power switch unit using the function command in the digital backend tool. The function command in the digital backend tool can be the native command in the Innovus tool: add_power_switches. The command add_power_switches is used to fully insert the power switch unit in the chip design. The result is as follows: Figure 5 As shown, 310 is a power switch unit added in the channel region between adjacent macro cells 110 .
[0054] Step S14: loop through the macro units to find out whether there is a channel area around each macro unit that meets the width requirement but has no power switch unit added; if so, add the corresponding power switch unit in the found channel area.
[0055] It should be explained that after adding a power switch unit using the function command in the digital backend tool, the channel area used to add the power switch unit may have various complex situations, which may easily lead to failure in adding the power switch unit. Therefore, it is necessary to find out all the macro units in the chip design, and loop through them in units of macro units to see if there is a channel area around the macro unit that meets the width requirements but has no power switch unit inserted. If there is, insert the power switch unit into the channel area that meets the width requirements.
[0056] Step S15: Check the added power switch units in all channel areas and adjust the layout of the power switch units. Specifically, after the power switch units are added, the layout of the power switch units needs to be adjusted to make the layout of the power switch units reasonable and maintain the lowest power consumption. The way to adjust the layout of the power switch units includes any of the following:
[0057] Method 1: Adjust the layout of the power switch unit according to whether the current power switch unit in the channel area optimally allocates power resources to the surrounding macro units. The specific adjustment process includes the following: obtain a number of regularly shaped power switch units by horizontal and / or vertical cutting, and extract the power switch unit that meets the power supply requirements of all surrounding macro units and optimizes the power supply resource allocation. It should be noted that whether the power supply resource allocation of the power switch unit is optimal refers to avoiding inserting too many power switch units in complex channel areas during the layout process of the power switch unit and meeting the power supply requirements of the macro units with low power consumption. Specific examples are as follows:
[0058] like Fig. 6A As shown, if the channel area around the macro unit has different widths in one or more places, the coordinates of all the channel areas around the macro unit are obtained and merged to form an irregular polygon, and the irregular polygon is cut vertically, and the polygon is cut into two parts to obtain the first channel area in which the most power switch units can be inserted. However, the first channel area obtained according to the vertical cutting may be too narrow to insert enough power switch units. Therefore, the polygon can also be cut horizontally to select the second channel area in which the most power switch units can be inserted. If the first channel area does not meet the width requirements for the insertion of the power switch unit, the second channel area is used to insert the power switch unit. It can be clearly known that the channel area in which the most power switch units can be inserted is the channel area of the power switch unit that meets the power supply requirements of all the surrounding macro units and optimizes the allocation of power supply resources.
[0059] Specifically, if a channel area has different widths at one or more locations, the algorithm is used to calculate the channel area that meets the requirements, and the power switch cell is inserted into the channel area as a whole. The algorithm includes the following steps:
[0060] Step 1: Get the row coordinates of all rectangles in the channel area of varying widths and merge them into an irregular polygon;
[0061] Step 2: Cut the irregular polygon longitudinally to obtain a channel area where the most power switch cells can be inserted (in this embodiment, the longest rectangular channel area);
[0062] Step 3: If the channel width obtained in step 2 is too narrow to insert the power switch cell, cut the irregular polygon in step 1 horizontally and select the largest channel area to insert the power switch cell;
[0063] Finally, it can be achieved as Fig. 6A The power switch cell insertion is to obtain the largest rectangle possible in the irregular polygonal channel area so as to insert as many power switch cells as possible to meet the power supply requirements of all surrounding macro units.
[0064] like Figure 6B As shown, if there are adjacent and parallel macro units with inconsistent longitudinal heights, inserting power switch units at this time is prone to the problem of too many power switch units being inserted, resulting in a waste of resources. The coordinates of the overlapping parts of adjacent and parallel macro units are obtained to generate regular polygons, that is, the non-overlapping parts are cut and discarded horizontally in the figure, and the regular polygon finally obtained is the channel area where the power switch unit is added. The cutting in this case can avoid repeated insertion in the channel area covered by the globally inserted power switch unit, and can also avoid too many power switch units being inserted, thereby achieving the effect of saving area and saving winding resources.
[0065] Specifically, for macro cells with inconsistent vertical heights, the width of the upper or lower side of the channel area may be inconsistent. In this case, the algorithm can be used to insert power switch cells only into the completely parallel channel areas between adjacent macro cells, thereby avoiding excessive insertion. The algorithm includes the following steps:
[0066] Step 1: Extend the column coordinates of the left macro unit in the adjacent macro units to the right by a specified spacing to obtain a channel area;
[0067] Step 2: Compare the channel area with the right macro cell in the adjacent macro cells, and use the row coordinates of the right macro cell as the standard to capture the row coordinates that completely fall within the channel area to generate a new channel area. The row coordinates outside the new channel area are discarded, and the new channel area is used as the insertion range for inserting the power switch cell.
[0068] Method 2: Adjusting the layout of the power switch units according to the positional relationship between adjacent power switch units.
[0069] Combination Figure 6C Description: After inserting a power switch unit in the channel area, if it is found that the existing power switch unit and the newly added power switch unit are close in position within a certain range, but not in the same column, they can be merged into one column. Specifically: there are power switch unit group A, power switch unit group B and power switch unit group C. According to the horizontal coordinates of each group of power switch units, it is determined whether the position distance is close. If it is close, the globally inserted power switch unit in the mobile power switch unit group B is aligned with the power switch unit group A and the power switch unit group C in the channel, so that the power switch unit group A, the power switch unit group B and the power switch unit group C are merged into one column.
[0070] Specifically, after inserting a power switch cell into the channel area, if the existing power switch cell is found to be close to the newly added power switch cell within a certain range, they can be merged into one column. The simple algorithm is as follows:
[0071] Step 1: Merge adjacent power switch cells into groups according to their coordinates (Group A, Group B, and Group C).
[0072] Step 2: Determine whether the distances of the power switch cells in each group are close based on the horizontal coordinates. If they are close, move the globally inserted power switch cells to align with the power switch cells in the channel area. That is, the horizontal coordinates of Group A and Group C are the same, but the horizontal coordinates of Group B are close to but different from those of Group A and Group C. Therefore, Group B is merged into the same column as Group A and Group C and aligned with Group A and Group C in the same column.
[0073] Furthermore, for checking the positional relationship between the power switch units, in this embodiment, the position of the newly inserted power switch unit and the power network around it are checked, and the inserted power switch unit is fine-tuned in the horizontal position according to the position of the power line of the power network, to ensure that the power switch unit can be directly connected to the power supply nearby and keep the position centered in the channel area as much as possible to improve the robustness of power supply. At the same time, since a denser lower layer of metal is required above the power switch unit, the appropriate offset of the power switch unit away from the existing power network can also avoid the generation of design rule checking problems and ensure the integrity of the power network in the chip design and the construction of the power network of the power switch unit itself.
[0074] In an embodiment of the present application, a method of adding a standard cell between the corner cell and the adjacent power switch cell includes: adding a standard cell only between the corner cell and the power switch cell that meet the distance configuration requirement.
[0075] Specifically, if the power switch unit added based on the native command of Innovus is too close to the corner unit, for example, less than the preset distance threshold, the location of this area is not conducive to the placement of the standard unit due to potential power supply risks, such as Figure 7 As shown, the power switch unit 310 is too close to the corner unit 210 on its left side, and a hard placement blockage is automatically generated in this area to block the tool from placing standard units. Hard placement blockage means that any standard unit is prohibited from being placed in this area.
[0076] In an embodiment of the present application, the method further includes: the power switch units are connected in series according to a predefined rule to form one or more power switch chains; and traversing each of the power switch chains to perform a connection relationship check includes the following situations:
[0077] Case 1: if the power switch units are connected in series to form a power switch chain, then the power switch chain is traversed to check whether the power switch units in the power switch chain are connected in sequence and the connections do not overlap;
[0078] Case 2: If the power switch units are connected in series to form multiple power switch chains, each of the power switch chains is traversed to check to determine that each of the power switch chains meets the power supply requirements of the macro unit and is connected in sequence without overlapping.
[0079] Specifically, the connection relationship of the power switch units is checked, and the series connection of the power switch units is to minimize the distance between adjacent power switch units so that all power switch units are automatically connected into a power switch chain. If there is only one power switch chain, it is necessary to check that all power switch units are connected end to end to the same power switch chain; if there are two power switch chains, one long and one short, it is necessary to ensure that the short chain is short enough and meets the power-on requirements, and all the remaining power switch units are connected end to end to the other long power switch chain.
[0080] It should be noted that the present invention can cope with design schemes for any number of macro units, as well as layout plans for any placement of macro units; it can automatically supplement and add power switch units that may not be successfully inserted near certain macro units; it can determine whether power switch units inserted near boundaries in the design process will cause power connection problems and repair them; and taking into account the position distribution of the power switch units in the entire design, all power switch units can be automatically connected into a power switch chain with the goal of minimizing the distance between adjacent power switch units.
[0081] It should be emphasized that the present invention can be used for floorplans of designs of any size, any number of macro units, and any macro unit placement method; the present invention also opens up some setting interfaces and parameters to insert power switch units where users have additional needs, and can adapt to different types of power switch unit types, so that users can use them in different projects and different processes, and have strong versatility; the present invention can also avoid users from entering multiple position parameters, and facilitate users to insert power switch units as quickly and concisely as possible in an automated manner, which greatly reduces the user's floorplan workload, accelerates the implementation of floorplan, and thus improves the design efficiency of the entire chip.
[0082] In order to facilitate the demonstration of the automatic insertion method of the power switch unit avoiding the macro unit of the present application, the following specific embodiments are provided for illustration:
[0083] Embodiment 1: A method for automatically inserting a power switch unit avoiding a macro unit; Figure 8 It is a specific embodiment diagram of the method for automatically inserting a power switch unit avoiding a macro unit in this embodiment.
[0084] Methods include:
[0085] Step 1: Innovus tool imports netlist and design shape;
[0086] Step 2: Arrange the macro, insert the endcap cell, and reserve a channel area for adding the power switch cell;
[0087] Step 3: Perform standardized check on macro;
[0088] Step 4: Add the power switch cell using native commands;
[0089] Step 5: Loop through the macro to find out whether there is a channel area around the macro that meets the width requirement but has not been added with a power switch cell; if so, insert the power switch cell;
[0090] Step 6: Check the position and connection relationship of the power switch cell.
[0091] like Fig. 9 FIG. 1 is a schematic diagram showing a structure of a power switch unit automatic insertion system 900 for avoiding macro units in an embodiment of the present invention. The system 900 includes:
[0092] A configuration file import module 901 is used to import configuration files based on a digital backend tool;
[0093] A macro cell layout planning module 902, configured to perform layout planning on the macro cell based on the configuration file, and to reserve a channel area for adding a power switch unit during the layout planning process;
[0094] A power switch unit adding module 903, configured to add a power switch unit in the channel area based on a function command in the digital backend tool;
[0095] A traversal search module 904 is used to traverse the macro cells in a loop to find whether there is a channel area around each macro cell that meets the width requirement but has no power switch unit added; if so, add the corresponding power switch unit in the found channel area;
[0096] The power switch unit layout adjustment module 905 is used to check the added power switch units in all channel areas and adjust the layout of the power switch units.
[0097] It should be understood that the division of the various modules or units of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. Moreover, these modules or units can be implemented in the form of software calling through processing elements; they can also be implemented in the form of hardware; some modules or units can be implemented in the form of software calling through processing elements, and some modules or units can be implemented in the form of hardware.
[0098] For example, the above modules or units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0099] Since the implementation of the name disambiguation and achievement merging system of scientific research achievements in this embodiment is similar to the implementation of the automatic insertion method of the power switch unit avoiding the macro unit provided above, it will not be repeated here.
[0100] like Fig.10 As shown, a schematic diagram of the structure of an electronic terminal in an embodiment of the present application is shown. The electronic terminal 1000 provided in this example includes: a memory 1001 and a processor 1002. The memory 1001 is used to store a computer program; the processor 1002 runs the computer program to implement the automatic insertion method of the power switch unit avoiding the macro unit.
[0101] Optionally, the number of the memories 1001 may be one or more, and the number of the processors 1002 may be one or more.
[0102] Optionally, the processor 1002 in the electronic terminal 1000 may be configured as follows: Figure 1 The steps described above load one or more instructions corresponding to the process of the application program into the memory 1001, and the processor 1002 runs the application program stored in the first memory 1001, thereby realizing various functions of the method for automatically inserting the power switch unit of the macro unit avoidance.
[0103] Optionally, the memory 1001 may include but is not limited to high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices; the processor 1002 may include but is not limited to a central processing unit (CPU), a network processor (NP), etc.; it may also be 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, discrete hardware components.
[0104] Optionally, the processor 1002 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0105] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for automatically inserting a power switch unit that avoids a macro unit is implemented.
[0106] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0107] In the embodiments provided in the present application, the computer readable and writable storage medium may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals, or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
[0108] In summary, the present application provides a method, system, terminal and medium for automatically inserting a power switch unit that avoids a macro unit. The present application imports a configuration file based on a digital backend tool; performs layout planning on the macro unit based on the configuration file, and reserves a channel area for adding a power switch unit during the layout planning process; adds a power switch unit in the channel area based on a function command in the digital backend tool; loops through the macro unit to find out whether there is a channel area around each macro unit that meets the width requirements but has not added a power switch unit; if so, adds the corresponding power switch unit to the found channel area; checks the added power switch units in all channel areas and adjusts the layout of the power switch unit. The present application realizes the automatic and complete insertion of power switch units for a variety of scenarios under complex designs, and can also avoid the waste of resources caused by inserting too many power switch units, providing convenience for users; reducing the floorplan workload of users, improving user work efficiency and chip design efficiency. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0109] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for automatically inserting a power switch unit avoiding a macro unit, It is characterized in that include: Import configuration files based on digital backend tools; Performing layout planning on the macro unit based on the configuration file, and reserving a channel area for adding a power switch unit during the layout planning process; adding a power switch unit in the channel region based on a function command in the digital backend tool; Loop through the macro cells to find out whether there is a channel area around each macro cell that meets the width requirement but has no power switch unit added; If it exists, add the corresponding power switch unit in the found channel area; Check the added power switch units in all channel areas and adjust the layout of the power switch units; The layout of the power switch unit is adjusted according to whether the current power switch unit in the channel area optimally allocates power resources to the surrounding macro units; a number of power switch units with regular shapes are obtained by horizontal and / or vertical cutting, and a power switch unit that meets the power supply requirements of all surrounding macro units and optimizes the power supply resource allocation is extracted from them; the specific process includes the following: If the channel region around the macro unit has an irregular shape, the coordinates of the channel region with the irregular shape are obtained and merged to form a plurality of irregular polygons; each of the irregular polygons is cut longitudinally to obtain a plurality of first channel regions; If there is a first channel area that does not meet the width requirement for inserting the power switch unit in each of the first channel areas, then the first channel areas obtained by longitudinal cutting and the irregular polygons that do not meet the width requirement for inserting the power switch unit are transversely cut to obtain second channel areas; The obtained first channel area and second channel area that meet the width requirement for inserting the power switch unit are inserted into the power switch unit, so as to meet the power supply requirements of all surrounding macro units and optimize the power supply resource allocation; The layout of the power switch units is adjusted according to the positional relationship between adjacent power switch units.
2. The method for automatically inserting a power switch unit avoiding a macro unit according to claim 1, It is characterized in that The process of performing layout planning on the macrocell based on the configuration file includes: A standardization check is performed on the macro unit, and a layout adjustment is performed on the macro unit based on a result of the standardization check; the standardization check includes any one or more combinations of a spacing check, an integrity check, and an overlap check.
3. The method for automatically inserting a power switch unit avoiding a macro unit according to claim 1, It is characterized in that After performing layout planning on the macrocell based on the configuration file, the method further performs the following steps: A corner cell that meets the design rule check requirement is added around the macro cell, and a standard cell is added between the corner cell and the adjacent power switch cell.
4. The method for automatically inserting a power switch unit avoiding a macro unit according to claim 3, It is characterized in that The method of adding a standard unit between the corner unit and the adjacent power switch unit includes: Standard cells are added only between corner cells and power switch cells that meet the distance configuration requirements.
5. The method for automatically inserting a power switch unit avoiding a macro unit according to claim 1, It is characterized in that The method further comprises: The power switch units are connected in series according to a predefined rule to form one or more power switch chains; and traversing each of the power switch chains to perform connection relationship checks includes the following situations: Case 1: if the power switch units are connected in series to form a power switch chain, then the power switch chain is traversed to check whether the power switch units in the power switch chain are connected in sequence and the connections do not overlap; Case 2: If the power switch units are connected in series to form multiple power switch chains, each of the power switch chains is traversed to check to determine that each of the power switch chains meets the power supply requirements of the macro unit and is connected in sequence without overlapping.
6. An automatic insertion system for power switch units that avoids macro units, It is characterized in that include: Profile import module, used to import profiles based on digital backend tools; A macrocell layout planning module, used for performing layout planning on the macrocell based on the configuration file, and reserving a channel area for adding a power switch unit during the layout planning process; A power switch unit adding module, used for adding a power switch unit in the channel area based on a function command in the digital backend tool; A traversal search module is used to traverse the macro units in a loop to find whether there is a channel area around each macro unit that meets the width requirement but has no power switch unit added; if so, add the corresponding power switch unit in the found channel area; A power switch unit layout adjustment module is used to check the power switch units that have been added in all channel areas and adjust the layout of the power switch units; The layout of the power switch unit is adjusted according to whether the current power switch unit in the channel area optimally allocates power resources to the surrounding macro units; a number of power switch units with regular shapes are obtained by horizontal and / or vertical cutting, and a power switch unit that meets the power supply requirements of all surrounding macro units and optimizes the power supply resource allocation is extracted from them; the specific process includes the following: If the channel region around the macro unit has an irregular shape, the coordinates of the channel region with the irregular shape are obtained and merged to form a plurality of irregular polygons; each of the irregular polygons is cut longitudinally to obtain a plurality of first channel regions; If there is a first channel area that does not meet the width requirement for inserting the power switch unit in each of the first channel areas, then the first channel areas obtained by longitudinal cutting and the irregular polygons that do not meet the width requirement for inserting the power switch unit are transversely cut to obtain second channel areas; The obtained first channel area and second channel area that meet the width requirement for inserting the power switch unit are inserted into the power switch unit, so as to meet the power supply requirements of all surrounding macro units and optimize the power supply resource allocation; The layout of the power switch units is adjusted according to the positional relationship between adjacent power switch units.
7. An electronic terminal, It is characterized in that include: Processor and memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so as to enable the electronic terminal to perform the method for automatically inserting a power switch unit for avoiding macro units according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for automatically inserting a power switch unit avoiding a macro unit according to any one of claims 1 to 5 is implemented.
