Timing repair methods, devices, storage media and electronic devices
By constructing and optimizing timing paths in mirror-symmetrically placed modules of IC chips, the problem of interface timing violations between modules is solved, design efficiency and resource utilization are improved, and timing violations are effectively repaired.
Patent Information
- Application Number
- CN202011076741.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-10-10
AI Technical Summary
During the design process of IC chips, timing violations in interfaces between modules cannot be effectively repaired, resulting in low design efficiency and waste of resources.
By determining the third sequential logic device in the mirror-symmetrically placed multiplexing module, and constructing a second timing path from the first sequential logic device to the third sequential logic device, using EDA tool software to optimize the second timing path, Thereby the timing violation of the first timing path is repaired.
It has effectively repaired the interface timing violation problem between modules, improved the efficiency and resource utilization of chip design, reduced human intervention and extra power consumption, and improved the PPA index.
Smart Images

Figure CN114330185B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip design, and in particular to a timing repair method, device, storage medium and electronic device. Background Art
[0002] In the physical design process of IC chips (Integrated Circuit Chip), because the entire design scale is too large, the entire design is usually divided into modules, including the placement and wiring of basic logic unit devices. In the design process of IC chips, the timing of the interface between modules needs to be optimized. However, the related art cannot effectively repair the timing violation problem of the interface between modules. Summary of the invention
[0003] The embodiments of the present application provide a timing repair method, device, storage medium and electronic device, which can repair the timing violation problem of the interface between modules.
[0004] In a first aspect, an embodiment of the present application provides a timing repair method, comprising:
[0005] When there is a timing violation in a first timing path from a first sequential logic device in a first module to a second sequential logic device in a second module, a third sequential logic device is determined in the first module, the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner;
[0006] Constructing a second sequential path from the first sequential logic device to the third sequential logic device;
[0007] According to the timing optimization of the second timing path, the first timing path is repaired.
[0008] In a second aspect, an embodiment of the present application provides a timing repair device, including:
[0009] a determination module, configured to determine a third sequential logic device in the first module when a timing violation exists in a first timing path from a first sequential logic device in the first module to a second sequential logic device in the second module, wherein the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner;
[0010] A construction module, used to construct a second sequential path from the first sequential logic device to the third sequential logic device;
[0011] A repair module is used to perform timing repair on the first timing path according to the timing optimization of the second timing path.
[0012] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the timing repair method provided in the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the process in the timing repair method provided in an embodiment of the present application by calling a computer program stored in the memory.
[0014] In an embodiment of the present application, when there is a timing violation in the first timing path from the first sequential logic device in the first module to the second sequential logic device in the second module, the EDA tool software in the electronic device can determine a third sequential logic device in the first module, wherein the first module and the second module are multiplexing modules placed in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are placed in a mirror-symmetrical manner. Afterwards, the EDA tool software in the electronic device can construct a second timing path from the first sequential logic device to the third sequential logic device, and perform timing repair on the first timing path based on the optimization of the second timing path. Since the second sequential logic device and the third sequential logic device are placed in a mirror-symmetrical manner, the length difference between the second timing path and the first timing path is very small. Based on this, the embodiment of the present application can convert the timing problem of the inter-module interface timing path (i.e., the first timing path) into the timing problem of the module internal timing path (i.e., the second timing path). Because the EDA tool software can optimize the timing path within the module, the embodiment of the present application can achieve timing repair of the first timing path by optimizing the timing of the second timing path. That is, the embodiment of the present application can repair the timing violation problem of the interface between modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0016] Figure 1 It is a flowchart of the timing repair method provided in an embodiment of the present application.
[0017] Figure 2 It is a structural diagram of the multiplexing module.
[0018] Figure 3 It is a structural schematic diagram of the first module and the second module provided in an embodiment of the present application.
[0019] Figure 4 It is another flow chart of the timing repair method provided in an embodiment of the present application.
[0020] Figure 5 It is a schematic diagram of a second timing path provided in an embodiment of the present application.
[0021] Figure 6 It is a structural schematic diagram of the timing repair device provided in an embodiment of the present application.
[0022] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0023] Figure 8 It is another structural schematic diagram of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] Please refer to the drawings, where the same component symbols represent the same components. The principle of the present application is illustrated by implementing it in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
[0025] It is understandable that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
[0026] See also Figure 1 , Figure 1 : is a flow chart of a timing repair method provided in an embodiment of the present application, and the flow chart may include:
[0027] 101. When a timing violation exists in a first timing path from a first sequential logic device in a first module to a second sequential logic device in a second module, a third sequential logic device is determined in the first module, the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner.
[0028] In the physical design process of IC chips (Integrated Circuit Chip), because the entire design scale is too large, the entire design is usually divided into modules, including the placement and wiring of basic logic unit devices. In the design process of IC chips, the timing of the interface between modules needs to be optimized. However, the related art cannot repair the timing violation problem of the interface between modules.
[0029] For example, IC chip design usually includes a large number of reused modules, such as multi-core CPU design. For example, module A and module B are reused modules, that is, the internal logic of module A and module B is exactly the same, and module A and module B are physically completely duplicated. In the physical design of this chip, in order to facilitate data transmission between CPUs, a symmetrical arrangement is usually adopted for each module, such as Figure 2 As shown in the figure. In this physical design, there is no logic between modules, and only narrow channels are reserved for data connection between modules. There may be tens of thousands of such data connections. When timing violations occur in the interfaces between modules, EDA (Electronic Design Automation) tool software cannot fix the timing violations.
[0030] It should be noted that a timing violation means, for example, that during the chip design phase, the duration corresponding to the timing constraint designed for the timing path from a certain sequential logic device to another sequential logic device is 1 nanosecond. However, after the design is completed, if it is detected that the actual duration required for the timing path from the certain sequential logic device to the other sequential logic device exceeds 1 nanosecond, then it is considered that there is a timing violation problem in this timing path.
[0031] In an embodiment of the present application, for example, when there is a timing violation problem in the first timing path from the first sequential logic device in the first module to the second sequential logic device in the second module, the EDA tool software in the electronic device can determine a third sequential logic device in the first module. The first module and the second module are multiplexing modules arranged in mirror symmetry, and the second sequential logic device and the third sequential logic device are in a mirror symmetry arrangement relationship.
[0032] It should be noted that in the embodiment of the present application, the sequential logic device may be a register (flip-flop) or other device.
[0033] For example, Figure 3As shown, the first module A and the second module B are multiplexing modules placed in a mirror-symmetrical manner. The first module A may include at least a sequential logic device a1, a sequential logic device a2, a sequential logic device a3, and a sequential logic device a4. The second module B may include at least a sequential logic device b1, a sequential logic device b2, a sequential logic device b3, and a sequential logic device b4. Among them, the sequential logic device a1 and the sequential logic device b1 are placed in a mirror-symmetrical relationship, the sequential logic device a2 and the sequential logic device b2 are also placed in a mirror-symmetrical relationship, the sequential logic device a3 and the sequential logic device b3 are placed in a mirror-symmetrical relationship, and the sequential logic device a4 and the sequential logic device b4 are also placed in a mirror-symmetrical relationship. It can be understood that in this embodiment, taking the example that the first module A and the second module B both have 4 sequential logic devices, of course, in other implementations, the first module A and the second module B may also have other numbers of sequential logic devices.
[0034] in addition, Figure 3 The "FF" in the figure represents a register (flip-flop), which is a sequential logic device. "L" represents a combinational logic device, which can be used to perform operation logic such as AND gate, OR gate, and NOT gate. The triangle icon in the figure can represent an interface (port), such as interface x1, x2, Y1, and Y2.
[0035] For example, when there is a timing violation problem in the first timing path from the sequential logic device a1 in the first module A (for example, recorded as the first sequential logic device) to the sequential logic device b2 in the second module B (for example, recorded as the second sequential logic device), the EDA tool software in the electronic device can determine a third sequential logic device in the first module A, wherein the second sequential logic device and the third sequential logic device are in a mirror-symmetrical arrangement relationship. Since the sequential logic device a2 and the sequential logic device b2 are in a mirror-symmetrical arrangement relationship. Therefore, the EDA tool software in the electronic device can determine the sequential logic device a2 in the first module A as the third sequential logic device.
[0036] 102. Construct a second sequential path from the first sequential logic device to the third sequential logic device.
[0037] For example, after determining the third sequential logic device from the first module, the EDA tool software in the electronic device can construct a second sequential path from the first sequential logic device to the third sequential logic device. For example, the EDA tool software in the electronic device can construct a second sequential path from the sequential logic device a1 to the sequential logic device a2.
[0038] 103. Perform timing repair on the first timing path according to the timing optimization of the second timing path.
[0039] For example, after constructing a second timing path from the first sequential logic device to the third sequential logic device, the EDA tool software in the electronic device can perform timing repair on the first timing path based on the timing optimization of the second timing path.
[0040] It should be noted that although EDA tool software cannot repair timing violations of interfaces between modules, EDA tool software can optimize the timing paths within the modules.
[0041] It is understandable that in the embodiment of the present application, when there is a timing violation in the first timing path from the first sequential logic device in the first module to the second sequential logic device in the second module, the EDA tool software in the electronic device can determine the third sequential logic device in the first module, wherein the first module and the second module are multiplexing modules placed in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are placed in a mirror-symmetrical manner. Afterwards, the EDA tool software in the electronic device can construct a second timing path from the first sequential logic device to the third sequential logic device, and perform timing repair on the first timing path based on the optimization of the second timing path. Since the second sequential logic device and the third sequential logic device are placed in a mirror-symmetrical manner, the length difference between the second timing path and the first timing path is very small. Based on this, the embodiment of the present application can convert the timing problem of the inter-module interface timing path (i.e., the first timing path) into the timing problem of the module internal timing path (i.e., the second timing path). Because the EDA tool software can optimize the timing path within the module, the embodiment of the present application can achieve timing repair of the first timing path by optimizing the timing of the second timing path. That is, the embodiment of the present application can repair the timing violation problem of the interface between modules.
[0042] See also Figure 4 , Figure 4 Another flowchart of the timing repair method provided in the embodiment of the present application may include:
[0043] 201. When a timing violation exists in a first timing path from a first sequential logic device in a first module to a second sequential logic device in a second module, a third sequential logic device is determined in the first module, the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner.
[0044] For example, Figure 3As shown, the first module A and the second module B are multiplexing modules placed in a mirror-symmetrical manner, that is, the first module A and the second module B are physically identical modules. The first module A may include at least a sequential logic device a1, a sequential logic device a2, a sequential logic device a3, and a sequential logic device a4. The second module B may include at least a sequential logic device b1, a sequential logic device b2, a sequential logic device b3, and a sequential logic device b4. Among them, the sequential logic device a1 and the sequential logic device b1 are placed in a mirror-symmetrical relationship, the sequential logic device a2 and the sequential logic device b2 are also placed in a mirror-symmetrical relationship, the sequential logic device a3 and the sequential logic device b3 are placed in a mirror-symmetrical relationship, and the sequential logic device a4 and the sequential logic device b4 are also placed in a mirror-symmetrical relationship. It can be understood that in this embodiment, taking the example that the first module A and the second module B both have 4 sequential logic devices, in other embodiments, the first module A and the second module B may also have other numbers of sequential logic devices.
[0045] in addition, Figure 3 The "FF" in the figure represents a register (flip-flop). "L" represents a combinational logic device, which can be used to perform operation logic such as AND gate, OR gate, and NOT gate. The triangle icon in the figure can represent an interface (port).
[0046] For example, when there is a timing violation problem in the first timing path from the sequential logic device a1 in the first module A (for example, recorded as the first sequential logic device) to the sequential logic device b2 in the second module B (for example, recorded as the second sequential logic device), the EDA tool software in the electronic device can determine a third sequential logic device in the first module A, wherein the second sequential logic device and the third sequential logic device are in a mirror-symmetrical arrangement relationship. Since the sequential logic device a2 and the sequential logic device b2 are in a mirror-symmetrical arrangement relationship. Therefore, the EDA tool software in the electronic device can determine the sequential logic device a2 in the first module A as the third sequential logic device.
[0047] like Figure 3 As shown, the first sequential path is a path starting from the sequential logic device a1 and sequentially passing through a combinational logic device, the interface x1, the interface Y2, another combinational logic device, and the sequential logic device b2.
[0048] 202. Determine in a first module a first interface corresponding to a first sequential logic device and a second interface corresponding to a third sequential logic device.
[0049] For example, after determining the sequential logic device a2 in the first module A as the third sequential logic device, the EDA tool software in the electronic device can determine in the first module a first interface corresponding to the first sequential logic device a1 and a second interface corresponding to the third sequential logic device a2. Figure 3 As shown, the EDA tool software in the electronic device determines in the first module that the first interface corresponding to the first sequential logic device a1 is x1, and determines that the second interface corresponding to the third sequential logic device a2 is x2.
[0050] 203. Determine a first position and a second position in the first module, the first position is located on the first timing path, the second position is located on the timing path where the third sequential logic device is located, and a first distance between the first position and the first interface and a second distance between the second position and the second interface are both less than a preset distance threshold.
[0051] For example, after determining the first interface x1 and the second interface x2, the EDA tool software in the electronic device can determine the first position and the second position in the first module, the first position is located on the first timing path, the second position is located on the timing path where the third timing logic device a2 is located, and the first distance between the first position and the first interface x1 and the second distance between the second position and the second interface x2 are both less than a preset distance threshold.
[0052] It should be noted that, in order to make the length corresponding to the second timing path from the first sequential logic device to the third sequential logic device constructed subsequently as close as possible to the length corresponding to the first timing path from the first sequential logic device to the second sequential logic device, the first position should be as close as possible to the first interface, and the second position should be as close as possible to the second interface, so that when the first position and the second position are connected, the length corresponding to the second timing path from the first sequential logic device to the third sequential logic device can be as close as possible to the length corresponding to the first timing path from the first sequential logic device to the second sequential logic device.
[0053] 204. Set a first buffer component at a first position, and set a second buffer component at a second position.
[0054] 205 . Connect the first buffer device and the second buffer device to construct a second sequential path from the first sequential logic device to the third sequential logic device.
[0055] For example, after determining the first position and the second position, the EDA tool software in the electronic device may connect the first position and the second position, thereby constructing a second sequential path from the first sequential logic device to the third sequential logic device.
[0056] In an embodiment of the present application, the EDA tool software in the electronic device can set a buffer device (Buffer) at the first position, for example, recorded as the first buffer device, and set a buffer device at the second position, for example, recorded as the second buffer device, after determining the first position and the second position.
[0057] Afterwards, the EDA tool software in the electronic device can connect the first buffer device and the second buffer device to construct a second sequential path from the first sequential logic device to the third sequential logic device. Figure 5 As shown, the EDA tool software in the electronic device can connect the first buffer device k1 and the second buffer device k2 to construct a second sequential path from the first sequential logic device a1 to the third sequential logic device a2.
[0058] like Figure 5 As shown, the second sequential path is a path starting from the sequential logic device a1 and sequentially passing through a combinational logic device, a first buffer device k1, a second buffer device k2, another combinational logic device, and the sequential logic device a2.
[0059] 206. Invalidate the first timing path and the third timing path, where the third timing path is a timing path from the fourth sequential logic device to the third sequential logic device, and the fourth sequential logic device and the first sequential logic device are in a mirror-symmetrical arrangement relationship.
[0060] For example, after constructing the second timing path from the first sequential logic device a1 to the third sequential logic device a2, the electronic device can invalidate the first timing path and the third timing path. The third timing path is the timing path from the fourth sequential logic device to the third sequential logic device, and the fourth sequential logic device and the first sequential logic device are placed in a mirror-symmetrical relationship. The schematic diagram of the invalid first timing path and the invalid third timing path can be as follows: Figure 5 As shown by the cross line (×) in the figure.
[0061] like Figure 3 As shown, the fourth sequential logic device that is mirror-symmetrically placed with the first sequential logic device a1 is b1. The third sequential path is a path starting from the sequential logic device b1 and sequentially passing through a combinational logic device, interface Y1, interface x2, another combinational logic device, and sequential logic device a2.
[0062] In the embodiment of the present application, the process of invalidating the first timing path and the third timing path may include:
[0063] A path between the first buffer device and the first interface is disabled, and a path between the second buffer device and the second interface is disabled.
[0064] For example, the EDA tool software in the electronic device can invalidate the first timing path by invalidating the path between the first buffer and the first interface, and invalidate the third timing path by invalidating the path between the second buffer device and the second interface.
[0065] In one implementation, the process of disabling the path between the first buffer device and the first interface and disabling the path between the second buffer device and the second interface may include:
[0066] The connection between the first buffer device and the first interface is disconnected, and the connection between the second buffer device and the second interface is disconnected.
[0067] For example, the EDA tool software in the electronic device can invalidate the path between the first buffer device and the first interface by disconnecting the connection between the first buffer device and the first interface, and invalidate the path between the second buffer device and the second interface by disconnecting the connection between the second buffer device and the second interface.
[0068] In another embodiment, the process of disabling the path between the first buffer device and the first interface and disabling the path between the second buffer device and the second interface may further include:
[0069] The attributes of the first interface and the second interface are set to false path attributes.
[0070] For example, the EDA tool software in the electronic device can invalidate the path between the first buffer device and the first interface by setting the attribute of the first interface to a false path attribute, and invalidate the path between the second buffer device and the second interface by setting the attribute of the second interface to a false path attribute.
[0071] It should be noted that after the interface attribute is set to a false path attribute, the EDA tool software in the electronic device will no longer use this interface during timing optimization after recognizing that the interface has a false path attribute, thereby achieving an invalid path between the buffer device and the interface.
[0072] 207. Set the attribute of the path between the first buffer device and the second buffer device as an unmodifiable attribute, and set the position attribute of the first buffer device and the second buffer device as a fixed position attribute.
[0073] For example, before performing timing optimization on the second timing path, the EDA tool software in the electronic device can also set the attributes of the path between the first buffer device and the second buffer device to an unmodifiable (don't touch) attribute, and set the position attributes of the first buffer device and the second buffer device to a fixed position (fix) attribute.
[0074] It should be noted that after the attribute of the path between the first buffer device and the second buffer device is set to an unmodifiable attribute, the EDA tool software in the electronic device will no longer make any modifications to the path between the first buffer device and the second buffer device when optimizing the timing path, such as no other devices will be placed on the path between the first buffer device and the second buffer device, etc.
[0075] After the position attributes of the first buffer device and the second buffer device are set to fixed position attributes, the EDA tool software in the electronic device will not make any changes to the positions of the first buffer device and the second buffer device when optimizing the timing path.
[0076] It can be understood that by setting the attributes of the path between the first buffer device and the second buffer device to unmodifiable attributes and setting the position attributes of the first buffer device and the second buffer device to fixed position attributes, it can be ensured that the second timing path can simulate the situation of the first timing path as much as possible.
[0077] 208. Perform timing optimization on the second timing path, wherein the duration corresponding to the timing constraint of the first timing path is a first duration, and the duration corresponding to the timing constraint set for the second timing path is a second duration, and the second duration is smaller than the first duration.
[0078] For example, after setting the attribute of the path between the first buffer device and the second buffer device to an unmodifiable attribute and setting the position attribute of the first buffer device and the second buffer device to a fixed position attribute, the EDA tool software in the electronic device can perform timing optimization on the second timing path, wherein the duration corresponding to the timing constraint of the first timing path is the first duration, and the duration corresponding to the timing constraint set for the second timing path when the second timing path is optimized is the second duration, and the second duration can be less than the first duration. For example, if the first duration is 1 nanosecond, then the second duration can be set to 0.9 nanoseconds, 0.88 nanoseconds, 0.85 nanoseconds, and so on.
[0079] It should be noted that the embodiment of the present application converts the timing problem of the interface between modules into the timing problem within the module, that is, the second timing path is used to simulate the first timing path. After all, the second timing path is different from the first timing path. Therefore, in order to ensure that the optimization of the first timing path can be achieved by optimizing the timing of the second timing path, the embodiment of the present application can set more stringent timing constraints for the optimization of the second timing path, that is, by setting the second duration to be less than the first duration, the optimization of the second timing path can be converted into the optimization of the first timing path. In other words, since the length of the second timing path is close to the length of the first timing path, when the second timing path can meet the timing requirements, the first timing path can also meet the timing requirements, thereby achieving the timing repair of the first timing path.
[0080] 209. After the timing optimization of the second timing path is completed, the second timing path is disabled and the first timing path is enabled.
[0081] For example, after the timing optimization of the second timing path is successfully completed using the EDA tool software, the EDA tool software in the electronic device may disable the second timing path and enable the first timing path.
[0082] In the embodiment of the present application, the process of disabling the second timing path may include:
[0083] The connection between the first buffer device and the second buffer device is disconnected.
[0084] For example, the EDA tool software in the electronic device can achieve the purpose of disabling the second timing path by disconnecting the connection between the first buffer device and the second buffer device.
[0085] Enabling the first timing path can be achieved in the following manner: for example, if the path between the first buffer device and the first interface was previously disabled by disconnecting the connection between the first buffer device and the first interface, the first timing path can be enabled by reconnecting the connection between the first buffer device and the first interface. If the path between the first buffer device and the first interface was previously disabled by setting the attribute of the first interface to a false path attribute, the first timing path can be re-enabled by deleting the false path attribute of the first interface.
[0086] It is understandable that the solution provided by the present application can cleverly transform the timing problem of the interface between modules into the timing problem within the module, so that the EDA tool software can be fully utilized to solve the problem of timing violation. The solution provided by the present application can quickly repair the interface timing without spending manpower to judge and adjust the timing budget (timing budget); can fully utilize and give play to the ability of EDA tools in repairing timing violations, and reduce human intervention; can accurately repair the interface timing, and consume the least resources, without increasing additional power consumption, and improve the PPA (i.e. power consumption, performance and area) index of the chip; can improve the project execution efficiency of the back-end physical design; can solve the most complex and difficult problems in the back-end physical design process in a short time with the least effort.
[0087] In one implementation, the present application embodiment may also include the following process:
[0088] After enabling the first timing path, detecting whether there is a timing violation in the first timing path after deleting the first buffer device;
[0089] If not, the first buffer device is deleted.
[0090] For example, after using the first timing path, the EDA tool software in the electronic device may also try to delete the first buffer device, and detect whether there will be a timing violation problem in the first timing path after the first buffer device is deleted. If it is detected that there will be no timing violation problem in the first timing path after the first buffer device is deleted, the EDA tool software in the electronic device may delete the first buffer device. If it is detected that there will be a timing violation problem in the first timing path after the first buffer device is deleted, the EDA tool software in the electronic device may not delete the first buffer device, for example, reset the first buffer device to the first position.
[0091] It can be understood that if the first buffer device can be deleted, then deleting the first buffer device can save power consumption and area for the chip.
[0092] See also Figure 6 , Figure 6 The schematic diagram of the structure of the timing repair device provided in the embodiment of the present application is as follows: The timing repair device 300 may include: a determination module 301 , a construction module 302 , and a repair module 303 .
[0093] The determination module 301 is used to determine a third sequential logic device in the first module when a timing violation exists in a first timing path from a first sequential logic device in the first module to a second sequential logic device in the second module, wherein the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner.
[0094] The construction module 302 is used to construct a second sequential path from the first sequential logic device to the third sequential logic device.
[0095] The repairing module 303 is configured to perform timing repair on the first timing path according to the timing optimization on the second timing path.
[0096] In one implementation, the building block 302 may be used to:
[0097] Determining in the first module a first interface corresponding to the first sequential logic device and a second interface corresponding to the third sequential logic device;
[0098] Determine a first position and a second position in the first module, the first position is located on the first timing path, the second position is located on the timing path where the third sequential logic device is located, and a first distance between the first position and the first interface and a second distance between the second position and the second interface are both less than a preset distance threshold;
[0099] The first position and the second position are connected to construct a second sequential path from the first sequential logic device to the third sequential logic device.
[0100] In one implementation, the construction module 302 may also be used to:
[0101] Disposing a first buffer component at the first position, and disposing a second buffer component at the second position;
[0102] The first buffer device and the second buffer device are connected.
[0103] In one implementation, the duration corresponding to the timing constraint condition of the first timing path is a first duration.
[0104] Then, the repair module 303 can be used to:
[0105] Invalidate the first timing path and the third timing path, the third timing path is a timing path from a fourth sequential logic device to the third sequential logic device, and the fourth sequential logic device and the first sequential logic device are placed in a mirror-symmetrical relationship;
[0106] Performing timing optimization on the second timing path, wherein a duration corresponding to the timing constraint condition set for the second timing path is a second duration, and the second duration is less than the first duration;
[0107] After the timing optimization of the second timing path is completed, the second timing path is disabled and the first timing path is enabled.
[0108] In one implementation, the repair module 303 may be used to:
[0109] A path between the first buffer device and the first interface is disabled, and a path between the second buffer device and the second interface is disabled.
[0110] In one implementation, the repair module 303 may be used to:
[0111] The connection between the first buffer device and the first interface is disconnected, and the connection between the second buffer device and the second interface is disconnected.
[0112] In one implementation, the repair module 303 may be used to:
[0113] The attributes of the first interface and the second interface are set to false path attributes.
[0114] In one implementation, the repair module 303 may also be used to:
[0115] Before performing timing optimization on the second timing path, the attribute of the path between the first buffer device and the second buffer device is set to an unmodifiable attribute.
[0116] In one implementation, the repair module 303 may also be used to:
[0117] Before performing timing optimization on the second timing path, the position attributes of the first buffer device and the second buffer device are set to fixed position attributes.
[0118] In one implementation, the repair module 303 may be used to:
[0119] The connection between the first buffer device and the second buffer device is disconnected.
[0120] In one implementation, the repair module 303 may also be used to:
[0121] After enabling the first timing path, detecting whether there is a timing violation in the first timing path after deleting the first buffer device;
[0122] If not, the first buffer device is deleted.
[0123] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the timing repair method provided in this embodiment.
[0124] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the process in the timing repair method provided in the present embodiment by calling a computer program stored in the memory.
[0125] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Figure 7 , Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0126] The electronic device 400 may include components such as a display screen 401, a memory 402, and a processor 403. Those skilled in the art will appreciate that Figure 7 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0127] The display screen 401 can be used to display information such as text, images, etc.
[0128] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 403 executes various functional applications and data processing by running the applications stored in the memory 402.
[0129] The processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.
[0130] In this embodiment, the processor 403 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 will run the application program stored in the memory 402 to execute:
[0131] When there is a timing violation in a first timing path from a first sequential logic device in a first module to a second sequential logic device in a second module, a third sequential logic device is determined in the first module, the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner;
[0132] Constructing a second sequential path from the first sequential logic device to the third sequential logic device;
[0133] According to the timing optimization of the second timing path, the first timing path is repaired.
[0134] See also Figure 8 The electronic device 400 may include a display screen 401, a memory 402, a processor 403, an input unit 404, a battery 405, a speaker 406 and other components.
[0135] The display screen 401 can be used to display information such as text, images, etc.
[0136] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 403 executes various functional applications and data processing by running the applications stored in the memory 402.
[0137] The processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.
[0138] The input unit 404 may be used to receive input numbers, character information or user feature information (such as fingerprints), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0139] The battery 405 can be used to provide power support for various components and modules of the electronic device, thereby ensuring the normal operation of various components and modules.
[0140] The speaker 405 can be used to play sound signals, etc.
[0141] In this embodiment, the processor 403 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 will run the application program stored in the memory 402 to execute:
[0142] When there is a timing violation in a first timing path from a first sequential logic device in a first module to a second sequential logic device in a second module, a third sequential logic device is determined in the first module, the first module and the second module are multiplexing modules arranged in a mirror-symmetrical manner, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical manner;
[0143] Constructing a second sequential path from the first sequential logic device to the third sequential logic device;
[0144] According to the timing optimization of the second timing path, the first timing path is repaired.
[0145] In one implementation, when the processor 403 executes the step of constructing the second timing path from the first sequential logic device to the third sequential logic device, the steps may include: determining in the first module a first interface corresponding to the first sequential logic device and a second interface corresponding to the third sequential logic device; determining in the first module a first position and a second position, wherein the first position is located on the first timing path, the second position is located on the timing path where the third sequential logic device is located, and a first distance between the first position and the first interface and a second distance between the second position and the second interface are both less than a preset distance threshold; and connecting the first position and the second position to construct the second timing path from the first sequential logic device to the third sequential logic device.
[0146] In one implementation, after determining the first position and the second position, the processor 403 may further execute: setting a first buffer component at the first position, and setting a second buffer component at the second position.
[0147] Then, when the processor 403 executes the connecting of the first position and the second position, it may execute: connecting the first buffer device and the second buffer device.
[0148] In one implementation, the duration corresponding to the timing constraint condition of the first timing path is a first duration.
[0149] Then, when the processor 403 performs the timing repair on the first timing path according to the timing optimization of the second timing path, the following steps may be performed: invalidating the first timing path and the third timing path, wherein the third timing path is a timing path from a fourth sequential logic device to the third sequential logic device, and the fourth sequential logic device and the first sequential logic device are in a mirror-symmetrical placement relationship; performing timing optimization on the second timing path, wherein the duration corresponding to the timing constraint condition set for the second timing path is a second duration, and the second duration is less than the first duration; after the timing optimization of the second timing path is completed, invalidating the second timing path, and enabling the first timing path.
[0150] In one implementation, when the processor 403 executes the disabling of the first timing path and the third timing path, it may execute: disabling the path between the first buffer device and the first interface, and disabling the path between the second buffer device and the second interface.
[0151] In one embodiment, when the processor 403 executes the invalidation of the path between the first buffer device and the first interface, and the invalidation of the path between the second buffer device and the second interface, it can execute: disconnecting the connection between the first buffer device and the first interface, and disconnecting the connection between the second buffer device and the second interface.
[0152] In one implementation, when the processor 403 executes the invalidation of the path between the first buffer device and the first interface and the invalidation of the path between the second buffer device and the second interface, it may execute: setting the attributes of the first interface and the second interface to false path attributes.
[0153] In one implementation, the processor 403 may further execute: before performing timing optimization on the second timing path, setting an attribute of the path between the first buffer device and the second buffer device to an unmodifiable attribute.
[0154] In one implementation, the processor 403 may further execute: before performing timing optimization on the second timing path, setting the position attributes of the first buffer device and the second buffer device to fixed position attributes.
[0155] In one implementation, when the processor 403 executes the disabling of the second timing path, the processor 403 may execute: disconnecting the connection between the first buffer device and the second buffer device.
[0156] In one implementation, the processor 403 may further execute: after enabling the first timing path, detecting whether there is a timing violation in the first timing path after the first buffer device is deleted; if not, deleting the first buffer device.
[0157] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the timing repair method above, which will not be repeated here.
[0158] The timing repair device provided in the embodiment of the present application belongs to the same concept as the timing repair method in the above embodiment. Any method provided in the timing repair method embodiment can be run on the timing repair device. The specific implementation process is detailed in the timing repair method embodiment and will not be repeated here.
[0159] It should be noted that, for the timing repair method described in the embodiment of the present application, ordinary technicians in this field can understand that all or part of the process of implementing the timing repair method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the timing repair method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0160] For the timing repair device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0161] The above is a detailed introduction to a timing repair method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A timing repair method, characterized in that: include: When a timing violation occurs in a first timing path from a first sequential logic device in a first module to a second sequential logic device in a second module, a third sequential logic device is determined in the first module, the first module and the second module are multiplexing modules arranged in a mirror-symmetrical relationship, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical relationship; Constructing a second timing path from the first sequential logic device to the third sequential logic device, comprising: determining a first position and a second position in the first module, the first position being located on the first timing path, and the second position being located on the timing path where the third sequential logic device is located; connecting the first position and the second position to construct the second timing path from the first sequential logic device to the third sequential logic device; Performing timing repair on the first timing path based on the timing optimization of the second timing path includes: performing timing optimization on the second timing path, wherein a duration corresponding to a timing constraint set for the second timing path is a second duration, a duration corresponding to the timing constraint of the first timing path is a first duration, and the second duration is less than the first duration; and after the timing optimization of the second timing path is completed, disabling the second timing path and enabling the first timing path.
2. The timing repair method according to claim 1, wherein: The constructing of a second sequential path from the first sequential logic device to the third sequential logic device further includes: Determining, in the first module, a first interface corresponding to the first sequential logic device and a second interface corresponding to the third sequential logic device; A first distance between the first position and the first interface and a second distance between the second position and the second interface are both smaller than a preset distance threshold.
3. The timing repair method according to claim 2, wherein: After determining the first position and the second position, the method further includes: disposing a first buffer component at the first position and disposing a second buffer component at the second position; The connecting the first position and the second position includes: connecting the first buffer component and the second buffer component.
4. The timing repair method according to claim 3, wherein: The performing timing repair on the first timing path according to the timing optimization on the second timing path further includes: The first timing path and the third timing path are invalidated. The third timing path is a timing path from a fourth sequential logic device to the third sequential logic device. The fourth sequential logic device and the first sequential logic device are arranged in a mirror-symmetrical relationship.
5. The timing repair method according to claim 4, characterized in that: The disabling of the first timing path and the third timing path includes: A path between the first buffer device and the first interface is disabled, and a path between the second buffer device and the second interface is disabled.
6. The timing repair method according to claim 5, characterized in that: The disabling of the path between the first buffer device and the first interface, and disabling of the path between the second buffer device and the second interface, includes: The connection between the first buffer device and the first interface is disconnected, and the connection between the second buffer device and the second interface is disconnected.
7. The timing repair method according to claim 5, characterized in that: The disabling of the path between the first buffer device and the first interface, and disabling of the path between the second buffer device and the second interface, includes: The attributes of the first interface and the second interface are set to false path attributes.
8. The timing repair method according to claim 4, wherein: The method further comprises: Before performing timing optimization on the second timing path, an attribute of the path between the first buffer device and the second buffer device is set to an unmodifiable attribute.
9. The timing repair method according to claim 4, characterized in that: The method further comprises: Before performing timing optimization on the second timing path, the position attributes of the first buffer device and the second buffer device are set to fixed position attributes.
10. The timing repair method according to claim 4, characterized in that: The disabling the second timing path includes: The connection between the first buffer device and the second buffer device is disconnected.
11. The timing repair method according to claim 4, wherein: The method further comprises: After enabling the first timing path, detecting whether there is a timing violation in the first timing path after deleting the first buffer device; If not, the first buffer device is deleted.
12. A timing repair device, characterized in that: include: a determination module, configured to determine a third sequential logic device in the first module when a timing violation occurs in a first timing path from a first sequential logic device in the first module to a second sequential logic device in the second module, wherein the first module and the second module are multiplexing modules arranged in a mirror-symmetrical relationship, and the second sequential logic device and the third sequential logic device are arranged in a mirror-symmetrical relationship; a construction module, configured to construct a second timing path from the first sequential logic device to the third sequential logic device, comprising: determining a first position and a second position in the first module, the first position being located on the first timing path, and the second position being located on the timing path where the third sequential logic device is located; and connecting the first position and the second position to construct the second timing path from the first sequential logic device to the third sequential logic device; A repair module is configured to perform timing repair on the first timing path based on the timing optimization of the second timing path, including: performing timing optimization on the second timing path, wherein a duration corresponding to a timing constraint set for the second timing path is a second duration, a duration corresponding to a timing constraint set for the first timing path is a first duration, and the second duration is less than the first duration; after the timing optimization of the second timing path is completed, disabling the second timing path and enabling the first timing path.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
14. An electronic device comprising a memory and a processor, characterized in that: The processor executes the method according to any one of claims 1 to 11 by calling the computer program stored in the memory.
