Chip layout optimization method and device and related equipment
By judging and adjusting the physical location of the timing units in the chip database, the problem of wasted wiring resources and increased power consumption caused by physical detours in chip design is solved, design efficiency and problem coverage are improved, and chip layout is optimized.
Patent Information
- Application Number
- CN202410636937.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-06
AI Technical Summary
In large-scale chip design, the physical detour problems caused by module-level design make the chip layout complex and cumbersome, resulting in a waste of wiring resources and increased power consumption. The existing technology can only find and solve the problem after top-level merging, and the design efficiency and problems Coverage is low.
By determining the timing unit to be optimized and its reference timing unit based on the logical information recorded in the chip database, determining their physical location relationship, and adjusting the physical location of the timing unit outside the location optimization range to optimize the chip layout and avoid physical detours.
It improves the inspection initiative and design efficiency of chip design, increases problem coverage, saves wiring resources, and optimizes chip layout.
Smart Images

Figure CN118607433A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of chip technology, and specifically to a chip layout optimization method, device and related equipment. Background Art
[0002] In large-scale chip design, the entire chip to be designed is usually divided into multiple modules according to the execution logic, and then the module-level design is carried out, and finally the modules are merged and integrated. Among them, the designers synthesize according to the functional requirements and specifications of each module, and design according to the characteristics and layout and wiring specifications of each module. It can be seen that each module of the chip design is completed independently from synthesis to automatic layout and wiring, resulting in complex and cumbersome corresponding wiring under the final layout design of the chip. In this context, how to provide a technical solution to achieve chip layout optimization has become a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a chip layout optimization method, device and related equipment to achieve chip layout optimization.
[0004] In a first aspect, an embodiment of the present application provides a chip layout optimization method, comprising:
[0005] According to the logic information recorded in the chip database, determine the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized; wherein the reference timing unit is the previous level timing unit and the next level timing unit of the timing unit to be optimized;
[0006] Determine, according to the physical position of the reference sequential unit, a position optimization range corresponding to the sequential unit to be optimized, wherein the physical optimization range is used to indicate a physical position range to be adjusted of the sequential unit to be optimized;
[0007] According to the physical position of the sequential unit to be optimized, it is determined whether the sequential unit to be optimized is located in the position optimization range; if not, the physical position of the sequential unit to be optimized is adjusted according to the position optimization range.
[0008] In a second aspect, an embodiment of the present application provides a chip layout optimization device, comprising:
[0009] A first determination module is used to determine the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized according to the logic information recorded in the chip database; wherein the reference timing unit is the previous level timing unit and the next level timing unit of the timing unit to be optimized;
[0010] A second determining module, configured to determine a position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, wherein the physical optimization range is used to indicate a physical position range to be adjusted of the timing unit to be optimized;
[0011] A first judgment module, configured to judge whether the timing unit to be optimized is located in the position optimization range according to the physical position of the timing unit to be optimized;
[0012] An adjusting module is used to adjust the physical position of the timing unit to be optimized according to the position optimization range when the first judging module judges to be no.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the chip layout optimization method as described in the first aspect above.
[0014] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the chip layout optimization method as described in the first aspect above is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising one or more computer executable instructions, which, when executed, implement the chip layout optimization method as described in the first aspect above.
[0016] The chip layout optimization method provided in the embodiment of the present application determines the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized according to the logic information recorded in the chip database, wherein the reference timing unit is the upper-level timing unit and the lower-level timing unit of the timing unit to be optimized; further, the position optimization range corresponding to the timing unit to be optimized can be determined according to the physical position of the reference timing unit, and the physical optimization range is used to indicate the physical position range to be adjusted of the timing unit to be optimized; according to the physical position of the timing unit to be optimized, it is judged whether the timing unit to be optimized is located in the position optimization range, so as to judge the physical position relationship between the timing unit to be optimized and the reference timing unit, thereby improving the initiative of chip design inspection, and compared with the method of finding problems when merging at the top level of chip design, it can effectively improve the design efficiency and problem coverage of the chip. Moreover, when the timing unit to be optimized is located outside the position optimization range, the physical position of the timing unit to be optimized is adjusted according to the position optimization range, thereby optimizing the chip layout, avoiding physical detours, and saving chip winding resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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 the provided drawings without paying any creative work.
[0018] Figure 1 is an optional structural diagram of chip 001;
[0019] Figure 2 is an optional flow chart of a chip layout optimization method provided in an embodiment of the present application;
[0020] Figure 3 is another optional flow chart of the chip layout optimization method provided in the embodiment of the present application;
[0021] Figures 4 to 10 is an optional structural diagram of the chip 002 provided in an embodiment of the present application;
[0022] Fig.11 is an optional structural diagram of a chip layout optimization device provided in an embodiment of the present application;
[0023] Fig.12 It is a schematic diagram of an optional structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] In large-scale chip design, the entire chip to be designed is usually divided into multiple modules according to the execution logic, and then the module-level design is carried out, and finally the modules are merged and integrated. Specifically, the designer first synthesizes the functional requirements and specifications of each module, and then designs the circuit according to the characteristics and layout and wiring specifications of each module. Among them, the connection of the input and output interfaces of each module is called "top-level merging", and each module is completed independently from synthesis to automatic layout and wiring.
[0026] The optional structure of chip 001 designed based on the chip design process is as follows Figure 1As shown, the chip 001 has multiple modules, namely module A, module B and module C. Module A is designed with a timing unit 100, module B is designed with a timing unit 101, and module C is designed with a timing unit 102.
[0027] It can be seen that in the ideal case of chip design, the transmission port (i.e., input and output interface) corresponding to each module is used as the starting point or end point, and the physical path corresponding to the logic circuit path of the timing unit through the transmission port of each module should conform to the Manhattan distance. The Manhattan distance refers to the distance between two points in the horizontal and vertical directions, without considering the diagonal distance, that is, the shortest path length (e.g. Figure 1 In the top-level merged chip 001, the timing unit at the module boundary has physical detours. Physical detours refer to unnecessary bends or extensions in the transmission path of the signal on the chip (for example, Figure 1 ), resulting in a waste of winding resources. Moreover, physical detours may also increase the number of executed timing units, for example, the increase of timing units of non-adjacent modules, thereby affecting the timing convergence and power consumption of the timing units. Among them, this is mainly because chip 001 is physically implemented in modules, and the physical implementation cannot predict in advance whether there are physical detours in the timing units at the module boundaries, and can only be discovered after the subsequent top-level merge operation is completed. For the designed chip, due to the huge number of modules divided into the chip, the problem of physical detours between the transmission interfaces of each module will be more obvious. For the designed high-performance CPU chip, the occurrence of physical detours will further amplify the problems of waste of winding resources, increased power consumption, and timing impact.
[0028] To solve the physical detour problem in chip design, as an optional implementation, after the module design is completed and the top-level merge is completed, the top-level layout and routing can be checked for timing analysis. According to the corresponding problems, such as winding crosstalk, difficulty in timing convergence, etc., the module design operation can be returned to track the information and solve the problem after the problem is identified. However, this method is relatively passive in discovering and solving problem points. Problem points can only be found after the top-level merge is completed, which reduces the efficiency of chip design. In addition, the top-level merge is the connection between the input and output interfaces of each module. Therefore, based on the operational limitations of the top-level merge, only problems such as difficulty in timing convergence or winding crosstalk can be discovered through the top-level merge, and the optimization of the entire chip design cannot be achieved.
[0029] In view of this, the embodiment of the present application proposes an improved chip layout optimization scheme, which determines the timing unit to be optimized and the reference timing unit based on the logic information recorded in the chip database, and determines the physical position relationship between the timing unit to be optimized and the reference timing unit, thereby improving the initiative of chip design inspection. Compared with the method of discovering problems during the top-level merging of chip design, it can effectively improve the chip design efficiency and problem coverage. In addition, when the timing unit to be optimized is outside the position optimization range formed by the reference timing unit, the physical position of the timing unit to be optimized is adjusted according to the position optimization range, which optimizes the chip layout, avoids physical detours, and saves the chip's winding resources.
[0030] in, Figure 2 FIG. 2 shows an optional schematic diagram of a chip layout optimization process provided by an embodiment of the present application. Figure 2 As shown, the method includes:
[0031] Step S21, determining the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized according to the logic information recorded in the chip database.
[0032] The chip database stores data information related to chip design. In an optional example, the overall chip architecture and modules determined in the early stage of the physical design of the chip, as well as the connection relationship between the modules, can be stored in the chip database, so that the chip database can record the logical information of the chip design. Among them, the module can be a plurality of functional modules divided according to the execution logic of the chip.
[0033] The logic information may include the timing path information of the data stream transmitted by each module transmission port in the chip design, the corresponding timing units on the timing path, and the upper and lower timing units in the data stream, wherein the timing path is the logic circuit path of the data stream transmitted by the module transmission port through the timing unit, such as Figure 1 The timing path is shown by the bold black line in FIG. Therefore, according to the logic information recorded in the chip database, the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized can be determined.
[0034] The timing unit to be optimized may be a first-level timing unit on a corresponding timing path determined according to the timing path indicated by the transmission port of the module. In a specific example, the timing unit to be optimized may be determined based on the transmission ports corresponding to each module in the traversal chip design according to the logic information recorded in the chip database. The transmission port may include an input port and an output port, so that the timing unit to be optimized located on the timing path of the module can be determined with the input port as the starting point. The timing unit to be optimized is the first-level timing unit that is triggered first on the timing path corresponding to the module with the input port as the starting point. For example Figure 1 In the example, the transmission ports of modules A, B and C are traversed. When the input port is used as the starting point, the first-level sequential unit 102 that is triggered first can be used as the sequential unit to be optimized.
[0035] Based on the first-level timing unit as the timing unit to be optimized, the reference timing unit can be a timing unit used to perform a reference judgment on the physical position of the timing unit to be optimized, so as to determine whether there is a physical detour on the logic circuit path for signal transmission between the timing unit to be optimized and the reference unit, thereby causing problems such as winding crosstalk and difficulty in timing convergence. In the transmission process of the data stream, there will be transmission of upper and lower timing units, so based on the timing unit to be optimized of the determined module, the reference timing unit corresponding to the timing unit to be optimized can be further determined on the timing path, and the reference timing unit can be the upper-level timing unit and the lower-level timing unit of the timing unit to be optimized.
[0036] Among them, the previous-level timing unit refers to the timing unit that is located one level before the timing unit to be optimized in the timing path, and the output signal of the previous-level timing unit can be used as the input signal of the timing unit to be optimized; the next-level timing unit refers to the timing unit that is located one level after the timing unit to be optimized in the timing path, and the input signal of the next-level timing unit can be the output signal from the timing unit to be optimized.
[0037] Step S23, determining the position optimization range corresponding to the sequential unit to be optimized according to the physical position of the reference sequential unit.
[0038] It is understandable that, based on the determined sequential unit to be optimized and the reference sequential unit, the physical positions of the sequential unit to be optimized and the reference sequential unit can be further determined in the physical position information recorded in the chip database.
[0039] Among them, on the timing path, since the timing unit to be optimized is the first-level timing unit that is triggered first, and the reference timing unit is the previous-level timing unit and the next-level timing unit of the timing unit to be optimized, therefore, in order to determine whether there is a physical detour on the logic circuit path for signal transmission between the timing unit to be optimized and the reference timing unit, the position optimization range corresponding to the timing unit to be optimized can be determined based on the physical position of the reference timing unit, and the physical optimization range can be used to indicate the physical position range to be adjusted of the timing unit to be optimized. By determining the position optimization range corresponding to the timing unit to be optimized, the physical position of the timing unit to be optimized can be further judged to determine whether the physical position design of the timing unit to be optimized is reasonable.
[0040] Step S24, judging whether the sequential unit to be optimized is located in a position optimization range according to the physical position of the sequential unit to be optimized.
[0041] Based on the definition of Manhattan distance, since the upper-level sequential unit and the lower-level sequential unit corresponding to the sequential unit to be optimized in the reference sequential unit together constitute a position optimization range, if the sequential unit to be optimized is located in the position optimization range, the physical line from the sequential unit to be optimized to its upper-level sequential unit and the lower-level sequential unit is the shortest. Therefore, according to the physical position of the sequential unit to be optimized, the position analysis of the sequential unit to be optimized and the reference sequential unit can be performed to determine whether there are problems such as winding or clock delay between the sequential unit to be optimized and the reference sequential unit, so as to further execute step S26 when the sequential unit to be optimized is located outside the position optimization range.
[0042] In the case where the reference timing unit is an electronic component on the timing path corresponding to the timing unit to be optimized, the positional relationship between the timing unit to be optimized and the reference timing unit can be determined according to the physical positions of the timing unit to be optimized and the reference timing unit. Based on the positional relationship, a timing analysis can be performed on the timing unit to be optimized and the reference timing unit to determine whether there are problems such as wiring or clock delay between the timing unit to be optimized and the reference timing unit, so as to further perform step S24 when the reorganization condition is met.
[0043] Among them, when it is determined that there is a timing conflict or winding, clock delay or other problems between the timing unit to be optimized and the reference timing unit, the reorganization condition indicates that based on the positional relationship between the timing unit to be optimized and the reference timing unit, the setting position of the timing unit to be optimized as the first-level timing unit needs to be adjusted.
[0044] Step S26, adjusting the physical position of the sequential unit to be optimized according to the position optimization range.
[0045] Based on the corresponding relationship between the reference timing unit and the timing unit to be optimized on the timing path, after determining that the positional relationship between the timing unit to be optimized and the reference timing unit meets the reorganization condition, the physical position of the timing unit to be optimized can be adjusted according to the position optimization range determined based on the reference timing unit to meet the physical position requirements of the timing unit to be optimized on the timing path, optimize the chip layout, and save the chip's winding resources.
[0046] It can be seen that the embodiment of the present application determines the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized according to the logic information recorded in the chip database, wherein the reference timing unit is the upper-level timing unit and the lower-level timing unit of the timing unit to be optimized; further, it is possible to determine the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, and the physical optimization range is used to indicate the physical position range to be adjusted of the timing unit to be optimized; according to the physical position of the timing unit to be optimized, it is judged whether the timing unit to be optimized is located in the position optimization range, so as to judge the physical position relationship between the timing unit to be optimized and the reference timing unit, thereby improving the initiative of chip design inspection, and compared with the method of finding problems when merging at the top level of chip design, it can effectively improve the design efficiency and problem coverage of the chip. Moreover, when the timing unit to be optimized is located outside the position optimization range, the physical position of the timing unit to be optimized is adjusted according to the position optimization range, thereby optimizing the chip layout, avoiding physical detours, and saving chip winding resources.
[0047] In some embodiments, to determine the timing unit to be optimized and the reference timing unit, and their corresponding physical positions and physical position relationships, Figure 3 Another optional flow chart of the chip layout optimization method according to an embodiment of the present application is shown as an example. Figure 3 As shown, before step S21, step S20 may be further included to construct a chip database.
[0048] In an optional example, the chip database can be constructed based on the overall chip architecture determined early in the physical design of the chip and the modules divided according to logic, as well as the connection relationship between the modules. Specifically, based on the acquired top-level physical circuit structure of the chip design and the netlist of each module, as well as the corresponding physical location information, the corresponding digital back-end design tools can be used to integrate and analyze the data to construct a chip database. Thus, the chip database can include the top-level physical circuit structure of the chip design and the netlist of each module, as well as the corresponding physical location information. Moreover, each module corresponds to a transmission port (i.e., input and output ports), and each module can be provided with a corresponding timing unit based on the timing path for data flow transmission indicated by the transmission port, and corresponding to the timing path.
[0049] It should be noted that in the early stage of physical design of a chip, the overall architecture and modules of the chip can be determined according to the functional requirements and performance indicators of the chip to be designed, and then the logic design of the chip can be carried out, the connection relationship between the modules inside the chip can be determined, and the logic design can be converted into a register transfer level (RTL) description, and the RTL description can be converted into a gate-level netlist, including logic gates, circuit structure and timing constraints. Based on the content determined in the early stage of physical design, subsequent chip physical layout design and wiring design operations can be further performed.
[0050] The overall chip architecture and modules determined early in the physical design of the chip, as well as the connection relationship between the modules, have a direct impact on subsequent chip physical layout design and wiring design operations. In the embodiment of the present application, when a chip database is constructed based on the content determined early in the physical design of the chip, the chip database can record the logical information and physical location information of the chip design.
[0051] It can be understood that the embodiment of the present application constructs a chip database based on the design content in the early stage of chip physical design, so as to implement physical position inspection and adjustment of the timing unit based on the constructed chip database, so that chip layout problems can be discovered and solved in the early stage of chip physical design, and chip layout optimization can be achieved. Compared with the method of discovering and solving problems after the top-level merger of chip design, it can effectively improve chip design efficiency.
[0052] In some embodiments, based on the information content recorded in the chip database, when determining the timing unit to be optimized of the module according to the logic information recorded in the chip database, the timing unit to be optimized can be determined according to the timing path indicated by the transmission port of the module. The timing unit to be optimized is the first-level timing unit on the timing path corresponding to the transmission port of the module. Figure 1 Taking the chip 001 as an example, the input port of module C is P0, and the first-level sequential unit 102 on the timing path corresponding to P0 as the starting point (i.e., the timing path shown by the bold dashed line and the straight line in the figure) can be used as the timing unit to be optimized. Among them, the signal receiving end of the first-level sequential unit receives the signal input through the input port of the module, and its signal sending end sends it to the signal receiving end of the next-level sequential unit.
[0053] In some embodiments, the chip layout design can be performed based on a two-dimensional space, so the physical position can be described by the horizontal coordinates and vertical coordinates in a rectangular coordinate system. Based on the reference timing unit being the upper-level timing unit and the lower-level timing unit of the timing unit to be optimized, the physical position of the reference timing unit can include the physical position of the upper-level timing unit of the timing unit to be optimized and the physical position of the lower-level timing unit of the timing unit to be optimized. When determining the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, it can be specifically based on the horizontal coordinates and vertical coordinates corresponding to the physical positions of the upper-level timing unit and the lower-level timing unit in the reference timing unit, and the position optimization range is enclosed. Among them, the horizontal coordinates and vertical coordinates of the upper-level timing unit and the lower-level timing unit can be the boundaries of the position optimization range.
[0054] by Figure 4 Taking chip 002 as an example, in the early stage of physical design, a chip database is constructed according to the content determined by chip 002. The physical position of module A is read in the chip database as ({xa1, ya1}{xa2, ya2}), the physical position of sequential unit 100 in module A is {x2, y2}, the physical position of module B is ({xb1, yb1}{xb2, yb2}), the physical position of sequential unit 101 in module B is {x1, y1}, the physical position of module C is ({xc1, yc1}{xc2, yc2}), and the physical position of sequential unit 102 in module C is {x, y}. According to the logic information in the chip database, sequential unit 102 is determined as the sequential unit to be optimized of the module, and sequential unit 100 and sequential unit 101 are the reference sequential units corresponding to sequential unit 102. Moreover, the sequential unit 101 is a previous sequential unit of the sequential unit 102 , and the sequential module 100 is a next sequential unit of the sequential unit 102 .
[0055] Therefore, the position optimization range corresponding to the sequential unit 102 can be formed by surrounding the coordinates corresponding to the sequential unit 101 and the sequential unit 100 (ie, {x1, y1} and {x2, y2}) as the boundary, that is, Figure 4 The range shown is enclosed by a dotted circle.
[0056] In some embodiments, since the physical positions of the previous-level timing unit and the next-level timing unit together constitute the position optimization range corresponding to the timing unit to be optimized, and the physical position corresponds to the horizontal coordinate and the vertical coordinate, when judging whether the timing unit to be optimized is located in the position optimization range according to the physical position of the timing unit to be optimized, the judgment can be made according to the physical position relationship between the physical position of the timing unit to be optimized and the physical position of the previous-level timing unit and the next-level timing unit. Specifically, the horizontal coordinate and the vertical coordinate corresponding to the physical position of the timing unit to be optimized can be compared with the horizontal coordinate and the vertical coordinate corresponding to the physical position of the previous-level timing unit and the next-level timing unit in the reference timing unit.
[0057] As an optional implementation, if the horizontal coordinate of the timing unit to be optimized is greater than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate of the timing unit to be optimized is less than or equal to the horizontal coordinate of the next-level timing unit, and the vertical coordinate of the timing unit to be optimized is greater than or equal to the vertical coordinate of the previous-level timing unit, and the vertical coordinate of the timing unit to be optimized is less than or equal to the vertical coordinate of the next-level timing unit, then the timing unit to be optimized is located in the position optimization range.
[0058] As another optional implementation, if the horizontal coordinate of the timing unit to be optimized is less than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, and the horizontal coordinate of the timing unit to be optimized is greater than or equal to the horizontal coordinate of the next-level timing unit; and the vertical coordinate of the timing unit to be optimized is less than or equal to the vertical coordinate of the previous-level timing unit, and the vertical coordinate of the timing unit to be optimized is greater than or equal to the vertical coordinate of the next-level timing unit, then the timing unit to be optimized is located in the position optimization range.
[0059] Taking the physical location information of chip 002 as an example, when judging whether the timing unit 102 is located in the position optimization range formed by the timing unit 101 and the timing unit 100 according to the physical location of the timing unit 102 (i.e., {x, y}), the horizontal coordinate and vertical coordinate (x, y) of the timing unit 102 can be compared with the horizontal coordinate and vertical coordinate (x1, y1) of the timing unit 101 and the horizontal coordinate and vertical coordinate (x2, y2) of the timing unit 100, that is, the horizontal coordinate x of the timing unit 102 is compared with the horizontal coordinate x1 of the timing unit 101 and the horizontal coordinate x2 of the timing unit 100, and the vertical coordinate y of the timing unit 102 is compared with the vertical coordinate y1 of the timing unit 101 and the vertical coordinate y2 of the timing unit 100.
[0060] If it is compared and found that x1 < x < x2 and y1 < y < y2, then the timing unit 102 is located within the position optimization range formed by the coordinate enclosure of the timing unit 101 and the timing unit 100. For example Figure 4 as shown
[0061] If it is compared and found that x1 > x > x2 and y1 > y > y2, then the timing unit 102 is located within the position optimization range formed by the coordinate enclosure of the timing unit 101 and the timing unit 100. For example Figure 5 as shown
[0062] Conversely, if it does not satisfy x1 < x < x2 and y1 < y < y2; or, x1 > x > x2 and y1 > y > y2, then the timing unit 102 is not located within the position optimization range formed by the coordinate enclosure of the timing unit 101 and the timing unit 100, that is, the timing unit 102 is located outside this position range. For example Figure 6 as shown
[0063] It should be noted that when the timing unit 102 is located within the position optimization range formed by the coordinate enclosure of the timing unit 101 and the timing unit 100, there are various situations where x1 = x or x = x2, or, y1 = y or y = y2. The above examples only show the case where the timing unit to be optimized is located within the position optimization range with x1 < x < x2 and y1 < y < y2; x1 > x > x2 and y1 > y > y2 as examples, and it does not limit the protection scope of the embodiments of the present application
[0064] Continue to refer to Figure 3 as shown, in some embodiments, to achieve accurate adjustment of the physical position of the timing unit to be optimized, before performing step S26 of adjusting the physical position of the timing unit to be optimized according to the position optimization range, it is also necessary to determine whether there is an association between the physical position of the module where the timing unit to be optimized is located and the position optimization range, that is, step S25 of judging whether the module where the timing unit to be optimized is located overlaps with the position optimization range according to the physical position of the module where the timing unit to be optimized is located
[0065] By judging whether the module where the timing unit to be optimized is located overlaps with the position optimization range, the range for adjusting the physical position of the timing unit to be optimized can be determined. Among them, when the module where the timing unit to be optimized is located overlaps with the position optimization range, it indicates that there are problems such as wire winding in the current physical position of the timing unit to be optimized in its module, and it is necessary to optimize the physical position of the timing unit to be optimized in this module. When the module where the timing unit to be optimized is located does not overlap with the position optimization range, it indicates that due to the relatively large distance between the current physical position of the timing unit to be optimized and the physical positions of its corresponding upper and lower timing units, problems such as physical detours occur, and it is necessary to adjust the physical position of the timing unit to be optimized to other modules
[0066] In some embodiments, the physical position of the module where the timing unit to be optimized is located may include a first physical position and a second physical position. Based on the horizontal coordinate and the vertical coordinate corresponding to the physical position, when judging whether the module where the timing unit to be optimized is overlapped with the position optimization range according to the physical position of the module where the timing unit to be optimized is located, the judgment can be made based on the relationship between the horizontal coordinate corresponding to the first physical position of the timing unit to be optimized and the horizontal coordinates of the previous-level timing unit and the next-level timing unit, and based on the relationship between the vertical coordinate corresponding to the second physical position of the timing unit to be optimized and the vertical coordinates of the previous-level timing unit and the next-level timing unit.
[0067] Specifically, the horizontal coordinate corresponding to the first physical position can be compared with the horizontal coordinate corresponding to the physical position of the previous-level timing unit and the horizontal coordinate corresponding to the physical position of the next-level timing unit, and the vertical coordinate corresponding to the second physical position can be compared with the vertical coordinate corresponding to the physical position of the previous-level timing unit and the vertical coordinate corresponding to the physical position of the next-level timing unit.
[0068] As an optional implementation, if the horizontal coordinate corresponding to the first physical position is greater than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate corresponding to the first physical position is less than or equal to the horizontal coordinate corresponding to the physical position of the next-level timing unit, and the vertical coordinate corresponding to the second physical position is greater than or equal to the vertical coordinate corresponding to the physical position of the previous-level timing unit, and the vertical coordinate corresponding to the second physical position is less than or equal to the vertical coordinate corresponding to the physical position of the next-level timing unit, then the module where the timing unit to be optimized is located overlaps with the position optimization range.
[0069] As another optional implementation, if the horizontal coordinate corresponding to the first physical position is less than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate corresponding to the first physical position is greater than or equal to the horizontal coordinate corresponding to the physical position of the next-level timing unit, and the vertical coordinate corresponding to the second physical position is less than or equal to the vertical coordinate corresponding to the physical position of the previous-level timing unit, and the vertical coordinate corresponding to the second physical position is greater than or equal to the vertical coordinate corresponding to the physical position of the next-level timing unit, then the module where the timing unit to be optimized is located overlaps with the position optimization range.
[0070] Taking the physical location information of chip 002 as an example, when determining whether the module C where the timing unit 102 is located overlaps with the position optimization range formed by enclosing the timing unit 101 and the timing unit 100 according to the physical location of the module C where the timing unit 102 is located (i.e., {xc1, yc1}{xc2, yc2}; where {xc1, yc1} is the first physical location and {xc2, yc2} is the second physical location), the horizontal coordinate (xc1) of the module C where the timing unit 102 is located can be compared with the horizontal coordinate (x1) of the timing unit 101 and the horizontal coordinate (x2) of the timing unit 100 respectively, and the vertical coordinate (yc2) of the module C where the timing unit 102 is located can be compared with the vertical coordinate (y1) of the timing unit 101 and the vertical coordinate (y2) of the timing unit 100 respectively.
[0071] If it is obtained by comparison that x1 < xc1 < x2 and y1 < yc2 < y2, then the module C where the timing unit 102 is located overlaps with the position optimization range formed by enclosing the timing unit 101 and the timing unit 100. For example Figure 4 as shown.
[0072] If it is obtained by comparison that x1 > xc1 > x2 and y1 > yc2 > y2, then the module C where the timing unit 102 is located overlaps with the position optimization range formed by enclosing the timing unit 101 and the timing unit 100, that is, there is an intersection between the module C where the timing unit 102 is located and the position optimization range. For example Figure 7 as shown.
[0073] On the contrary, if it does not satisfy x1 < xc1 < x2 and y1 < yc2 < y2, or x1 > xc1 > x2 and y1 > yc2 > y2, then the module C where the timing unit 102 is located does not overlap with the position optimization range formed by enclosing the timing unit 101 and the timing unit 100. For example Figure 6 as shown.
[0074] It should be noted that when determining whether the module where the timing unit to be optimized is located overlaps with the position optimization range, there are various situations where x1 = xc1 or x2 = xc1, or y1 = yc2 or y2 = yc2. The above examples only show the overlap between the module C where the timing unit to be optimized is located and the position optimization range in the cases of x1 < xc1 < x2 and y1 < yc2 < y2; x1 > xc1 > x2 and y1 > yc2 > y2, and it does not limit the protection scope of the embodiments of the present application.
[0075] Further, in some embodiments, if the module where the timing unit to be optimized is located overlaps with the position optimization range, step S26, adjusting the physical position of the timing unit to be optimized according to the position optimization range, can be specifically step S261, adjusting the physical position of the timing unit to be optimized according to the physical position of the next-level timing unit in the reference timing unit.
[0076] In an optional example, when adjusting the physical position of the timing unit to be optimized according to the physical position of the next-level timing unit in the reference timing unit, it is possible to determine a first physical position difference corresponding to the physical position of the next-level timing unit and the physical position of the timing unit to be optimized based on the physical position of the next-level timing unit, and then adjust the physical position of the timing unit to be optimized based on the first physical position difference.
[0077] Taking the physical position information of chip 002 as an example, the physical position difference between sequential unit 100 and sequential unit 102 can be determined according to the physical position of sequential unit 100 (ie, {x2, y2}), ie, Δx=x2-x; Δy=y2-y.
[0078] If Δx is negative, the horizontal coordinate x of the sequential unit 102 is moved leftward along the X-axis by a corresponding value; if Δy is negative, the vertical coordinate y of the sequential unit 102 is moved downward along the Y-axis by a corresponding value.
[0079] Further, in some embodiments, if the module where the timing unit to be optimized is located does not overlap with the position optimization range, step S26, adjusting the physical position of the timing unit to be optimized according to the position optimization range, can be specifically step S262, adjusting the physical position of the timing unit to be optimized according to the physical positions of the previous-level timing unit and the next-level timing unit in the reference timing unit.
[0080] In an optional example, when adjusting the physical position of the timing unit to be optimized based on the physical positions of the previous-level timing unit and the next-level timing unit in the reference timing unit, the median of the physical position can be determined based on the physical positions of the previous-level timing unit and the next-level timing unit, and then based on the median of the physical position, a second physical position difference corresponding to the physical position of the timing unit to be optimized is determined, and based on the second physical position difference, the physical position of the timing unit to be optimized is adjusted.
[0081] Taking the physical position information of chip 002 as an example, the median of the physical position (e.g., {x3, y3}) can be determined based on the physical position of the sequential unit 101 (i.e., {x1, y1}) and the physical position of the sequential unit 100 (i.e., {x2, y2}), then x3 = (x1 + x2) / 2; y3 = (y1 + y2) / 2. Further, based on {x3, y3}, the physical position difference corresponding to the sequential unit 102 (i.e., {x, y}) is determined, i.e., Δx' = x3-x; Δy' = y3-y. If Δx' is negative, the horizontal coordinate x of the sequential unit 102 is moved to the left by a corresponding value on the X-axis; if Δy' is negative, the vertical coordinate y of the sequential unit 102 is moved downward by a corresponding value on the Y-axis.
[0082] It should be noted that in order to achieve accurate adjustment of the physical position of the timing unit to be optimized, before determining the second physical position difference corresponding to the physical position of the timing unit to be optimized based on the median of the physical position, the target module can also be determined based on the median of the physical position, so that the timing unit to be optimized can be adjusted to the physical position range of the target module.
[0083] As an optional implementation, based on the determination of the median of the physical position, when determining the target module, the median of the physical position can be compared with the physical position of the module where the previous-level timing unit is located. If the physical position indicated by the median of the physical position is within the physical position range of the module where the previous-level timing unit is located, the module where the previous-level timing unit is located is used as the target module.
[0084] In a specific example, the physical position of the module where the previous-level timing unit is located may include a third physical position and a fourth physical position. Based on the fact that the physical position includes horizontal coordinates and vertical coordinates, the median of the horizontal coordinate corresponding to the median of the physical position can be compared with the horizontal coordinate corresponding to the third physical position and the horizontal coordinate corresponding to the fourth physical position, and the median of the vertical coordinate corresponding to the median of the physical position can be compared with the vertical coordinate corresponding to the third physical position and the vertical coordinate corresponding to the fourth physical position.
[0085] Among them, if the median of the horizontal coordinate corresponding to the median of the physical position is greater than the horizontal coordinate corresponding to the third physical position, and the median of the horizontal coordinate corresponding to the median of the physical position is smaller than the horizontal coordinate corresponding to the fourth physical position; and the median of the vertical coordinate corresponding to the median of the physical position is greater than the vertical coordinate corresponding to the third physical position, and the median of the vertical coordinate corresponding to the median of the physical position is smaller than the vertical coordinate corresponding to the fourth physical position, then the physical position indicated by the median of the physical position is within the physical position range of the module where the previous-level timing unit is located, and the module where the previous-level timing unit is located is taken as the target module.
[0086] Taking the physical position information of chip 002 as an example, the physical position of module B where the timing unit 101 is located (i.e., {xb1, yb1}{xb2, yb2}; wherein {xb1, yb1} is the third physical position and {xb2, yb2} is the fourth physical position), based on the determined median of the physical position (i.e., {x3, y3}), x3 can be compared with xb1 and xb2 respectively, and y3 can be compared with yb1 and yb2 respectively.
[0087] If it is determined that xb1 < x3 < xb2 and yb1 < y3 < yb2, the module B where the timing unit 101 is located can be used as the target module. Thus, after correspondingly adjusting the position of the timing unit 102 according to Δx' = x3 - x; Δy' = y3 - y, the module where the timing unit 102 is located is module B. For example Figure 8 as shown
[0088] As another alternative implementation, based on the determination of the physical position median, when determining the target module, the physical position median can be compared with the physical position of the module where the next-level timing unit is located. If the physical position indicated by the physical position median is within the physical position range of the module where the next-level timing unit is located, the module where the next-level timing unit is located is used as the target module
[0089] In a specific example, the physical position of the module where the next-level timing unit is located includes a fifth physical position and a sixth physical position. Based on the fact that the physical position includes a horizontal coordinate and a vertical coordinate, the horizontal coordinate median corresponding to the physical position median can be respectively compared with the horizontal coordinate corresponding to the fifth physical position and the horizontal coordinate corresponding to the sixth physical position, and the vertical coordinate median corresponding to the physical position median can be respectively compared with the vertical coordinate corresponding to the fifth physical position and the vertical coordinate corresponding to the sixth physical position
[0090] Among them, if the horizontal coordinate median corresponding to the physical position median is greater than the horizontal coordinate corresponding to the fifth physical position, and the horizontal coordinate median corresponding to the physical position median is less than the horizontal coordinate corresponding to the sixth physical position; and, if the vertical coordinate median corresponding to the physical position median is greater than the vertical coordinate corresponding to the fifth physical position, and the vertical coordinate median corresponding to the physical position median is less than the vertical coordinate corresponding to the sixth physical position, then the physical position indicated by the physical position median is within the physical position range of the module where the next-level timing unit is located, and the module where the next-level timing unit is located is used as the target module
[0091] Taking the physical position information of chip 002 as an example, the physical position of module A where the timing unit 100 is located (i.e., {xa1, ya1}{xa2, ya2}; where {xa1, ya1} is the fifth physical position and {xa2, ya2} is the sixth physical position), based on the determined physical position median (i.e., {x3, y3}), x3 can be respectively compared with xa1 and xa2, and y3 can be respectively compared with ya1 and ya2
[0092] If it is compared and found that xa1 < x3 < xa2 and ya1 < y3 < ya2, the module A where the timing unit 100 is located can be used as the target module. Thus, after adjusting the position of the timing unit 102 according to Δx' = x3 - x; Δy' = y3 - y, the module where the timing unit 102 is located is module A. For example Fig. 9 as shown
[0093] It should be noted that if the module corresponding to {x3, y3} is other modules except modules A and B, for example Fig.10 as shown in module D, the module D corresponding to {x3, y3} can be used as the target module, and the physical position of the timing unit 102 can be adjusted so that it is located in module D.
[0094] Continue to refer to Figure 3 as shown. In some embodiments, since the reference timing unit is the upper-level timing unit and the lower-level timing unit corresponding to the timing unit to be optimized, before determining the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, it is also necessary to determine the position relationship between the timing unit to be optimized and the reference timing unit, that is, step S22. According to the physical position of the reference timing unit, it is judged whether the reference timing unit and the timing unit to be optimized are located in the same module. Among them, when the reference timing unit and the timing unit to be optimized are located in the same module, the physical position design of the timing unit to be optimized is reasonable, there is no physical detour, and there is no need to adjust its position. On the contrary, if the reference timing unit and the timing unit to be optimized are not located in the same module, step S23 is executed, that is, the step of determining the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit.
[0095] As an optional implementation, when judging whether the reference timing unit and the timing unit to be optimized are located in the same module according to the physical position of the reference timing unit, it is possible to separately judge whether the upper-level timing unit in the reference timing unit and the lower-level timing unit in the reference timing unit are located in the same module as the timing unit to be optimized.
[0096] In a specific example, according to the physical position of the upper-level timing unit in the reference timing unit, it can be judged whether the upper-level timing unit in the reference timing unit is located within the physical position range of the module where the timing unit to be optimized is located. If so, the upper-level timing unit and the timing unit to be optimized are located in the same module.
[0097] According to the physical position of the lower-level timing unit in the reference timing unit, it is judged whether the lower-level timing unit in the reference timing unit is located within the physical position range of the module where the timing unit to be optimized is located. If so, the lower-level timing unit and the timing unit to be optimized are located in the same module.
[0098] Taking chip 002 as an example, when determining whether timing units 101, 100, and 102 are in the same module, the physical location of module C where timing unit 102 is located [i.e., ({xc1, yc1}{xc2, yc2})] can be compared with the physical location of timing unit 101 (i.e., {x1, y1}) and the physical location of timing unit 100 (i.e., {x2, y2}) respectively.
[0099] For timing unit 101, if it is obtained by comparison that xc1 < x1 < xc2 and yc1 < y1 < yc2, then timing units 100 and 102 are in the same module C; conversely, timing units 100 and 102 are in different modules, for example Figures 5 to 7 as shown.
[0100] For timing unit 100, if it is obtained by comparison that xc1 < x2 < xc2 and yc1 < y2 < yc2, then timing units 100 and 102 are in the same module C; conversely, timing units 100 and 102 are in different modules, for example Figures 5 to 7 as shown.
[0101] It can be seen that in the embodiment of the present application, by determining the timing units to be optimized in the module and the reference timing units corresponding to the timing units to be optimized according to the logical information recorded in the chip database, where the reference timing units are the upper-level timing unit and the lower-level timing unit of the timing unit to be optimized; furthermore, the position optimization range corresponding to the timing unit to be optimized can be determined according to the physical location of the reference timing unit, and the physical optimization range is used to indicate the range of the physical position to be adjusted of the timing unit to be optimized; according to the physical location of the timing unit to be optimized, it is judged whether the timing unit to be optimized is within the position optimization range, so as to judge the physical position relationship between the timing unit to be optimized and the reference timing unit, improving the initiative of checking the chip design. Compared with the method of finding problems during the top-level merging of the chip design, it can effectively improve the design efficiency and problem coverage rate of the chip. And when the timing unit to be optimized is outside the position optimization range, the physical position of the timing unit to be optimized is adjusted according to this position optimization range, thereby optimizing the chip layout, avoiding physical detours, and saving the wiring resources of the chip.
[0102] The embodiment of the present application also provides a chip layout optimization device. The device content described below can be considered as the functional modules required to implement the chip design optimization method provided by the embodiment of the present application. The content described below can be mutually corresponding and referred to the content described above.
[0103] As an optional implementation, Fig.11An optional block diagram of a chip layout optimization device provided in an embodiment of the present application is shown exemplarily. Fig.11 , the device may include:
[0104] The first determination module 111 is used to determine the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized according to the logic information recorded in the chip database; wherein the reference timing unit is the previous level timing unit and the next level timing unit of the timing unit to be optimized;
[0105] A second determining module 113 is used to determine a position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, wherein the physical optimization range is used to indicate a physical position range to be adjusted of the timing unit to be optimized;
[0106] A first judgment module 114 is used to judge whether the timing unit to be optimized is located in the position optimization range according to the physical position of the timing unit to be optimized;
[0107] The adjusting module 116 is configured to adjust the physical position of the sequential unit to be optimized according to the position optimization range when the first judging module judges to be no.
[0108] Optionally, the second determination module 113 determines the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, specifically: the horizontal coordinates and vertical coordinates corresponding to the physical positions of the previous-level timing unit and the next-level timing unit in the reference timing unit are combined to form the position optimization range.
[0109] Optionally, the first judging module 114 judges whether the sequential unit to be optimized is located in the position optimization range according to the physical position of the sequential unit to be optimized, including:
[0110] Comparing the horizontal coordinate and the vertical coordinate corresponding to the physical position of the sequential unit to be optimized with the horizontal coordinate and the vertical coordinate corresponding to the physical position of the previous sequential unit in the reference sequential unit and the next sequential unit in the reference sequential unit, respectively;
[0111] If the horizontal coordinate of the timing unit to be optimized is greater than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate of the timing unit to be optimized is less than or equal to the horizontal coordinate of the next-level timing unit, and the vertical coordinate of the timing unit to be optimized is greater than or equal to the vertical coordinate of the previous-level timing unit, and the vertical coordinate of the timing unit to be optimized is less than or equal to the vertical coordinate of the next-level timing unit, then the timing unit to be optimized is located in the position optimization range; or,
[0112] If the horizontal coordinate of the timing unit to be optimized is less than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, and the horizontal coordinate of the timing unit to be optimized is greater than or equal to the horizontal coordinate of the next-level timing unit; and the vertical coordinate of the timing unit to be optimized is less than or equal to the vertical coordinate of the previous-level timing unit, and the vertical coordinate of the timing unit to be optimized is greater than or equal to the vertical coordinate of the next-level timing unit, then the timing unit to be optimized is located in the position optimization range.
[0113] Optionally, the chip layout optimization device further includes:
[0114] The second judgment module 115 is used to judge whether the module where the timing unit to be optimized is located overlaps with the position optimization range according to the physical position of the module where the timing unit to be optimized is located.
[0115] Optionally, the physical location of the module where the timing unit to be optimized is located includes a first physical location and a second physical location;
[0116] The second judgment module 115 judges whether the module where the timing unit to be optimized is located overlaps with the position optimization range according to the physical position of the module where the timing unit to be optimized is located, including:
[0117] Compare the horizontal coordinate corresponding to the first physical position with the horizontal coordinate corresponding to the physical position of the previous-level sequential unit and the horizontal coordinate corresponding to the physical position of the next-level sequential unit, and compare the vertical coordinate corresponding to the second physical position with the vertical coordinate corresponding to the physical position of the previous-level sequential unit and the vertical coordinate corresponding to the physical position of the next-level sequential unit;
[0118] If the horizontal coordinate corresponding to the first physical position is greater than or equal to the horizontal coordinate corresponding to the physical position of the previous-level sequential unit, the horizontal coordinate corresponding to the first physical position is less than or equal to the horizontal coordinate corresponding to the physical position of the next-level sequential unit, and the vertical coordinate corresponding to the second physical position is greater than or equal to the vertical coordinate corresponding to the physical position of the previous-level sequential unit, and the vertical coordinate corresponding to the second physical position is less than or equal to the vertical coordinate corresponding to the physical position of the next-level sequential unit, then the module where the sequential unit to be optimized is located overlaps with the position optimization range; or,
[0119] If the horizontal coordinate corresponding to the first physical position is less than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate corresponding to the first physical position is greater than or equal to the horizontal coordinate corresponding to the physical position of the next-level timing unit, and the vertical coordinate corresponding to the second physical position is less than or equal to the vertical coordinate corresponding to the physical position of the previous-level timing unit, and the vertical coordinate corresponding to the second physical position is greater than or equal to the vertical coordinate corresponding to the physical position of the next-level timing unit, then the module where the timing unit to be optimized is located overlaps with the position optimization range.
[0120] Optionally, if the module where the timing unit to be optimized is located overlaps with the position optimization range, the adjustment module 116 adjusts the physical position of the timing unit to be optimized according to the position optimization range, specifically: adjusting the physical position of the timing unit to be optimized according to the physical position of the next-level timing unit in the reference timing unit.
[0121] Optionally, the adjusting module 116 adjusts the physical position of the sequential unit to be optimized according to the physical position of the next-level sequential unit in the reference sequential unit, including:
[0122] Determine, according to the physical position of the next-level sequential unit, a first physical position difference corresponding to the physical position of the sequential unit to be optimized;
[0123] The physical position of the sequential unit to be optimized is adjusted according to the first physical position difference.
[0124] Optionally, if the module where the timing unit to be optimized is located does not overlap with the position optimization range, the adjustment module 116 adjusts the physical position of the timing unit to be optimized according to the position optimization range, specifically: adjusting the physical position of the timing unit to be optimized according to the physical positions of the previous-level timing unit and the next-level timing unit in the benchmark timing unit.
[0125] Optionally, the adjusting module 116 adjusts the physical position of the sequential unit to be optimized according to the physical position of the previous sequential unit in the reference sequential unit and the next sequential unit in the reference sequential unit, including:
[0126] Determine a median of the physical position according to the physical positions of the previous-level sequential unit and the next-level sequential unit;
[0127] Determine, according to the physical position median, a second physical position difference corresponding to the physical position of the sequential unit to be optimized;
[0128] The physical position of the sequential unit to be optimized is adjusted according to the second physical position difference.
[0129] Optionally, before the adjusting module 116 determines, according to the physical position median, a second physical position difference corresponding to the physical position of the sequential unit to be optimized, the adjusting module 116 further includes:
[0130] A target module is determined according to the median value of the physical position, so as to adjust the timing unit to be optimized to within the physical position range of the target module.
[0131] Optionally, the adjustment module 116 determines the target module according to the median value of the physical position, including:
[0132] Comparing the median value of the physical position with the physical position of the module where the previous-level sequential unit is located, if the physical position indicated by the median value of the physical position is within the physical position range of the module where the previous-level sequential unit is located, taking the module where the previous-level sequential unit is located as the target module; and / or,
[0133] The median of the physical position is compared with the physical position of the module where the next-level timing unit is located. If the physical position indicated by the median of the physical position is within the physical position range of the module where the next-level timing unit is located, the module where the next-level timing unit is located is used as the target module.
[0134] Optionally, the physical position of the module where the previous-level sequential unit is located includes a third physical position and a fourth physical position;
[0135] The step of comparing the median value of the physical position with the physical position of the module where the previous-level sequential unit is located, and if the physical position indicated by the median value of the physical position is within the physical position range of the module where the previous-level sequential unit is located, taking the module where the previous-level sequential unit is located as the target module includes:
[0136] Compare the median of the horizontal coordinate corresponding to the median of the physical position with the horizontal coordinate corresponding to the third physical position and the horizontal coordinate corresponding to the fourth physical position, and compare the median of the vertical coordinate corresponding to the median of the physical position with the vertical coordinate corresponding to the third physical position and the vertical coordinate corresponding to the fourth physical position;
[0137] If the median of the horizontal coordinate corresponding to the median of the physical position is greater than the horizontal coordinate corresponding to the third physical position, and the median of the horizontal coordinate corresponding to the median of the physical position is less than the horizontal coordinate corresponding to the fourth physical position; and the median of the vertical coordinate corresponding to the median of the physical position is greater than the vertical coordinate corresponding to the third physical position, and the median of the vertical coordinate corresponding to the median of the physical position is less than the vertical coordinate corresponding to the fourth physical position, then the physical position indicated by the median of the physical position is within the physical position range of the module where the previous-level timing unit is located, and the module where the previous-level timing unit is located is taken as the target module.
[0138] Optionally, the physical position of the module where the next-level sequential unit is located includes a fifth physical position and a sixth physical position;
[0139] The step of comparing the median value of the physical position with the physical position of the module where the next-level sequential unit is located, and if the physical position indicated by the median value of the physical position is within the physical position range of the module where the next-level sequential unit is located, taking the module where the next-level sequential unit is located as the target module includes:
[0140] Compare the median of the horizontal coordinate corresponding to the median of the physical position with the horizontal coordinate corresponding to the fifth physical position and the horizontal coordinate corresponding to the sixth physical position, respectively, and compare the median of the vertical coordinate corresponding to the median of the physical position with the vertical coordinate corresponding to the fifth physical position and the vertical coordinate corresponding to the sixth physical position, respectively;
[0141] If the median of the horizontal coordinate corresponding to the median of the physical position is greater than the horizontal coordinate corresponding to the fifth physical position, and the median of the horizontal coordinate corresponding to the median of the physical position is smaller than the horizontal coordinate corresponding to the sixth physical position; and the median of the vertical coordinate corresponding to the median of the physical position is greater than the vertical coordinate corresponding to the fifth physical position, and the median of the vertical coordinate corresponding to the median of the physical position is smaller than the vertical coordinate corresponding to the sixth physical position, then the physical position indicated by the median of the physical position is within the physical position range of the module where the next-level timing unit is located, and the module where the next-level timing unit is located is taken as the target module.
[0142] Optionally, the chip layout optimization device further includes:
[0143] A third judgment module 112, configured to judge whether the reference sequential unit and the sequential unit to be optimized are located in the same module according to the physical position of the reference sequential unit;
[0144] If not, a step of determining a position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit is performed.
[0145] Optionally, the third judgment module 112 judges whether the reference sequential unit and the sequential unit to be optimized are located in the same module according to the physical location of the reference sequential unit, including:
[0146] According to the physical position of the previous-level sequential unit in the reference sequential unit, determine whether the previous-level sequential unit in the reference sequential unit is located in the physical position range of the module where the sequential unit to be optimized is located, and if so, the previous-level sequential unit and the sequential unit to be optimized are located in the same module;
[0147] According to the physical position of the next-level sequential unit in the reference sequential unit, it is determined whether the next-level sequential unit in the reference sequential unit is located in the physical position range of the module where the sequential unit to be optimized is located. If so, the next-level sequential unit and the sequential unit to be optimized are located in the same module.
[0148] Optionally, the chip layout optimization device also includes: a database construction module 110, used to construct a chip database, the chip database includes the top-level physical circuit structure of the chip design and the netlist of each module, and corresponding physical location information; wherein each module corresponds to a transmission port, based on the timing path indicating a data stream transmission by the transmission port, and corresponding to the timing path, each module is provided with a corresponding timing unit.
[0149] Optionally, the first determining module 111 determines the timing unit to be optimized of the module according to the logic information recorded in the chip database, specifically:
[0150] The timing unit to be optimized is determined according to the timing path indicated by the transmission port of the module, wherein the timing unit to be optimized is a first-level timing unit on the timing path corresponding to the transmission port of the module.
[0151] It can be seen that the chip layout optimization device provided in the embodiment of the present application can avoid the occurrence of physical detours, save the winding resources of the timing unit in the chip design, optimize the chip layout, and based on the chip layout optimization device, the chip layout can be optimized during the chip design process, thereby realizing the automatic inspection of the chip and improving the chip design efficiency.
[0152] The present application also provides an electronic device, which can implement the chip layout optimization method provided in the present application embodiment by configuring the chip layout optimization device described above. As an optional implementation, Fig.12 An optional block diagram of an electronic device provided in an embodiment of the present application, such as Fig.12 As shown, the electronic device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
[0153] In the embodiment of the present application, the number of the processor 1 , the communication interface 2 , the memory 3 , and the communication bus 4 is at least one, and the processor 1 , the communication interface 2 , and the memory 3 communicate with each other through the communication bus 4 .
[0154] Optionally, the communication interface 2 may be an interface of a communication module for performing network communication.
[0155] Optionally, processor 1 may be a CPU (central processing unit), a GPU (Graphics Processing Unit), an NPU (embedded neural network processor), an FPGA (Field Programmable Gate Array), a TPU (tensor processing unit), an AI chip, an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement an embodiment of the present application.
[0156] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0157] The memory 3 stores one or more computer executable instructions, and the processor 1 calls the one or more computer executable instructions to execute the chip layout optimization method of the embodiment of the present application.
[0158] An embodiment of the present application further provides a storage medium, wherein the storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, a chip layout optimization method as in the embodiment of the present application is implemented.
[0159] The embodiments of the present application also provide a computer program product, which includes one or more computer executable instructions. When the one or more computer executable instructions are executed, the chip layout optimization method of the embodiments of the present application is implemented.
[0160] The above describes multiple implementation schemes provided by the embodiments of the present application. The various optional methods introduced in each implementation scheme can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible implementation schemes, which can all be considered as implementation schemes disclosed and open in the embodiments of the present application.
[0161] Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be subject to the scope defined by the claims.
Claims
1. A chip layout optimization method, characterized in that: include: According to the logic information recorded in the chip database, determine the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized; wherein the reference timing unit is the previous level timing unit and the next level timing unit of the timing unit to be optimized; Determine, according to the physical position of the reference sequential unit, a position optimization range corresponding to the sequential unit to be optimized, wherein the physical optimization range is used to indicate a physical position range to be adjusted of the sequential unit to be optimized; According to the physical position of the sequential unit to be optimized, it is determined whether the sequential unit to be optimized is located in the position optimization range; if not, the physical position of the sequential unit to be optimized is adjusted according to the position optimization range.
2. The chip layout optimization method according to claim 1, characterized in that: The determining of the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit is specifically as follows: the horizontal coordinates and the vertical coordinates corresponding to the physical positions of the previous-level timing unit and the next-level timing unit in the reference timing unit are combined to form the position optimization range.
3. The chip layout optimization method according to claim 2, characterized in that: The step of judging whether the sequential unit to be optimized is located in the position optimization range according to the physical position of the sequential unit to be optimized includes: Comparing the horizontal coordinate and the vertical coordinate corresponding to the physical position of the sequential unit to be optimized with the horizontal coordinate and the vertical coordinate corresponding to the physical position of the previous sequential unit in the reference sequential unit and the next sequential unit in the reference sequential unit, respectively; If the horizontal coordinate of the timing unit to be optimized is greater than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate of the timing unit to be optimized is less than or equal to the horizontal coordinate of the next-level timing unit, and the vertical coordinate of the timing unit to be optimized is greater than or equal to the vertical coordinate of the previous-level timing unit, and the vertical coordinate of the timing unit to be optimized is less than or equal to the vertical coordinate of the next-level timing unit, then the timing unit to be optimized is located in the position optimization range; or, If the horizontal coordinate of the timing unit to be optimized is less than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, and the horizontal coordinate of the timing unit to be optimized is greater than or equal to the horizontal coordinate of the next-level timing unit; and the vertical coordinate of the timing unit to be optimized is less than or equal to the vertical coordinate of the previous-level timing unit, and the vertical coordinate of the timing unit to be optimized is greater than or equal to the vertical coordinate of the next-level timing unit, then the timing unit to be optimized is located in the position optimization range.
4. The chip layout optimization method according to claim 2, characterized in that: Before adjusting the physical position of the sequential unit to be optimized according to the position optimization range, the method further includes: According to the physical position of the module where the timing unit to be optimized is located, it is determined whether the module where the timing unit to be optimized is located overlaps with the position optimization range.
5. The chip layout optimization method according to claim 4, characterized in that: The physical position of the module where the timing unit to be optimized is located includes a first physical position and a second physical position; The determining, according to the physical position of the module where the timing unit to be optimized is located, whether the module where the timing unit to be optimized is located overlaps with the position optimization range includes: Compare the horizontal coordinate corresponding to the first physical position with the horizontal coordinate corresponding to the physical position of the previous-level sequential unit and the horizontal coordinate corresponding to the physical position of the next-level sequential unit, and compare the vertical coordinate corresponding to the second physical position with the vertical coordinate corresponding to the physical position of the previous-level sequential unit and the vertical coordinate corresponding to the physical position of the next-level sequential unit; If the horizontal coordinate corresponding to the first physical position is greater than or equal to the horizontal coordinate corresponding to the physical position of the previous-level sequential unit, the horizontal coordinate corresponding to the first physical position is less than or equal to the horizontal coordinate corresponding to the physical position of the next-level sequential unit, and the vertical coordinate corresponding to the second physical position is greater than or equal to the vertical coordinate corresponding to the physical position of the previous-level sequential unit, and the vertical coordinate corresponding to the second physical position is less than or equal to the vertical coordinate corresponding to the physical position of the next-level sequential unit, then the module where the sequential unit to be optimized is located overlaps with the position optimization range; or, If the horizontal coordinate corresponding to the first physical position is less than or equal to the horizontal coordinate corresponding to the physical position of the previous-level timing unit, the horizontal coordinate corresponding to the first physical position is greater than or equal to the horizontal coordinate corresponding to the physical position of the next-level timing unit, and the vertical coordinate corresponding to the second physical position is less than or equal to the vertical coordinate corresponding to the physical position of the previous-level timing unit, and the vertical coordinate corresponding to the second physical position is greater than or equal to the vertical coordinate corresponding to the physical position of the next-level timing unit, then the module where the timing unit to be optimized is located overlaps with the position optimization range.
6. The chip layout optimization method according to claim 5, characterized in that: If the module where the timing unit to be optimized is located overlaps with the position optimization range, adjusting the physical position of the timing unit to be optimized according to the position optimization range is specifically: adjusting the physical position of the timing unit to be optimized according to the physical position of the next-level timing unit in the reference timing unit.
7. The chip layout optimization method according to claim 6, characterized in that: The adjusting the physical position of the sequential unit to be optimized according to the physical position of the next-level sequential unit in the reference sequential unit includes: Determine, according to the physical position of the next-level sequential unit, a first physical position difference corresponding to the physical position of the sequential unit to be optimized; The physical position of the sequential unit to be optimized is adjusted according to the first physical position difference.
8. The chip layout optimization method according to claim 5, characterized in that: If the module where the timing unit to be optimized is located does not overlap with the position optimization range, adjusting the physical position of the timing unit to be optimized according to the position optimization range is specifically: adjusting the physical position of the timing unit to be optimized according to the physical positions of the previous-level timing unit and the next-level timing unit in the reference timing unit.
9. The chip layout optimization method according to claim 8, characterized in that: The adjusting the physical position of the sequential unit to be optimized according to the physical position of the previous sequential unit in the reference sequential unit and the next sequential unit in the reference sequential unit includes: Determine a median of the physical position according to the physical positions of the previous-level sequential unit and the next-level sequential unit; Determine, according to the physical position median, a second physical position difference corresponding to the physical position of the sequential unit to be optimized; The physical position of the sequential unit to be optimized is adjusted according to the second physical position difference.
10. The chip layout optimization method according to claim 9, characterized in that: Before determining the second physical position difference corresponding to the physical position of the to-be-optimized sequential unit according to the physical position median, the method further includes: A target module is determined according to the median value of the physical position, so as to adjust the timing unit to be optimized to within the physical position range of the target module.
11. The chip layout optimization method according to claim 10, characterized in that: Determining the target module according to the median value of the physical position includes: Comparing the median value of the physical position with the physical position of the module where the previous-level sequential unit is located, if the physical position indicated by the median value of the physical position is within the physical position range of the module where the previous-level sequential unit is located, taking the module where the previous-level sequential unit is located as the target module; and / or, The median of the physical position is compared with the physical position of the module where the next-level timing unit is located. If the physical position indicated by the median of the physical position is within the physical position range of the module where the next-level timing unit is located, the module where the next-level timing unit is located is used as the target module.
12. The chip layout optimization method according to claim 11, characterized in that: The physical position of the module where the previous-level sequential unit is located includes a third physical position and a fourth physical position; The step of comparing the median value of the physical position with the physical position of the module where the previous-level sequential unit is located, and if the physical position indicated by the median value of the physical position is within the physical position range of the module where the previous-level sequential unit is located, taking the module where the previous-level sequential unit is located as the target module includes: Compare the median of the horizontal coordinate corresponding to the median of the physical position with the horizontal coordinate corresponding to the third physical position and the horizontal coordinate corresponding to the fourth physical position, and compare the median of the vertical coordinate corresponding to the median of the physical position with the vertical coordinate corresponding to the third physical position and the vertical coordinate corresponding to the fourth physical position; If the median of the horizontal coordinate corresponding to the median of the physical position is greater than the horizontal coordinate corresponding to the third physical position, and the median of the horizontal coordinate corresponding to the median of the physical position is less than the horizontal coordinate corresponding to the fourth physical position; and the median of the vertical coordinate corresponding to the median of the physical position is greater than the vertical coordinate corresponding to the third physical position, and the median of the vertical coordinate corresponding to the median of the physical position is less than the vertical coordinate corresponding to the fourth physical position, then the physical position indicated by the median of the physical position is within the physical position range of the module where the previous-level timing unit is located, and the module where the previous-level timing unit is located is taken as the target module.
13. The chip layout optimization method according to claim 11, characterized in that: The physical position of the module where the next-level sequential unit is located includes a fifth physical position and a sixth physical position; The step of comparing the median value of the physical position with the physical position of the module where the next-level sequential unit is located, and if the physical position indicated by the median value of the physical position is within the physical position range of the module where the next-level sequential unit is located, taking the module where the next-level sequential unit is located as the target module includes: Compare the median of the horizontal coordinate corresponding to the median of the physical position with the horizontal coordinate corresponding to the fifth physical position and the horizontal coordinate corresponding to the sixth physical position, respectively, and compare the median of the vertical coordinate corresponding to the median of the physical position with the vertical coordinate corresponding to the fifth physical position and the vertical coordinate corresponding to the sixth physical position, respectively; If the median of the horizontal coordinate corresponding to the median of the physical position is greater than the horizontal coordinate corresponding to the fifth physical position, and the median of the horizontal coordinate corresponding to the median of the physical position is smaller than the horizontal coordinate corresponding to the sixth physical position; and the median of the vertical coordinate corresponding to the median of the physical position is greater than the vertical coordinate corresponding to the fifth physical position, and the median of the vertical coordinate corresponding to the median of the physical position is smaller than the vertical coordinate corresponding to the sixth physical position, then the physical position indicated by the median of the physical position is within the physical position range of the module where the next-level timing unit is located, and the module where the next-level timing unit is located is taken as the target module.
14. The chip layout optimization method according to claim 1, characterized in that: Before determining the position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, the method further includes: According to the physical position of the reference sequential unit, determining whether the reference sequential unit and the sequential unit to be optimized are located in the same module; If not, a step of determining a position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit is performed.
15. The chip layout optimization method according to claim 14, characterized in that: The step of judging, according to the physical position of the reference sequential unit, whether the reference sequential unit and the sequential unit to be optimized are located in the same module includes: According to the physical position of the previous-level sequential unit in the reference sequential unit, determine whether the previous-level sequential unit in the reference sequential unit is located in the physical position range of the module where the sequential unit to be optimized is located, and if so, the previous-level sequential unit and the sequential unit to be optimized are located in the same module; According to the physical position of the next-level sequential unit in the reference sequential unit, it is determined whether the next-level sequential unit in the reference sequential unit is located in the physical position range of the module where the sequential unit to be optimized is located. If so, the next-level sequential unit and the sequential unit to be optimized are located in the same module.
16. The chip layout optimization method according to claim 1, characterized in that: Before determining the module's timing unit to be optimized and the reference timing unit corresponding to the timing unit to be optimized based on the logic information recorded in the chip database, the method also includes: constructing a chip database, the chip database including the top-level physical circuit structure of the chip design and the netlist of each module, and the corresponding physical location information; wherein each module corresponds to a transmission port, based on the timing path indicated by the transmission port for data flow transmission, and corresponding to the timing path, each module is provided with a corresponding timing unit.
17. The chip layout optimization method according to claim 16, characterized in that: The step of determining the timing unit to be optimized of the module according to the logic information recorded in the chip database is specifically as follows: The timing unit to be optimized is determined according to the timing path indicated by the transmission port of the module, wherein the timing unit to be optimized is a first-level timing unit on the timing path corresponding to the transmission port of the module.
18. A chip layout optimization device, characterized in that: include: A first determination module is used to determine the timing unit to be optimized of the module and the reference timing unit corresponding to the timing unit to be optimized according to the logic information recorded in the chip database; wherein the reference timing unit is the previous level timing unit and the next level timing unit of the timing unit to be optimized; A second determining module, configured to determine a position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit, wherein the physical optimization range is used to indicate a physical position range to be adjusted of the timing unit to be optimized; A first judgment module, configured to judge whether the timing unit to be optimized is located in the position optimization range according to the physical position of the timing unit to be optimized; An adjusting module is used to adjust the physical position of the timing unit to be optimized according to the position optimization range when the first judging module judges to be no.
19. The chip layout optimization device according to claim 18, characterized in that: Also includes: The second judgment module is used to judge whether the module where the timing unit to be optimized is located overlaps with the position optimization range according to the physical position of the module where the timing unit to be optimized is located.
20. The chip layout optimization device according to claim 19, characterized in that: If the second judgment module determines that it is yes, the adjustment module adjusts the physical position of the timing unit to be optimized according to the position optimization range, specifically: adjusting the physical position of the timing unit to be optimized according to the physical position of the next-level timing unit in the reference timing unit.
21. The chip layout optimization device according to claim 19, characterized in that: If the second judgment module judges as no, the adjustment module adjusts the physical position of the timing unit to be optimized according to the position optimization range, specifically: adjusting the physical position of the timing unit to be optimized according to the physical positions of the previous level timing unit in the reference timing unit and the next level timing unit in the reference timing unit.
22. The chip layout optimization device according to claim 18, characterized in that: Also includes: A third judgment module, used for judging whether the reference sequential unit and the sequential unit to be optimized are located in the same module according to the physical position of the reference sequential unit; If not, the second determining module executes a step of determining a position optimization range corresponding to the timing unit to be optimized according to the physical position of the reference timing unit.
23. The chip layout optimization device according to claim 18, characterized in that: Also includes: The database construction module is used to construct a chip database, which includes the top-level physical circuit structure of the chip design and the netlist of each module, as well as the corresponding physical location information; wherein each module corresponds to a transmission port.
24. An electronic device, characterized in that: The method comprises at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the chip layout optimization method according to any one of claims 1 to 17.
25. A storage medium, characterized in that: The storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the chip layout optimization method according to any one of claims 1 to 17 is implemented.
26. A computer program product, characterized in that The method comprises one or more computer executable instructions, and when the one or more computer executable instructions are executed, the chip layout optimization method according to any one of claims 1 to 17 is implemented.
