On-chip power switch setting method, computer equipment and storage medium

By determining the position and connection mode of the power switch in the target area in the on-chip power switch setting method, and performing insertion and connection simultaneously, the problem of time-consuming power switch planning and connection in the existing technology is solved, and the design efficiency and user experience are improved. .

CN118504512BActive Publication Date: 2024-10-11CORE TRAVEL (SHANGHAI) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410957773.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-11
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

In complex chip design scenarios with existing on-chip power shutdown technology, the planning and connection process of the power switch consumes a lot of time and resources, affecting design efficiency.

Method used

By obtaining the chip design layout and design information, the placement position and connection method of the power switch in the target area are determined, and the power switch insertion and switch chain connection are synchronized to achieve one-time synchronization operation.

Benefits of technology

It reduces the waste of design resources, improves design efficiency and user experience, and ensures that the placement and connection tasks of power switches can be completed efficiently while meeting design requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504512B_ABST
    Figure CN118504512B_ABST
Patent Text Reader

Abstract

The present application provides an on-chip power switch setting method, computer equipment and storage medium. The method includes: obtaining a chip design layout and design information; determining a target area according to the chip design layout; determining the placement of a power switch in the target area according to the design information; wherein the target area includes multiple power switches; determining a connection mode of the power switch according to the design information, and planning a switch chain connection of the power switch according to the connection mode and placement position; and inserting the power switch and connecting the switch chain simultaneously according to the placement position and the switch chain connection plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of chip layout planning, and in particular to an on-chip power switch setting method, a computer device and a storage medium. Background Art

[0002] With the advancement of integrated circuit design technology and the development of manufacturing processes, power consumption has become an important factor affecting chip applications. Power consumption is inevitable during chip operation. Only by turning off the power supply can power consumption be completely stopped. Therefore, chip engineers use on-chip power shutdown technology to achieve the purpose of reducing chip power consumption.

[0003] In the implementation of related on-chip power shutdown technology, designers usually use electronic design automation tools to gradually complete the planning, insertion and position optimization of power switches according to specific constraint requirements and design processes. This implementation method requires the insertion and connection of power switches to be completed step by step and multiple times, which will consume more running time and iterative optimization time in increasingly complex chip design scenarios, resulting in a lot of resource waste and seriously affecting design efficiency. Summary of the invention

[0004] In view of this, the present application proposes an on-chip power switch setting method, a computer device and a storage medium to solve or partially solve the above problems.

[0005] Based on the above objectives, in a first aspect, the present application provides an on-chip power switch setting method, comprising:

[0006] Obtain chip design layout and design information;

[0007] Determine a target area according to the chip design layout;

[0008] Determine the placement position of the power switch in the target area according to the design information; wherein the target area includes a plurality of the power switches;

[0009] Determine a connection mode of the power switch according to the design information, and plan a switch chain connection of the power switch according to the connection mode and the placement position;

[0010] According to the placement position and the switch chain connection plan, the power switch is inserted and the switch chain is connected simultaneously.

[0011] In a second aspect of the present application, a computer device is provided, comprising one or more processors, a memory; and one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, and the program includes instructions for executing the method described in the first aspect.

[0012] According to a third aspect of the present application, a non-volatile computer-readable storage medium containing a computer program is provided. When the computer program is executed by one or more processors, the processors execute the method described in the first aspect.

[0013] From the above, it can be seen that the present application provides an on-chip power switch setting method, computer equipment and storage medium. The present application first determines the target area where the power switch needs to be set, and then adjusts and determines the position of the power switch of each row / column in the target area through design information, and then determines the connection method of the power switch according to the design information, and performs switch chain connection planning according to the corresponding connection rules. Finally, the power switch can be placed and the switch chain can be connected synchronously according to the placement position of each power switch and the switch chain connection planning. In this way, the placement and connection tasks can be directly performed synchronously at one time under the premise of meeting the design requirements, reducing resource waste during design, and improving the overall design efficiency and the overall user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0015] Figure 1 A schematic diagram of the hardware structure of an exemplary computer device provided in an embodiment of the present application is shown.

[0016] Figure 2 A basic structural diagram of an EDA tool according to an embodiment of the present application is shown.

[0017] Figure 3 A schematic diagram showing a basic execution flow of a calculation command of an EDA tool according to an embodiment of the present application is shown.

[0018] Figure 4 A flow chart of an exemplary method provided according to an embodiment of the present application is shown.

[0019] Figure 5A schematic diagram is shown of placing power switches in a first area of ​​a target area according to an exemplary method provided in an embodiment of the present application.

[0020] Figure 6 A schematic diagram is shown of placing power switches in a first area and a third area of ​​a target area according to an exemplary method provided in an embodiment of the present application.

[0021] FIG. 7( a ) shows a schematic diagram of serial connection of power switches provided in an embodiment of the present application.

[0022] FIG7( b ) shows a schematic diagram of parallel connection of power switches provided in accordance with an embodiment of the present application.

[0023] FIG7( c ) shows a schematic diagram of tree-shaped connection of power switches according to an embodiment of the present application.

[0024] FIG7( d ) shows a schematic diagram of a star connection of power switches according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of this specification more clear, this specification is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0026] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements, objects or method steps appearing before the word cover the elements, objects or method steps listed after the word and their equivalents, without excluding other elements, objects or method steps. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0027] Figure 1 The schematic diagram of the structure of a computer device 100 provided in an embodiment of the present application is shown. The computer device 100 may include: a processor 102, a memory 104, a network interface 106, a peripheral interface 108 and a bus 110. The processor 102, the memory 104, the network interface 106 and the peripheral interface 108 are connected to each other in communication within the device through the bus 110.

[0028] Processor 102 may be a central processing unit (CPU), an image processor, a neural network processor (NPU), a microcontroller (MCU), a programmable logic device, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or one or more integrated circuits. Processor 102 may be used to perform functions related to the technology described in this application. In some embodiments, processor 102 may also include multiple processors integrated into a single logical component. Figure 1 As shown, the processor 102 may include a plurality of processors 102a, 102b, and 102c.

[0029] The memory 104 may be configured to store data (eg, instruction sets, computer codes, intermediate data, etc.). Figure 1 As shown, the stored data may include program instructions (e.g., program instructions for implementing the technical solution of the present application) and data to be processed. The processor 102 may also access the stored program instructions and data, and execute the program instructions to operate on the data to be processed. The memory 104 may include a volatile storage device or a non-volatile storage device. In some embodiments, the memory 104 may include a random access memory (RAM), a read-only memory (ROM), an optical disk, a magnetic disk, a hard disk, a solid-state drive (SSD), a flash memory, a memory stick, etc.

[0030] The network interface 106 can be configured to provide the computer device 100 with communication with other external devices via a network. The network can be any wired or wireless network capable of transmitting and receiving data. For example, the network can be a wired network, a local wireless network (e.g., Bluetooth, WiFi, near field communication (NFC), etc.), a cellular network, the Internet, or a combination thereof. It is understood that the type of network is not limited to the above specific examples. In some embodiments, the network interface 106 can include any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, etc., in any combination.

[0031] The peripheral interface 108 may be configured to connect the computer device 100 to one or more peripheral devices to implement information input and output. For example, the peripheral devices may include input devices such as a keyboard, a mouse, a touch pad, a touch screen, a microphone, and various sensors, and output devices such as a display, a speaker, a vibrator, and an indicator light.

[0032] The bus 110 may be configured to transmit information between various components of the computer device 100 (e.g., the processor 102, the memory 104, the network interface 106, and the peripheral interface 108), such as an internal bus (e.g., a processor-memory bus), an external bus (USB port, PCI-E bus), etc.

[0033] It should be noted that, although the above device only shows the processor 102, the memory 104, the network interface 106, the peripheral interface 108 and the bus 110, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0034] Figure 2 A basic structural diagram of an EDA tool 200 according to an embodiment of the present application is shown.

[0035] like Figure 2 As shown, the part above the dotted line is the user part; the part below the dotted line is the EDA tool 200, which can be Figure 1 The device 100 shown is implemented. In some embodiments, the EDA tool 200 can be implemented as EDA software. More specifically, the EDA tool 200 can be software for performing placement and routing based on chip design. The simulation tool 200 may include a Tcl command (or a graphic / window interface) module 204, various calculation modules (e.g., a Place calculation module 206, a Route calculation module 208, an Optimization calculation module 210, etc.) and a database system 212. The user 202 can operate the EDA tool 200 by entering relevant commands in the Tcl command (or graphic / window interface) module 204.

[0036] The Tcl command module 204 mainly performs the functions of message transmission or command transmission. The Tcl command module 204 can read the instructions input by the user 202 to the simulation tool 200, and can distribute and transmit the instructions to the corresponding computing modules to perform specific tasks according to the specific contents of the instructions.

[0037] According to different computing tasks, each computing module can be divided into, for example, a Place computing module 206, a Route computing module 208, an Optimization computing module 210, etc. The Place computing module 206 can be used to calculate a reasonable placement position for all components, the Route computing module 208 can be used to calculate a reasonable wire connection method between each component, and the Optimization computing module 210 can be used to optimize the placement position and wire connection method between each component. The computing process of these computing modules can be, for example, Figure 1 is performed in the processor 102.

[0038] The database system 212 can be used to completely and comprehensively record and store all information of the chip being simulated or designed (such as location, direction, size, structure, wire connection method, etc.). This information, for example, can be stored in Figure 1 in the memory 104.

[0039] Figure 3 FIG. 3 shows a basic execution flow 300 of a calculation command of an EDA tool 200 according to an embodiment of the present application. Figure 3 As shown, in step 302, the user 202 can issue a command (e.g., do_place command) to the EDA tool 200 through the command interface or graphical user interface (GUI) provided by the Tcl command module 204. Then, in step 304, the Tcl command module 204 parses this command and distributes it to the corresponding calculation module (e.g., Place calculation module 206). In step 306, each calculation module performs the specific calculation required by each. During this period, as shown in step 308, each calculation module needs to (high frequency, repeatedly) retrieve data from the database system 212 for calculation. After the calculation is completed, as shown in step 310, each calculation module can write the calculation result into the database system 212 and return the calculation result to the Tcl command module 204. In step 312, the Tcl command module 204 returns the calculation result to the user 202 through the command interface or graphical user interface (GUI), and the EDA tool 200 ends the processing process of a calculation command. In step 314, the user can evaluate according to the calculation result and then determine the next plan.

[0040] In the chip layout planning and design of related technologies, designers have an increasingly strong demand for reducing chip power consumption. Chip engineers use on-chip power shutdown technology to cut off the power supply of high-power consumption modules or low-frequency modules on the chip to achieve the purpose of reducing chip power consumption. In the on-chip power shutdown technology, the planning and insertion of the gated power switches involved, as well as the connection and optimization of the switch chain are important technical means to complete the on-chip power shutdown technology. Here, the on-chip power shutdown technology is a way to reduce the static power consumption of the chip, mainly by shutting off the power supply voltage of certain areas or certain sub-modules in the chip that do not need to work temporarily, thereby achieving the purpose of reducing chip power consumption.

[0041] In the relevant on-chip power shutdown technology implementation methods, designers usually use electronic design automation tools to complete the planning, insertion and position optimization of power switches step by step according to specific constraint requirements and design processes. After the power switches are placed in the corresponding positions according to the design requirements, the physical coordinates of the power switch units are analyzed, and then additional steps are performed to complete the connection and optimization of different power switch chains. The insertion of power switches and the connection of switch chains are completed step by step and multiple times. At the same time, due to the diversity of chip layout shapes and the influence of layout fine channels brought by macro units, the existing step-by-step power switch planning, insertion and switch chain connection process will consume more running time and iterative optimization time in complex chip design scenarios. For irregular polygonal power domains and a large number of layout fine channel designs, it cannot guarantee the quality of power switch chain connection and the shortest line length target, and will occupy more on-chip winding resource overhead. Here, the power domain refers to the logical range and physical range planned by the power switch on the chip.

[0042] In view of this, the present application proposes an on-chip power switch setting scheme. The present application first determines the target area where the power switch needs to be set, and then adjusts and determines the position of the power switch of each row / column in the target area through design information, and then determines the connection mode of the power switch according to the design information, and performs switch chain connection planning according to the corresponding connection rules, and finally, the power switch can be placed and the switch chain can be connected synchronously according to the placement position of each power switch and the switch chain connection planning, so that the placement and connection tasks can be directly performed synchronously at one time under the premise of meeting the design requirements, reducing resource waste during design, and improving the overall design efficiency and the overall user experience.

[0043] Figure 4 FIG. 4 is a flow chart of an exemplary method 400 provided in an embodiment of the present application. The method 400 may be Figure 1 The computer device 100 is implemented and can be implemented as Figure 2 A portion of the functionality of the EDA tool 200. Figure 4As shown, the method 400 may further include the following steps.

[0044] Step 402, obtaining chip design layout and design information.

[0045] Generally, the chip design layout includes each layer of chip processing structure, specific transistor layout, wiring, routing, channel via interlayer connection position, etc. According to the chip design layout, the chip processing service provider can directly run and carry out batch processing and production of chips. Furthermore, the chip design layout itself is drawn step by step, accompanied by various optimizations, and finally the entire chip design layout is completed. In the early stage of the chip design layout, it may only indicate the functional information of the hierarchy, such as a certain layer is a routing layer, a certain layer is an insulating layer, etc.; or only various functional components are set, indicating the position, size and other information of each functional component. After that, EDA tools are used to carry out step-by-step design and optimization, and finally a complete version of the chip design layout is formed.

[0046] In this step, since the on-chip power switch needs to be set, the chip design layout may still be a relatively initial version, which only contains relatively early data such as chip hierarchy relationships, hierarchy functions, and design locations of standard units (generally functional unit cells, ports FTerm, etc.). In specific application scenarios, initial data information such as hierarchy structure and component location can be obtained through the DEF (Design Exchange File, physical information of the design library) file and / or LEF (Library Exchange File, physical information of the process library) file of the chip design layout. In the chip design board of this embodiment, Figure 1 Generally, it is necessary to mark out the core area for power switch settings, the component area (or macro unit area), the previously laid out blocking area, and the channel area (mainly located between component areas, between blocking areas, and between component areas and blocking areas, etc.).

[0047] In addition, in this step, the chip design layout can be local (for example, the entire design layout is divided into a large number of sub-areas) or overall.

[0048] After that, the design information is the required information for the power switch settings. Chip designers can generally set the information in advance through the low-power design files and mode configuration commands set in advance. In specific scenarios, it is generally necessary to define the corresponding logical information and physical information for the deployment of the power switch. If the low-power design file is missing, the user can use the mode configuration command to complete the logical information and physical information required for power switch planning, connection and other actions. That is, through the mode configuration command, the design information is written in advance.

[0049] Here, we first briefly describe the on-chip power switch. The on-chip power switch is a logical unit for implementing the on-chip power shutdown technology in the chip physical design. From the design structure, it can be divided into coarse-grained power switches and fine-grained power switches. This embodiment is mainly applied to the on-chip deployment of coarse-grained power switches. The coarse-grained power switch is generally composed of four ports, namely, the input power terminal, the output power terminal, the shutdown control signal terminal and the shutdown confirmation signal terminal. There are two pairs of the shutdown control signal terminal and the shutdown confirmation signal terminal in some power switch units. The planning and insertion of the on-chip power switch is to plan and place the coarse-grained power switch in the physical layout of the chip according to the specified horizontal spacing, vertical spacing and quantity requirements in the physical implementation of the chip. Generally, it is required to be evenly distributed according to specific rules, avoid the macro unit area and the layout blocking area, and at the same time meet the distribution requirements and quantity requirements in the fine channel of the layout. The on-chip power switch chain connection is to connect the shutdown control signal terminal and the shutdown confirmation signal terminal of the planned and inserted on-chip power switch in a specific connection method. Depending on the design requirements, the connection method includes but is not limited to serial connection, parallel connection, tree connection and star connection. The layout fine channel here (i.e. the aforementioned channel area) is the fine channel caused by the spacing distribution of macro units such as storage modules or IP modules in the chip layout. When planning and inserting on-chip power switches, these layout fine channels need to be taken into account and the power switches need to be inserted as required.

[0050] In a specific embodiment, the above-mentioned logical information includes the power domain to which the power switch belongs, the connection content of the input power terminal, the connection content of the output power terminal, the connection content of the shutdown control signal terminal, and the connection content of the shutdown confirmation signal terminal. The physical information includes the use type of the power switch, the planning area, the planning area boundary offset, the horizontal spacing, the vertical spacing, the number of planned rows, the number of planned columns, the parity of the number of power switches in the first row or the first column when arranged in a chessboard style (chess form, the power switches are arranged at intervals), and the connection mode of the switch chain, including but not limited to serial connection, parallel connection, tree connection, star connection and intelligent connection. The connection mode of the switch chain is realized through the switch chain connection control information, including the first movement direction of starting the connection chain, the connection movement direction in the row direction and the connection movement direction in the column direction, etc. The connection movement direction (row or column) is set based on the dynamic coordinate system, and the connection movement direction and the switch chain connection mode jointly realize the above-mentioned different modes of switch chain connection.

[0051] Finally, in some embodiments, the power switch is not limited to the type having only one shutdown control signal terminal and one shutdown confirmation signal terminal, but can also be expanded to the type having multiple shutdown control signal terminals and multiple shutdown confirmation signal terminals.

[0052] Step 404, determining a target area according to the chip design layout.

[0053] In this step, after obtaining the chip design layout, the physical information of the chip layout can be modeled using corresponding tools (such as amazeSys tools, etc.), and the power domain boundary shape of the power switch to be planned is extracted to form a target area for on-chip power switch settings.

[0054] In some embodiments, corresponding tools can be used to construct several subdivided areas such as the standard cell core area, macro cell area, layout blocking area and layout fine channel area for setting the on-chip power switch. The core area here can be understood as a larger area where the power switch is centrally set, and the macro cell area and the layout blocking area are equivalent to the obstacle area in this scenario. The power switch cannot be set in these areas, and the layout fine channel area is the channel area, that is, the gap area between different obstacle areas. Of course, when designing these areas, if the channel area is formed, then according to the corresponding design rules, the channel area needs to have at least a size that meets the requirements of a row or a column of power switches. In a specific scenario, the judgment rule of the core area can be determined by the preset gap length threshold and gap width threshold. If the overall length of an area is long enough and the width is wide enough, it can be used as the core area of ​​the power switch. After that, since the core area and the channel area are both used for the on-chip power switch setting, the two areas can form a target area together. Of course, in some embodiments, the target area itself can be set in advance, or it can be divided and spliced ​​according to the above. That is, in some embodiments, the target area is determined according to the chip design layout, including: determining at least one first area and at least two second areas according to the chip design layout; determining at least one third area between the at least two second areas; and using the at least one first area and the at least one third area as the target area. The first area may correspond to the aforementioned core area, the second area may correspond to the aforementioned macro unit area and the obstacle area corresponding to the layout blocking area, and the third area may correspond to the aforementioned channel area.

[0055] Step 406: Determine the placement of the power switch in the target area according to the design information; wherein the target area includes a plurality of the power switches.

[0056] In this step, it is necessary to determine the placement of the power switch in the target area, which can be set mainly according to the horizontal spacing and vertical spacing in the design information, and then adjusted according to the boundary offset of the planned area. Of course, in some embodiments, it may not be necessary to adjust by the boundary offset, and the target area itself is relatively regular.

[0057] In some embodiments, the target area generally includes a plurality of the power switches. Figure 5 As shown, it is the arrangement of power switches in a core area, where the rectangular area filled with diagonal lines represents individual power switches. It can be seen that each row or column of power switches in a general core area only needs to be arranged according to the horizontal spacing or vertical spacing to form a relatively neat array arrangement. However, whether it is the core area of ​​the target area or the channel area, its own range does not necessarily meet the integer multiples of the horizontal spacing or vertical spacing. For example, the core area to the edge may only be able to fit half the width of the horizontal spacing, etc. At this time, it is necessary to adjust the position of a whole row or column of power switches through the boundary offset (when setting the position of the power switch, generally a whole column or a whole row is adjusted to align the power switches in a whole column or a whole row). If another row of power switches can be placed according to the boundary offset, it can be set, and if it cannot be placed, it will not be set. Similarly, for the channel area, since its formation is more dependent on the position of the obstacle area, its area may conflict with the power switches originally arranged in an array. For example, the power switches are close to the obstacle area or even overlap. Therefore, the position of the entire row or column can be fine-tuned according to the boundary offset. Of course, in some embodiments, if the target area is relatively regular, it may not be adjusted according to the boundary offset. Similarly, in some embodiments, it may not be adjusted according to corresponding requirements, and the conflicting parts may be discarded. Figure 6 As shown, the core area is the first area, the obstacle area corresponds to the second area, the channel area corresponds to the third area, and the rectangular areas filled with oblique lines represent power switches.

[0058] That is, in some embodiments, the determination of the placement position of the power switch in the target area includes: determining the horizontal spacing and the vertical spacing of the power switches according to the design information, and arranging the power switches in the target area according to the horizontal spacing and the vertical spacing to obtain the placement position. In some embodiments, after arranging the power switches in the target area according to the horizontal spacing and the vertical spacing, the method further includes: determining the boundary offset of the power switches according to the design information, and adjusting the position of a whole row or a whole column of the power switches located at the edge of the first area; adjusting the position of at least one whole row or at least one whole column of the power switches located in any of the third areas according to the boundary offset.

[0059] It should be emphasized that here the third area (i.e., the channel area) is not necessarily connected to the first area (i.e., the core area), that is, a third area may form an isolated island. For such a third area, its essence does not affect the execution of this embodiment. It is only necessary to connect the power switch therein with other power switches in its row or column through logic lines or metal lines, etc.

[0060] In a specific application scenario, the order of step 404 and step 406 itself is relatively vague. For example, in some specific embodiments, several subdivided areas such as the standard cell core area, the macro cell area, the layout blocking area, and the layout fine channel area are constructed. The core area can be first planned into several distribution grids according to the aforementioned horizontal spacing and vertical spacing, and these distribution grids can be further corrected by the area boundary offset. The rows and columns start from the lower left corner of the physical layout boundary box, the horizontal spacing corresponds to the spacing between the power switch columns, and the vertical spacing corresponds to the spacing between the power switch rows. Figure 5 Afterwards, the macrocell area and layout blocking area of ​​the obstacle area are still divided into the planned distribution grid, but the power switches are not planned and placed in the area, and the power switch chain connection is avoided as much as possible to pass through the area, as shown in the following figure. Figure 6 As shown. Finally, for the layout fine channel area, it can be determined whether to splice it with the above-mentioned standard cell core area based on its shape and size. If it can be spliced ​​with the standard cell core area, it is merged with the boundary of the standard cell core area to form a new standard cell core area. If it cannot be spliced ​​with the standard cell core area, the number of power switches planned to be inserted in this layout fine channel area is automatically determined based on the aforementioned horizontal spacing and vertical spacing, and the number of rows or columns is not less than one row or one column.

[0061] Finally, in some embodiments, since in chip design, the size or spacing of the power switch is expressed by a minimum unit, analogous to a two-dimensional coordinate system, for example, a power switch occupies two units, and the spacing requires three units, etc. The minimum unit here is the minimum grid point allowed for the placement of the power switch. Furthermore, when setting the power switch, its corresponding horizontal spacing or vertical spacing needs to satisfy that its value is an integer multiple of the minimum grid point, and if not, it is necessary to modify the value of the horizontal spacing or vertical spacing to satisfy an integer multiple of the minimum grid point. That is to say, in some embodiments, the planned distribution grid of the power switch is jointly determined by the horizontal spacing and the vertical spacing. When the horizontal spacing value or the vertical spacing value is not an integer multiple of the minimum grid point allowed for the placement of the power switch, the spacing value can be automatically adjusted to an integer multiple of the minimum grid point for placement. That is, in some embodiments, before determining the lateral spacing and longitudinal spacing of the power switch according to the design information, the method further includes: determining the minimum grid point of the power switch according to the design information, and determining whether the lateral spacing and the longitudinal spacing are integer multiples of the minimum grid point; in response to the lateral spacing not being an integer multiple of the minimum grid point, adjusting the lateral spacing according to the minimum grid point; and / or in response to the longitudinal spacing not being an integer multiple of the minimum grid point, adjusting the longitudinal spacing according to the minimum grid point.

[0062] Step 408: Determine the connection mode of the power switch according to the design information, and plan the switch chain connection of the power switch according to the connection mode and the placement position.

[0063] In this embodiment, after the planning of the positions of the power switches is completed, the next step is to connect these power switches to form a switch chain, and the connection methods of the switch chain here mainly include but are not limited to serial connection, parallel connection, tree connection, star connection, intelligent connection, etc. Taking serial connection as an example, here the shutdown control signal terminal and the shutdown confirmation signal terminal of the power switch are connected end to end in sequence, that is, the shutdown confirmation signal terminal of the previous power switch is connected to the shutdown control signal terminal of the next power switch, the shutdown control signal terminal of the front power switch is connected to the signal input port, and the shutdown confirmation signal terminal of the last power switch is connected to the signal output port.

[0064] The connection mode of the power switch is included in the design information, which is generally set by the designer when making the corresponding design. It can be selected from one of serial connection, parallel connection, tree connection, star connection, intelligent connection, etc.

[0065] In some embodiments, as shown in FIG. 7 (a), when the connection mode of the power switch is a serial connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: determining the first movement direction of the power switch according to the design information, and slicing the target area according to the first movement direction; determining the lateral connection movement direction and the longitudinal connection movement direction of the power switch according to the design information, and determining the first starting position and the first connection path of the switch chain in combination with the sliced ​​target area and the placement position, thereby generating the switch chain connection planning.

[0066] Specifically, serial connection means connecting the shutdown control signal terminals and shutdown confirmation signal terminals of all power switches end to end in sequence to form a switch chain with the longest global length, and at the same time ensuring that the distance between every two connected power switches is the shortest, where the starting position and starting direction of the switch chain are determined by the first moving direction of the startup connection chain mentioned above, and the connection direction of the switch chain is determined by the connection moving direction in the row direction (or called the horizontal connection moving direction) and the connection moving direction in the column direction (or called the vertical connection moving direction). In this embodiment, when the power switch chain connection mode is serial connection, the planned distribution grid can be divided into global horizontal or global vertical according to the first moving direction of the startup connection chain defined by the user, that is, the target area is sliced. After the segmentation is completed, the starting position of the switch chain and the direction of sequential end-to-end connection are jointly determined according to the connection moving direction in the row direction and the connection moving direction in the column direction defined by the user. When the first moving direction of the startup connection chain is the column direction, the planned distribution grid is segmented according to the global vertical direction, and then the starting position and connection direction (connection path) of the serial connection switch chain are jointly determined by the connection moving direction in the row direction and the connection moving direction in the column direction defined by the user. When the first movement direction of the startup connection chain is the row direction, the planned distribution grid is divided globally horizontally, and then the starting position and connection direction (connection path) of the serial connection switch chain are jointly determined by the user-defined row direction connection movement direction and column direction connection movement direction.

[0067] In some embodiments, as shown in FIG. 7 (b), when the connection mode of the power switch is a parallel connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: determining the first movement direction of the power switch according to the design information, and slicing the target area according to the first movement direction; determining the lateral connection movement direction or the longitudinal connection movement direction of the power switch according to the design information, and determining the second starting position and the second connection path of the switch chain in combination with the sliced ​​target area and the placement position, thereby generating the switch chain connection planning.

[0068] Specifically, parallel connection means connecting the shutdown control signal terminal and the shutdown confirmation signal terminal of each row or column of the power switch in sequence end to end to form a switch chain with the longest local length in the row or column, and at the same time ensuring that the distance between each two connected power switches is the shortest, where the starting position and starting direction of the switch chain are determined by the first moving direction of the aforementioned startup connection chain, and the connection direction of the switch chain is determined by the connection moving direction in the row direction (or called the horizontal connection moving direction) or the connection moving direction in the column direction (or called the vertical connection moving direction). In this embodiment, when the power switch chain connection mode is parallel connection, the planned distribution grid can be divided into global horizontal or global vertical according to the first moving direction of the startup connection chain defined by the user, that is, the target area is sliced. After the segmentation is completed, the starting position of the switch chain and the direction in which each row or column is connected end to end are determined according to the connection moving direction in the row direction or the connection moving direction in the column direction defined by the user. When the first movement direction of the startup connection chain is the column direction, the planned distribution grid is divided according to the global longitudinal direction, and then the starting position and connection direction (connection path) of the parallel connection switch chain are determined by the user-defined column direction of the connection movement direction. When the first movement direction of the startup connection chain is the row direction, the planned distribution grid is divided according to the global horizontal direction, and then the starting position and connection direction (connection path) of the parallel connection switch chain are determined by the user-defined row direction of the connection movement direction.

[0069] In some embodiments, as shown in FIG7 (c), when the connection mode of the power switch is a tree connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: determining the first moving direction of the power switch according to the design information, and slicing the target area according to the first moving direction; determining the power switch located in the middle of each slice as the trunk switch according to the placement position, and determining the third connection path and the third starting position of the connection between the trunk switches of each slice according to the first moving direction; taking the trunk switch of each slice as the fourth starting position of other power switches on each slice, determining the horizontal connection movement direction or the vertical connection movement direction of the power switch according to the design information, and combining the target area after slicing and the fourth starting position, determining the fourth connection path of other power switches on each slice, thereby generating the switch chain connection planning. The third connection path here is used to determine the connection mode of the trunk switch, and the fourth connection path is used to determine the connection mode of the power switch belonging to the branch in each slice.

[0070] Specifically, the tree connection refers to connecting the shutdown control signal end and the shutdown confirmation signal end of the power switch in the center of each row or column in sequence to form a tree trunk, and the remaining power switches in the row or column where the tree trunk is located are connected to the two sides of the tree trunk in sequence, and at the same time ensure that the distance between every two connected power switches is the shortest. Here, the starting position and starting direction of the switch chain are determined by the first moving direction of the aforementioned startup connection chain, and the connection direction of the switch chain is determined by the connection moving direction in the row direction (or called the horizontal connection moving direction) and the connection moving direction in the column direction (or called the vertical connection moving direction). In this embodiment, when the power switch chain connection mode is a tree connection, the amazeSys tool divides the planned distribution grid into a global horizontal or global vertical direction according to the first moving direction of the startup connection chain defined by the user, that is, slices the target area. After the segmentation is completed, the grid in the center of each slice is defined as a tree trunk, and the starting position of the tree trunk switch chain and the direction in which the tree trunk is connected in sequence (the third link path) are determined according to the connection moving direction in the row direction or the connection moving direction in the column direction defined by the user. When the first movement direction of the startup connection chain is the column direction, the planned distribution grid is divided into global horizontal sections, and the grid in the center of each horizontal slice is identified as the tree trunk, and then the starting position and connection direction (fourth connection path) of the tree trunk switch chain are determined by the user-defined column direction connection movement direction. When the first movement direction of the startup connection chain is the row direction, the planned distribution grid is divided into global vertical sections, and the grid in the center of each vertical slice is identified as the tree trunk, and then the starting position and connection direction (fourth connection path) of the tree trunk switch chain are determined by the user-defined row direction connection movement direction.

[0071] In some embodiments, as shown in FIG. 7 (d), when the connection mode of the power switch is a star connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: determining the signal input port position according to the design information, and connecting each of the power switches to the signal input port position according to the placement position.

[0072] Specifically, the star connection means that the shutdown control signal terminals of all power switches are connected together, and the shutdown confirmation signal terminals thereof are not connected. In this embodiment, when the power switch chain connection mode is a star connection, the first movement direction of the startup connection chain defined by the user, the connection movement direction in the row direction, and the connection movement direction in the column direction can be ignored, and the shutdown control signal terminals of all power switches can be directly connected together and connected to the total signal input port, and the shutdown confirmation signal terminals thereof are not connected.

[0073] In some embodiments, when the connection mode of the power switch is intelligent connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: determining the signal input port position and the signal output port position according to the design information; determining the fifth starting position of the switch chain according to the placement position and the signal input port position; determining the end position of the switch chain according to the placement position and the signal output port position; determining the fifth connection path of the switch chain according to the placement position, the fifth starting position and the end position, thereby generating the switch chain connection planning. The intelligent connection mode here is similar to the serial connection mode, wherein the intelligent connection is due to the fact that the signal input port position and the signal output port position are not ideal. If the serial connection is used, a longer wire needs to be designed (for example, as shown in FIG7 (a), assuming that the signal input port position is located in the lower right corner, the power switch to be connected to the starting position needs to be connected to a longer wire first). Furthermore, the starting position, the end position and the connection direction of the switch chain can be intelligently adjusted to form an intelligent connection.

[0074] Specifically, intelligent connection means connecting the shutdown control signal terminals and shutdown confirmation signal terminals of all power switches end to end in sequence to form a switch chain with the longest global length, and at the same time ensuring that the distance between every two connected power switches is the shortest. Here, the starting position and starting direction of the switch chain can be automatically determined by the corresponding tool (such as the amazeSys tool), and the row movement direction and column movement direction of the switch chain can also be automatically determined by the corresponding tool (such as the amazeSys tool). In this embodiment, when the power switch chain connection mode is intelligent connection, the user-defined first movement direction of the startup connection chain, the row connection movement direction, and the column connection movement direction can be ignored. It can automatically find the best starting position for the switch chain connection according to the location of the shutdown control signal source (i.e., the signal input port). Then, according to the location of the shutdown confirmation signal source (i.e., the signal output port), the optimal end position of the switch chain connection is automatically found, and the connection movement direction of the switch chain in the row direction and the column direction is automatically determined. It connects the shutdown control signal terminals and the shutdown confirmation signal terminals of all power switches end to end in sequence (i.e., forms the fifth connection path), forming a switch chain with the longest global length, and at the same time ensures that the distance between every two connected power switches is the shortest.

[0075] Finally, in some embodiments, for serial connection, parallel connection, tree connection, star connection, smart connection and other connection modes, the placement of the power switches can allow each row or column to be staggered in a checkerboard format, wherein the parity of the number of power switches in the first row or first column is controllable. For parallel connection, the shutdown confirmation signal terminals of the last stage output of each row or column can be connected successively through a multi-input logic unit to form a funnel logic of the shutdown confirmation signal.

[0076] Step 410 , according to the placement position and the switch chain connection plan, the power switch is inserted and the switch chain is connected simultaneously.

[0077] In this step, after planning the placement of each power switch and the specific connection mode of the switch chain, the power switch can be inserted and the switch chain can be connected synchronously. In a specific embodiment, the amazeSys tool can be used to insert a user-specified type of power switch on the planned distributed grid node, and the shutdown control signal terminal and the shutdown confirmation signal terminal of the power switch are connected according to the user-specified switch chain connection mode, wherein the planned insertion of the on-chip power switch and the switch chain connection are performed synchronously.

[0078] As can be seen from the above, an on-chip power switch setting method provided by an embodiment of the present application. The present application first determines the target area where the power switch needs to be set, and then adjusts and determines the position of the power switch of each row / column in the target area through design information, and then determines the connection mode of the power switch according to the design information, and performs switch chain connection planning according to the corresponding connection rules, and finally, the power switch can be placed and the switch chain can be connected synchronously according to the placement position of each power switch and the switch chain connection planning, so that the placement and connection tasks can be directly performed synchronously at one time under the premise of meeting the design requirements, reducing resource waste during design, and improving the overall design efficiency and the overall user experience.

[0079] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of the embodiment of the present application can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0080] It should be noted that the above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0081] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-volatile computer-readable storage medium containing a computer program, wherein the non-volatile computer-readable storage medium containing a computer program stores computer instructions, and the computer instructions are used to enable the computer to execute method 400 described in any of the above embodiments.

[0082] The computer-readable storage medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0083] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method 400 described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0084] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a computer program product, which includes a computer program. In some embodiments, the computer program is executable by one or more processors so that the processors execute the described method 400. Corresponding to the execution subject corresponding to each step in each embodiment of the method 400, the processor that executes the corresponding step may belong to the corresponding execution subject.

[0085] The computer program product of the above embodiment is used to enable the processor to execute the method 400 described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0086] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0087] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0088] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.

[0089] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A method for setting an on-chip power switch, characterized in that: include: Obtain chip design layout and design information; Determine a target area according to the chip design layout; Determine the placement position of the power switch in the target area according to the design information; wherein the target area includes a plurality of the power switches; Determine a connection mode of the power switch according to the design information, and plan a switch chain connection of the power switch according to the connection mode and the placement position; the connection mode of the power switch is one of a serial connection, a parallel connection, a tree connection, a star connection and an intelligent connection; According to the placement position and the switch chain connection plan, the power switch is inserted and the switch chain is connected simultaneously; When the connection mode of the power switch is a star connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: The signal input port position is determined according to the design information, and each of the power switches is connected to the signal input port position according to the placement position.

2. The method according to claim 1, characterized in that Determining the target area according to the chip design layout includes: According to the chip design layout, determining at least one first region and at least two second regions therein; determining at least one third region between the at least two second regions; The at least one first area and the at least one third area are used as the target area.

3. The method according to claim 2, characterized in that The step of determining the placement position of the power switch in the target area includes: Determine the horizontal spacing and the vertical spacing of the power switches according to the design information, and arrange the power switches in the target area according to the horizontal spacing and the vertical spacing to obtain the placement position.

4. The method according to claim 3, characterized in that After the power switches are arranged in the target area according to the horizontal spacing and the vertical spacing, the method further includes: Determine a boundary offset of the power switch according to the design information, and adjust the position of a whole row or a whole column of the power switches located at the edge of the first area; According to the boundary offset, positions of at least one entire row or at least one entire column of the power switches located in any one of the third regions are adjusted.

5. The method according to claim 3, characterized in that: Before determining the lateral spacing and the longitudinal spacing of the power switches according to the design information, the method further includes: Determine a minimum grid point of the power switch according to the design information, and determine whether the horizontal spacing and the vertical spacing are integer multiples of the minimum grid point; In response to the lateral spacing not being an integer multiple of the minimum grid point, adjusting the lateral spacing according to the minimum grid point; and / or In response to the longitudinal spacing not being an integer multiple of the minimum grid point, the longitudinal spacing is adjusted according to the minimum grid point.

6. The method according to claim 1, characterized in that When the connection mode of the power switches is a serial connection, the switch chain connection planning of the power switches according to the connection mode and the placement positions includes: Determine a first moving direction of the power switch according to the design information, and slice the target area according to the first moving direction; According to the design information, the lateral connection movement direction and the longitudinal connection movement direction of the power switch are determined, and the first starting position and the first connection path of the switch chain are determined in combination with the target area after slicing and the placement position, so as to generate the switch chain connection plan.

7. The method according to claim 1, characterized in that When the connection mode of the power switches is parallel connection, the switch chain connection planning of the power switches according to the connection mode and the placement positions includes: Determine a first moving direction of the power switch according to the design information, and slice the target area according to the first moving direction; According to the design information, the lateral connection movement direction or the longitudinal connection movement direction of the power switch is determined, and the second starting position and the second connection path of the switch chain are determined in combination with the target area after slicing and the placement position, so as to generate the switch chain connection plan.

8. The method according to claim 1, characterized in that When the connection mode of the power switches is a tree connection, the switch chain connection planning of the power switches according to the connection mode and the placement positions includes: Determine a first moving direction of the power switch according to the design information, and slice the target area according to the first moving direction; According to the placement position, determine the power switch located in the middle of each slice as the main switch, and according to the first moving direction, determine the third connection path between the main switches of each slice and the third starting position of the connection; The trunk switch of each slice is used as the fourth starting position of other power switches on each slice. According to the design information, the lateral connection movement direction or the longitudinal connection movement direction of the power switch is determined, and the fourth connection path of other power switches on each slice is determined in combination with the target area after slicing and the fourth starting position, so as to generate the switch chain connection plan.

9. The method according to claim 1, characterized in that: When the connection mode of the power switch is intelligent connection, the switch chain connection planning of the power switch according to the connection mode and the placement position includes: Determine the position of the signal input port and the position of the signal output port according to the design information; Determining a fifth starting position of the switch chain according to the placement position and the signal input port position; Determining the end position of the switch chain according to the placement position and the signal output port position; A fifth connection path of the switch chain is determined according to the placement position, the fifth starting position, and the end position, thereby generating the switch chain connection plan.

10. A computer device comprising one or more processors, a memory; and one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, and the programs include instructions for executing the method according to any one of claims 1 to 9.

11. A non-volatile computer-readable storage medium containing a computer program, which, when executed by one or more processors, causes the processors to perform the method of any one of claims 1 to 9.