Routing position adjustment method, computer equipment and storage medium

By dividing the chip design layout and checking the rules, and adjusting the position of each trace, the problem of accidental deletion and non-compliance during the chip wiring process is solved, and the accuracy and efficiency of wiring adjustment are improved.

CN118504511BActive Publication Date: 2024-10-11X TIMES DESIGN AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, there are problems of accidental deletion and non-compliance during the chip wiring process, especially when the design adjustment of power short lines is caused by accidental deletion and non-compliance due to rule changes, which affects the layout efficiency and accuracy.

Method used

By dividing the chip design layout, the layout is divided into small target areas, the initial position and placement space are determined for each trace, the rules are checked, and the position is adjusted based on the inspection results to ensure that the design rules are met.

Benefits of technology

It directly eliminates non-compliance problems and wrong deletion problems caused by rule changes, reduces the amount of calculation, and improves the accuracy and efficiency of wiring adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504511B_ABST
    Figure CN118504511B_ABST
Patent Text Reader

Abstract

The present application provides a method, computer device and storage medium for adjusting the position of a routing line. The method comprises: obtaining a chip design layout; performing region segmentation on the chip design layout to obtain a target region; determining a first position and placement space of a routing line in the target region, and performing a rule check on the first position or the placement space according to a preset rule table; wherein the placement space includes the first position; determining a second position in the placement space that satisfies the rule check according to the check result, and adjusting the position of the routing line according to the second position.
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 a routing position adjustment method, a computer device, and a storage medium. Background Art

[0002] Electronic Design Automation (EDA) refers to a design method that uses computer-aided design (CAD) software to complete the functional design, synthesis, verification, physical design (including layout, routing, layout, design rule checking, etc.) of very large-scale integrated circuit (VLSI) chips.

[0003] Among them, wiring is an important physical implementation task after layout and clock tree synthesis. In related technologies, the power lines that need to be wired are divided into long lines (stripes) and short lines (staples). In the wiring process for short lines, short lines on the same straight line are generally first combined into long lines for planning, and then split into short lines.

[0004] However, such processing method may cause the problem of accidental deletion of short lines, and after being split into short lines, due to the change of applicable rules, some short lines will not comply with the rules, which will eventually affect the overall layout efficiency and accuracy. Summary of the invention

[0005] In view of this, the present application proposes a wiring position adjustment method, a computer device and a storage medium to solve or partially solve the above problems.

[0006] Based on the above purpose, the present application provides a method for adjusting the wiring position, including:

[0007] Obtain chip design layout;

[0008] Performing regional segmentation on the chip design layout to obtain a target area;

[0009] Determine a first position and placement space of a route in the target area, and perform a rule check on the first position or the placement space according to a preset rule table; wherein the placement space includes the first position;

[0010] According to the inspection result, a second position in the placement space that meets the rule inspection is determined, and the position of the routing is adjusted according to the second position.

[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 a method for adjusting the position of a routing line, a computer device, and a storage medium. The present application divides the chip design layout into small target areas by segmenting the entire layout. Afterwards, the placement adjustment is performed directly for each routing line in the target area, and the initial first position of the routing line and the maximum range space allowed for its placement are first determined. Then, a rule check is directly performed on this first position or placement space to determine whether the first position is inappropriate or which positions in the placement space are inappropriate, so as to adjust the current position of the routing line in the placement space according to the inspection results, and finally determine the second position that meets the rule check. In this way, each smallest routing line is directly detected, which directly eliminates non-compliance problems caused by rule changes and wrong deletion problems. At the same time, by partitioning, the amount of calculation each time is reduced, and it can also be combined with multi-threading to more reasonably apply resources, and finally ensure the overall efficiency while also prompting the accuracy of wiring adjustment. 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 4AA flowchart of an exemplary method provided in an embodiment of the present application.

[0019] Figure 4B A flowchart of an exemplary method for performing rule checking on a first position in an embodiment of the present application.

[0020] Figure 4C A schematic diagram of a flow chart of a method for selecting a second position in an exemplary method provided in an embodiment of the present application.

[0021] Figure 4D A schematic diagram of a flow chart of a rule check on a placement space according to an exemplary method provided in an embodiment of the present application.

[0022] Figure 4E A flowchart of another method for selecting a second position according to an exemplary method provided in an embodiment of the present application.

[0023] Figure 5A A schematic diagram of the structure for cutting a chip design layout provided in an embodiment of the present application.

[0024] Figure 5B A schematic diagram of an initial routing provided in an embodiment of the present application being placed in a first position.

[0025] Figure 5C A schematic diagram of cutting the placement space provided in an embodiment of the present application.

[0026] Figure 5D A schematic diagram of selecting a third position for placing wiring provided in an embodiment of the present application.

[0027] Figure 5E A schematic diagram of cutting the placement space again provided in an embodiment of the present application.

[0028] Fig. 5F A schematic diagram of selecting a third position for placing wiring again provided in an embodiment of the present application.

[0029] Figure 5G A schematic diagram of directly inspecting and cutting the placement space provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] 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.

[0031] 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.

[0032] 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.

[0033] 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.

[0034] The memory 104 may be configured to store data (eg, instruction sets, computer codes, intermediate data, etc.). Figure 1As 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.

[0035] 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.

[0036] 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.

[0037] 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.

[0038] 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.

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

[0040] like Figure 2As 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.

[0041] 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.

[0042] 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.

[0043] 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.

[0044] 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 3As 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.

[0045] In the related art, for the long power lines (Stripe) that need to be routed, since the power lines will be arranged throughout the chip, if the design rules are checked for each power line to be created, then since the Stripes are close and the spacing between objects is strictly defined in the design rules, the obstacles (that is, background objects, such as cells, blockages, wires, special wires, FTerm, etc.) need to be larger than the Stripe placement area to retrieve the obstacles, then the obstacles may be retrieved repeatedly and their internal structures repeatedly expanded. In order to avoid the obstacles being expanded multiple times, the general design method is to group the created long power line Stripes, and then perform background retrieval and design rule detection in groups.

[0046] Later, in the related technology, for power stubs (Stapling), according to the relevant specified rules, a huge number of power lines are set in the x and y directions of the chip's routing layer, which are used to specifically connect different background objects. It should be noted that for the routing layer of the chip, generally the routing of a layer is in the same direction, that is, it is either a routing layer in the horizontal x direction or a routing layer in the vertical y direction. In some technologies, in order to improve efficiency, rapid wiring is done, so the power stripe processing method is used, and multiple short lines on the same reference line can be combined into a long line for treatment. Since no matter which direction the routing layer is, the short lines are arranged in a straight line in one direction, for example, the horizontal routing layer is on multiple horizontal reference lines, and each reference line is distributed with more or less power stubs, which can be replaced in the above way. That is, short lines with the same direction and coordinates are combined into a long line, and then multiple long lines are checked for design rules together. According to the long line check rules, the area corresponding to the corresponding obstacle (violation area) is removed from each long line, and the power short line is restored in the remaining area. This processing method can be as efficient as the processing of the power long line, and the corresponding rule check can be completed very quickly.

[0047] However, when the applicant adjusted the design of the short line according to the above method, it was found that the created power short line (Stapling) still had violations. This was because when the design rules were initially checked, the power long line (Stripe) was used. When it was restored to the power short line (Stapling), the design rules that needed to be checked would also change accordingly, resulting in some power short lines (Stapling) still having violations. At the same time, it was also because when restoring from the power long line (Stripe) to the power short line (Stapling), the design rules checked would change, so some parts that were originally deleted during the power long line (Stripe) check did not violate the corresponding design rules after being restored to the short line, which caused the problem of wrong deletion.

[0048] At this time, it was found that although the speed met the requirements, this solution had the problem of suffixes being accidentally deleted (the design rules of long and short lines were inconsistent) or some suffixes still had violations. In order to solve the above problems, based on the above solution, if the spliced ​​long power line is cut, the suffixes originally spliced ​​into this stripe are grouped again, and then a second design rule check is performed. At this time, although some of the suffixes that were accidentally deleted can be found and the remaining suffixes can be adjusted again, the short lines that still have violations will be discarded.

[0049] At this point, due to multiple design rule checks, the efficiency is already very low and it is difficult to meet the corresponding requirements. At the same time, compared with OTC (Over-the-Cell), the current method still has a relatively small number of suffixes that are mistakenly deleted and recovered. Compared with the number of suffixes that actually meet the requirements, there are still many mistakenly deleted suffixes that cannot be recovered in the end. It can be seen from this that the current wiring adjustment method for power short lines has a large number of misjudgments, resulting in a low accuracy rate of the final result. At the same time, because it may involve multiple checks, the efficiency is also very low.

[0050] In view of this, the present application proposes a routing position adjustment scheme. The present application divides the chip design layout into small target areas by segmenting the entire layout. Afterwards, the placement adjustment is performed directly for each routing in the target area, and the initial first position of the routing and the maximum range of space allowed for its placement are first determined. Then the rule check is directly performed on this first position or placement space to determine whether the first position is inappropriate or which positions in the placement space are inappropriate, and then the current position of the routing is adjusted in the placement space according to the inspection results, and finally the second position that meets the rule check is determined. In this way, each smallest routing is directly tested, which directly eliminates non-compliance problems and wrong deletion problems caused by rule changes. At the same time, the amount of calculation each time is reduced by partitioning, and it can also be combined with multi-threading to more reasonably apply resources, and finally the accuracy of wiring adjustment is prompted while ensuring overall efficiency.

[0051] Figure 4A 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 4A As shown, the method 400 may further include the following steps.

[0052] Step 402, obtaining a chip design layout.

[0053] Generally, the chip design layout contains each layer structure of chip processing, 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 insulation 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. In this step, because it involves the wiring planning process, the chip design layout may still be a relatively initial version, which only contains relatively early data such as chip hierarchy relationship, hierarchy function, component design position, etc. In specific application scenarios, initial data information such as hierarchical structure and component position 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.

[0054] Afterwards, 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.

[0055] Step 404, performing region segmentation on the chip design layout to obtain a target region.

[0056] In this step, after obtaining the chip design layout and obtaining the initial component layout, hierarchical structure and other data, the corresponding places where power short lines need to be designed can be determined accordingly. In some embodiments, the chip design layout can be divided into regions according to the corresponding data of the current power short lines (i.e., routings) that need to be designed, and at least one target area is generated. For example, the division can be based on the initial approximate spacing of these routings. Of course, the number of threads of the system currently being processed can also be solved, and the division can be performed, such as dividing into target areas that are multiples of the current number of threads. Of course, in some embodiments, the region division can also be performed according to a set size or a set number. For example, after setting the size of each area, or the total number of areas, the division can be performed directly according to the size.

[0057] In some embodiments, since different processing systems have different numbers of threads or processes for executing this solution, the regions can be divided according to the total number of threads for executing this solution. For example, if there are 10 threads for executing this solution, the chip design layout can be divided into 10, 20, 30, or other multiples of 10 regions. After that, the specific division method for each region can be divided according to the set size; or it can be divided based on the spacing (physical interval) between the current initial routing lines or the number of routing lines, the arrangement method, etc. Of course, in some embodiments, the boundary of the division (i.e., the division position) can be determined by manual input and the active adjustment of the operator, that is, the division of the chip design layout is completed by the input division position. That is to say, in some embodiments, the regional division of the chip design layout includes: determining the number of threads for routing position adjustment and the physical interval between different routing lines in the chip design layout; completing the division of the chip design layout according to the number of threads and the physical interval; or obtaining the input division position, and completing the division of the chip design layout according to the division position.

[0058] In a specific scenario, for a target area, all obstacles contained in it can be directly read out and directly expanded. Since the power short line (routing) is directly checked afterwards, no further detailed inspection will be performed. Therefore, only one expansion is required for these obstacles, and one round of design rule checking is performed. In other words, it avoids background objects being expanded multiple times and only one design rule check can be performed. At the same time, time-consuming items such as initialization of DRC API, multi-thread synchronization, and reporting of combined data according to Violation information are avoided. And through segmentation, the original multi-threaded solution is retained, and the previous grouping is changed to cut the entire winding area into multiple small areas, each thread manages an area, and creates stapling in the small area. Before starting to create stapling, all background objects in the currently managed area are searched, and expanded into HVTree at the same time, and the attribute information of each object is recorded for design rule checking. Finally, for each power short line, metal overlap is actively checked and the design rules are checked using Spacing API.

[0059] In a specific embodiment, a region is generally divided into multiple regions, and the target region in this embodiment is any region after the chip design layout is divided.

[0060] Specifically, Figure 5AAs shown, the region can be segmented according to the total number of threads and the physical intervals between different routings, and the segmented target regions are processed by multiple threads. Graph 500 represents a chip design layout, graph 501 represents target regions, and graph 502 represents routings.

[0061] Step 406, determine a first position and placement space of a route in the target area, and perform a rule check on the first position or the placement space according to a preset rule table; wherein the placement space includes the first position.

[0062] Step 408, determining a second position in the placement space that satisfies the rule check based on the inspection result, and adjusting the position of the routing according to the second position.

[0063] In step 406, for a target area which generally includes multiple routings, only one routing is described here, and the processing of the routing can be repeated for other routings. At the same time, after completing the position adjustment of all routings in a target area, the same processing can be repeated in other target areas. For any routing, its first position needs to be determined first. The first position here is the initial setting position of the routing. When designing, after determining a position where a routing can be set, its initial setting position and the corresponding routing length are generally determined at the same time. At the same time, since routing generally extends in a horizontal or vertical direction and generally has no turns, other parameters such as direction may not be set or read.

[0064] After that, the placement space for the routing is a space where the routing can be placed. The routing can adjust its position at will in this placement space. It can be seen that the placement space must include the first position. Figure 5B As shown, the current setting position of routing 502 can be considered as the first position, that is, the initial position; then figure 503A represents the placement space corresponding to routing 502 in the figure, within this space, the routing can be placed at any position along the reference line, and then 503B is another form of expression of the placement space, both of which correspond to routing 502 in the figure.

[0065] In some embodiments, the specific size of the placement space may be pre-set, for example, it may be a uniform size; it may also be pre-set according to the physical spacing between adjacent lines, or the size of the placement space may be specifically determined according to other dimensional data. In some embodiments, to determine the placement space of a line in the target area, the length of the line and its extension direction at the first position (generally extending horizontally or longitudinally) may be determined first, and then, based on the first position, the left and right ends of the line may be extended by a distance not greater than the length of the line to form a placement space, that is, the placement space is at most 3 times the length of the corresponding line. That is, in some embodiments, the determination of the placement space of a line in the target area includes: determining the length of the line and the extension direction at the first position; based on the line at the first position, extending a distance less than or equal to the length at both ends of the line along the extension direction to form the placement space.

[0066] After determining the first position and placement space of the routing, the rule check can be started. Here, the design rule (Library Exchange Format, LEF rule) usually refers to the restrictions of the digital circuit layout design rules provided by chip processing service providers and industrial software companies. Design rule check (Design Rule Check, DRC) usually refers to the fact that the chip processing service provider requires the designed chip design layout to meet the specified restrictions due to the limitations of the manufacturing process. The design rule check is a check on whether the chip design layout meets the restrictions during the design process. In this embodiment, it can be simply understood that for the background objects (i.e. obstacles) in the chip design layout, the routing cannot overlap with them, and according to the corresponding design rules, the routing cannot appear in the area too close to the location of these objects. For example, according to the design rules, there cannot be routing within 2μm to the left and right and 3μm above and below an obstacle (such as a hard core cell), so as to check the first position or placement space of the routing. In some embodiments, these design rules can be set in a preset rule table, and the rule table is directly used to perform corresponding checks during the inspection. Afterwards, for the rule checking method based on the first position, it can be understood that first determine whether the current routing meets the design rules at the first position. If so, the first position is used as the final routing position. If not, the first position can be adjusted in the placement space to find a position that meets the design rules and use this position as the final routing position. Of course, in specific applications, if it is ultimately impossible to determine the position that meets the design rules, the routing can be abandoned or deleted. As for the rule checking method based on the placement space, it can be understood that the entire placement space is directly tested according to the design rules to determine which positions in the current placement space cannot be set for routing, and then the routing position is adjusted in the remaining space to determine the final routing position. It can be seen that in the former method, only the space within the routing length is checked for rules each time, so that the obstacles involved in each check are the least, and the amount of calculation is small while the number of adjustments is small, which can also ensure efficiency. In the latter method, although the entire placement space is checked at one time, it only takes one time to determine which positions in the entire space are suitable for placement, so that it is only necessary to calculate once to determine whether the routing is set and the setting position.

[0067] Afterwards, in step 408, according to the above description, in the embodiment of the rule check for the first position, by continuously adjusting the routing position, a second position that satisfies the rule check can be determined, and then the second position can be adjusted as the final routing setting position. Of course, in specific applications, the second position can be the first position (that is, the routing directly passes the rule check at the first position), or there may be no second position (that is, there is no space in the placement space to place the routing), so that the routing can be directly deleted. Similarly, in the embodiment of the rule check for the placement space, after the placement space is cut, the placement position of the routing or whether the routing can be placed can be determined based on the remaining space, so as to finally determine the second position for position adjustment.

[0068] Specifically, Figure 4B As shown, performing rule checking on the first position according to a preset rule table may include:

[0069] Step 4062: Determine, based on the chip design layout, a first obstacle within a set range around the routing line when the routing line is at the first position.

[0070] Step 4064: determine the first influence range of the first obstacle according to the rule table, and perform the rule check according to whether the first influence range overlaps with the routing.

[0071] In this embodiment, the setting range can be set according to the specific application scenario, for example, it can be set to within 1μm around. First, determine whether there is an obstacle within this range at the current first position of the routing. If not, there will be no corresponding rules to check, and it must be able to pass the rule check. If there is a first obstacle, its influence range (ie, the first influence range) can be determined according to the rule table to see whether the first influence range overlaps with the routing currently at the first position, so as to perform a rule check. If there is no overlap, it means that the rule check has passed; if so, it means that the rule check has not passed and the position adjustment is required, that is, the first position cannot meet the requirements of the rule check.

[0072] Afterwards, if Figure 4C As shown, determining the second position in the placement space that satisfies the rule check may further include:

[0073] Step 4082, in response to the first position failing to pass the rule check, determining a third position of the routing in the placement space, and performing a rule check on the third position according to the rule table; wherein the third position does not completely overlap with the first position.

[0074] Step 4084, in response to the third position passing the rule check, use the third position as the second position.

[0075] In this embodiment, the failure to pass the rule check means that the first position overlaps with the first influence range, and the first position needs to be adjusted, and then a third position for placing the wiring can be selected in the placement space to perform the rule check again. Since the first position has failed the check, the third position must not completely overlap with the first position, and there must be at least no overlapping parts. Then the way to select the third position can be to move a little distance in one direction each time, and then use this to experiment little by little whether it can pass the rule check.

[0076] In other embodiments, the placement space can be directly cut according to the first influence range, and the overlapping area can be cut out, so as to determine the third position in the remaining part. That is, in some embodiments, determining the third position of the routing in the placement space includes: cutting the placement space according to the first influence range, and selecting the third position in the placement space after cutting according to the first set condition. The specific determination method (i.e., the specific first set condition) can be determined nearby, that is, after the cutting is completed, a position closest to the first position and capable of placing the routing is selected as the third position.

[0077] After that, the routing set at the third position is further subjected to rule checking. If the rule checking is passed this time, the third position can be set as the second position, and the adjustment of the routing position is finally completed. If it still does not work, the cutting can be performed again, the position can be selected again, and the checking can be repeated, and the cycle is repeated until a third position that meets the requirements is selected, or the third position cannot be selected. That is, in some embodiments, after the rule checking is performed on the third position according to the rule table, the method further includes: in response to the third position failing to pass the rule checking, the third position is recorded to form a historical third position set; the third position is updated according to a second setting condition, and the updated third position is re-checked; wherein the second setting condition is that the updated third position is not completely overlapped with the first position and the historical third position set. The historical third position set is used to record the corresponding information of the third position selected each time, so that when the third position is adjusted each time, the adjusted third position can not completely overlap with the first position and each third position in history.

[0078] In specific application scenarios, such as Figure 5CAs shown, for the routing line 502 at the first position, the obstacles 504 around it are determined, and then the first influence range of the obstacle 504 is determined according to the design rules in the rule table. If it overlaps with the routing line 502 at the first position, the placement space is cut according to the first influence range to form Figure 5C Then, as shown in 503B in FIG. Figure 5D , 5E As shown, the third position for placing the wiring 502 can be selected nearby, and the obstacle 504 can be repeatedly determined, and then checked and cut. The cutting method can not only cut according to the first impact range of the obstacle 504, but also determine whether to abandon or cut according to whether the remaining space can accommodate the wiring 502. Finally, as Fig. 5F As shown, the third position selected for placing the routing 502 satisfies the corresponding design rule, so it can be used as the second position, and finally the position of the routing 502 is adjusted. Therefore, in a specific scenario, by initializing the placement area of ​​each power line (routing), after detecting the existence of violation, the available area is divided, and the nearest position is selected for placement in the direction of the power line; the above process is repeated until there is no placement area, or there is no violation in the new placement area.

[0079] Afterwards, for another embodiment, as Figure 4D As shown, for checking the placement space according to the preset rule table, it may include:

[0080] Step 4066: Determine a second obstacle within the set range of the placement space based on the chip design layout.

[0081] Step 4068, determine the second influence range of the second obstacle according to the rule table, and perform a rule check based on whether the second influence range overlaps with the placement space.

[0082] In this embodiment, it is similar to the aforementioned rule check on the first position. The setting range can be set according to the specific application scenario, for example, set to within 1 μm around. After that, the second obstacle is an obstacle corresponding to the entire placement space. At the same time, the second influence range corresponds to the second obstacle. The concepts of corresponding obstacles and influence range are similar to the concepts in the aforementioned embodiment of the rule check on the first position.

[0083] Afterwards, if Figure 4E As shown, determining the second position in the placement space that satisfies the rule check may further include:

[0084] Step 4086, in response to the overlap between the second influence range and the placement space, the placement space is cut according to the second influence range, and the second position is selected in the cut placement space according to a third set condition.

[0085] Step 4088: In response to the second influence range not overlapping with the placement space, the first position is used as the second position.

[0086] Among them, the third setting condition is similar to the first setting condition, and will not be elaborated again.

[0087] In specific application scenarios, such as Figure 5G As shown, directly check the obstacles 504 around the placement space 503, and then determine the second influence range of the obstacle 504 according to the design rules in the rule table. If it overlaps with the routing 502 at the first position, the placement space is cut according to the second influence range, and the remaining part is discarded according to whether the routing 502 can be placed. Figure 5G The placement space shown in 503B in FIG. and finally forms the same Fig. 5F As shown, the final position of the routing 502 is determined in the remaining placement space, and the adjustment of the position of the routing 502 is finally completed.

[0088] It can be seen from the above embodiments that an embodiment of the present application provides a method for adjusting the position of a routing line. The present application divides the chip design layout into small target areas by segmenting the entire layout. Afterwards, the placement adjustment is performed directly for each routing line in the target area, and the initial first position of the routing line and the maximum range space allowed for its placement are first determined. Then, a rule check is performed directly on this first position or placement space to determine whether the first position is inappropriate or which positions in the placement space are inappropriate, so as to adjust the current position of the routing line in the placement space according to the inspection results, and finally determine the second position that meets the rule check. In this way, each smallest routing line is directly detected, which directly eliminates non-compliance problems caused by rule changes and wrong deletion problems. At the same time, by partitioning, the amount of calculation each time is reduced, and it can also be combined with multi-threading to more reasonably apply resources, and finally the accuracy of wiring adjustment is prompted while ensuring overall efficiency.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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 adjusting a wiring position, characterized in that: include: Obtain chip design layout; Performing regional segmentation on the chip design layout to obtain a target area; Determine a first position and placement space of a routing line in the target area, and perform a rule check on the first position or the placement space according to a preset rule table; wherein the placement space includes the first position, the routing line is a short power line segment in chip design, and the rule check is to check the setting position of the routing line and whether it is set; According to the inspection result, a second position satisfying the rule inspection in the placement space is determined, and the position of the routing is adjusted according to the second position; when the second position cannot be determined according to the inspection result, the routing is deleted; Determining the placement space of a route in the target area includes: Determining the length of the routing line and the extending direction at the first position; Based on the routing at the first position, along the extension direction, a distance less than or equal to the length is extended at both ends of the routing to form the placement space.

2. The method according to claim 1, characterized in that The performing rule checking on the first position according to a preset rule table includes: Determine, according to the chip design layout, a first obstacle within a set range around the routing line when the routing line is at the first position; The first influence range of the first obstacle is determined according to the rule table, and the rule check is performed according to whether the first influence range overlaps with the route.

3. The method according to claim 2, characterized in that The determining of a second position in the placement space that satisfies the rule check includes: In response to the first position failing to pass the rule check, determining a third position of the routing in the placement space, and performing a rule check on the third position according to the rule table; wherein the third position does not completely overlap with the first position; In response to the third position passing the rule check, the third position is used as the second position.

4. The method according to claim 3, characterized in that The step of determining the third position of the wiring in the placement space includes: The placement space is cut according to the first influence range, and the third position is selected in the cut placement space according to the first set condition.

5. The method according to claim 3, characterized in that: After performing rule checking on the third position according to the rule table, the method further includes: In response to the third position failing to pass the rule check, recording the third position to form a historical third position set; The third position is updated according to a second setting condition, and the rule check is re-performed on the updated third position; wherein the second setting condition is that the updated third position does not completely overlap with the first position and the historical third position set.

6. The method according to claim 1, characterized in that The step of performing rule checking on the placement space according to a preset rule table includes: Determining a second obstacle within a set range of the placement space according to the chip design layout; The second influence range of the second obstacle is determined according to the rule table, and a rule check is performed according to whether the second influence range overlaps with the placement space.

7. The method according to claim 6, characterized in that The determining of a second position in the placement space that satisfies the rule check includes: In response to the overlap between the second influence range and the placement space, the placement space is cut according to the second influence range, and the second position is selected in the cut placement space according to a third set condition.

8. The method according to claim 6, characterized in that The determining of a second position in the placement space that satisfies the rule check includes: In response to the second influence range not overlapping with the placement space, the first position is used as the second position.

9. The method according to claim 1, characterized in that: The performing of regional segmentation on the chip design layout includes: Determining the number of threads for routing position adjustment and the physical spacing between different routings in the chip design layout; and completing the segmentation of the chip design layout according to the number of threads and the physical spacing; Or obtain the input segmentation position, and complete the segmentation of the chip design layout according to the segmentation position.

10. The method according to claim 9, characterized in that The target area is any area after the chip design layout is divided.

11. 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 10.

12. 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 10.