A module port planning method and device for integrated circuit

By finding the target logical connections in the integrated circuit and determining the module position relationship, and directly planning the port distribution, the problem of inefficiency in traditional methods is solved, and the port planning efficiency and integration speed of chip design is improved.

CN114117970BActive Publication Date: 2024-11-08CHENGDU HAIGUANG INTEGRATED CIRCUIT DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111335400.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-11
Publication Date
2024-11-08
Estimated Expiration
2041-11-11

AI Technical Summary

Technical Problem

In chip design, with the expansion of integrated circuit scale and increase in design complexity, traditional module port planning methods are inefficient, especially when multiple people cooperate, which easily creates module planning conflicts, increasing the integration iteration time.

Method used

By finding the target logical connections in the integrated circuit, determine the relative position relationship between the driver module and the load module, plan the distribution of the driver port and the load port, and directly plan the port according to the interconnection relationship to avoid global winding and partial planning integration .

Benefits of technology

It greatly shortens the port planning time, improves the port planning efficiency of integrated circuit modules, and reduces conflict and iteration time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114117970B_ABST
    Figure CN114117970B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a module port planning method and device for an integrated circuit, which relates to the technical field of integrated circuits and can improve the port planning efficiency of integrated circuit modules. The method comprises: searching for target logic connections according to the interconnection relationship between each circuit module in the integrated circuit, each driver module and the corresponding load module forming a driver-load pair through each target logic connection between the two; determining the relative position relationship between the driver module and the load module in each driver-load pair; and planning the distribution of the driver ports of each target logic connection in the corresponding driver module and the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair. The present invention is applicable to integrated circuit design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a method and device for planning module ports of integrated circuits. Background Art

[0002] In chip design, after the top-level module layout is completed, the ports of each top-level module need to be planned. The traditional way to plan module ports is to use EDA (Electronic Design Automation) tools to perform global routing and place module ports at the location where the port connections between modules are routed. However, as the chip scale expands and the design complexity increases, the top level contains more and more modules, and the physical reuse of modules is also increasing, resulting in longer and longer running times for EDA tools to perform global routing and poor port planning efficiency.

[0003] In addition, for very large-scale integrated circuits, the integrated circuit is often divided into multiple parts, each of which is planned by different people and then integrated. Although this solution speeds up the port planning time, since each person only plans ports for a part of the circuit without considering the overall situation, when these parts are integrated into a whole, it is easy to cause module planning conflicts, thereby increasing the integration iteration time, so the port planning efficiency is also difficult to improve. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method, device, electronic device, storage medium and chip for planning module ports of an integrated circuit, which can improve the port planning efficiency of the integrated circuit module.

[0005] In a first aspect, an embodiment of the present invention provides a module port planning method for an integrated circuit, the method comprising: searching for target logic connections according to the interconnection relationship between circuit modules in the integrated circuit, the target logic connections being logic connections that connect a driver module and a load module one-to-one in the integrated circuit, each driver module and the corresponding load module forming a driver-load pair through each target logic connection therebetween; determining the relative position relationship between the driver module and the load module in each driver-load pair; and planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair.

[0006] Optionally, determining the relative position relationship between the driving module and the load module in each driving-load pair includes:

[0007] Respectively obtaining the position information of the driving module and the load module on the chip;

[0008] Determine, according to the position information, whether there is an overlapping interval between a first coordinate component of a point on the contour line of the driving module and a first coordinate component of a point on the contour line of the load module, wherein the first coordinate component is a horizontal coordinate or a vertical coordinate;

[0009] In the case where the overlapping interval exists, determining that the driving module and the load module are in a directly opposite relationship;

[0010] In the case that the overlapping interval does not exist, it is determined that the driving module and the load module are in an indirect relative relationship.

[0011] Optionally, planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logic connection in the corresponding load module includes:

[0012] When the driving module and the load module are in direct opposition, the driving port is arranged in the driving module, corresponding to the overlapping interval and close to the boundary of the load module, and the load port is arranged in the load module, corresponding to the overlapping interval and close to the boundary of the driving module.

[0013] Optionally, planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logic connection in the corresponding load module includes:

[0014] In the case where the driving module and the load module are in an indirect relative relationship, a wiring reference area is specified for the driving module and the load module, and the wiring reference area is adjacent to a first boundary of the driving module and a second boundary of the load module;

[0015] The driving port is disposed on the first boundary of the driving module, and the load port is disposed on the second boundary of the load module.

[0016] Optionally, the number of the wiring reference areas is at least two;

[0017] Before arranging the driving port on the first boundary of the driving module, the method further includes:

[0018] For each of the wiring reference regions, the sum of the lengths of the first boundary and the second boundary that are adjacent to the wiring reference region is calculated to obtain the sum of the boundary lengths corresponding to each of the wiring reference regions;

[0019] Selecting the boundary length and the largest wiring reference area as the target area;

[0020] The step of arranging the driving port on the first boundary of the driving module and arranging the load port on the second boundary of the load module comprises:

[0021] The driving port is disposed on the first boundary of the driving module adjacent to the target area, and the load port is disposed on the second boundary of the load module adjacent to the target area.

[0022] Optionally, the physical modules corresponding to the circuit modules are the same or different;

[0023] Before planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logic connection in the corresponding load module, the method further includes:

[0024] Searching for a circuit module corresponding to a target physical module in the integrated circuit to obtain a homologous circuit module, wherein the homologous circuit module is each circuit module corresponding to the same physical module;

[0025] Determining, according to the role of the homologous circuit module in each of the driver-load pairs, that the homologous circuit module is a homologous driver module or a homologous load module;

[0026] Respectively obtaining a first relative position relationship between each homologous driving module and a corresponding load module in the driving-load pair to which it belongs, and respectively obtaining a second relative position relationship between each homologous load module and a corresponding driving module in the driving-load pair to which it belongs;

[0027] When the first relative position relationship and the second relative position relationship meet a preset condition, the target physical module is determined to be a reusable module.

[0028] Optionally, planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logic connection in the corresponding load module includes:

[0029] In the case where the target physical module is a reusable module, the drive port of the target physical module is planned according to the first positional relationship, and the load port of the target physical module is planned according to the second positional relationship to implement port planning of all homologous circuit modules corresponding to the target physical module.

[0030] Optionally, planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logic connection in the corresponding load module includes:

[0031] Taking a first preset point on the chip where the integrated circuit is located as a coordinate origin, determining the coordinates of the drive port of each target logic connection and the coordinates of the load port of each target logic connection according to the relative position relationship determined in each drive-load pair, and obtaining the drive port coordinates and load port coordinates of each circuit module;

[0032] Obtaining the placement position of each circuit module in the integrated circuit in the chip;

[0033] Determining the position change of the placement position relative to the physical module corresponding to the circuit module;

[0034] According to the position of each circuit module in the chip and the orientation transformation, the drive port coordinates and the load port coordinates with the first preset point on the chip as the coordinate origin are respectively converted into coordinates with the second preset point on the corresponding physical module as the origin.

[0035] In a second aspect, an embodiment of the present invention provides a module port planning device for an integrated circuit, comprising:

[0036] A search unit, configured to search for a target logic connection according to the interconnection relationship between the circuit modules in the integrated circuit, wherein the target logic connection is a logic connection that connects a driver module and a load module one-to-one in the integrated circuit, and each driver module and the corresponding load module form a driver-load pair through each target logic connection between the two.

[0037] a determination unit, configured to determine a relative position relationship between the driving module and the load module in each of the driving-load pairs;

[0038] A planning unit is used to plan the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and to plan the distribution of the load ports of each target logic connection in the corresponding load module.

[0039] Optionally, the determining unit includes:

[0040] An acquisition subunit, used to respectively acquire the position information of the driving module and the load module on the chip;

[0041] A first determining subunit, configured to determine, based on the position information, whether there is an overlapping interval between a first coordinate component of a point on the contour line of the driving module and a first coordinate component of a point on the contour line of the load module, wherein the first coordinate component is a horizontal coordinate or a vertical coordinate;

[0042] A second determining subunit is used to determine that the driving module and the load module are in a directly opposite relationship when the overlapping interval exists;

[0043] The third determining subunit is configured to determine that the driving module and the load module are in an indirect relative relationship when the overlapping interval does not exist.

[0044] Optionally, the planning unit is specifically used for:

[0045] When the driving module and the load module are in direct opposition, the driving port is arranged in the driving module, corresponding to the overlapping interval and close to the boundary of the load module, and the load port is arranged in the load module, corresponding to the overlapping interval and close to the boundary of the driving module.

[0046] Optionally, the planning unit specifically includes:

[0047] a designating subunit, configured to designate a wiring reference area for the driving module and the load module when the driving module and the load module are in an indirect relative relationship, wherein the wiring reference area is adjacent to a first boundary of the driving module and a second boundary of the load module;

[0048] A setting subunit is used to set the driving port on the first boundary of the driving module and set the load port on the second boundary of the load module.

[0049] Optionally, the number of the wiring reference areas is at least two;

[0050] The planning unit specifically includes:

[0051] a calculation subunit, configured to calculate, for each wiring reference region, the sum of the lengths of the first boundary and the second boundary that are adjacent to the wiring reference region before setting the driving port on the first boundary of the driving module, to obtain the sum of boundary lengths corresponding to each wiring reference region;

[0052] A selection subunit, used for selecting the boundary length and the largest wiring reference area as a target area;

[0053] The setting subunit is specifically used to: set the driving port on the first boundary adjacent to the target area in the driving module, and set the load port on the second boundary adjacent to the target area in the load module.

[0054] Optionally, the physical modules corresponding to the circuit modules are the same or different;

[0055] The device also includes:

[0056] a homologous circuit module search unit, configured to search for a circuit module corresponding to a target physical module in the integrated circuit before planning the distribution of the drive ports of each target logic connection in the corresponding drive module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each drive-load pair, so as to obtain a homologous circuit module, wherein the homologous circuit modules are circuit modules corresponding to the same physical module;

[0057] a homologous circuit module determination unit, configured to determine whether the homologous circuit module is a homologous driving module or a homologous load module according to the role of the homologous circuit module in each of the driving-load pairs;

[0058] A relative position relationship acquisition unit, used to respectively acquire a first relative position relationship between each homologous driving module and a corresponding load module in the driving-load pair to which it belongs, and to respectively acquire a second relative position relationship between each homologous load module and a corresponding driving module in the driving-load pair to which it belongs;

[0059] The reusable module determining unit is used to determine that the target physical module is a reusable module when the first relative position relationship and the second relative position relationship meet a preset condition.

[0060] Optionally, the planning unit is specifically used for:

[0061] In the case where the target physical module is a reusable module, the drive port of the target physical module is planned according to the first positional relationship, and the load port of the target physical module is planned according to the second positional relationship to implement port planning of all homologous circuit modules corresponding to the target physical module.

[0062] Optionally, the planning unit includes:

[0063] a port coordinate acquisition subunit, configured to determine the coordinates of the drive port of each target logic connection and the coordinates of the load port of each target logic connection based on the relative position relationship determined in each drive-load pair, with a first preset point on the chip where the integrated circuit is located as the coordinate origin, and obtain the drive port coordinates and load port coordinates of each circuit module;

[0064] A placement position acquisition subunit, used to acquire the placement position of each circuit module in the integrated circuit in the chip;

[0065] An orientation transformation determining subunit, used to determine the orientation transformation of the placement orientation relative to the physical module corresponding to the circuit module;

[0066] A coordinate conversion subunit is used to convert the drive port coordinates and the load port coordinates with the first preset point on the chip as the coordinate origin into coordinates with the second preset point on the corresponding physical modules as the origin according to the position of each circuit module in the chip and the orientation transformation.

[0067] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is arranged inside the space enclosed by a shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used to execute any module port planning method of an integrated circuit provided in an embodiment of the present invention.

[0068] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement a module port planning method for any integrated circuit provided in an embodiment of the present invention.

[0069] In a fifth aspect, an embodiment of the present invention provides a chip, wherein the module port planning method of any integrated circuit provided by the embodiment of the present invention is adopted during the design process of the chip.

[0070] The module port planning method, device, electronic device, storage medium and chip of the integrated circuit provided by the embodiment of the present invention can search for the target logic connection according to the interconnection relationship of each circuit module in the integrated circuit, wherein the target logic connection is a logic connection that connects a driver module and a load module one-to-one in the integrated circuit, and each driver module and the corresponding load module form a driver-load pair through each target logic connection between the two; determine the relative position relationship between the driver module and the load module in each driver-load pair; and plan the distribution of the driver port of each target logic connection in the corresponding driver module and the distribution of the load port of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair. In this way, the port distribution of each circuit module in the integrated circuit can be quickly planned directly according to the relative position relationship between the driver module and the load module that have an interconnection relationship in the integrated circuit, without the need to perform global winding, and without the need to divide the integrated circuit into multiple parts for port planning and integration respectively, so that the time required for port planning can be greatly shortened, and the port planning efficiency of the integrated circuit module can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0072] Figure 1 A flow chart of a module port planning method for an integrated circuit provided by an embodiment of the present invention;

[0073] Figure 2 A schematic diagram of an application scenario of the module port planning method of an integrated circuit provided by an embodiment of the present invention;

[0074] Figure 3 A schematic diagram of another application scenario of the integrated circuit module port planning method provided by an embodiment of the present invention;

[0075] Figure 4 A schematic diagram of the structure of a module port planning device for an integrated circuit provided by an embodiment of the present invention;

[0076] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0077] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0078] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] In a first aspect, an embodiment of the present invention provides a method for planning module ports of an integrated circuit, which can improve the port planning efficiency of the integrated circuit module.

[0080] like Figure 1 As shown, an embodiment of the present invention provides a method for planning module ports of an integrated circuit, and the method may include:

[0081] S11, searching for a target logic connection according to the interconnection relationship of each circuit module in the integrated circuit, wherein the target logic connection is a logic connection that connects a driver module and a load module one-to-one in the integrated circuit, and each driver module and the corresponding load module form a driver-load pair through each target logic connection between the two;

[0082] An integrated circuit is a microstructure that uses a certain process to interconnect the transistors, resistors, capacitors, inductors and other components and wiring required in a circuit, and then manufactures them on a small piece or several small pieces of semiconductor chips or dielectric substrates, and then encapsulates them in a tube shell to become a miniature structure with the required circuit functions.

[0083] In the back-end design process of integrated circuits, integrated circuit layout design refers to mapping the circuit design circuit diagram or circuit description language to the physical description level, so that the designed circuit can be mapped to the wafer for production. The layout is a graphic containing relevant physical information such as the device type, device size, relative position between devices, and connection relationship between various devices of the integrated circuit. These graphics can be composed of graphics located on the same or different drawing layers.

[0084] As the scale of integrated circuits continues to expand and their complexity continues to increase, in order to improve design efficiency and shorten the design cycle, a modular design approach can be adopted for the layout of integrated circuits, especially large-scale integrated circuits. Figure 2As shown, the integrated circuit can be divided into circuit module 201, circuit module 202, circuit module 203, circuit module 204, and circuit module 205 according to the function, wherein the specific circuit structure in each circuit module can be referred to as the physical module corresponding to the circuit module. Optionally, in a very large-scale integrated circuit design, a physical module may appear only once in the circuit, thereby forming a circuit module, or may appear repeatedly in different parts of the circuit for multiple times, thereby forming corresponding multiple circuit modules. Each design team can design each physical module in parallel according to a unified standard, and then place each physical module in a suitable position in the layout on this basis to form a corresponding circuit module, and then perform port planning and wiring connection on each circuit module, thereby obtaining the layout of the entire integrated circuit.

[0085] In an embodiment of the present invention, a physical module refers to a module placed before the overall layout. After the physical module design is completed, it can be stored in a corresponding library. During the layout design process, the same physical module can be used multiple times to form corresponding circuit modules. The circuit modules corresponding to the same physical module are called homologous circuit modules.

[0086] In the specific implementation process, the netlist file generated in the front-end design process can be used to obtain the interconnection relationship between each circuit module (for example, the logical interconnection relationship between the ports of each circuit module). Among them, the netlist file can be, for example, a text file that follows a relatively simple markup syntax. In an embodiment of the present invention, a circuit module with a one-to-one port connection relationship can be defined as a drive-load pair, wherein the circuit module with signal outflow can be defined as a drive module, and the circuit module with signal inflow can be defined as a load module. Obviously, for a circuit module with both signal outflow and signal inflow, the circuit module can be a drive module in one drive-load pair, and the circuit module can be a load module in another drive-load pair.

[0087] S12, determining the relative position relationship between the driving module and the load module in each of the driving-load pairs;

[0088] In this step, during the layout design process, it is usually necessary to first arrange the positions of each module. In order to facilitate the wiring connection between each circuit module, the circuit modules that are connected can be placed close to each other to facilitate wiring between the ports of the two. The step of arranging the positions of each circuit module can be automatically completed by the EDA software according to the connection relationship between the circuit modules, or it can be completed manually by the back-end designer.

[0089] like Figure 2As shown, after the position of each circuit module in the layout is determined, in order to facilitate the planning of the port position of each circuit module, the relative position relationship between the driver module and the load module in each driver-load pair can be obtained first, for example Figure 2 The circuit module 201 is located on the right side of the circuit module 202, and the circuit module 203 is located on the upper side of the circuit module 202. Optionally, the relative position relationship here may include one or more information, such as the size information, shape information, position information of each circuit module, and the orientation information of each circuit module, so as to accurately describe the relative position relationship between the drive module and the load module that are connected. Optionally, when describing the relative position relationship, multiple forms can be used, such as expressing it in the form of coordinates of each boundary or vertex of the circuit module, or in the form of a graph.

[0090] S13, planning the distribution of the drive ports of each target logic connection in the corresponding drive module, and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each drive-load pair.

[0091] Based on the relative position information of the driver module and the load module obtained in step S12, the port distribution position of each module can be planned. After the ports are placed according to the planned position, wiring can be performed between the interconnected ports of each module. The planning of the port position is an important aspect of the back-end design of the integrated circuit. A good port distribution position can reduce the routing length between the ports and reduce the possibility of wiring crossing, which is beneficial to the subsequent wiring and improves the performance of the integrated circuit.

[0092] The module port planning method of the integrated circuit provided by the embodiment of the present invention can search for the target logic connection according to the interconnection relationship of each circuit module in the integrated circuit, wherein the target logic connection is a logic connection that connects a driver module and a load module one-to-one in the integrated circuit, and each driver module and the corresponding load module form a driver-load pair through each target logic connection between the two; determine the relative position relationship between the driver module and the load module in each driver-load pair; and plan the distribution of the driver port of each target logic connection in the corresponding driver module and the distribution of the load port of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair. In this way, the port distribution of each circuit module in the integrated circuit can be quickly planned directly according to the relative position relationship between the driver module and the load module that have an interconnection relationship in the integrated circuit, without the need to perform global winding, and without the need to divide the integrated circuit into multiple parts for port planning and integration respectively, so that the time required for port planning can be greatly shortened, and the port planning efficiency of the integrated circuit module can be effectively improved.

[0093] Specifically, in an embodiment of the present invention, when it is necessary to perform port planning for each circuit module in an integrated circuit, first, in step S11, the target logic connection can be searched according to the interconnection relationship of each circuit module in the integrated circuit, and the drive-load pair formed between the circuit modules in the integrated circuit is determined by the target logic connection. Then in step S12, the relative position relationship between the drive module and the load module in each of the drive-load pairs is determined. Optionally, when determining the relative position relationship, a graphic recognition method or a coordinate recognition method can be used. The graphic recognition method can be implemented by scanning the boundaries of the drive module and the load module and determining the graphic position relationship, and the coordinate recognition method can be implemented by comparing the boundary coordinates of the drive module and the load module.

[0094] Specifically, in one embodiment of the present invention, in step S12, determining the relative position relationship between the driving module and the load module in each of the driving-load pairs may include: respectively acquiring the position information of the driving module and the load module on the chip; based on the position information, determining whether there is an overlapping interval between the first coordinate component of a point on the contour line of the driving module and the first coordinate component of a point on the contour line of the load module, wherein the first coordinate component is a horizontal coordinate or a vertical coordinate; in the case where the overlapping interval exists, determining that the driving module and the load module are in a direct relative relationship; in the case where the overlapping interval does not exist, determining that the driving module and the load module are in an indirect relative relationship.

[0095] For example, Figure 2As shown, in one embodiment of the present invention, Figure 2 In the coordinate system where the lower left corner of the middle and outer frames is the origin of the coordinates, the horizontal direction is the horizontal axis, and the vertical direction is the vertical axis, there is no overlapping interval between the circuit module 202 and the circuit module 205 in the horizontal and vertical directions, and the two are in an indirect relative relationship; there is an overlapping interval between the circuit module 201 and the circuit module 202 in the vertical direction, so the two are in a direct relative relationship; there is an overlapping interval between the circuit module 201 and the circuit module 204 in both the horizontal and vertical directions, so the two are in a direct relative relationship; there is an overlapping interval between the circuit module 201 and the circuit module 203 in the horizontal direction, so the two are in a direct relative relationship; there is an overlapping interval between the circuit module 201 and the circuit module 205 in the horizontal direction, so the two are in a direct relative relationship. Different relative position relationships may have corresponding different port planning strategies.

[0096] Optionally, in one embodiment of the present invention, for two circuit modules that are in a direct relative relationship, when planning the port distribution of the two, in step S13, according to the relative position relationship determined in each of the drive-load pairs, planning the distribution of the drive port of each of the target logic connections in the corresponding drive module, and planning the distribution of the load port of each of the target logic connections in the corresponding load module can be specifically implemented in the following manner: when the drive module and the load module are in a direct relative relationship, setting the drive port in the drive module, corresponding to the overlapping interval and close to the boundary of the load module, and setting the load port in the load module, corresponding to the overlapping interval and close to the boundary of the drive module.

[0097] like Figure 2 As shown, for two modules that are in a directly relative relationship, circuit module 202 and circuit module 203 are taken as an example for explanation. In order to facilitate the wiring connection between the two, for circuit module 202, the two ports that are connected to circuit module 203 can be arranged on the boundary of circuit module 202 corresponding to the overlapping interval between the two and close to circuit module 203; correspondingly, for circuit module 203, the two ports that are connected to circuit module 202 can be arranged on the boundary of circuit module 203 corresponding to the overlapping interval between the two and close to circuit module 202. In this way, the ports that need to be connected to each other in circuit module 202 and circuit module 203 can be placed in very close positions, which is beneficial to improving the wiring quality of subsequent steps, and further optimizing the performance of the integrated circuit.

[0098] It should be noted that the connection relationship between most ports in an integrated circuit is a one-to-one connection relationship. When considering the position distribution of a pair of ports that are interconnected, it is only necessary to consider the routing between the two to achieve the optimal effect. As for the situation where one port is connected to multiple ports, since this connection method rarely occurs, it can be planned separately.

[0099] Optionally, in another embodiment of the present invention, for two modules that have an indirect relative relationship, when planning the port distribution of the two modules, in step S13, planning the distribution of the drive ports of each target logical connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logical connection in the corresponding load module can be specifically implemented in the following manner: when the drive module and the load module are in an indirect relative relationship, specifying a wiring reference area for the drive module and the load module, and the wiring reference area is adjacent to the first boundary of the drive module and the second boundary of the load module at the same time; setting the drive port on the first boundary of the drive module, and setting the load port on the second boundary of the load module.

[0100] like Figure 2 As shown, for two modules that have an indirect relative relationship, circuit module 202 and circuit module 205 are used as examples for explanation, a wiring reference area can be specified for both modules, and the reference area is adjacent to the boundaries of both modules at the same time. For example, the reference area can be adjacent to the boundary of the circuit module 202 in the horizontal direction and the boundary of the circuit module 205 in the vertical direction, or it can be adjacent to the boundary of the circuit module 202 in the vertical direction and the boundary of the circuit module 205 in the horizontal direction. Accordingly, the port of the circuit module 202 can be set on the boundary in the horizontal direction, and the port of the circuit module 205 can be set on the boundary in the vertical direction, or the port of the circuit module 202 can be set on the boundary in the vertical direction, and the port of the circuit module 205 can be set on the boundary in the horizontal direction. Figure 2 The latter situation is shown. By setting the position of the port in any of the above-mentioned ways, the wiring distance between the ports can be effectively shortened, which is beneficial to improving the wiring quality and further optimizing the performance of the integrated circuit.

[0101] Depending on the different relative position relationships between the driving module and the load module, the wiring reference area may also be different. For example, there may be only one wiring reference area between some driving modules and load modules, while there may be two or even more wiring reference areas between some driving modules and load modules. For the case where there are two or even more wiring reference areas, one area can be selected from them for port planning and wiring according to a preset area screening rule. Among them, the area screening rule can be, for example, random selection or selection according to other needs, etc.

[0102] Optionally, in an embodiment of the present invention, the number of the wiring reference areas is at least two; before setting the driving port on the first boundary of the driving module, the module port planning method of the integrated circuit provided by the embodiment of the present invention may further include: for each of the wiring reference areas, calculating the sum of the lengths of the first boundary and the second boundary that are adjacent to the wiring reference area at the same time, to obtain the boundary length sum corresponding to each wiring reference area; selecting the wiring reference area with the largest boundary length sum as the target area; based on this, setting the driving port on the first boundary of the driving module and setting the load port on the second boundary of the load module may include: setting the driving port on the first boundary of the driving module adjacent to the target area, and setting the load port on the second boundary of the load module adjacent to the target area.

[0103] As Figure 2 shown, taking the circuit modules 202 and 205 as examples for illustration, based on the aforementioned two reference areas, the sum of the lengths of the horizontal coordinate direction boundary of the ports of the circuit module 202 and the vertical coordinate direction boundary of the circuit module 205 is obtained as result A, and then the sum of the lengths of the vertical coordinate direction boundary of the ports of the circuit module 202 and the horizontal coordinate direction boundary of the circuit module 205 is obtained as result B. Compare the sizes of A and B. If A > B, place the ports of the circuit module 202 on the horizontal coordinate direction boundary and place the ports of the circuit module 205 on the vertical coordinate direction boundary; if A < B, place the ports of the circuit module 202 on the vertical coordinate direction boundary and place the ports of the circuit module 205 on the horizontal coordinate direction boundary. Figure 2 That is, the latter situation is shown.

[0104] In the embodiment of the present invention, when planning the port positions, multiple ports may be placed on the boundaries of each module. The shorter the length of the boundary, the greater the difficulty of setting ports on the boundary and the greater the difficulty of wiring, which will further have an adverse impact on the quality of wiring. Taking Figure 2Taking the situation shown as an example, the port of circuit module 202 can be placed on the boundary in the vertical axis direction, and the port of circuit module 205 can be placed on the boundary in the horizontal axis direction. The sum of the boundary lengths of the two is longer, thereby leaving more room for choice when arranging the port positions and subsequent wiring, which is beneficial to reducing the difficulty of setting the ports on the boundary and the difficulty of wiring, and further beneficial to improving the overall quality of wiring and the overall performance of the integrated circuit.

[0105] It should be noted that, in actual situations, the relative position relationship of the boundaries of each module is not limited to a mutually perpendicular or parallel relationship. The modules may be irregular in shape, and the straight lines where the boundaries of each module are located may also intersect at a certain angle (non-vertical angle). The above examples are only for the convenience of clearly explaining specific situations of the principle. In fact, the principles of the embodiments of the present invention can be applied to all situations in layout design.

[0106] As mentioned above, the specific circuit structure within each circuit module is called the physical module corresponding to the circuit module. In a VLSI design, a physical module may appear only once in the circuit, thus forming a circuit module, or it may appear repeatedly in different parts of the circuit, thus forming multiple corresponding circuit modules. That is to say, the physical modules corresponding to each circuit module in the integrated circuit may be the same or different; based on this, in one embodiment of the present invention, before planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair in step S13, and planning the distribution of the load ports of each target logic connection in the corresponding load module, the module port planning method of the integrated circuit provided by the embodiment of the present invention may also include: searching for the circuit module corresponding to the target physical module in the integrated circuit to obtain a homologous circuit module, wherein the homologous circuit module is each circuit module corresponding to the same physical module; determining that the homologous circuit module is a homologous drive module or a homologous load module according to the role of the homologous circuit module in each drive-load pair; respectively obtaining the first relative position relationship between each homologous drive module and the corresponding load module in the drive-load pair to which it belongs, and respectively obtaining the second relative position relationship between each homologous load module and the corresponding drive module in the drive-load pair to which it belongs; and determining that the target physical module is a reusable module when the first relative position relationship and the second relative position relationship meet the preset conditions.

[0107] Specifically, in practical applications, there is often a situation where the same physical module is used multiple times in the layout design, and the application scenarios are basically the same. For example, there are multiple analog-to-digital conversion modules in the layout, and the connection relationship between each analog-to-digital conversion module and other circuit modules is basically the same. When planning the port distribution of each analog-to-digital conversion module, it is possible to uniformly plan the ports of these digital-to-analog conversion modules, thereby further improving the port planning efficiency. To this end, in one embodiment of the present invention, the use scenarios of the same physical module can be distinguished by the relative position relationship between each analog-to-digital conversion module and other modules. If the connection relationship between each homologous circuit module and its driving module and the connection relationship with its load module are the same, or the difference in the connection relationship is less than a preset threshold, it can be determined that the application scenarios of the two are the same, and the physical modules corresponding to each homologous circuit module belong to a reusable module. For each circuit module corresponding to the reusable module, not only does each circuit module correspond to the same physical module, but the ports planned on one of the circuit modules are also applicable to other circuit modules, that is, only the ports of one of the circuit modules are planned.

[0108] For example, in one embodiment of the present invention, in step S13, according to the relative position relationship determined in each of the drive-load pairs, planning the distribution of the drive ports of each of the target logic connections in the corresponding drive module, and planning the distribution of the load ports of each of the target logic connections in the corresponding load module may include: when the target physical module is a reusable module, planning the drive port of the target physical module according to the first position relationship, and planning the load port of the target physical module according to the second position relationship, so as to realize the port planning of all homologous circuit modules corresponding to the target physical module. In this way, when planning the port distribution of the reusable module, the port planning of its homologous module in the same way can be performed according to the port layout of the module whose port layout has been completed, without the need to re-plan the port distribution of the module, thereby further improving the planning efficiency of the port distribution.

[0109] In the above-mentioned embodiment, the port planning of the circuit module in the integrated circuit is carried out at the chip design level. Therefore, the planned port position is also based on the chip as a reference system. For example, the coordinates of the port port1 on the circuit module M1 are (x1, y1) with the lower left vertex of the chip outer contour as the origin and the rectangular coordinate system established with the preset direction as the horizontal axis and the vertical axis as the reference. When the port design is specifically carried out, in order to facilitate the setting of the port port1 on the physical module corresponding to the circuit module M1, in one embodiment of the present invention, the coordinate transformation of the port port1 can be carried out, and the coordinates based on the chip as the reference system are transformed into the coordinates (x2, y2) based on the physical module corresponding to the circuit module M1 as the reference system.

[0110] Optionally, in one embodiment of the present invention, in step S13, planning the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and planning the distribution of the load ports of each target logic connection in the corresponding load module may include: taking the first preset point on the chip where the integrated circuit is located as the coordinate origin, determining the coordinates of the drive port of each target logic connection according to the relative position relationship determined in each drive-load pair, and determining the coordinates of the load port of each target logic connection, to obtain the drive port coordinates and load port coordinates of each circuit module; obtaining the placement orientation of each circuit module in the integrated circuit in the chip; determining the orientation transformation of the placement orientation relative to the physical module corresponding to the circuit module; according to the position of each circuit module in the chip and the orientation transformation, converting the drive port coordinates and the load port coordinates with the first preset point on the chip as the coordinate origin into coordinates with the second preset point on the corresponding physical module as the origin.

[0111] For example, Figure 3 As shown, the upper pattern is each circuit module in the chip layout, and the lower pattern is the physical module corresponding to each circuit module. In one embodiment of the present invention, the coordinate position of the port planned in the circuit module in the overall chip layout can be obtained, and the orientation transformation information when the physical module is placed in the overall layout is taken into account, for example Figure 3 The physical module 402' in the chip layout and the circuit module 402 in the chip layout have an axisymmetric flipping orientation transformation relationship, so the coordinate position of the port in the physical module 402' can be obtained, and then the port placement operation is performed according to the coordinate position. Figure 3 The physical module 401' in the layout also has an axisymmetric flipping orientation transformation relationship with the circuit module 401 in the layout. Further, each physical module can be stored in a corresponding library. When the layout file is lost or damaged, the layout file can be quickly drawn by directly calling the module in the library.

[0112] It is understandable that when placing the modules, in order to facilitate the wiring between the circuit modules or save the total occupied area in the layout, the placement of the circuit modules can be changed. Figure 3 Of course, this is only an example, and in actual situations, any positional transformation of the physical module in the layout, such as rotation of a preset angle, etc., falls within the protection scope of the present invention.

[0113] It should be noted that the coordinate system in the overall layout and the coordinate system in the physical module can be selected according to actual needs, which does not affect the substantive content of the present invention.

[0114] In a second aspect, an embodiment of the present invention provides a module port planning device for an integrated circuit, which can improve the port planning efficiency of the integrated circuit module.

[0115] like Figure 4 As shown, the module port planning device 3 of the integrated circuit provided by the embodiment of the present invention includes:

[0116] A search unit 31 is used to search for a target logic connection according to the interconnection relationship of each circuit module in the integrated circuit, wherein the target logic connection is a logic connection that connects a driver module and a load module one-to-one in the integrated circuit, and each driver module and the corresponding load module form a driver-load pair through each target logic connection between the two.

[0117] A determination unit 32, configured to determine a relative position relationship between the driving module and the load module in each of the driving-load pairs;

[0118] The planning unit 33 is used to plan the distribution of the drive ports of each target logic connection in the corresponding drive module according to the relative position relationship determined in each drive-load pair, and to plan the distribution of the load ports of each target logic connection in the corresponding load module.

[0119] The module port planning device of the integrated circuit provided by the embodiment of the present invention can search for the target logic connection according to the interconnection relationship of each circuit module in the integrated circuit, wherein the target logic connection is a logic connection that connects a driver module and a load module one-to-one in the integrated circuit, and each driver module and the corresponding load module form a driver-load pair through each target logic connection between the two; determine the relative position relationship between the driver module and the load module in each driver-load pair; and plan the distribution of the driver port of each target logic connection in the corresponding driver module and the distribution of the load port of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair. In this way, the port distribution of each circuit module in the integrated circuit can be quickly planned directly according to the relative position relationship between the driver module and the load module that have an interconnection relationship in the integrated circuit, without the need to perform global winding, and without the need to divide the integrated circuit into multiple parts for port planning and integration respectively, so that the time required for port planning can be greatly shortened, and the port planning efficiency of the integrated circuit module can be effectively improved.

[0120] Optionally, the determining unit 31 includes:

[0121] An acquisition subunit, used to respectively acquire the position information of the driving module and the load module on the chip;

[0122] A first determining subunit, configured to determine, based on the position information, whether there is an overlapping interval between a first coordinate component of a point on the contour line of the driving module and a first coordinate component of a point on the contour line of the load module, wherein the first coordinate component is a horizontal coordinate or a vertical coordinate;

[0123] A second determining subunit is used to determine that the driving module and the load module are in a directly opposite relationship when the overlapping interval exists;

[0124] The third determining subunit is configured to determine that the driving module and the load module are in an indirect relative relationship when the overlapping interval does not exist.

[0125] Optionally, the planning unit 33 is specifically configured to:

[0126] When the driving module and the load module are in direct opposition, the driving port is arranged in the driving module, corresponding to the overlapping interval and close to the boundary of the load module, and the load port is arranged in the load module, corresponding to the overlapping interval and close to the boundary of the driving module.

[0127] Optionally, the planning unit 33 specifically includes:

[0128] a designating subunit, configured to designate a wiring reference area for the driving module and the load module when the driving module and the load module are in an indirect relative relationship, wherein the wiring reference area is adjacent to a first boundary of the driving module and a second boundary of the load module;

[0129] A setting subunit is used to set the driving port on the first boundary of the driving module and set the load port on the second boundary of the load module.

[0130] Optionally, the number of the wiring reference areas is at least two;

[0131] The planning unit 33 specifically includes:

[0132] a calculation subunit, configured to calculate, for each wiring reference region, the sum of the lengths of the first boundary and the second boundary that are adjacent to the wiring reference region before setting the driving port on the first boundary of the driving module, to obtain the sum of boundary lengths corresponding to each wiring reference region;

[0133] A selection subunit, used for selecting the boundary length and the largest wiring reference area as a target area;

[0134] The setting subunit is specifically used to: set the driving port on the first boundary adjacent to the target area in the driving module, and set the load port on the second boundary adjacent to the target area in the load module.

[0135] Optionally, the physical modules corresponding to the circuit modules are the same or different;

[0136] The device also includes:

[0137] a homologous circuit module search unit, configured to search for a circuit module corresponding to a target physical module in the integrated circuit before planning the distribution of the drive ports of each target logic connection in the corresponding drive module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each drive-load pair, so as to obtain a homologous circuit module, wherein the homologous circuit modules are circuit modules corresponding to the same physical module;

[0138] a homologous circuit module determination unit, configured to determine whether the homologous circuit module is a homologous driving module or a homologous load module according to the role of the homologous circuit module in each of the driving-load pairs;

[0139] A relative position relationship acquisition unit, used to respectively acquire a first relative position relationship between each homologous driving module and a corresponding load module in the driving-load pair to which it belongs, and to respectively acquire a second relative position relationship between each homologous load module and a corresponding driving module in the driving-load pair to which it belongs;

[0140] The reusable module determining unit is used to determine that the target physical module is a reusable module when the first relative position relationship and the second relative position relationship meet a preset condition.

[0141] Optionally, the planning unit 33 is specifically configured to:

[0142] In the case where the target physical module is a reusable module, the drive port of the target physical module is planned according to the first positional relationship, and the load port of the target physical module is planned according to the second positional relationship to implement port planning of all homologous circuit modules corresponding to the target physical module.

[0143] Optionally, the planning unit 33 includes:

[0144] a port coordinate acquisition subunit, configured to determine the coordinates of the drive port of each target logic connection and the coordinates of the load port of each target logic connection based on the relative position relationship determined in each drive-load pair, with a first preset point on the chip where the integrated circuit is located as the coordinate origin, and obtain the drive port coordinates and load port coordinates of each circuit module;

[0145] A placement position acquisition subunit, used to acquire the placement position of each circuit module in the integrated circuit in the chip;

[0146] An orientation transformation determining subunit, used to determine the orientation transformation of the placement orientation relative to the physical module corresponding to the circuit module;

[0147] A coordinate conversion subunit is used to convert the drive port coordinates and the load port coordinates with the first preset point on the chip as the coordinate origin into coordinates with the second preset point on the corresponding physical modules as the origin according to the position of each circuit module in the chip and the orientation transformation.

[0148] In a third aspect, an embodiment of the present invention provides an electronic device capable of improving the port planning efficiency of an integrated circuit module.

[0149] like Figure 5 As shown, an electronic device provided by an embodiment of the present invention may include: a shell 41, a processor 42, a memory 43, a circuit board 44 and a power supply circuit 45, wherein the circuit board 44 is arranged inside the space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; the power supply circuit 45 is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory 43 is used to store executable program codes; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, so as to execute the module port planning method of the integrated circuit described in any of the above-mentioned embodiments.

[0150] The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code can be found in the description of the previous embodiment, which will not be repeated here.

[0151] This electronic device exists in many forms, including but not limited to:

[0152] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0153] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0154] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0155] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0156] (5) Other electronic devices with data interaction functions.

[0157] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any of the module port planning methods for integrated circuits provided in the aforementioned embodiments, thereby also being able to achieve the corresponding technical effects, which have been described in detail above and will not be repeated here.

[0158] In a fifth aspect, an embodiment of the present invention provides a chip, wherein the module port planning method of any integrated circuit provided by the embodiment of the present invention is adopted during the design process of the chip.

[0159] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0160] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0161] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0162] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.

[0163] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0164] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for planning module ports of an integrated circuit, characterized in that: include: Searching for target logical connections based on the interconnection relationship between circuit modules in the integrated circuit, wherein the target logical connections are logical connections that connect a driver module and a load module in the integrated circuit on a one-to-one basis, and each driver module and the corresponding load module form a driver-load pair through each target logical connection between the two. Determining the relative positional relationship between the driver module and the load module in each driver-load pair; According to the relative position relationship determined in each of the drive-load pairs, the distribution of the drive ports of each of the target logic connections in the corresponding drive modules is planned, and the distribution of the load ports of each of the target logic connections in the corresponding load modules is planned.

2. The method according to claim 1, characterized in that Determining the relative positional relationship between the driver module and the load module in each driver-load pair includes: Respectively obtaining position information of the driving module and the load module on the chip; Determine, based on the position information, whether there is an overlapping interval between a first coordinate component of a point on the contour line of the driving module and a first coordinate component of a point on the contour line of the load module, wherein the first coordinate component is a horizontal coordinate or a vertical coordinate; In the case where the overlapping interval exists, determining that the driving module and the load module are in a directly opposed relationship; In the absence of the overlapping interval, it is determined that the driving module and the load module are in an indirect relative relationship.

3. The method according to claim 2, characterized in that Planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair includes: When the driving module and the load module are in a directly opposite relationship, the driving port is set in the driving module, corresponding to the overlapping interval and close to the boundary of the load module, and the load port is set in the load module, corresponding to the overlapping interval and close to the boundary of the driving module.

4. The method according to claim 2, characterized in that Planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair includes: In a case where the driver module and the load module are in an indirect relative relationship, a wiring reference area is designated for the driver module and the load module, wherein the wiring reference area is adjacent to a first boundary of the driver module and a second boundary of the load module; The driving port is arranged on the first boundary of the driving module, and the load port is arranged on the second boundary of the load module.

5. The method according to claim 4, characterized in that The number of the wiring reference areas is at least two; Before disposing the driving port on the first boundary of the driving module, the method further includes: For each of the wiring reference regions, calculating the sum of the lengths of the first boundary and the second boundary that are adjacent to the wiring reference region, to obtain the sum of the boundary lengths corresponding to each of the wiring reference regions; Selecting the boundary length and the largest wiring reference area as the target area; The step of arranging the driving port on the first boundary of the driving module and the step of arranging the load port on the second boundary of the load module comprises: The driving port is arranged on the first boundary of the driving module adjacent to the target area, and the load port is arranged on the second boundary of the load module adjacent to the target area.

6. The method according to any one of claims 1 to 5, characterized in that The physical modules corresponding to the circuit modules are the same or different; Before planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module based on the relative position relationship determined in each driver-load pair, the method further includes: Searching for a circuit module corresponding to a target physical module in the integrated circuit to obtain homologous circuit modules, wherein the homologous circuit modules are circuit modules corresponding to the same physical module; Determining whether the homologous circuit module is a homologous driver module or a homologous load module according to the role of the homologous circuit module in each driver-load pair; Respectively obtaining a first relative positional relationship between each homologous driver module and the corresponding load module in the driver-load pair to which it belongs, and respectively obtaining a second relative positional relationship between each homologous load module and the corresponding driver module in the driver-load pair to which it belongs; When the first relative position relationship and the second relative position relationship meet a preset condition, the target physical module is determined to be a reusable module.

7. The method according to claim 6, characterized in that Planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair includes: In the case that the target physical module is a reusable module, the drive port of the target physical module is planned according to the first position relationship, and the load port of the target physical module is planned according to the second position relationship to realize the port planning of all homologous circuit modules corresponding to the target physical module.

8. The method according to any one of claims 1 to 5, characterized in that Planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module according to the relative position relationship determined in each driver-load pair includes: Taking a first preset point on the chip where the integrated circuit is located as a coordinate origin, determining the coordinates of the driver port of each target logic connection and the coordinates of the load port of each target logic connection according to the relative positional relationship determined in each driver-load pair, thereby obtaining the driver port coordinates and load port coordinates of each circuit module; Obtaining the placement position of each circuit module in the integrated circuit in the chip; Determining a positional transformation of the placement orientation relative to a physical module corresponding to the circuit module; According to the position of each circuit module in the chip and the orientation transformation, the drive port coordinates and the load port coordinates with the first preset point on the chip as the coordinate origin are respectively converted into coordinates with the second preset point on the corresponding physical module as the origin.

9. A module port planning device for an integrated circuit, characterized in that: include: a search unit configured to search for a target logical connection based on the interconnection relationship between circuit modules in the integrated circuit, wherein the target logical connection is a logical connection that connects a driver module and a load module in the integrated circuit on a one-to-one basis, and each driver module and the corresponding load module form a driver-load pair via each target logical connection between the two modules; a determining unit, configured to determine a relative positional relationship between the driver module and the load module in each driver-load pair; A planning unit is used to plan the distribution of the drive ports of each target logic connection in the corresponding drive module and to plan the distribution of the load ports of each target logic connection in the corresponding load module based on the relative position relationship determined in each drive-load pair.

10. The device according to claim 9, characterized in that The determining unit includes: an acquisition subunit, configured to respectively acquire position information of the driving module and the load module on the chip; a first determining subunit, configured to determine, based on the position information, whether there is an overlapping interval between a first coordinate component of a point on the contour line of the driving module and a first coordinate component of a point on the contour line of the load module, wherein the first coordinate component is a horizontal coordinate or a vertical coordinate; a second determining subunit, configured to determine that the driving module and the load module are in a directly opposed relationship when the overlapping interval exists; The third determining subunit is configured to determine that the driving module and the load module are in an indirect relative relationship when the overlapping interval does not exist.

11. The device according to claim 10, characterized in that The planning unit is specifically used for: When the driving module and the load module are in a directly opposite relationship, the driving port is set in the driving module, corresponding to the overlapping interval and close to the boundary of the load module, and the load port is set in the load module, corresponding to the overlapping interval and close to the boundary of the driving module.

12. The device according to claim 10, characterized in that The planning unit specifically includes: a designating subunit, configured to designate a wiring reference area for the driver module and the load module when the driver module and the load module are in an indirect relative relationship, wherein the wiring reference area is adjacent to a first boundary of the driver module and a second boundary of the load module; The setting subunit is configured to set the driving port on the first boundary of the driving module and set the load port on the second boundary of the load module.

13. The device according to claim 12, characterized in that The number of the wiring reference areas is at least two; The planning unit specifically includes: a calculation subunit, configured to calculate, for each wiring reference region, the sum of the lengths of the first boundary and the second boundary adjacent to the wiring reference region before setting the driving port on the first boundary of the driving module, to obtain a sum of boundary lengths corresponding to each wiring reference region; A selection subunit, configured to select the boundary length and the largest wiring reference area as a target area; The setting subunit is specifically configured to: set the driving port on the first boundary adjacent to the target area in the driving module, and set the load port on the second boundary adjacent to the target area in the load module.

14. The device according to any one of claims 9 to 13, characterized in that The physical modules corresponding to the circuit modules are the same or different; The device further comprises: a homologous circuit module search unit, configured to search for circuit modules corresponding to target physical modules in the integrated circuit before planning the distribution of the driver ports of each target logic connection in the corresponding driver module and planning the distribution of the load ports of each target logic connection in the corresponding load module based on the relative positional relationship determined in each driver-load pair, to obtain homologous circuit modules, wherein the homologous circuit modules are circuit modules corresponding to the same physical module; a homologous circuit module determining unit, configured to determine whether the homologous circuit module is a homologous driver module or a homologous load module according to the role of the homologous circuit module in each driver-load pair; a relative position relationship acquisition unit, configured to respectively acquire a first relative position relationship between each homologous driver module and the corresponding load module in the driver-load pair to which it belongs, and respectively acquire a second relative position relationship between each homologous load module and the corresponding driver module in the driver-load pair to which it belongs; The reusable module determining unit is configured to determine that the target physical module is a reusable module when the first relative position relationship and the second relative position relationship meet a preset condition.

15. The device according to claim 14, characterized in that The planning unit is specifically used for: In the case that the target physical module is a reusable module, the drive port of the target physical module is planned according to the first position relationship, and the load port of the target physical module is planned according to the second position relationship to realize the port planning of all homologous circuit modules corresponding to the target physical module.

16. The device according to any one of claims 9 to 13, characterized in that The planning unit includes: a port coordinate acquisition subunit, configured to determine the coordinates of the driver port of each target logic connection and the coordinates of the load port of each target logic connection based on the relative positional relationship determined in each driver-load pair, using a first preset point on the chip where the integrated circuit is located as a coordinate origin, thereby obtaining the driver port coordinates and load port coordinates of each circuit module; A placement position obtaining subunit, configured to obtain the placement position of each circuit module in the integrated circuit in the chip; an orientation transformation determining subunit, configured to determine an orientation transformation of the placement orientation relative to a physical module corresponding to the circuit module; A coordinate conversion subunit is used to convert the drive port coordinates and the load port coordinates with the first preset point on the chip as the coordinate origin into coordinates with the second preset point on the corresponding physical module as the origin according to the position of each circuit module in the chip and the orientation transformation.

17. An electronic device, characterized in that: The electronic device includes: a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the shell, and the processor and memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used to execute the module port planning method of the integrated circuit described in any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the module port planning method for an integrated circuit according to any one of claims 1 to 8.

19. A chip, characterized in that: The chip adopts the module port planning method of the integrated circuit according to any one of claims 1 to 8 during the design process.