Chip interface time sequence optimization method and device, electronic equipment and storage medium
By adjusting the placement and wiring of interfaces between modules, combining the locations of registers and signal convergence points, inserting registers, and utilizing buffer units and high-level wiring, the problem of difficult convergence of inter-module interface timing in ultra-large-scale digital chips is solved, and timing is achieved balance and latency reduction.
Patent Information
- Application Number
- CN202410605112.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-30
AI Technical Summary
In the design process of ultra-large-scale digital chips, the increase in the number of interfaces between modules makes timing convergence difficult, and there is a lack of effective design methods to achieve timing convergence.
By adjusting the placement and wiring results of interfaces between modules, combined with the location of interface registers and signal convergence points, registers are inserted to reduce signal delays, and buffer units and high-level wiring are used to optimize interface paths.
It achieves timing convergence, reduces the interface signal delay between modules, reduces crosstalk, avoids unnecessary roundabout winding, and improves the performance and reliability of the chip.
Smart Images

Figure CN118569174A
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip technology, and in particular to a chip interface timing optimization method, device, electronic device and storage medium. Background Art
[0002] In the design process of ultra-large-scale digital chips, the design scale continues to increase. Usually, a large module (standard module, macro module, etc.) is divided into several small modules for design, thereby reducing the design difficulty and accelerating the convergence time. As the number of module divisions increases, the number of interfaces between modules also increases. The increase in the number of interfaces between modules may make it difficult to converge the timing.
[0003] Therefore, how to design the interface between modules to achieve timing convergence during the design process of ultra-large-scale digital chips is an urgent problem to be solved. Summary of the invention
[0004] The purpose of the present application is to provide a chip interface timing optimization method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to achieve timing convergence through interface design.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a chip interface timing optimization method, the method comprising:
[0007] According to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, and the position of each second interface in the second module and the position of the second interface register corresponding to the second interface, the first interfaces in the first module and the second interfaces in the second module are arranged and wired;
[0008] Adjust the placement position and wiring results of the interface between the first module and the second module according to the placement position and wiring results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring results of each second interface in the second module, the position of each second signal convergence point in the second module and the position of each second interface register in the second module.
[0009] Optionally, the method further includes: capturing interface timing violation information between the first module and the second module, and inserting a register into the first module and inserting a register into the second module according to the violation level of the interface timing violation information.
[0010] Optionally, inserting a register into the first module and inserting a register into the second module according to the violation level of the interface timing violation information includes:
[0011] Determining the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information;
[0012] According to the number of levels of registers to be inserted into the first module and the second module, registers are inserted into the first module and registers are inserted into the second module.
[0013] Optionally, determining the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information includes:
[0014] When the signal clock of the first module is the same as the signal clock of the second module, the number of levels of registers to be inserted into the first module and the second module is determined according to the relationship between the interface path signal delay between the first module and the second module and the period of the signal clock.
[0015] Optionally, determining the number of levels of registers to be inserted into the first module and the second module according to a relationship between an interface path signal delay between the first module and the second module and a period of the signal clock includes:
[0016] If the interface path signal delay is greater than one cycle of the signal clock and less than two cycles of the signal clock, it is determined that the number of levels of the registers to be inserted into the first module and the second module is one.
[0017] Optionally, the inserting a register into the first module and the inserting a register into the second module include:
[0018] The register is inserted into each first signal convergence point in the first module, and the register is inserted into each second signal convergence point in the second module.
[0019] Optionally, placing and wiring each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of a first interface register corresponding to the first interface, and the position of each second interface in the second module and the position of a second interface register corresponding to the second interface, comprises:
[0020] Directly connect each first interface to the corresponding second interface, move each first interface register to a position where the distance from the corresponding first interface is less than a preset distance, and move each second interface register to a position where the distance from the corresponding second interface is less than a preset distance;
[0021] Determine an interface path to be adjusted that has a timing violation, wherein the interface path to be adjusted includes a first interface and a corresponding second interface;
[0022] A buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through routing of a preset layer.
[0023] Optionally, inserting a buffer unit in the interface path to be adjusted, and connecting a first interface and a second interface in the interface path to be adjusted through a routing of a preset layer, comprises:
[0024] Determine the position and quantity of the buffer unit to be inserted and the position of the preset layer according to the driving capability of the buffer unit to be inserted and the distance information between the first interface and the second interface;
[0025] According to the position and quantity of the buffer unit to be inserted and the position of the preset layer, the buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through the routing of the preset layer.
[0026] Optionally, adjusting the placement position and wiring result of the interface between the first module and the second module according to the placement position and wiring result of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring result of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module includes:
[0027] Determine a positional relationship between each first signal convergence point and each second signal convergence point according to a position of each first signal convergence point in the first module and a position of each second signal convergence point in the second module;
[0028] Determining a routing form of an interface path between the first module and the second module according to wiring results of each first interface in the first module and wiring results of each second interface in the second module;
[0029] According to the positional relationship between the first signal convergence points and the second signal convergence points, the routing pattern of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register, the placement position and wiring results of the interface between the first module and the second module are adjusted.
[0030] Optionally, adjusting the placement position and wiring result of the interface between the first module and the second module according to the positional relationship between the first signal convergence points and the second signal convergence points, the routing form of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register includes:
[0031] If the positional relationship between each first signal convergence point and each second signal convergence point does not meet the preset conditions, and the routing pattern of the interface path between the first module and the second module is dense, the placement position and wiring result of the corresponding first interface in the first module are adjusted according to the position of each first interface register and / or the placement position and wiring result of the corresponding second interface in the second module are adjusted according to the position of each second interface register.
[0032] Optionally, the adjusting the placement position and wiring result of the corresponding first interface in the first module according to the position of each first interface register and / or adjusting the placement position and wiring result of the corresponding second interface in the second module according to the position of each second interface register includes:
[0033] Determine the position of each second signal convergence point according to the horizontal coordinate information of each second interface register;
[0034] According to the positions of the second signal convergence points, the positions of the second interfaces corresponding to the second interface registers and the wiring results are adjusted.
[0035] Optionally, adjusting the position of the second interface corresponding to each second interface register and the wiring result according to the position of each second signal convergence point includes:
[0036] The position of the second interface is adjusted to be opposite to the second signal convergence point, and according to the adjusted position of the second interface, the wiring result corresponding to the second interface is adjusted.
[0037] Optionally, it also includes:
[0038] If there is a detour in the interface path between the first module and the second module, the placement position and wiring result of the interface between the first module and the second module are adjusted according to the position of each first signal convergence point in the first module and / or the position of each second signal convergence point in the second module.
[0039] In a second aspect, an embodiment of the present application further provides a chip interface timing optimization device, including: a layout module, a timing optimization module;
[0040] The layout module is used to arrange and wire the first interfaces in the first module and the second interfaces in the second module according to the positions of the first interfaces in the first module and the positions of the first interface registers corresponding to the first interfaces, and the positions of the second interfaces in the second module and the positions of the second interface registers corresponding to the second interfaces;
[0041] The timing optimization module is used to adjust the placement position and wiring results of the interface between the first module and the second module according to the placement position and wiring results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring results of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module.
[0042] Optionally, it also includes: an acquisition module;
[0043] The acquisition module is used to capture the interface timing violation information between the first module and the second module, and insert a register into the first module and insert a register into the second module according to the violation level of the interface timing violation information.
[0044] Optionally, the acquisition module is specifically used to determine the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information;
[0045] According to the number of levels of registers to be inserted into the first module and the second module, registers are inserted into the first module and registers are inserted into the second module.
[0046] Optionally, the acquisition module is specifically used to determine the number of levels of registers to be inserted into the first module and the second module based on the relationship between the interface path signal delay between the first module and the second module and the period of the signal clock when the signal clock of the first module is the same as the signal clock of the second module.
[0047] Optionally, the acquisition module is specifically used to determine that the number of levels of registers to be inserted into the first module and the second module is one if the interface path signal delay is greater than one cycle of the signal clock and less than two cycles of the signal clock.
[0048] Optionally, the acquisition module is specifically configured to insert the register into each first signal convergence point in the first module and to insert the register into each second signal convergence point in the second module.
[0049] Optionally, the layout module is specifically used to directly connect each first interface with the corresponding second interface, and move each first interface register to a position where the distance from the corresponding first interface is less than a preset distance, and move each second interface register to a position where the distance from the corresponding second interface is less than a preset distance;
[0050] Determine an interface path to be adjusted that has a timing violation, wherein the interface path to be adjusted includes a first interface and a corresponding second interface;
[0051] A buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through routing of a preset layer.
[0052] Optionally, the layout module is specifically used to determine the position and quantity of the buffer unit to be inserted and the position of the preset layer according to the driving capability of the buffer unit to be inserted and the distance information between the first interface and the second interface;
[0053] According to the position and quantity of the buffer unit to be inserted and the position of the preset layer, the buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through the routing of the preset layer.
[0054] Optionally, the timing optimization module is specifically used to determine the positional relationship between each first signal convergence point and each second signal convergence point according to the position of each first signal convergence point in the first module and the position of each second signal convergence point in the second module;
[0055] Determining a routing form of an interface path between the first module and the second module according to wiring results of each first interface in the first module and wiring results of each second interface in the second module;
[0056] According to the positional relationship between the first signal convergence points and the second signal convergence points, the routing pattern of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register, the placement position and wiring results of the interface between the first module and the second module are adjusted.
[0057] Optionally, the timing optimization module is specifically used to adjust the placement position and wiring result of the corresponding first interface in the first module according to the position of each first interface register and / or adjust the placement position and wiring result of the corresponding second interface in the second module according to the position of each second interface register if the positional relationship between each first signal convergence point and each second signal convergence point does not meet a preset condition and the routing pattern of the interface path between the first module and the second module is a dense pattern.
[0058] Optionally, the timing optimization module is specifically used to determine the position of each second signal convergence point according to the horizontal coordinate information of each second interface register;
[0059] According to the positions of the second signal convergence points, the positions of the second interfaces corresponding to the second interface registers and the wiring results are adjusted.
[0060] Optionally, the timing optimization module is specifically configured to adjust the position of the second interface to be opposite to the second signal convergence point, and adjust a wiring result corresponding to the second interface according to the adjusted position of the second interface.
[0061] Optionally, the timing optimization module is also used to adjust the placement position and wiring results of the interface between the first module and the second module according to the positions of each first signal convergence point in the first module and / or the positions of each second signal convergence point in the second module if there is a detour in the interface path between the first module and the second module.
[0062] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to implement the chip interface timing optimization method provided in the first aspect.
[0063] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the chip interface timing optimization method provided in the first aspect is executed.
[0064] The beneficial effects of this application are:
[0065] The present application provides a chip interface timing optimization method, device, electronic device and storage medium, the method comprising: placing and wiring each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, as well as the position of each second interface in the second module and the position of the second interface register corresponding to the second interface; adjusting the placement position and wiring result of the interface between the first module and the second module according to the placement position and wiring result of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring result of each second interface in the second module, the position of each second signal convergence point in the second module and the position of each second interface register in the second module. This scheme places and wires the interface according to the position of the interface in the module and the position of the interface register, and adjusts the placement and wiring of the module in combination with the position of the signal convergence point corresponding to the interface and the position of the interface register after the interface is placed. In this process, since the position of the interface register inside the module, the position of the signal convergence point and the position of the interface between the modules are considered at the same time, the relationship between the internal timing of the module and the timing of the interface can be balanced, and the convergence of the timing is guaranteed.
[0066] Secondly, the violation level is determined by capturing the violation information, so that registers can be inserted into the first module and the second module according to the violation level to shorten the physical distance between the registers of the first module and the second module, thereby reducing the interface signal delay.
[0067] Then, by directly connecting the interfaces between modules and operating the interface registers close to the interfaces, the physical distance between the registers of the modules can be reduced, and the interface signal delay can be reduced. For the single fan-out link, the buffer unit and high-level routing are used to customize the corresponding single fan-out link according to the driving capability of the buffer unit and the distance between the interfaces between the modules to reduce the interface delay between the two modules.
[0068] In addition, in order to solve the crosstalk problem of high-level routing near the interface, the position of the interface in the module is adjusted to increase the routing spacing.
[0069] Finally, in order to solve the problem of circuitous interface paths caused by improper adjustment of the interface position in the module or a large deviation between the interface register position and the interface position, unnecessary circuitous wiring can be avoided and signal delays between modules can be reduced by adjusting the interface position. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0071] Figure 1 A schematic diagram of a chip interface timing optimization method provided in an embodiment of the present application;
[0072] Figure 2 A schematic diagram of the inter-module layout structure in a chip provided in an embodiment of the present application;
[0073] Figure 3 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application;
[0074] Figure 4 A schematic diagram of a module structure before and after a register is inserted provided in an embodiment of the present application;
[0075] Figure 5 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application;
[0076] Figure 6 A schematic diagram of a direct interface connection provided in an embodiment of the present application;
[0077] Figure 7 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application;
[0078] Figure 8 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application;
[0079] Fig. 9 A schematic diagram showing a comparison before and after optimization of lateral routing crosstalk provided in an embodiment of the present application;
[0080] Fig.10 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application;
[0081] Fig.11 A schematic diagram of interface path detour optimization provided in an embodiment of the present application;
[0082] Fig.12 A schematic diagram of a chip interface timing optimization device provided in an embodiment of the present application;
[0083] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0084] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0085] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0086] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0087] Figure 1 A schematic diagram of a chip interface timing optimization method provided in an embodiment of the present application; Figure 2 A schematic diagram of the inter-module layout structure in a chip provided in an embodiment of the present application; the execution subject of the method may be a computer device, such as Figure 1 As shown, the method may include:
[0088] S101. Arrange and wire each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, and the position of each second interface in the second module and the position of the second interface register corresponding to the second interface.
[0089] The first module and the second module can be basic functional modules such as standard cells and macro modules constituting the chip. There is interface signal transmission between any two modules, which may cause timing problems between interfaces.
[0090] Combination Figure 2As shown, the first signal convergence point is the convergence point of multiple first interface registers in the first module, and the second signal convergence point is the convergence point of multiple second interface registers in the second module. Taking the first module as an example, the first module may include multiple and first interface registers, and multiple first interface registers may constitute a group of interface registers, a group of interface registers is correspondingly connected to a first signal convergence point, and a first signal convergence point is connected to a corresponding first interface in the first module. Therefore, the first module includes multiple groups of interface registers, each group of interface registers corresponds to a first signal convergence point, and a first signal convergence point corresponds to a first interface, then the first interface register corresponding to the first interface can refer to each first interface register corresponding to the first signal convergence point corresponding to the first interface. The second module is similar to the first module and will not be repeated.
[0091] In some embodiments, during the layout and routing stage, a layout and routing tool can be used to place each first interface in the first module and each second interface in the second module according to the pre-designed positions of each first interface in the first module, the positions of each first interface register corresponding to each first interface, the positions of each second interface in the second module, and the positions of each second interface register corresponding to each second interface.
[0092] Based on the arranged first interfaces and second interfaces, a wiring layout is performed between the first interfaces and the second interfaces to connect the first module with the second module.
[0093] S102. Adjust the placement position and wiring results of the interface between the first module and the second module according to the placement position and wiring results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring results of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module.
[0094] Based on the results after placement and wiring, the placement position and wiring results of the interface between the first module and the second module can be adjusted according to the placement position and wiring results of the first interface, the first signal convergence point, and the register in the first module and the placement position and wiring results of the second interface, the second signal convergence point, and the register in the second module.
[0095] In one achievable manner, the interface placement and routing results may be adjusted during the timing optimization phase.
[0096] Generally, timing analysis can be performed at multiple stages throughout the chip design process, and timing optimization can be performed based on the timing analysis results. Timing analysis can occur in multiple stages including but not limited to: design, simulation, verification, debugging, and post-maintenance.
[0097] Design stage: When designing the chip interface, it is necessary to conduct a preliminary analysis of the timing. This includes determining key parameters such as the interface clock frequency, data transmission rate, setup time, and hold time. These parameters will directly affect the performance and stability of the interface.
[0098] Simulation phase: After the design is completed, simulation verification is required. At this stage, the timing behavior of the interface can be simulated by simulation software to check whether the design meets expectations. Simulation can help discover potential problems in the design, such as timing violations, data loss, etc.
[0099] Verification phase: After the chip samples are manufactured, actual verification tests are required. This phase includes using test equipment to measure and analyze the interface timing to verify whether the design meets actual requirements. Verification tests can discover potential problems in the manufacturing process, such as process deviations, temperature effects, etc.
[0100] Debugging stage: Before the chip is put into production, debugging and optimization may be required. In this stage, the performance and stability of the interface can be optimized by modifying timing parameters and adjusting circuit design. Timing analysis in the debugging stage can help find and solve potential problems and improve the quality and reliability of the chip.
[0101] Post-maintenance stage: After the chip is put into use, it may need to be maintained and upgraded. At this stage, the interface timing analysis is also required to ensure that it still meets the system requirements. If the interface has a timing problem, it may need to be repaired or replaced accordingly.
[0102] In this embodiment, after completing the preliminary layout and routing between the first module and the second module, a timing analysis can be performed. During the timing analysis, the placement position and routing results of the interface between the first module and the second module can be adjusted according to the placement position and routing results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and routing results of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module.
[0103] After the layout and routing are completed, the positions of the interface registers, the positions of the signal convergence points and the interface positions in the first module and the second module have been determined. Therefore, in the timing optimization stage, the placement of the interface between the first module and the second module and the routing results between the interfaces can be adjusted according to the above relevant information to optimize the violation path, reduce the signal delay between the interfaces, and optimize the interface timing.
[0104] Among them, in the process of adjusting the placement position and wiring results of the interface, the interface register position inside the module, the signal convergence point position and the interface position between modules are fully considered, which can effectively balance the relationship between the internal timing of the module and the interface timing, and achieve the effect of rapid timing convergence.
[0105] It is worth mentioning that for the optimization of interface timing, it is usually necessary to return to the layout and routing stage, adjust the interface position, and then place each unit and module. After layout and routing, capture violation information again and re-optimize the timing. In this solution, by adjusting the position of the interface in the module, the timing of the interface can be optimized by only adjusting the position of the interface in the module during the timing optimization stage, while placing the module and other units in the module. There is no need to return to the layout and routing stage to re-layout and route the module and each unit, thereby reducing the complexity of timing optimization.
[0106] In summary, the chip interface timing optimization method provided in this embodiment includes: placing and wiring each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, as well as the position of each second interface in the second module and the position of the second interface register corresponding to the second interface; adjusting the placement position and wiring result of the interface between the first module and the second module according to the placement position and wiring result of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring result of each second interface in the second module, the position of each second signal convergence point in the second module and the position of each second interface register in the second module. This scheme places and wires the interface according to the position of the interface in the module and the position of the interface register, and adjusts the placement and wiring of the module in combination with the position of the signal convergence point corresponding to the interface and the position of the interface register after the interface is placed. In this process, since the position of the interface register inside the module and the position of the signal convergence point and the position of the interface between the modules are considered at the same time, the relationship between the internal timing of the module and the interface timing can be balanced, and the convergence of the timing is guaranteed.
[0107] Optionally, the method of the present application may further include: capturing interface timing violation information between the first module and the second module, and inserting a register into the first module and inserting a register into the second module according to the violation level of the interface timing violation information.
[0108] In a possible implementation, during the chip design process, the interface timing violation information between the first module and the second module can be collected in the code synthesis stage, and the code synthesis stage can be performed after the logic design of each module in the chip is written to form the logic code. The collected interface timing violation information may include violation path information under various violation types.
[0109] The violation level can be determined according to the interface timing violation information, so that stacking processing can be performed on the first module and the second module respectively according to the violation level. The stacking processing can be achieved by adding registers to appropriate positions in the first module and the second module respectively. Through this processing, the signal delay between the first module and the second module can be reduced.
[0110] In one achievable manner, inserting registers into the first module and inserting registers into the second module according to the violation level may be performed before step S101. In another achievable manner, it may also be performed at any stage in the process of iterative interface optimization.
[0111] Figure 3 A flow chart of another chip interface timing optimization method provided by an embodiment of the present application; Optionally, in the above steps, inserting a register into the first module and inserting a register into the second module according to the violation level of the interface timing violation information may include:
[0112] S201. Determine the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information.
[0113] The violation magnitude can be determined based on the relationship between the delay of the signal path between the first module and the second module and the signal period. Different violation magnitudes result in different levels of registers to be inserted into the first module and the second module.
[0114] S202 . Insert registers into the first module and insert registers into the second module according to the number of levels of registers to be inserted into the first module and the second module.
[0115] According to the number of levels of registers determined above, registers of a corresponding number of levels may be inserted into the first module and registers of a corresponding number of levels may be inserted into the second module respectively.
[0116] Optionally, in step S201, determining the number of registers to be inserted into the first module and the second module based on the violation level of the interface timing violation information may include: when the signal clock of the first module is the same as the signal clock of the second module, determining the number of registers to be inserted into the first module and the second module based on the relationship between the interface path signal delay and the period of the signal clock between the first module and the second module.
[0117] When the signal clock of the first module is the same as the signal clock of the second module, the relationship between the delay of the interface path signal between the first module and the second module and the period of the signal clock can be determined. The interface path between the first module and the second module includes multiple paths, such as Figure 2 As shown, a first interface in the first module and a corresponding second interface in the second module can constitute an interface path. The signal clock can be the signal clock of the first module or the signal clock of the second module, because the signal clock of the first module and the signal clock of the second module are the same at this time.
[0118] Optionally, determining the number of levels of registers to be inserted into the first module and the second module based on the relationship between the interface path signal delay and the period of the signal clock between the first module and the second module may include: if the interface path signal delay is greater than one period of the signal clock and less than two periods of the signal clock, determining that the number of levels of registers to be inserted into the first module and the second module is one.
[0119] When the interface path signal delay is greater than one cycle of the signal clock and less than two cycles of the signal clock, the number of registers to be inserted is determined to be one; and when the interface path signal delay is greater than two cycles of the signal clock and less than three cycles of the signal clock, the number of registers to be inserted is determined to be two, and so on, so that after inserting an appropriate number of registers, the signal delay of the interface path between the first module and the second module can be reduced to within one cycle.
[0120] If the interface path signal delay between the first module and the second module is smaller than one cycle of the signal clock, it is not necessary to insert registers into the first module and the second module, because the signal delay between the first module and the second module is smaller and there is no problem of difficulty in timing convergence.
[0121] Optionally, in step S202, inserting a register into the first module and inserting a register into the second module may include: inserting a register into each first signal convergence point in the first module and inserting a register into each second signal convergence point in the second module.
[0122] In some embodiments, since there are multiple interface paths between the first module and the second module, the signal delay of some of the interface paths may be within one cycle of the signal clock, while the signal delay of other interface paths may exceed one cycle of the signal clock, then the register may be inserted only into the signal convergence points corresponding to the interface paths whose signal delay exceeds one cycle of the signal clock. That is, when inserting the register, the register is inserted only into the signal convergence points corresponding to the paths whose signal delays do not meet the conditions.
[0123] Figure 4 A schematic diagram of a module structure before and after a register is inserted provided in an embodiment of the present application. Figure 4 (a) shows the interface placement and wiring result between the first module and the second module before the register is inserted. Figure 4 (b) in the figure is a case where the signal delays of all interface paths between the first module and the second module are greater than one cycle of the signal clock and less than two cycles, and a first-level register is inserted into all first signal convergence points of the first module and a first-level register is inserted into all second signal convergence points of the second module. Inserting a first-level register means inserting one register, while inserting a second-level register means inserting two registers, and so on.
[0124] Assume Figure 4 In (a), only the signal delay of interface path 1 does not meet the condition, so the generated Figure 4 In (b), a first-level register may be inserted only in the first signal convergence point 1 and the second signal convergence point 1 corresponding to the interface path 1. At this time, no register is inserted in the remaining signal convergence points.
[0125] It is worth noting that Figure 4 (b) in the figure takes the case where the signal delays of all interface paths do not meet the conditions as an example, and shows a schematic diagram when all first signal convergence points in the first module are inserted into the register and all second signal convergence points in the second module are inserted into the register.
[0126] Figure 5 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application; optionally, in step S101, placing and wiring each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, and the position of each second interface in the second module and the position of the second interface register corresponding to the second interface, may include:
[0127] S501, directly connect each first interface to the corresponding second interface, move each first interface register to a position whose distance from the corresponding first interface is less than a preset distance, and move each second interface register to a position whose distance from the corresponding second interface is less than a preset distance.
[0128] In some embodiments, in order to balance the relationship between the internal timing of the module and the timing between modules, the compromise position of the interface registers on both sides of the first module and the second module is found to reduce signal delay. During the layout and routing process, each first interface in the first module can be directly connected to the second interface corresponding to each first interface in the second module to avoid winding.
[0129] In addition, each first interface register in the first module and each second interface register in the second module are operated to approach the vicinity of the interface to shorten the physical distance between the interface registers in the two modules and reduce the signal delay. Among them, each first interface register in the first module can be moved to the first interface corresponding to each first interface register, so as to move the distance between each first interface register and the corresponding first interface to meet the preset distance. Each second interface register in the second module is moved to the second interface corresponding to each second interface register, so as to move the distance between each second interface register and the corresponding second interface to meet the preset distance. The preset distance here can be set according to design requirements.
[0130] Figure 6 A schematic diagram of a direct interface connection provided in an embodiment of the present application. Figure 6 As shown, the direct connection between the first interface and the second interface means that the first interface and the second interface corresponding to each other in the first module and the second module are connected by a straight line without generating winding.
[0131] S502: Determine an interface path to be adjusted that has a timing violation, where the interface path to be adjusted includes a first interface and a corresponding second interface.
[0132] Based on the results after layout and routing, a timing violation detection can be performed to determine the interface path to be adjusted that still has timing violations. The interface path to be adjusted may include the first interface and the second interface corresponding to the second interface. Of course, in some cases, the interface path to be adjusted may also include the connection between the first interface and the corresponding first signal convergence point, and the connection between the second interface and the corresponding second signal convergence point.
[0133] S503 , inserting a buffer unit in the interface path to be adjusted, and connecting the first interface and the second interface in the interface path to be adjusted through routing of a preset layer.
[0134] Optionally, a buffer unit can be inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through routing of a preset layer to customize the corresponding single fan-out link, thereby reducing the interface delay between the first module and the second module.
[0135] Figure 7 A flow chart of another chip interface timing optimization method provided in an embodiment of the present application; optionally, inserting a buffer unit in the interface path to be adjusted, and connecting the first interface and the second interface in the interface path to be adjusted through a preset layer of routing, may include:
[0136] S701 : Determine the position, quantity and position of a preset layer of the buffer unit to be inserted according to the driving capability of the buffer unit to be inserted and the distance information between the first interface and the second interface.
[0137] In some embodiments, the position, quantity, and routing position of the inserted buffer unit can be determined according to the driving capability of the buffer unit to be inserted and the distance between the interfaces.
[0138] For example, when the driving capacity of the buffer unit used is relatively large, the number of buffer units to be inserted may be relatively small, and when the driving capacity is relatively small, the number of buffer units to be inserted may be relatively large.
[0139] S702 . Insert a buffer unit into the interface path to be adjusted according to the position and quantity of the buffer unit to be inserted and the position of the preset layer, and connect the first interface and the second interface in the interface path to be adjusted through routing of the preset layer.
[0140] The position of the buffer unit to be inserted may be located on the line between the first interface and the second interface, or may be located on the line between the first interface and the first signal convergence point, or may be located on the line between the second interface and the second signal convergence point. It is also possible to insert the buffer unit at at least one of the above three positions.
[0141] The preset layer in this embodiment may refer to a high layer. The first interface and the second interface in the interface path to be adjusted may be connected by high-layer routing.
[0142] In chip layout, high-level routing usually refers to the use of higher-level metal layers in a multi-layer metal layer for routing. This is because in a multi-layer metal structure, different levels of metal layers have different characteristics and uses. Generally speaking, high-level metal (such as top metal) is usually a thicker metal layer with lower resistivity and higher current carrying capacity.
[0143] The high-level routing method can meet the design needs and performance requirements, bringing the following advantages:
[0144] First: Signal integrity: High-level routing can reduce signal loss and interference during transmission. Since the signal is physically farther away from potential interference sources (such as power lines, other signal lines, etc.) when routing at high levels, the signal will be less interfered with, thus maintaining better signal integrity.
[0145] Second: Reduce crosstalk: High-level routing helps reduce crosstalk between different signal lines. Crosstalk is caused by electromagnetic coupling or capacitive coupling between signal lines, which may affect the transmission quality of the signal. Through high-level routing, the distance between signal lines can be increased, the degree of coupling between them can be reduced, and thus the occurrence of crosstalk can be reduced.
[0146] Third: Convenient heat dissipation: In multi-layer chip design, high-level routing can provide more space for heat dissipation. Since high-level routing does not directly contact the circuit board or other heat sources, it can better dissipate heat and improve the reliability of the chip.
[0147] Fourth: Easy wiring: In some cases, high-level routing can make wiring more convenient. For example, when some interfaces on the chip need to be connected to other interfaces on the circuit board far away from them, high-level routing can avoid the complexity and limitations of bottom-level routing.
[0148] Fifth: Improve design flexibility: High-level routing can increase design flexibility. Since high-level routing is not directly restricted by the circuit board or other components, it can be more easily modified and adjusted as needed.
[0149] Figure 8 A flow chart of another chip interface timing optimization method provided in an embodiment of the present application; optionally, in step S102, adjusting the placement position and wiring result of the interface between the first module and the second module according to the placement position and wiring result of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring result of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module, may include:
[0150] S801. Determine a positional relationship between each first signal convergence point and each second signal convergence point according to a position of each first signal convergence point in the first module and a position of each second signal convergence point in the second module.
[0151] Optionally, the position layout relationship between the signal convergence points of the two modules may be determined according to the position of each first signal convergence point in the first module and the position of each second signal convergence point in the second module.
[0152] S802: Determine a routing pattern of an interface path between the first module and the second module according to wiring results of each first interface in the first module and wiring results of each second interface in the second module.
[0153] According to the wiring results of each first interface in the first module and the wiring results of each second interface in the second module, the routing pattern of the interface path between the first module and the second module can be determined. The routing pattern may include, for example, dense routing, sparse routing, etc.
[0154] S803. Adjust the placement position and wiring results of the interface between the first module and the second module according to the positional relationship between each first signal convergence point and each second signal convergence point, the routing pattern of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register.
[0155] Combined with the positional relationship between the signal convergence points of the first module and the second module and the routing pattern of the interface path, it is possible to determine whether crosstalk occurs in the routing. In the case of routing crosstalk, the placement position of the interface between the first module and the second module and the wiring result are adjusted according to the positions of the first interface registers and the second interface registers.
[0156] Optionally, in step S803, according to the positional relationship between each first signal convergence point and each second signal convergence point, the routing pattern of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register, the placement position and wiring result of the interface between the first module and the second module are adjusted, which may include: if the positional relationship between each first signal convergence point and each second signal convergence point does not meet the preset conditions, and the routing pattern of the interface path between the first module and the second module is a dense pattern, then the placement position and wiring result of the corresponding first interface in the first module are adjusted according to the position of each first interface register and / or the placement position and wiring result of the corresponding second interface in the second module are adjusted according to the position of each second interface register.
[0157] Optionally, when the positions of the first signal convergence points and the second signal convergence points are not relative, and the routing pattern of the interface path between the first module and the second module is dense, crosstalk occurs in the high-level horizontal routing between the first module and the second module.
[0158] For links that use high-level routing near interfaces, resources are easily congested, which leads to crosstalk between high-level routing, making optimization inadequate. Since more horizontal routing resources are used near interfaces, links are prone to crosstalk. You can recalculate the position of the signal convergence point to adjust the interface position, and solve the crosstalk problem by indirection between horizontal routing.
[0159] Fig. 9 A schematic diagram showing the comparison before and after optimization of lateral routing crosstalk provided in an embodiment of the present application. Fig. 9 In the example, the position of the second signal convergence point in the second module is adjusted. Fig. 9 (a) is a schematic diagram of the horizontal routing when crosstalk occurs; Fig. 9 (b) is a schematic diagram after the horizontal routing crosstalk problem is solved.
[0160] like Fig. 9 As shown in (a), the second module includes multiple second interfaces, namely interface 1, interface 2, interface 3, interface 4, and interface 5; Fig. 9 As shown in (b) in the figure, the positions of interface 2 and interface 4 can be adjusted to increase the spacing of the interface lateral routing between the first module and the second module, and the increase in spacing can effectively alleviate the problem of crosstalk between lines.
[0161] Optionally, the adjusted position of the second interface in the second module may be determined according to positions of a group of second interface registers corresponding to the second interface.
[0162] Of course, in practical applications, when solving the wiring crosstalk problem, it is not limited to adjusting only the position of the second interface in the second module. Fig. 9 The case where the position of the second interface in the second module needs to be adjusted to solve the wiring crosstalk is used as an example. In some cases, when the horizontal wiring is located inside the first module, the wiring crosstalk problem can also be solved by adjusting the position of the first interface in the first module.
[0163] Similarly, the adjusted position of the first interface in the first module may be determined according to the positions of a group of first interface registers corresponding to the first interface.
[0164] Fig.10 A flowchart of another chip interface timing optimization method provided in an embodiment of the present application; optionally, in the above steps, adjusting the placement position and wiring result of the corresponding first interface in the first module according to the position of each first interface register and / or adjusting the placement position and wiring result of the corresponding second interface in the second module according to the position of each second interface register may include:
[0165] S1001. Determine the position of each second signal convergence point according to the horizontal coordinate information of each second interface register.
[0166] Taking the position adjustment of any second interface in the second module as an example, assuming that the position of interface 2 in the second module is adjusted, then, a group of second interface registers corresponding to interface 2 can be first determined. The group of second interface registers corresponding to interface 2 is also a group of second interface registers corresponding to the second signal convergence point 2 to which interface 2 is connected.
[0167] According to the horizontal coordinate information of each second interface register in a group of second interface registers corresponding to the interface 2, the position of the second signal convergence point 2 corresponding to the group of second interface registers can be determined.
[0168] Optionally, the position of the second signal convergence point 2 corresponding to the interface 2 may be obtained by taking an average value of the horizontal coordinates of each second interface register in the group of second interface registers.
[0169] S1002. According to the positions of the second signal convergence points, adjust the positions of the second interfaces corresponding to the second interface registers and the wiring results.
[0170] Then, based on the calculated positions of the second signal convergence points corresponding to the second interfaces, the positions of the second interfaces can be adjusted. Based on the adjustment of the positions of the second interfaces, the second interface wiring will also change, thereby adjusting the wiring results.
[0171] Optionally, in step S1002, the position of the second interface corresponding to each second interface register and the wiring result are adjusted according to the position of each second signal convergence point, which may include: adjusting the position of the second interface to be opposite to the second signal convergence point, and adjusting the wiring result corresponding to the second interface according to the adjusted position of the second interface.
[0172] Continue as Fig. 9 As shown in (b), the position of the interface 2 can be adjusted from the original position to a position relative to the second signal convergence point 2, so that the horizontal routing can be adjusted and the spacing between the horizontal routings can be increased to solve the routing crosstalk problem.
[0173] Optionally, the method of the present application may further include: if there is a detour in the interface path between the first module and the second module, adjusting the placement position and wiring results of the interface between the first module and the second module according to the position of each first signal convergence point in the first module and / or the position of each second signal convergence point in the second module.
[0174] In some embodiments, in case that the interface path has detours, optimization can also be achieved by adjusting the placement of the interface.
[0175] Optionally, during the timing optimization stage, if the interface is not adjusted in place in the early stage of layout and routing or the distribution of the interface registers deviates greatly from the interface position, resulting in a circuitous interface path, you can consider adjusting the position of the interface to reduce unnecessary routing delays and repair the interface violation.
[0176] Fig.11 A schematic diagram of an interface path detour optimization provided for an embodiment of the present application. In some embodiments, when the first signal convergence point in the first module is relative to the second signal convergence point in the second module, but the first interface is not relative to the second interface, resulting in the first interface and the second interface not being directly connected, a detour will be generated at the interface path. In this case, the problem of the detour path can be solved by adjusting the position of the first interface in the first module or adjusting the position of the second interface in the second module.
[0177] Among them, when the first interface in the first module and the corresponding first signal convergence point are not opposite, the position of the first interface can be adjusted according to the position of the first signal convergence point; when the second interface in the second module and the corresponding second signal convergence point are not opposite, the position of the second interface can be adjusted according to the position of the second signal convergence point.
[0178] like Fig.11 (a) is a schematic diagram of a circuitous route in the interface path, which can be seen to be caused by the first interface in the first module not being relative to the corresponding first signal convergence point. Fig.11 (b) is a schematic diagram of the interface path after the detour is repaired. By adjusting the position of the first interface in the first module to be opposite to the position of the first signal convergence point, the first interface in the first module can be opposite to the second interface in the second module, so that they can be directly connected to reduce unnecessary detours.
[0179] This embodiment also achieves interface timing optimization by adjusting the position of the interface in the timing optimization stage, and there is no need to return to the layout and routing stage for re-layout and routing, thereby reducing the complexity of timing optimization.
[0180] In summary, the chip interface timing optimization method provided in this embodiment includes: placing and wiring each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, as well as the position of each second interface in the second module and the position of the second interface register corresponding to the second interface; adjusting the placement position and wiring result of the interface between the first module and the second module according to the placement position and wiring result of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring result of each second interface in the second module, the position of each second signal convergence point in the second module and the position of each second interface register in the second module. This scheme places and wires the interface according to the position of the interface in the module and the position of the interface register, and adjusts the placement and wiring of the module in combination with the position of the signal convergence point corresponding to the interface and the position of the interface register after the interface is placed. In this process, since the position of the interface register inside the module and the position of the signal convergence point and the position of the interface between the modules are considered at the same time, the relationship between the internal timing of the module and the interface timing can be balanced, and the convergence of the timing is guaranteed.
[0181] Secondly, the violation level is determined by capturing the violation information, so that registers can be inserted into the first module and the second module according to the violation level to shorten the physical distance between the registers of the first module and the second module, thereby reducing the interface signal delay.
[0182] Then, by directly connecting the interfaces between modules and operating the interface registers close to the interfaces, the physical distance between the registers of the modules can be reduced, and the interface signal delay can be reduced. For the single fan-out link, the buffer unit and high-level routing are used to customize the corresponding single fan-out link according to the driving capability of the buffer unit and the distance between the interfaces between the modules to reduce the interface delay between the two modules.
[0183] In addition, in order to solve the crosstalk problem of high-level routing near the interface, the position of the interface in the module is adjusted to increase the routing spacing.
[0184] Finally, in order to solve the problem of circuitous interface paths caused by improper adjustment of the interface position in the module or a large deviation between the interface register position and the interface position, unnecessary circuitous wiring can be avoided and signal delays between modules can be reduced by adjusting the interface position.
[0185] The following describes the apparatus, device, storage medium, etc. used to execute the chip interface timing optimization method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.
[0186] Fig.12The schematic diagram of a chip interface timing optimization device provided in an embodiment of the present application, the functions implemented by the chip interface timing optimization device correspond to the steps performed by the above method. The device can be understood as the above-mentioned computer device. Fig.12 As shown, the device may include: a layout module 121, a timing optimization module 122;
[0187] A layout module 121, configured to arrange and wire each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of the first interface register corresponding to the first interface, and the position of each second interface in the second module and the position of the second interface register corresponding to the second interface;
[0188] The timing optimization module 122 is used to adjust the placement position and wiring results of the interface between the first module and the second module according to the placement position and wiring results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring results of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module.
[0189] Optionally, it further includes: an acquisition module, used to capture the interface timing violation information between the first module and the second module, and insert a register into the first module and insert a register into the second module according to the violation level of the interface timing violation information;
[0190] Optionally, an acquisition module is specifically used to determine the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information;
[0191] According to the number of stages of registers to be inserted into the first module and the second module, registers are inserted into the first module and registers are inserted into the second module.
[0192] Optionally, the acquisition module is specifically used to determine the number of levels of registers to be inserted into the first module and the second module according to the relationship between the interface path signal delay and the period of the signal clock between the first module and the second module when the signal clock of the first module is the same as the signal clock of the second module.
[0193] Optionally, the acquisition module is specifically used to determine that the number of levels of the registers to be inserted into the first module and the second module is one if the interface path signal delay is greater than one cycle of the signal clock and less than two cycles of the signal clock.
[0194] Optionally, the acquisition module is specifically used to insert a register into each first signal convergence point in the first module and to insert a register into each second signal convergence point in the second module.
[0195] Optionally, the layout module 121 is specifically configured to directly connect each first interface with the corresponding second interface, and to move each first interface register to a position where the distance from the corresponding first interface is less than a preset distance, and to move each second interface register to a position where the distance from the corresponding second interface is less than a preset distance;
[0196] Determine an interface path to be adjusted that has a timing violation, where the interface path to be adjusted includes a first interface and a corresponding second interface;
[0197] A buffer unit is inserted into the interface path to be adjusted, and a first interface and a second interface in the interface path to be adjusted are connected through routing of a preset layer.
[0198] Optionally, the layout module 121 is specifically used to determine the position, quantity and position of the preset layer of the buffer unit to be inserted according to the driving capability of the buffer unit to be inserted and the distance information between the first interface and the second interface;
[0199] According to the position and quantity of the buffer unit to be inserted and the position of the preset layer, the buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through the routing of the preset layer.
[0200] Optionally, the timing optimization module 122 is specifically configured to determine the positional relationship between each first signal convergence point and each second signal convergence point according to the position of each first signal convergence point in the first module and the position of each second signal convergence point in the second module;
[0201] Determine a routing form of an interface path between the first module and the second module according to wiring results of each first interface in the first module and wiring results of each second interface in the second module;
[0202] According to the positional relationship between each first signal convergence point and each second signal convergence point, the routing pattern of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register, the placement position and wiring results of the interface between the first module and the second module are adjusted.
[0203] Optionally, the timing optimization module 122 is specifically used to adjust the placement position and wiring result of the corresponding first interface in the first module according to the position of each first interface register and / or adjust the placement position and wiring result of the corresponding second interface in the second module according to the position of each second interface register if the positional relationship between each first signal convergence point and each second signal convergence point does not meet a preset condition and the routing pattern of the interface path between the first module and the second module is a dense pattern.
[0204] Optionally, the timing optimization module 122 is specifically configured to determine the position of each second signal convergence point according to the horizontal coordinate information of each second interface register;
[0205] According to the positions of the second signal convergence points, the positions of the second interfaces corresponding to the second interface registers and the wiring results are adjusted.
[0206] Optionally, the timing optimization module 122 is specifically configured to adjust the position of the second interface to be opposite to the second signal convergence point, and adjust the wiring result corresponding to the second interface according to the adjusted position of the second interface.
[0207] Optionally, the timing optimization module 122 is also used to adjust the placement position and wiring results of the interface between the first module and the second module according to the position of each first signal convergence point in the first module and / or the position of each second signal convergence point in the second module if there is a detour in the interface path between the first module and the second module.
[0208] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0209] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0210] The above modules can be connected or communicated with each other via a wired connection or a wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include a connection in the form of a LAN, a WAN, Bluetooth, a ZigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. Those skilled in the art will clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application.
[0211] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, which may be a computing device with data processing capabilities.
[0212] The device may include: a processor 801 and a storage medium 802 .
[0213] The storage medium 802 is used to store programs, and the processor 801 calls the programs stored in the storage medium 802 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0214] Among them, the storage medium 802 stores program code, and when the program code is executed by the processor 801, the processor 801 executes various steps in the chip interface timing optimization method according to various exemplary embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0215] Processor 801 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0216] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Storage medium may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type storage medium, random access storage medium (Random Access Memory, RAM), static random access storage medium (Static Random Access Memory, SRAM), programmable read-only storage medium (Programmable Read Only Memory, PROM), read-only storage medium (Read Only Memory, ROM), electrically erasable programmable read-only storage medium (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage medium, disk, optical disk, etc. Storage medium is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The storage medium 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0217] Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute the above method embodiment when executed by a processor.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0219] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0220] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0221] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only storage medium (English: Read-Only Memory, referred to as: ROM), random access storage medium (English: Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program code.
Claims
1. A chip interface timing optimization method, characterized in that: The method comprises: According to the positions of the first interfaces in the first module and the positions of the first interface registers corresponding to the first interfaces, and the positions of the second interfaces in the second module and the positions of the second interface registers corresponding to the second interfaces, the first interfaces in the first module and the second interfaces in the second module are arranged and wired; Adjust the placement position and wiring results of the interface between the first module and the second module according to the placement position and wiring results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring results of each second interface in the second module, the position of each second signal convergence point in the second module and the position of each second interface register in the second module.
2. The chip interface timing optimization method according to claim 1, characterized in that: The method further comprises: The interface timing violation information between the first module and the second module is captured, and according to the violation magnitude of the interface timing violation information, a register is inserted into the first module and a register is inserted into the second module.
3. The chip interface timing optimization method according to claim 2, characterized in that: The inserting a register into the first module and inserting a register into the second module according to the violation level of the interface timing violation information comprises: Determining the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information; According to the number of levels of registers to be inserted into the first module and the second module, registers are inserted into the first module and registers are inserted into the second module.
4. The chip interface timing optimization method according to claim 3, characterized in that: The step of determining the number of levels of registers to be inserted into the first module and the second module according to the violation level of the interface timing violation information comprises: When the signal clock of the first module is the same as the signal clock of the second module, the number of levels of registers to be inserted into the first module and the second module is determined according to the relationship between the interface path signal delay between the first module and the second module and the period of the signal clock.
5. The chip interface timing optimization method according to claim 4, characterized in that: The step of determining the number of levels of registers to be inserted into the first module and the second module according to the relationship between the interface path signal delay between the first module and the second module and the period of the signal clock comprises: If the interface path signal delay is greater than one cycle of the signal clock and less than two cycles of the signal clock, it is determined that the number of levels of the registers to be inserted into the first module and the second module is one.
6. The chip interface timing optimization method according to claim 2, characterized in that: The inserting a register into the first module and the inserting a register into the second module include: The register is inserted into each first signal convergence point in the first module, and the register is inserted into each second signal convergence point in the second module.
7. The chip interface timing optimization method according to claim 1, characterized in that: The placing and wiring of each first interface in the first module and each second interface in the second module according to the position of each first interface in the first module and the position of each first interface register corresponding to each first interface, and the position of each second interface in the second module and the position of each second interface register corresponding to each second interface, comprises: Directly connect each first interface to the corresponding second interface, move each first interface register to a position where the distance from the corresponding first interface is less than a preset distance, and move each second interface register to a position where the distance from the corresponding second interface is less than a preset distance; Determine an interface path to be adjusted that has a timing violation, wherein the interface path to be adjusted includes a first interface and a corresponding second interface; A buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through routing of a preset layer.
8. The chip interface timing optimization method according to claim 7, characterized in that: Inserting a buffer unit in the interface path to be adjusted, and connecting a first interface and a second interface in the interface path to be adjusted through a routing of a preset layer, comprising: Determine the position and quantity of the buffer unit to be inserted and the position of the preset layer according to the driving capability of the buffer unit to be inserted and the distance information between the first interface and the second interface; According to the position and quantity of the buffer unit to be inserted and the position of the preset layer, the buffer unit is inserted into the interface path to be adjusted, and the first interface and the second interface in the interface path to be adjusted are connected through the routing of the preset layer.
9. The chip interface timing optimization method according to any one of claims 1 to 8, characterized in that: The adjusting the placement position and wiring result of the interface between the first module and the second module according to the placement position and wiring result of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring result of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module includes: Determine a positional relationship between each first signal convergence point and each second signal convergence point according to a position of each first signal convergence point in the first module and a position of each second signal convergence point in the second module; Determining a routing form of an interface path between the first module and the second module according to wiring results of each first interface in the first module and wiring results of each second interface in the second module; According to the positional relationship between the first signal convergence points and the second signal convergence points, the routing pattern of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register, the placement position and wiring results of the interface between the first module and the second module are adjusted.
10. The chip interface timing optimization method according to claim 9, characterized in that: The adjusting the placement position and wiring result of the interface between the first module and the second module according to the positional relationship between the first signal convergence points and the second signal convergence points, the routing form of the interface path between the first module and the second module, the position of each first interface register and the position of each second interface register includes: If the positional relationship between each first signal convergence point and each second signal convergence point does not meet the preset conditions, and the routing pattern of the interface path between the first module and the second module is dense, the placement position and wiring result of the corresponding first interface in the first module are adjusted according to the position of each first interface register and / or the placement position and wiring result of the corresponding second interface in the second module are adjusted according to the position of each second interface register.
11. The chip interface timing optimization method according to claim 10, characterized in that: The adjusting the placement position and wiring result of the corresponding first interface in the first module according to the position of each first interface register and / or adjusting the placement position and wiring result of the corresponding second interface in the second module according to the position of each second interface register includes: Determining the position of each second signal convergence point according to the horizontal coordinate information of each second interface register; According to the positions of the second signal convergence points, the positions of the second interfaces corresponding to the second interface registers and the wiring results are adjusted.
12. The chip interface timing optimization method according to claim 11, characterized in that: The adjusting the position of the second interface corresponding to each second interface register and the wiring result according to the position of each second signal convergence point includes: The position of the second interface is adjusted to be opposite to the second signal convergence point, and according to the adjusted position of the second interface, the wiring result corresponding to the second interface is adjusted.
13. The chip interface timing optimization method according to claim 1, characterized in that: Also includes: If there is a detour in the interface path between the first module and the second module, the placement position and wiring result of the interface between the first module and the second module are adjusted according to the position of each first signal convergence point in the first module and / or the position of each second signal convergence point in the second module.
14. A chip interface timing optimization device, characterized in that: include: Layout module, timing optimization module; The layout module is used to arrange and wire the first interfaces in the first module and the second interfaces in the second module according to the positions of the first interfaces in the first module and the positions of the first interface registers corresponding to the first interfaces, and the positions of the second interfaces in the second module and the positions of the second interface registers corresponding to the second interfaces; The timing optimization module is used to adjust the placement position and wiring results of the interface between the first module and the second module according to the placement position and wiring results of each first interface in the first module, the position of each first signal convergence point in the first module, the position of each first interface register in the first module, the placement position and wiring results of each second interface in the second module, the position of each second signal convergence point in the second module, and the position of each second interface register in the second module.
15. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to implement the chip interface timing optimization method as described in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the chip interface timing optimization method according to any one of claims 1 to 13 is implemented.
