TDM interconnection wiring method and device of multi-chip system
Through the method of rewiring and TDM ratio adjustment, combined with global and fast timing analysis, the TDM interconnection solution is optimized, which solves the problems of inconsistent timing requirements and insufficient resource utilization in the existing technology, and achieves an increase in system clock frequency and performance optimization.
Patent Information
- Application Number
- CN202310337193.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
Existing TDM interconnection optimization solutions assume consistent timing requirements and cannot make full use of multiple clocks, resulting in a decrease in system operating frequency. Existing methods are limited to adjusting the TDM ratio and cannot truly improve system performance.
The method of combining rewiring and TDM ratio adjustment is used to generate the initial wiring plan and the initial TDM ratio. Iterative optimization is performed based on the constraints of the interconnect lines, and the timing margin of the inter-chip interconnect signals is updated until the constraints of all channels are met.
Under the conditions of meeting the actual physical connection constraints of the hardware simulation system, the critical path delay is reduced, the system clock frequency is increased, and the timing performance of the entire system is optimized.
Smart Images

Figure CN118734787A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit wiring, and in particular to a TDM interconnect wiring method and device for a multi-chip system. Background Art
[0002] In multi-chip hardware simulation systems, time-division multiplexing (TDM) is usually used to solve the problem of insufficient interconnection resources. While TDM interconnection increases the number of interconnections between chips, it will also cause the system operating frequency to drop exponentially. Currently, the clock of a single field programmable gate array (FPGA) can reach 100 to 500 MHz, while the clock frequency of the industry-leading hardware simulation system based on TDM interconnection is mostly between 1 and 15 MHz. Therefore, optimizing TDM interconnection delay is a key technology to improve system operating frequency and performance.
[0003] The existing TDM interconnection optimization scheme usually assumes that the timing requirements of each combination path are consistent. By executing a simple routing algorithm, such as the minimum spanning tree (MST) and maze algorithm, the quality of results (QoR) of the system is estimated to determine the physical routing of each inter-chip interconnection signal (cut net); then, the TDM ratio of each inter-chip interconnection signal is optimized while keeping the routing scheme unchanged to optimize the timing performance of the entire system. The existing TDM interconnection optimization scheme has the following problems: First, the above assumptions do not conform to the multi-clock situation in the actual design. For an actual circuit, only optimizing the delay of the longest combination path cannot really improve the system performance; second, the optimization method of simply adjusting the TDM ratio is limited to the current routing scheme and cannot fully utilize the remaining routing resources in other places. Due to these problems, the existing TDM interconnection effect needs to be improved. Summary of the invention
[0004] The embodiment of the present invention provides a TDM interconnection wiring method and device for a multi-chip system to improve the TDM interconnection effect.
[0005] To this end, the embodiment of the present invention provides the following technical solutions:
[0006] On the one hand, an embodiment of the present invention provides a TDM interconnect wiring method for a multi-chip system, the method comprising:
[0007] Generate an initial routing plan, wherein the routing plan includes physical routing of each inter-chip interconnect signal;
[0008] The initial TDM ratio is set to be optimal without considering the interconnection line constraints;
[0009] According to the initial wiring scheme and the initial TDM ratio, an initial optimal result quality QoR is obtained;
[0010] The wiring scheme and TDM ratio are adjusted based on the interconnection line constraint conditions to optimize the initial optimal QoR and obtain a final wiring scheme and TDM ratio.
[0011] Optionally, adjusting the wiring scheme and TDM ratio based on the interconnection line constraint condition to optimize the initial optimal QoR to obtain the final wiring scheme and TDM ratio includes:
[0012] Iterative processing is performed using a rewiring algorithm and a TDM ratio optimization algorithm, and in each iteration process, the timing margin of the inter-chip interconnection signal is updated until all channels meet the interconnection line constraint conditions.
[0013] Optionally, the iterative processing using the rewiring algorithm and the TDM ratio optimization algorithm includes:
[0014] Determine the inter-chip interconnection signals to be adjusted;
[0015] The TDM ratio of the inter-chip interconnection signal to be adjusted is adjusted and re-wired to optimize the path overhead.
[0016] Optionally, determining the inter-chip interconnection signal to be adjusted includes: if the routing channel occupancy rate of the inter-chip interconnection signal is the highest and the timing margin is the smallest, taking the inter-chip interconnection signal as the inter-chip interconnection signal to be adjusted.
[0017] Optionally, adjusting the TDM ratio of the inter-chip Internet signal to be adjusted includes: increasing the TDM ratio of the path that has been traversed by one level, and reducing the TDM ratio of the path that has not been traversed.
[0018] Optionally, updating the timing margin of the inter-chip interconnection signal includes: updating the timing margin of the inter-chip interconnection signal based on global timing analysis and / or fast timing analysis.
[0019] Optionally, updating the timing margin of the inter-chip interconnection signal based on the global timing analysis and the fast timing analysis includes: updating the timing margin of the inter-chip interconnection signal based on the global timing analysis and based on the fast timing analysis alternately.
[0020] Optionally, updating the timing margin of the inter-chip interconnection signal based on the global timing analysis includes: updating the timing margin of all inter-chip Internet signals.
[0021] Optionally, the method further comprises: generating an original netlist according to the initial routing scheme;
[0022] The updating of the timing margin of all inter-chip Internet signals includes:
[0023] Performing global static timing analysis on the current routing scheme according to the original netlist to determine all fan-out pins of each of the inter-chip interconnection signals;
[0024] The minimum value of the timing margins of all fan-out pins is used as the current timing margin of the inter-chip interconnection signal.
[0025] Optionally, updating the timing margin of the inter-chip interconnection signal based on the fast timing analysis includes: updating the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin.
[0026] Optionally, the method further comprises:
[0027] Generate an original signal graph of inter-chip interconnection signals according to the original netlist;
[0028] The updating of the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin comprises:
[0029] The timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin are updated according to the original signal graph.
[0030] Optionally, generating the signal graph of the inter-chip interconnection nodes according to the original netlist includes: traversing the original netlist to generate an original signal graph with the inter-chip interconnection signals as nodes and paths between the inter-chip interconnection signals as edges.
[0031] Optionally, updating the inter-chip interconnection signal to be adjusted and the timing margin of the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin according to the original signal graph includes:
[0032] Determine all fan-out pins of the inter-chip interconnection signal to be adjusted according to the original signal graph;
[0033] The minimum value of the timing margins of all fan-out pins is used as the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin.
[0034] On the other hand, an embodiment of the present invention further provides a TDM interconnect wiring device for a multi-chip system, the device comprising:
[0035] A routing module, used to generate an initial routing scheme, wherein the routing scheme includes the physical routing of each inter-chip interconnection signal;
[0036] A setting module is used to set the initial TDM ratio to be optimal without considering the interconnection line constraint;
[0037] A calculation module, used for obtaining an initial optimal result quality QoR according to the initial wiring scheme and the initial TDM ratio;
[0038] The optimization module is used to adjust the wiring scheme and TDM ratio based on the interconnection line constraint condition to optimize the initial optimal QoR and obtain the final wiring scheme and TDM ratio.
[0039] Optionally, the optimization module includes:
[0040] An iterative processing unit, used for performing iterative processing using a rewiring algorithm and a TDM ratio optimization algorithm until all channels meet the interconnection line constraint condition;
[0041] The timing margin updating unit is used to update the timing margin of the inter-chip interconnection signal during each iteration.
[0042] Optionally, the timing margin updating unit includes: a global updating unit, and / or a fast updating unit;
[0043] The global update unit is used to update the timing margin of the inter-chip interconnection signal based on the global timing analysis;
[0044] The fast update unit is used to update the timing margin of the inter-chip interconnection signal based on fast timing analysis.
[0045] The TDM interconnect wiring method and device for a multi-chip system provided by an embodiment of the present invention adopts an inter-chip interconnect wiring method that combines rerouting with TDM ratio adjustment to find an interconnect optimization solution in a wider solution space, thereby obtaining a more optimized QoR effect. Using the solution of the present invention, the interconnect delay on the critical path can be reduced and the clock frequency of the entire system can be optimized under the constraint conditions of the actual physical connection of the hardware simulation system. Of course, the solution of the present invention is also applicable to other multi-chip wiring designs that consider TDM interconnect technology.
[0046] Furthermore, in each iteration of optimization, the timing margin of the inter-chip interconnection signal can be updated based on the global timing analysis or the fast timing analysis, which can meet the needs of users in different application environments.
[0047] Furthermore, considering the respective advantages and disadvantages of global timing analysis and fast timing analysis, global timing analysis and fast timing analysis are combined, and the timing margin of inter-chip interconnection signals is updated alternately based on global timing analysis and fast timing analysis. This can improve the optimization efficiency while ensuring the accuracy of the analysis results, thereby supporting simulation system routing for billion-gate designs. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flow chart of a TDM interconnection wiring method for a multi-chip system provided by an embodiment of the present invention;
[0049] Figure 2 This is a specific implementation flow chart of the TDM interconnection wiring method for a multi-chip system provided by an embodiment of the present invention;
[0050] Figure 3 This is a schematic diagram of a structure of a TDM interconnect wiring device for a multi-chip system provided by an embodiment of the present invention;
[0051] Figure 4 It is a specific structural diagram of an optimization module in a TDM interconnect wiring device of a multi-chip system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The principle and spirit of the present invention will be described below with reference to the exemplary embodiments shown in the accompanying drawings. It should be understood that these embodiments are described only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way.
[0053] In view of the above problems existing in the existing TDM interconnect wiring, an embodiment of the present invention provides a TDM interconnect wiring method for a multi-chip system, which uses an inter-chip interconnect wiring method that combines rewiring with TDM ratio adjustment to find an interconnect line optimization solution in a broader solution space, thereby obtaining a more optimized QoR effect.
[0054] like Figure 1 FIG. 1 is a flow chart of a TDM interconnection wiring method for a multi-chip system provided by an embodiment of the present invention, comprising the following steps:
[0055] Step 101: Generate an initial routing scheme, wherein the routing scheme includes the physical routing of each inter-chip interconnection signal.
[0056] For example, the MST algorithm can be used to generate the initial wiring scheme, and the specific generation process is similar to the prior art and will not be repeated here. Of course, other algorithms such as maze router algorithm can also be used to generate the initial wiring scheme, which is not limited in the embodiment of the present invention.
[0057] Step 102: setting the initial TDM ratio to be optimal without considering the interconnection line constraint condition.
[0058] Not considering the interconnection line constraints means not considering the number of physical routing lines between chips, that is, assuming that the number of physical routing lines is infinite, the interconnection signals do not need to be multiplexed, and all are directly connected.
[0059] The TDM ratio refers to the number of parallel signals transmitted on the same serial signal using the TDM technology. Setting the initial TDM ratio to be optimal means setting the initial TDM ratio according to the actually required TDM ratio.
[0060] Step 103: Obtain an initial optimal QoR according to the initial wiring solution and the initial TDM ratio.
[0061] It should be noted that, in the embodiment of the present invention, the QoR can be represented by the timing margin of the entire circuit in the worst case.
[0062] The calculation of QoR may adopt existing technology, which is not limited in the embodiment of the present invention.
[0063] Step 104, adjusting the wiring scheme and TDM ratio based on the interconnection line constraint condition to optimize the initial optimal QoR and obtain a final wiring scheme and TDM ratio.
[0064] That is, an iterative process of optimizing rewiring and TDM ratio is performed. In the embodiment of the present invention, the rewiring algorithm and TDM ratio optimization algorithm are used for iterative processing, and the timing margin of the inter-chip interconnection signal is updated in each iteration until all channels meet the interconnection line constraint conditions.
[0065] Specifically, firstly, the inter-chip interconnection signal to be adjusted is determined, and the TDM ratio of the inter-chip interconnection signal to be adjusted is adjusted and re-wired to optimize the path cost.
[0066] For example, in a non-limiting embodiment, the inter-chip interconnect signal to be adjusted may be determined in the following manner: if the inter-chip interconnect signal has the highest routing channel occupancy and the smallest timing margin, the inter-chip interconnect signal is used as the inter-chip interconnect signal to be adjusted.
[0067] In addition, the TDM ratio of the inter-chip interconnection signal to be adjusted can be adjusted in the following manner: the TDM ratio of the path that has been traversed is increased by one level (i.e., one level higher than the current TDM ratio), for example, if the current TDM ratio of the inter-chip interconnection signal is 2, it is adjusted to 3; the TDM ratio of the path that has not been traversed is lowered, for example, set to 1. Of course, in practical applications, there can be other adjustment methods, which are not limited in the embodiment of the present invention.
[0068] The traversed path refers to the path that the interconnection signal has traversed in the previous routing. For example, for the inter-chip interconnection signal a->b to be adjusted, there are three paths from a to b, namely: path 1, path 2, and path 3; in a previous routing scheme, the routing from a to b is path 1, and in the previous routing scheme, the routing from a to b is path 2; in this iterative processing, it is necessary to adjust the inter-chip interconnection signal a->b, remove path 2 from a to b and re-route, then path 1 and path 2 are the traversed paths, and path 3 is the path that has not been traversed.
[0069] After each adjustment, the cost of each path can be calculated. The calculation method of the path cost can be combined with the TDM ratio and the resource utilization of the channel, and the corresponding algorithm (such as the MST algorithm) is used to calculate the path with the minimum cost, and the minimum cost path is used for QoR evaluation. Iterate continuously until the resource occupancy rate of all channels does not exceed 1, that is, the channel usage constraint is no longer violated. The resource occupancy rate of the channel is the ratio of the interconnection line of the channel to the capacity of the channel, and the channel capacity = the number of channels × TDM ratio.
[0070] The timing margin refers to the difference between the actual time used and the time required for the design, and is a parameter indicating whether the design meets the timing. A positive Slack indicates that the timing is met (timing margin), and a negative Slack indicates that the timing is not met (timing shortfall).
[0071] It should be noted that in each iteration process, the timing margin of the inter-chip interconnection signal can be updated in a variety of ways. Specifically, the timing margin of the inter-chip Internet signal can be updated based on the original netlist and the original signal graph. Among them, the original netlist can be generated according to the initial wiring plan, and the original signal graph can be generated according to the original netlist. The original signal graph refers to a signal graph with inter-chip interconnection signals as nodes and paths between inter-chip interconnection signals as edges. When generating the original signal graph according to the original netlist, each inter-chip interconnection signal and the paths between different inter-chip interconnection signals can be obtained by traversing the original netlist, and the original signal graph can be generated based on these inter-chip interconnection signals and their paths.
[0072] In a non-limiting embodiment, the timing margin of the inter-chip interconnection signals may be updated based on the global timing analysis, that is, the timing margins of all inter-chip interconnection signals need to be recalculated and updated.
[0073] Global static timing analysis is a back-end process in chip design, which usually analyzes the timing path of the designed circuit. Global static timing analysis mainly verifies the correctness of the design in timing by traversing all transmission paths, finding the worst delay of all combinational logic circuits, checking whether the setup time and hold time meet the requirements, checking the recovery time and removal time; clock pulse width, clock jitter offset, and determining whether it can run at the required operating frequency.
[0074] In the embodiment of the present invention, global static timing analysis is mainly performed based on the original netlist to determine the current timing margin of each inter-chip interconnection signal. Specifically, all transmission paths in the original netlist are traversed to determine all fan-out pins of each inter-chip interconnection signal; the minimum value of the timing margin of all fan-out pins is used as the current timing margin of the inter-chip interconnection signal.
[0075] For another example, in another non-limiting embodiment, the timing margin of the inter-chip interconnection signal can be updated based on the fast timing analysis, that is, only the timing margin of some related inter-chip interconnection signals is recalculated. Specifically, the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path and with the same timing margin as the inter-chip interconnection signal to be adjusted can be updated. More specifically, all fan-out pins of the inter-chip interconnection signal to be adjusted are determined according to the original signal graph; the minimum value of the timing margins of all fan-out pins is used as the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path and with the same timing margin as the inter-chip interconnection signal to be adjusted.
[0076] The above method of updating the timing margin of the inter-chip interconnection signal based on global timing analysis can obtain a more accurate timing margin of each inter-chip interconnection signal, but the iterative processing efficiency is low due to the large amount of calculation. The above method of updating the timing margin of the inter-chip interconnection signal based on fast timing analysis only updates the timing margin of some related inter-chip interconnection signals, which can greatly improve the efficiency of the iterative processing process, but has a certain impact on the accuracy.
[0077] To this end, in another non-limiting embodiment, the timing margin of the inter-chip interconnection signal can be updated based on the global timing analysis and the fast timing analysis. Figure 2 The illustrated embodiment is described in detail.
[0078] like Figure 2 FIG. 1 is a flowchart of a specific implementation of a TDM interconnect wiring method for a multi-chip system provided by an embodiment of the present invention, comprising the following steps:
[0079] Step 201 : Generate an initial routing scheme and an original netlist, wherein the routing scheme includes the physical routing of each inter-chip interconnection signal.
[0080] Step 202, setting the initial TDM ratio to be optimal without considering the interconnection line constraint condition, and obtaining the initial optimal QoR according to the initial wiring scheme and the initial TDM ratio.
[0081] The specific implementation of the above steps 201 to 202 can refer to the previous Figure 1 The corresponding steps in the illustrated embodiment will not be repeated here.
[0082] Step 203, iterative processing is performed using a rewiring algorithm and a TDM ratio optimization algorithm, and in each iteration, the timing margin of the inter-chip interconnection signal is updated based on the global timing analysis and the fast timing analysis until all channels meet the interconnection line constraints, and the final wiring plan and TDM ratio are obtained.
[0083] Specifically, the timing margin of the inter-chip interconnection signal can be updated alternately based on the global timing analysis and based on the fast timing analysis. For example, if the timing margin of the inter-chip interconnection signal was updated based on the global timing analysis in the last iteration, then the timing margin of the inter-chip interconnection signal must be updated based on the fast timing analysis in this iteration, and the timing margin of the inter-chip interconnection signal will continue to be updated based on the global timing analysis in the next iteration, and so on. Of course, in practical applications, it is not necessary to use the above two methods in turn. For example, the timing margin of the inter-chip interconnection signal can be updated twice based on the global timing analysis, and then the timing margin of the inter-chip interconnection signal can be updated twice based on the fast timing analysis; or which of the above two methods is selected based on the trigger of certain conditions, and this embodiment of the present invention is not limited to this.
[0084] The TDM interconnection wiring method of the multi-chip system provided by the embodiment of the present invention adopts an inter-chip interconnection wiring method combining rewiring with TDM ratio adjustment, and searches for interconnection line optimization solutions in a wider solution space, thereby obtaining a more optimized QoR effect. Furthermore, the global timing analysis and the fast timing analysis are combined, and the timing margin of the inter-chip interconnection signal is updated alternately based on the global timing analysis and the fast timing analysis, which not only greatly improves the TDM interconnection optimization efficiency, but also ensures the optimization effect.
[0085] Accordingly, an embodiment of the present invention further provides a TDM interconnect wiring device for a multi-chip system, such as Figure 3 As shown, an implementation structure of the device may include:
[0086] The TDM interconnect wiring device 300 of the multi-chip system includes the following modules:
[0087] A routing module 301 is used to generate an initial routing scheme, wherein the routing scheme includes the physical routing of each inter-chip interconnection signal;
[0088] A setting module 302, used to set the initial TDM ratio to be optimal without considering the interconnection line constraint condition;
[0089] A calculation module 303, configured to obtain an initial optimal QoR according to the initial wiring scheme and the initial TDM ratio;
[0090] The optimization module 304 is used to adjust the wiring scheme and TDM ratio based on the interconnection line constraint conditions to optimize the initial optimal QoR and obtain the final wiring scheme and TDM ratio.
[0091] The wiring module 301 may specifically use a corresponding algorithm, such as an MST algorithm, a maze algorithm, etc., to generate an initial wiring scheme, which is not limited in this embodiment of the present invention.
[0092] In the embodiment of the present invention, the initial optimal QoR does not need to consider the interconnection line constraint condition, and the calculation module 303 can use some existing QoR calculation methods to calculate the initial optimal QoR, which is not limited in the embodiment of the present invention.
[0093] A specific structure of the optimization module 304 is as follows Figure 4 As shown, it includes: an iterative processing unit 341 and a timing margin updating unit 342. Among them:
[0094] The iterative processing unit 341 is used to perform iterative processing using a rewiring algorithm and a TDM ratio optimization algorithm until all channels meet the interconnection line constraint condition;
[0095] The timing margin updating unit 342 is used to update the timing margin of the inter-chip interconnection signal in each iteration process.
[0096] It should be noted that the timing margin updating unit 342 may update the timing margin of the inter-chip interconnection signal in a variety of ways during each iteration.
[0097] For example, the timing margin updating unit 342 may specifically include: a global updating unit and / or a fast updating unit.
[0098] The global update unit is used to update the timing margin of the inter-chip interconnection signal based on the global timing analysis;
[0099] The fast update unit is used to update the timing margin of the inter-chip interconnection signal based on fast timing analysis.
[0100] The specific process of updating the timing margin of the inter-chip interconnection signal based on different methods can be referred to the description in the above method embodiment of the present invention, which will not be repeated here.
[0101] The TDM interconnect wiring device of the multi-chip system provided by the embodiment of the present invention adopts an inter-chip interconnect wiring method combining rewiring and TDM ratio adjustment to find an interconnect optimization solution in a wider solution space, thereby obtaining a more optimized QoR effect. Furthermore, the global timing analysis and the fast timing analysis are combined, and the timing margin of the inter-chip interconnect signal is updated alternately based on the global timing analysis and the fast timing analysis, which not only greatly improves the TDM interconnect optimization efficiency, but also ensures the optimization effect.
[0102] The present application also discloses a storage medium, which is a computer-readable storage medium and stores a computer program, which can be executed when the computer program is run. Figure 1 or Figure 2 The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. The storage medium may also include a non-volatile memory (non-volatile) or a non-transitory memory, etc.
[0103] In a specific implementation, each module / unit included in each device or product described in the above embodiments may be a software module / unit or a hardware module / unit, or may be partly a software module / unit and partly a hardware module / unit.
[0104] For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0105] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A TDM interconnection wiring method for a multi-chip system, characterized in that: The method comprises: Generate an initial routing plan, wherein the routing plan includes physical routing of each inter-chip interconnect signal; The initial TDM ratio is set to be optimal without considering the interconnection line constraints; According to the initial wiring scheme and the initial TDM ratio, an initial optimal result quality QoR is obtained; The wiring scheme and TDM ratio are adjusted based on the interconnection line constraint conditions to optimize the initial optimal QoR and obtain a final wiring scheme and TDM ratio.
2. The method according to claim 1, characterized in that The adjusting the wiring scheme and TDM ratio based on the interconnection line constraint condition to optimize the initial optimal QoR to obtain the final wiring scheme and TDM ratio includes: Iterative processing is performed using a rewiring algorithm and a TDM ratio optimization algorithm, and in each iteration process, the timing margin of the inter-chip interconnection signal is updated until all channels meet the interconnection line constraint conditions.
3. The method according to claim 2, characterized in that The iterative processing using the rewiring algorithm and the TDM ratio optimization algorithm includes: Determine the inter-chip interconnection signals to be adjusted; The TDM ratio of the inter-chip interconnection signal to be adjusted is adjusted and re-wired to optimize the path overhead.
4. The method according to claim 3, characterized in that Determining the inter-chip interconnection signal to be adjusted includes: If the routing channel occupancy rate of the inter-chip interconnection signal is the highest and the timing margin is the smallest, the inter-chip interconnection signal is used as the inter-chip interconnection signal to be adjusted.
5. The method according to claim 3, characterized in that: The adjusting the TDM ratio of the inter-chip Internet signal to be adjusted includes: Increase the TDM ratio of the traversed paths by one level, and decrease the TDM ratio of the untraversed paths.
6. The method according to any one of claims 3 to 5, characterized in that: The timing margin of updating the inter-chip interconnection signal includes: Update the timing margin of inter-chip interconnect signals based on global timing analysis and / or fast timing analysis.
7. The method according to claim 6, characterized in that Update the timing margin of inter-chip interconnect signals based on global timing analysis and fast timing analysis, including: Update the timing margin of inter-chip interconnect signals based on global timing analysis and fast timing analysis alternately.
8. The method according to claim 7, characterized in that Updating the timing margin of inter-chip interconnect signals based on global timing analysis includes: Update the timing margins of all inter-chip Internet signals.
9. The method according to claim 8, characterized in that The method further comprises: generating an original netlist according to the initial routing scheme; The updating of the timing margin of all inter-chip Internet signals includes: Performing global static timing analysis on the current routing scheme according to the original netlist to determine all fan-out pins of each of the inter-chip interconnection signals; The minimum value of the timing margins of all fan-out pins is used as the current timing margin of the inter-chip interconnection signal.
10. The method according to claim 9, characterized in that Update the timing margin of inter-chip interconnect signals based on fast timing analysis, including: The timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin are updated.
11. The method according to claim 10, characterized in that The method further comprises: generating an original signal graph of inter-chip interconnection signals according to the original netlist; The updating of the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin comprises: The timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin are updated according to the original signal graph.
12. The method according to claim 11, characterized in that Generating the signal graph of the inter-chip interconnection nodes according to the original netlist comprises: The original netlist is traversed to generate an original signal graph with the inter-chip interconnection signals as nodes and the paths between the inter-chip interconnection signals as edges.
13. The method according to claim 11, characterized in that The updating of the inter-chip interconnection signal to be adjusted and the timing margin of the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin according to the original signal graph comprises: Determine all fan-out pins of the inter-chip interconnection signal to be adjusted according to the original signal graph; The minimum value of the timing margins of all fan-out pins is used as the timing margin of the inter-chip interconnection signal to be adjusted and the inter-chip interconnection signal on the same path as the inter-chip interconnection signal to be adjusted and having the same timing margin.
14. A TDM interconnection wiring device for a multi-chip system, characterized in that: The device comprises: A routing module, used to generate an initial routing scheme, wherein the routing scheme includes the physical routing of each inter-chip interconnection signal; A setting module is used to set the initial TDM ratio to be optimal without considering the interconnection line constraint; A calculation module, used for obtaining an initial optimal result quality QoR according to the initial wiring scheme and the initial TDM ratio; The optimization module is used to adjust the wiring scheme and TDM ratio based on the interconnection line constraint condition to optimize the initial optimal QoR and obtain the final wiring scheme and TDM ratio.
15. The device according to claim 14, characterized in that The optimization module includes: An iterative processing unit, used for performing iterative processing using a rewiring algorithm and a TDM ratio optimization algorithm until all channels meet the interconnection line constraint condition; The timing margin updating unit is used to update the timing margin of the inter-chip interconnection signal during each iteration.
16. The device according to claim 15, characterized in that The timing margin update unit includes: a global update unit and / or a fast update unit; The global update unit is used to update the timing margin of the inter-chip interconnection signal based on the global timing analysis; The fast update unit is used to update the timing margin of the inter-chip interconnection signal based on fast timing analysis.
