Signal source determination method, device, storage medium, computer equipment and program product for integrated circuit design
By creating representative line networks and signal source sets in integrated circuit design, centralized storage and unique writing of signal source information is achieved, which solves the problem of low signal source traceability efficiency in multi-threaded environments, simplifies lock control, and improves overall execution. efficiency.
Patent Information
- Application Number
- CN202410890407.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-04
AI Technical Summary
In integrated circuit design, the existing technology is inefficient when tracing signal sources in a multi-threaded environment, and there are resource waste and complex lock mechanism control problems, especially when multiple threads access the same signal source information.
By creating a set of representative wire nets and signal sources, traversing the wire nets of the integrated circuit design, mapping the associated wire nets to the representative wire nets, and adding the representative wire nets to the properties of the associated wire nets, a single acquisition and acquisition of signal source information is achieved. Centralize storage to avoid duplicate storage, use processing flags to indicate the responsibility of wire network traversal calculations, and simplify lock control.
It improves the efficiency of signal source tracing, avoids waste of resources, simplifies lock mechanism control, and ensures unique writing and efficient acquisition of signal source information.
Smart Images

Figure CN118410748B_ABST
Abstract
Description
Technical Field
[0001] The present application generally relates to the field of integrated circuit technology, and more specifically, to a signal source determination method, apparatus, storage medium, computer equipment, and program product for integrated circuit design. Background Art
[0002] In the related technology, the signal source tracing of the wire net in the integrated circuit design is mainly achieved through two ways: first, each time the reverse traversal is required, the wire net and the associated pins of other levels of wire nets connected to it are traversed to check the signal direction of each pin, so as to obtain the pin information of the signal source; second, after the pin information of the signal source is obtained for the first time, the corresponding result is stored for subsequent use.
[0003] However, on the one hand, if the pin information of the signal source is obtained by reverse traversal each time the signal source is traced, a lot of time will be wasted; on the other hand, although storing the signal source information obtained for the first time can effectively speed up the reverse traversal process during subsequent acquisitions, when supporting multi-threading, in order for multiple threads to access the signal source information, the signal source information needs to be stored in a temporary data structure in the critical section (used to protect shared resources in a multi-threaded environment, and a lock mechanism is usually required to control the access of multiple threads to the critical section). At this time, multiple threads have the authority to rewrite the signal source information, and multiple threads may update and write the same signal source information at the same time. Therefore, in order to avoid write errors, it is necessary to add an additional lock mechanism to the signal source information to control the critical section. In addition, since it is common in designs that multiple nets correspond to the same signal source, if the signal source information is stored for each net, there will be repeated signal source calculations and repeated storage, resulting in a waste of resources; if the nets with the same signal source are stored together, then multiple threads need to operate on the same data at the same time. For each thread, obtaining the same lock becomes a necessary condition, which increases the complexity of locking and unlocking operations, making the locking control critical section too complicated and the execution efficiency low. Summary of the invention
[0004] The present application provides a signal source determination method and a signal source determination device for integrated circuit design, which are used to at least solve the problem of how to simplify the tracing of line network signal sources and improve execution efficiency when supporting multi-threading.
[0005] According to one aspect of the present application, a signal source determination method for integrated circuit design is provided, the signal source determination method comprising: determining a target net from the nets of the integrated circuit design; starting a calculation thread for the target net; creating a representative net and a signal source set associated with the representative net under the current thread, wherein the representative net is attribute information describing the physical routing to which the net belongs, and the signal source set is used to store the signal source corresponding to the representative net; traversing the nets of the integrated circuit design, mapping the traversed associated nets corresponding to the target net to the representative net, and adding the traversed signal sources of the target net to the signal source set, wherein the associated net is a net belonging to the same physical routing as the target net; adding the representative net to the attributes of the associated net corresponding to the target net, wherein during the traversal process, if there is an associated net with a processing flag, the processing flag indicates that the traversal calculation of the corresponding net has been taken charge of by other threads, then stopping the current thread or retaining one of the current thread and the other thread, otherwise configuring the processing flag for at least one of the associated nets.
[0006] According to another aspect of the present application, a signal source determination device for integrated circuit design is provided, the signal source determination device comprising: a determination unit, configured to determine a target network from the network of the integrated circuit design; a start unit, configured to start a calculation thread for the target network; a creation unit, configured to create a representative network and a signal source set associated with the representative network under the current thread, wherein the representative network is attribute information describing the physical routing to which the network belongs, and the signal source set is used to store the signal source corresponding to the representative network; a traversal unit, configured to traverse the network of the integrated circuit design, and store the traversed signal source corresponding to the target network. The associated net is mapped to the representative net, and the signal source of the target net obtained by traversal is added to the signal source set, wherein the associated net is a net belonging to the same physical routing as the target net; an execution unit is configured to add the representative net to the attributes of the associated net corresponding to the target net, wherein the traversal unit is further configured to, during the traversal process, if there is an associated net with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding net has been taken charge of by other threads, then stop the current thread or retain one of the current thread and the other threads, otherwise configure the processing flag for at least one of the associated nets.
[0007] According to another aspect of the present application, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the signal source determination method for integrated circuit design as described above.
[0008] According to another aspect of the present application, a computer device is provided, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the signal source determination method for integrated circuit design as described above.
[0009] According to another aspect of the present application, a computer program product is provided, comprising computer instructions. When the computer instructions are executed by at least one processor, the at least one processor is prompted to execute the signal source determination method for integrated circuit design as described above.
[0010] According to the signal source determination method, device, storage medium, computer equipment and program product of the integrated circuit design of the exemplary embodiment of the present application, based on the information that the wire nets belonging to the same physical routing have the same signal source, by simultaneously traversing the associated wire nets belonging to the same physical routing as the target wire net and the signal source of the target wire net, and adding the physical routing to which it belongs in the properties of the associated wire net, it is possible to associate the signal source set with the representative wire net in the properties of the associated wire net, and realize the single acquisition and centralized storage of the signal source information, which not only helps to improve the efficiency of information acquisition, but also avoids repeated storage, and helps to save storage resources. In addition, for a multi-threaded environment, by configuring a processing flag for the wire net to indicate that the above-mentioned traversal calculation of the corresponding wire net has been taken care of by other threads, the thread can be jumped out in time when the current thread performs the traversal calculation, ensuring that the signal source of a single wire net is only calculated and written by one thread once, that is, only one thread can execute the writing of the signal source information of the wire net. Such a setting is simple, and there is no need to add complex critical section lock control, which helps to improve execution efficiency.
[0011] Other aspects and / or advantages of the general inventive concept of the present application will be set forth in part in the following description, and some will be clear from the description or may be learned through practice of the general inventive concept of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] These and / or other aspects and advantages of the present application will become clear and easier to understand from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0013] Figure 1 is a flow chart illustrating a signal source determination method for integrated circuit design according to an exemplary embodiment of the present application.
[0014] Figure 2 is a topology diagram showing an integrated circuit design according to an exemplary embodiment of the present application.
[0015] Figure 3is a block diagram showing a signal source determination device of an integrated circuit design according to an exemplary embodiment of the present application.
[0016] Figure 4 is a block diagram illustrating a computer device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0017] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the present invention as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, one of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0018] It should be noted that the phrase "at least one of the items" in this application includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0019] With the advancement of manufacturing technology and design technology, the design method of electronic systems has undergone profound changes. From computer-aided design (CAD), computer-aided engineering (CAE) to electronic design automation (EDA), the degree of automation of design is getting higher and higher, and the complexity of design is getting stronger and stronger. Integrated circuit (IC) EDA refers to the design method that uses computer-aided design software to complete the functional design, synthesis, verification, physical design (including layout, wiring, layout, design rule checking, etc.) of ultra-large-scale integrated circuit chips. At present, EDA technology has become a powerful tool for modern electronic design. Without the support of EDA technology, it is unimaginable to complete the design and manufacture of ultra-large-scale integrated circuits. Integrated circuit designers need to use EDA tools to design complex integrated circuits with hundreds of thousands to tens of billions of transistors to reduce design deviations, improve the success rate of tape-out and save tape-out costs.
[0020] Integrated circuit design usually consists of several modules. Modules are the basic components of hierarchical design. Their practical meaning is to represent the logical entity on the hardware circuit. In hierarchical design, modules are layered. High-level modules implement complex functions by calling instances of low-level modules. Modules will set pins facing low-level instances and / or pins facing high-level modules. Pins are used to connect wire nets, so that high-level modules can connect to low-level instances through wire nets. A top module is required to connect all modules to complete the entire system. For the top module, there is no higher-level module, and there is no pin facing the high-level module, but there is a port (port, in order to facilitate the unified description of modules at each layer, ports are sometimes referred to as pins. Unless otherwise specified below, all pins refer to ports), which can realize the primary input and primary output of integrated circuit design. Low-level instances are also divided into hierarchical nodes (connected to lower-level instances) and leaf cells (not connected to lower-level instances) according to whether they are connected to lower-level instances.
[0021] After reading the integrated circuit design, the EDA tool will perform various calculations. During the calculation process, it usually involves a line net or a pin of a leaf node unit. It can traverse in the opposite direction of signal propagation to trace the signal source of the line net or pin, such as penetrating the buffer or inverter to check the signal polarity. In the process of reverse traversal, it is necessary to search through the lines in the design layer by layer, which is often time-consuming.
[0022] Refer to the following Figures 1 to 4 A signal source determination method, apparatus, storage medium, computer device, and program product for integrated circuit design according to exemplary embodiments of the present application are described in detail.
[0023] Figure 1 1 is a flow chart showing a signal source determination method for integrated circuit design according to an exemplary embodiment of the present application. The signal source determination method for integrated circuit design according to an exemplary embodiment of the present application can be implemented in a computer device with sufficient computing power.
[0024] Reference Figure 1 In step S101, a target net is determined from the nets designed for the integrated circuit.
[0025] In simple terms, the target net is the net whose signal source needs to be determined. Furthermore, as mentioned above, there are often multiple nets in the design that correspond to the same signal source (i.e., belong to the same physical routing line). In the subsequent steps, the nets corresponding to the same signal source (recorded as associated nets) and the signal source (recorded in the signal source set) will be found through traversal calculations. Therefore, to be more precise, the target net is the starting point of the traversal calculation, and there is no need to determine each net as a target net. From the perspective of integrated circuit design, the number of target nets can be one or more. When the number of target nets is multiple, subsequent calculations can be performed on each target net separately. Depending on the method of determining the target net, there may be nets corresponding to the same signal source among the multiple target nets, or they may correspond to different signal sources. The risk of the former can be reduced by optimizing the method of determining the target net, so as to improve the calculation efficiency. The following article will give a detailed introduction on how to determine the target net, which will not be expanded here.
[0026] In step S102 , a calculation thread for the target net is started.
[0027] After starting the calculation thread, you can perform signal source calculation for the target network under the started thread. The following article will give a detailed introduction on how to start the calculation thread, which will not be expanded here.
[0028] In step S103, a representative network and a signal source set associated with the representative network are created in the current thread.
[0029] The current net is the calculation thread started in step S102 for the calculated target net.
[0030] The representative net is the attribute information that describes the physical routing to which the net belongs. In the subsequent step S104, the associated net corresponding to the traversed target net will be mapped to the representative net. Therefore, in the specific implementation, an associated net set can be created for centralized storage of the traversed associated nets. By default, the associated nets stored in the set have a mapping relationship with the representative net. As an example, the representative net, as attribute information, can be represented by an abstract symbol, and nets with the same abstract symbol are associated with the same signal source set. It can also be represented by an associated net in the associated net set, such as an associated net located in the top-level module. The net with this attribute is associated with the same signal source set as the associated net in the top-level module. This application does not impose any restrictions on this.
[0031] The signal source set is used to store the signal sources corresponding to the representative line network. The signal sources include the input pins of the top-level module and the output pins of the leaf nodes.
[0032] In step S104, the nets of the integrated circuit design are traversed, the associated nets corresponding to the target net obtained through the traversal are mapped to the representative net, and the signal source of the target net obtained through the traversal is added to the signal source set.
[0033] The associated net is a net that belongs to the same physical routing as the target net. By simultaneously traversing the associated nets that belong to the same physical routing as the target net and the signal source of the target net, the relationship between the representative net, the associated net set and the signal source set can be quickly bound, and in the subsequent step S105, the representative net is added to the attribute of the associated net to indicate the physical routing to which it belongs. The signal source set can be associated with the representative net in the associated net attribute to achieve single acquisition and centralized storage of signal source information, and if the signal source of any net is to be determined later, it can be quickly found with the help of the representative net, which not only helps to improve the efficiency of information acquisition, but also avoids repeated storage and helps to save storage resources.
[0034] As an example, a Chinese patent application with application number 202311752591.3 discloses a data processing method for a power status table, and proposes an identification scheme for designing power lines with the same power characteristics, wherein the target power lines, characterizing power lines, and associated power lines correspond to the target network, representative network, and associated network of the present application, respectively. The associated network in the exemplary embodiment of the present application can be traversed in the manner of traversing the associated power lines in the application. To save space, it will not be elaborated here. The difference of the present application is that the signal source is searched while traversing and searching for the associated network. Since the signal source has a clear meaning, namely, it includes the input pins of the top-level module and the output pins of the leaf node, the signal source can be searched in combination with the module where the pin is located and the input and output types of the pin.
[0035] Optionally, step S104 includes: mapping the target net as an associated net to the representative net; for each associated net mapped by the representative net, searching for lower-level instances step by step from the associated net toward the bottom layer close to the integrated circuit design, mapping the nets connected to the associated nets in the lower-level instances as hierarchical nodes to the representative nets as associated nets, and adding the output pins of the lower-level instances as leaf nodes to the signal source set as signal sources; for each associated net mapped by the representative net, when the associated net is located in the top-level module, adding the input pins of the top-level module as signal sources to the signal source set, otherwise searching for high-level modules step by step upward from the associated net toward the top-level module (high-level modules must belong to hierarchical nodes), and mapping the nets connected to the associated nets in the found high-level modules to the representative nets as associated nets. By starting from the target net, continuously searching for associated nets and signal sources (including output pins of leaf nodes and input pins of top-level modules) connecting hierarchical nodes along the direction close to the bottom layer and the top layer of the design, and continuing to search with the found associated nets as the new starting point, a comprehensive search for associated nets and signal sources can be achieved. It should be understood that in the process of traversal search, the associated nets will be searched one by one, and it will be determined whether the found pins are signal sources, and the associated nets that have been searched and the pins that have been determined can be recorded in the storage area (such as the cache area) to avoid repeated calculations and save computing resources.
[0036] In a multi-threaded environment, multiple threads can access shared resources in the critical section. At this time, different threads may initiate traversal calculations on the same wire net, resulting in overly complex locking and controlling of the critical section. In this regard, according to the signal source determination method of the exemplary embodiment of the present application, a processing flag is configured for the wire net, which is used to indicate that the traversal calculation of the corresponding wire net has been taken care of by other threads (it may be in the process of calculation or it may have been completed). Accordingly, in the traversal process of step S104, if there is an associated wire net with a processing flag, the current thread is stopped or one is retained in the current thread and other threads, otherwise a processing flag is configured for at least one associated wire net. By configuring a processing flag for at least one associated wire net, the current thread of repeated calculation can be jumped out in time, or only one is retained among several threads of repeated calculation, which ensures that the signal source of a single wire net is only responsible for one calculation and writing, that is, only one thread can execute the writing of the signal source information of the wire net. Such a setting is simple, and there is no need to add complex critical section lock control, which helps to improve execution efficiency. It should be understood that the processing flag indicates that the traversal calculation of the corresponding network has been taken over by other threads. The "other threads" here are relative to the thread that configures the processing flag (hereinafter referred to as the configuration thread for the sake of explanation), and the purpose is to announce to threads other than the configuration thread that the current network is already in the calculation state. This means that, on the one hand, when the current thread configures the processing flag for at least one associated network, the current thread is the configuration thread, and for threads other than the current thread, the current thread is the "other thread"; on the other hand, if there is an associated network with a processing flag during the traversal process, and the processing flag is configured by the current thread, the calculation can continue without affecting the normal calculation of the current thread. In addition, based on the above explanation of the processing flag, "retain one in the current thread and other threads" means retaining one in the current thread and the configuration thread of the processing flag. As for how to determine which one to retain, it can be determined randomly, or it can be selected from the one with the earliest startup time, or it can be selected from the one with the most associated networks found, as long as it can be achieved, this application does not limit this. As an example, the configuration thread of the processing flag can be recorded, for example, a separate record table is maintained to record the configuration thread of each processing flag, or thread information (such as a thread identifier (Thread ID)) is added to the processing flag to indicate the configuration thread of the processing flag. For the latter, the thread information of the configuration thread can also be directly used as the content of the processing flag. At this time, if the content of the processing flag of a wire net is the thread information of a certain thread, it means that the wire net has a processing flag, and the configuration thread of the processing flag is the thread corresponding to the thread information; if the content of the processing flag of a wire net is empty, it means that the wire net does not have a processing flag. Of course, recording the configuration thread is only one implementation method of the present application and is not limited to the present application. Other implementation methods will be introduced next.
[0037] In addition, regarding the judgment timing of the processing flag, as an example, it can be determined once every certain period during the traversal process whether there is an associated line network with a processing flag in the associated line network that has been traversed. The trigger condition of the judgment can also be set. For example, a judgment is performed each time the associated line network is traversed. For example, for the embodiment described in the previous paragraph that searches along the directions close to the bottom layer of the design and close to the top layer of the design, a judgment can be performed before each search based on an associated line network. As long as it can be reasonably implemented, the present application does not impose any restrictions on this.
[0038] Regarding at least one associated line net for which a processing flag is configured when the judgment result is negative, as an example, at least one associated line net may be randomly selected or selected according to a specific rule, and the present application does not impose any limitation on this.
[0039] Regarding other implementation methods besides recording and configuring threads, in one example, during the above-mentioned traversal process, if there is an associated wire net with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding wire net has been performed by other threads, then the current thread is stopped or one is retained in the current thread and other threads, otherwise at least one associated wire net is configured with a processing flag, including: during the traversal process, if an associated wire net with a processing flag is found, then the current thread is stopped, otherwise the associated wire net found is configured with a processing flag.
[0040] In another example, in the above-mentioned traversal process, if there is an associated line net with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding line net has been taken over by other threads, then the current thread is stopped or one is retained in the current thread and other threads, otherwise at least one associated line net is configured with a processing flag, including: before the traversal starts, the representative line net is set as the target line net; during the traversal process, the representative line net is updated to the line net with the highest level in the associated line net obtained by traversal, and when the representative line net is updated, if the updated representative line net has a processing flag, then the current thread is stopped, otherwise the processing flag is configured for the updated representative line net. By setting the representative line net to the actual associated line net, and specifically the associated line net with the highest level obtained by traversal, the representative line net can have a more concrete physical meaning, and it is also ensured that when different threads are used to traverse and calculate the line nets belonging to the same physical routing, the same representative line net will be determined, so that repeated calculations can be avoided when only the processing flag is configured for the representative line net, and the number of times the processing flag is configured is reduced. At the same time, since it is only judged whether the representative network has a processing flag when the representative network is updated, it can avoid repeated judgment when the representative network has not changed. It will not happen that the current thread configures a processing flag for the representative network, and then determines that the representative network has a processing flag after a period of time. In addition, the representative network is always the highest-level associated network at the current level. Once updated, it will not be restored to the old state. Therefore, even if the configuration thread of the processing flag is not recorded, it will not cause the current thread to stop by mistake, which effectively simplifies the solution and reduces the risk of errors in execution. At this time, the processing flag can only indicate that the traversal calculation of the corresponding network has been taken over by a certain thread, without specifying which thread is responsible, that is, there is no need to specify the configuration thread. As an example, the processing flag can be set to a Boolean value, with 0 indicating that the processing flag is not present and 1 indicating that the processing flag is present.
[0041] Of course, the embodiments of the present application are not limited to this, as long as they can be reasonably implemented.
[0042] In step S105, a representative net is added to the attributes of the associated nets corresponding to the target net.
[0043] Optionally, step S105 includes: locking the representative network obtained by the traversal calculation; if the locking is successful, adding the representative network to the properties of the associated network corresponding to the target network; if the locking is unsuccessful, stopping the current thread and not adding the representative network to the properties of the associated network corresponding to the target network. Although the use of processing flags can theoretically avoid repeated calculations and writes by different threads, there is still a very low probability that different calculation threads for the same network arrive at the same time and just miss each other. By adding a simple lock control to the representative network finally obtained by the traversal calculation, locking it first and then adding the properties after the traversal calculation is completed, the reliable writing of the representative network properties can be fully guaranteed with very few computing resources.
[0044] Regarding the maintenance of the processing flag, considering that the signal source and the representative network may be recalculated later, optionally, step S101 includes: determining the target network from the network of the integrated circuit design, and clearing the processing flags of all network; and / or, step S105 includes: adding the representative network to the attributes of the associated network corresponding to the target network, and clearing the processing flags of all associated network. By using the processing flag as a temporary flag, clearing the processing flags of all associated network obtained this time after completing the calculation and updating the network attributes, the risk of false stop during subsequent recalculation can be effectively reduced, and the smooth recalculation can be ensured. In addition, the processing flags of all network can be cleared before performing the calculation for the target network, which can also ensure the smooth recalculation. These two times to clear the processing flags can exist at the same time, that is, clearing the processing flags of the relevant network before and after the calculation is completed, or only one of them can be used.
[0045] As an example, for the aforementioned processing flag, the configuration thread is not recorded. During the traversal process, if an associated line net with a processing flag is found, the current thread is stopped. Otherwise, it is an embodiment of configuring the processing flag for the associated line net found. There may be two threads traversing the line nets of the integrated circuit design from different directions, resulting in the two threads stopping in the second half of the traversal calculation because of encountering the associated line net with a processing flag. If both threads have not completed the calculation, the properties of the associated line net will not be updated, resulting in the failure of the clearing process after the calculation is completed. The associated line nets found by the two threads will retain the processing flag, but none of their properties represent the line net, and there is no associated signal source set. When the signal source information of these line nets is needed but cannot be obtained, the traversal calculation for these line nets can be restarted. At this time, by adding a clearing process before the calculation, the processing flags of these line nets can be cleared, ensuring the smooth recalculation.
[0046] In an exemplary embodiment, steps S103 to S105 are specifically implemented as follows.
[0047] Step S103, creating an associated network set and a signal source set.
[0048] The two collections are empty initially, and then the target net is added to the associated net collection, and the representative net is set to the target net.
[0049] Step S104: the current thread performs the following operations in sequence for each associated line net in the associated line net set.
[0050] a) If the representative network changes, determine whether the current new representative network (for the first associated network, i.e., the target network, the representative network is assigned a value for the first time, and therefore also changes, specifically, from empty to the target network) has a processing flag. If it has, it indicates that other threads are calculating the network or have completed the calculation of the network. In order to avoid wasting resources, the current thread is jumped out and the current thread no longer performs subsequent calculations on the target network; otherwise, configure the processing flag for the current representative network and continue to perform subsequent calculations.
[0051] b) Search in the direction close to the bottom layer of the design. Specifically, obtain all the lower-level instances connected to the current network, determine whether the current lower-level instance is a leaf node, and perform the following operations respectively.
[0052] i) If the current lower-level instance is a leaf node, determine the direction of the pin that connects the current net to the current lower-level instance. If the current pin is in the output direction, add the current pin to the signal source collection; if the current pin is in the input direction, do nothing.
[0053] ii) If the current lower-level instance is a hierarchical node, then obtain the wire mesh inside the lower-level instance that is connected to the current wire mesh (which is also the wire mesh used by the lower-level instance to connect to lower-level instances), add the obtained new wire mesh to the associated wire mesh set, and compare the weights of the representative wire mesh and the new wire mesh. If the weight of the new wire mesh is greater, set the representative wire mesh as the new wire mesh, otherwise keep the representative wire mesh unchanged.
[0054] Note: ① The weight depends on the level of the network, and the higher the level, the greater the weight. ② Although the weight of the new network in the lower-level instance must be smaller than the current network, since the representative network is not necessarily the current network during the entire traversal calculation process, it is still necessary to compare the weights of the representative network and the new network to avoid errors.
[0055] c) Search in the direction close to the top layer of the design. Specifically, obtain the pins in the module connected to the current net (that is, the module where the current net is located) that are connected to the current net and face the high-level module (if the module connected to the current net is the top-level module, the pin is the port of the top-level module), determine whether the module where the current net is located is the top-level module, and perform the following operations respectively.
[0056] i) If the module where the current network is located is the top-level module and the pin obtained is in the input direction, the pin is added to the signal source set; if the pin is in the output direction, no processing is performed.
[0057] ii) If the module where the current network is located is not the top-level module, obtain the high-level network associated with the pin (located inside the high-level module), add the obtained new network to the associated network set, and compare the weights of the representative network and the new network. If the weight of the new network is greater, set the representative network as the new network, otherwise keep the representative network unchanged.
[0058] Note: Although the weight of the new network inside the high-level module must be greater than the current network, since the representative network is not necessarily the current network during the entire traversal calculation process, it is still necessary to compare the weights of the representative network and the new network to avoid errors.
[0059] by Figure 2 For example, the integrated circuit design includes nodes V1, V2, V3, V4, L1, L2, L3, and L4 from top to bottom. The top-level module V1 is connected to the nets N210 and N220 in V2 through the net N110, and is connected to the net N230 of V2 through the net N120. V2 is connected to the net N310 in V3 through the net N210 (the net N310 is connected to the leaf node L1), and is connected to the net N320 in V3 (the net N320 is connected to the leaf node L2) and the net N410 in V4 (the net N410 is connected to the leaf node L3) through the net N220, and is also connected to the net N420 in V4 (the net N420 is connected to the leaf node L4) through the net N230.
[0060] Assuming that the representative net and the current net are both N210, and it is detected that N210 does not have a processing flag, the lower-level instance V3 connected to N210 and the pin P1 connected to N210 and facing the higher-level module in the module V2 where N210 is located are obtained. On the one hand, since the lower-level instance V3 is a hierarchical node (relatively, the lower-level instances L1 and L2 are leaf nodes), the net N310 on the other side of the pin P2 connected to N210 in V3 is obtained, and N310 is added to the associated net set. Since the weight of N310 is less than that of N210, the representative net is kept set to N210 unchanged, and then the calculation is recalculated for N310. On the other hand, since module V2 is not a top-level module, the net N110 on the other side of the pin P1 in V2 is obtained, and N110 is added to the associated net set. Since the weight of N110 is greater than that of N210, the representative net is reset to N110, and then the calculation is recalculated for N110.
[0061] Step S105: updating the representative net in the attributes of all nets in the associated net set, and updating the signal source set of the representative net.
[0062] After all the nets in the associated net set are calculated, the current thread locks the representative net, which is the representative net of all the nets in the associated net set, and the corresponding signal source is determined accordingly.
[0063] If the locking fails, it means that other threads are updating the representative network and signal source. In order to avoid wasting resources, the current thread can return directly and no longer execute subsequent property updates. If the locking is successful, the representative network in the properties of all network in the associated network set is updated, and the signal source set of the representative network is updated.
[0064] Next, we will further introduce how to determine the target line network.
[0065] Optionally, step S101 includes: determining a candidate net from the nets of the integrated circuit design; and when there is no representative net in the attributes of the candidate net, using the candidate net as the target net. Although the processing flag can prevent repeated calculations during the traversal process, the thread of the traversal calculation has been started at this time. By judging in advance whether there is a representative net in the attributes of the determined candidate net, the selected net can be reviewed, so as to determine whether the traversal calculation needs to be performed before starting the traversal calculation thread, which more fully reduces unnecessary thread activation and helps to save computing resources. It should be understood that, in addition, there is also the possibility that although there is no representative net in the attributes of the candidate net, other threads are already traversing and calculating it, so the processing flag can still effectively ensure that the signal source of a single net is only calculated and written by one thread once.
[0066] Optionally, step S101 further includes: when there is a representative net in the attributes of the candidate net and the forced calculation flag of the candidate net indicates that forced calculation is to be performed, the candidate net is used as the target net. By further configuring the forced calculation flag, when there is a special need, even if there is a representative net in the attributes of the candidate net, it can be used as the target net to perform traversal calculation, thereby retaining flexibility for the determination of the signal source. It should be understood that when there is a representative net in the attributes of the candidate net and the forced calculation flag of the candidate net indicates that forced calculation is not to be performed, the candidate net is not used as the target net. As an example, the forced calculation flag can be used to indicate that forced calculation is to be performed, and false to indicate that forced calculation is not to be performed. The default value of the forced calculation flag can be to indicate that forced calculation is not to be performed, so that whether there is a representative net in the attributes is preferentially used as the judgment condition for whether to use the candidate net as the target net, and the forced calculation flag is set to indicate that forced calculation is to be performed only when there is a special need.
[0067] It should be understood that for the wire nets in the integrated circuit design, as long as they have undergone the complete calculation of signal source determination, there will be a representative wire net in its attributes. However, the integrated circuit design often needs to be updated. Optionally, the signal source determination method according to the exemplary embodiment of the present application also includes: in response to the design update notification, setting the forced calculation flag of at least part of the wire nets in the integrated circuit design to indicate forced calculation, and executing the step of determining the target wire net from the wire nets of the integrated circuit design, that is, step S101. By specifically applying the forced calculation flag to the design update scenario, the wire nets whose connection relationship has changed can be re-calculated for signal source determination, and the wire nets that are not affected by the update can be calculated without calculation, which helps to make full use of the existing calculation results and reduce the consumption of computing resources. It should be noted that the design update notification is a prior art, and the design update notification can be received when a pin is disconnected or connected. And the design update belongs to the operation of optimizing logic, replacing logic, etc., which is a controllable operation actively performed by the designer, and usually does not occur in the process of traversing the calculation of associated wire nets and signal sources. It should be understood that the forced calculation flag can also be applied to other reasonable scenarios, and the present application does not limit this.
[0068] For the design update scenario, further optionally, in response to the design update notification, the forced calculation flag of at least part of the wire nets in the integrated circuit design is set to indicate that forced calculation is performed, and the step of determining the target wire net from the wire nets of the integrated circuit design is performed, including: in response to the design update notification, in the case of determining to perform a local update, the forced calculation flag of the wire net corresponding to the design update notification (i.e., the wire net whose pin is disconnected or connected) is set to indicate that forced calculation is performed, and the wire net corresponding to the design update notification is determined as the target wire net. For the case of local update, the wire nets updated at this time are relatively small, and the risk of a large number of repeated calculations is relatively low. By directly determining these wire nets as target wire nets and performing forced calculations, the target wire nets can be easily determined and new traversal calculations can be performed, which helps to improve the execution efficiency of signal source determination. It should be understood that the opposite situation to the local update is a global update. As an example, when determining a global update, the entire integrated circuit design can be directly recalculated, and the calculation is essentially the same as the initial calculation. When it is specifically executed, it can be calculated as a new design, that is, the representative nets in all net properties are deleted, and the forced calculation flag is restored to the default to indicate that no forced calculation is performed; the representative nets in all net properties can also be retained, and the forced calculation flag of the determined target nets (such as all nets) is set to indicate that forced calculation is performed. In addition, with respect to the nets corresponding to the design update notification, it should be understood that if the update involves the disconnection of pins, but the net still exists, then the disconnected net can be used as the net corresponding to the update notification (of course, the number of nets corresponding to the update notification is often more than one, which is determined by the actual update); if the update involves the deletion of a net, then since the net has been deleted and no longer exists, it cannot be used as an update net. As an example, other nets directly connected to the deleted net in the original design can be used as the net corresponding to the update notification; if the update involves pin connection, then the net newly connected to the pin can be used as the net corresponding to the update notification.
[0069] Optionally, the following steps are used to determine whether to perform a local update: determine the proportion of the net corresponding to the design update notification in all the nets of the updated integrated circuit design, and determine to perform a local update when the proportion is less than or equal to a first threshold. By calculating the proportion of the updated net in all the nets and introducing the first threshold, a simple quantity calculation can be performed, and then whether to perform a local update is determined based on the proportion of the updated net, thereby ensuring a convenient and effective determination of the update status. It should be understood that when the proportion is greater than the first threshold, it is determined to perform a global update.
[0070] Based on the above proportion, optionally, the above-mentioned setting of the mandatory calculation flag of the net corresponding to the design update notification to indicate mandatory calculation, and determining the net corresponding to the design update notification as the target net, includes: determining all the nets corresponding to the design update notification, recording them as the update nets; when the proportion is less than or equal to the second threshold, setting the mandatory calculation flag of the update net to indicate mandatory calculation, and determining the update net as the target net, wherein the second threshold is less than the first threshold; when the proportion is greater than the second threshold and less than or equal to the first threshold, performing deduplication processing on the update net, setting the mandatory calculation flag of the updated net after deduplication processing to indicate mandatory calculation, and determining the updated net after deduplication processing as the target net. For the case of partial update, by further introducing a second threshold less than the first threshold, the case of partial update can be further subdivided. For the case where the proportion is greater than the second threshold, the risk of a large number of repeated calculations is relatively increased. By first performing deduplication processing on the update net at this time, and then using the processed update net as the target net, the risk of a large number of repeated calculations can be effectively reduced while increasing a small amount of calculation, which helps to improve execution efficiency. As an example, when determining whether to perform a global update or a local update in combination with the proportion, the first threshold and the second threshold can be used together for determination, so that a global update is performed directly when the proportion is greater than the first threshold, and when the proportion is between the first threshold and the second threshold, deduplication is first performed on the update network, and then a local update is performed, and when the proportion is less than or equal to the second threshold, a local update is performed directly on the update network. Of course, the determination can also be performed in two steps, and this application does not limit this.
[0071] Optionally, step S101 includes: determining the top-level module of the integrated circuit design, determining the wire net in the top-level module as the target wire net; searching for lower-level instances step by step from the top-level module downward, and determining the wire net connected to the lower-level instance as the leaf node as the target wire net. Since the signal source only comes from the input pins of the top-level module and the output pins of the leaf node, the wire net that is not connected to the leaf node and the top-level module can be directly ignored without affecting the overall function. By determining the wire net in the top-level module as the target wire net, and determining the wire net connected to the leaf node as the target wire net in a top-down exploration manner, it is possible to more comprehensively determine the effective target wire net, and reasonably control the number of target wire nets, which helps to save computing resources and improve execution efficiency. It should be understood that the method for determining the target wire net provided in this embodiment can be applied to the initial signal source calculation of the integrated circuit design, and can also be used for the signal source calculation during global update. As an example, for the aforementioned embodiment of first determining a candidate network and then determining whether to use the candidate network as a target network in combination with the properties of the candidate network (or further in combination with a forced calculation flag), the target network determined in the current embodiment may be used as a candidate network, which is equivalent to first detecting whether there is a representative network in the properties of the target network (or further detecting whether the forced calculation flag of the target network indicates forced calculation) before traversing and calculating the target network determined in the current embodiment. As an example, a calculation thread may be started for each target network determined, or calculation threads may be started for each of the target networks after all the target networks are determined, and this application does not limit this.
[0072] In an exemplary embodiment, after the EDA tool (an exemplary execution subject of the present application) completes the reading of the integrated circuit design output by the user, or detects a design change, it will uniformly determine the target network and update its representative network and signal source. The specific implementation method of the determination is as follows.
[0073] 1. All calculations (including the initial calculation and the calculation during global update).
[0074] All calculations refer to the calculations of representative nets and signal sources for the overall design, which involves obtaining the target nets and performing related calculations from top to bottom starting from the top-level module, and mainly includes the following steps.
[0075] 1) Get the nets connected to the pins of the top-level module as the target nets; at the same time, start the calculation thread to calculate the representative nets and signal sources of each target net.
[0076] 2) Get the lower-level instance of the top-level module. If the lower-level instance is a leaf node, determine the net connected to the pins of the leaf node as the target net. If the lower-level instance is a hierarchical node, iterate downward to get the leaf nodes under the instance, and use the net connected to the pins of the leaf node as the target net. At the same time, start the calculation thread to calculate the representative net and signal source of each target net.
[0077] 2. Local update calculation.
[0078] When a small part of the design changes, for example, the change ratio is less than 10% (10% is the first threshold, and the specific value can be set by yourself), it is more efficient to use local update. Local calculation is further divided into the following two cases.
[0079] 1) When there are a small number of instances of pins being disconnected or connected, for example, only less than 3% (3% is the second threshold, and the specific value can be set by yourself) of the nets are involved, then the forced calculation flag of these nets involved in the pin disconnection or connection is directly set to true (indicating forced calculation), and then these nets are used as target nets, and the calculation thread is started to calculate the representative nets and signal sources of each target net.
[0080] 2) When there are a large number of disconnections or connections in the design, for example, involving more than 3% of the above-mentioned nets, many of which may involve repeated nets. In order to avoid excessive repeated calculations, the nets involved in the pin disconnection or connection are first collected into a container. The role of the container here is mainly to filter out repeated and redundant nets (belonging to the prior art); after the disconnection and connection actions are completed, the forced calculation flag of all nets in the container is set to true, and then these nets are used as target nets, and the calculation thread is started to calculate the representative net and signal source of each target net.
[0081] 3. Before the formal calculation, check the representative network and forced calculation flag in the properties of the target network.
[0082] In order to avoid data errors during the update process and save computing resources as much as possible, before starting the calculation thread for the target net, the representative net and the forced calculation flag in the properties of the target net can be checked. If there is a representative net in the properties of the target net and the forced calculation flag is false, the current thread can return directly, no longer execute subsequent steps for the target net, and continue to detect the next target net (which is likely to belong to a different physical routing than the previous target net); otherwise (there is no representative net in the properties of the target net or the forced calculation flag is true), start the calculation thread for the target net to recalculate the representative net and signal source of the target net.
[0083] Note: In order to achieve better calculation logic, the forced calculation flag of all target nets is initially set to false by default, that is, whether to abandon the calculation is determined by whether there is a representative net in the net properties. The forced calculation flag of a specific target net can be changed to true according to actual needs (for example, the design of the net has been updated).
[0084] Next, we will further introduce the startup of the computing thread.
[0085] In integrated circuit design, most of the wire nets are local, that is, there is only a leaf node association between the current module and the adjacent level, and the number of leaf nodes is small; relatively, very few wire nets are global, and the number of associated leaf nodes is huge. Therefore, when two wire nets are randomly selected from the design, the possibility that there is an association between the two wire nets (that is, belonging to the same physical routing) is relatively higher, and it is easier to repeat calculations when performing calculations on different wire nets. In this regard, optionally, step S102 includes: when there is a global wire net in the target wire net, using a single-threaded method to start a calculation thread for each global wire net in the target wire net; when there are multiple local wire nets in the target wire net, using a multi-threaded method to start a calculation thread for multiple local wire nets. By using a single-threaded method to calculate the global wire net that is relatively more likely to be repeated, and using a multi-threaded method to calculate the multiple local wire nets that are relatively less likely to be repeated, it is possible to reasonably select and utilize the calculation thread according to the layout characteristics of the target wire net, achieve effective calculation, and reduce the waste of computing resources. In addition, since the multi-threaded method requires each thread to perform a calculation, if the multi-threaded method is used for the global line network, it may cause multiple repeated calculations, and each calculation involves a large number of related line networks, resulting in a large number of queuing problems under multi-threading, and the calculation time is even longer. By using a single-threaded calculation method, it helps to significantly shorten the calculation time.
[0086] Optionally, step S102 further includes: determining a net used to propagate a preset type of signal as a global net, and determining other nets other than the global net as local nets. After analysis, the signal propagated by the global net generally comes from the input of the top-level module, such as a power signal, a clock signal, a reset signal, a set signal, etc. By setting the corresponding preset type of signal, the global net and the local net are distinguished according to the type of signal propagated by the net, so that the layout characteristics of the target net can be easily identified.
[0087] Optionally, in step S102, when there are multiple local nets in the target net, the operation of starting the calculation threads for the multiple local nets in a multi-threaded manner includes: when there are multiple local nets in the target net and there are no global nets for which the traversal calculation has not been completed in the target net, starting the calculation threads for the multiple local nets in a multi-threaded manner. Regarding the activation of the multi-threaded manner, on the one hand, by configuring the condition that there are multiple local nets, it can be used only when there is a need for multi-threaded calculation, which helps to reduce the consumption of computing resources. On the other hand, the target nets associated with the global nets are often scattered throughout the entire design and are easily encountered when performing multi-threaded calculations. By configuring the condition that there are no global nets for which the traversal calculation has not been completed for the multi-threaded calculation mode, it can be ensured that the calculation of the global nets is completed first and the processing flags are configured accordingly, so that these target nets will not be calculated when performing multi-threaded calculations, thereby effectively reducing the waste of computing resources.
[0088] In an exemplary embodiment, for all calculations in the aforementioned exemplary embodiments, when the workload of calculating the representative network and signal source of the overall design is large, a multi-threaded implementation can also be used to accelerate the calculation, and the multi-threaded situation involves the separate processing of local network and global network.
[0089] When calculating for a global network, the speed of collecting target networks, associated networks and signal sources is very slow, and the calculation of the global network is very different when using single thread and multi thread. For example, in actual applications, it takes 20 minutes for multi thread to calculate the same global target network, while it only takes 10 seconds for a single thread. The reason is that the global network involves a huge number of associated networks, while the number of threads that the computer can provide is relatively small, resulting in a large number of queuing problems in the case of multi thread.
[0090] Therefore, when using multithreading, the globality and locality of the network must be considered. For global networks, such as determining whether a network is used to transmit power signals or clock signals, a single thread is used for calculation to reduce the huge time spent in the network collection process; for local networks, multithreading is used for update to speed up the calculation and update speed of the network.
[0091] The implementation steps for handling local and global meshes separately in all calculations are as follows.
[0092] 1) Get the wire net connected by the pins of the top-level module and the leaf node as the target wire net, and then determine the type of signal propagated by the target wire net. If it is a preset type of signal with global characteristics such as power signal and clock signal, put it into a single thread to calculate the representative wire net and signal source of the global wire net; otherwise, add it to the wire net container, which is used to collect local wire nets.
[0093] 2) After the global network calculation is completed, multi-threading is started to calculate the representative network and signal source of each local network in the network container, and each local network uses one calculation thread.
[0094] In general, according to the signal source determination method of the integrated circuit design of the exemplary embodiment of the present application, the signal source is updated synchronously during the update of the representative line network, and no additional lock management is required. After the update is completed, other modules can directly use the representative line network and its signal source information, which simplifies the overall logic, fundamentally solves the speed problem of reverse traversal and the additional critical area management problem in the related technology, and greatly improves the efficiency of tracing the signal source. In addition, the two methods of flexible selection of full calculation and local update calculation, supplemented by multi-threaded implementation, can make the update calculation under different conditions more efficient.
[0095] Figure 3 is a block diagram showing a signal source determination device of an integrated circuit design according to an exemplary embodiment of the present application.
[0096] Reference Figure 3 The signal source determination device 300 for integrated circuit design includes a determination unit 301 , a start unit 302 , a creation unit 303 , a traversal unit 304 , and an execution unit 305 .
[0097] The determining unit 301 may determine a target net from among the nets designed for the integrated circuit.
[0098] The start unit 302 may start a computation thread for a target net.
[0099] The creation unit 303 can create a representative network and a signal source set associated with the representative network under the current thread, wherein the representative network is the attribute information describing the physical routing to which the network belongs, and the signal source set is used to store the signal source corresponding to the representative network.
[0100] The traversal unit 304 can traverse the wire nets of the integrated circuit design, map the associated wire nets corresponding to the target wire nets obtained through the traversal to the representative wire nets, and add the signal sources of the traversed target wire nets to the signal source set, wherein the associated wire nets are wire nets belonging to the same physical routing as the target wire net.
[0101] The execution unit 305 may add a representative net to the attributes of the associated net corresponding to the target net.
[0102] Among them, the traversal unit 304 can also stop the current thread or retain one of the current thread and other threads during the traversal process if there is an associated line network with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding line network has been performed by other threads, otherwise configure a processing flag for at least one associated line network.
[0103] Optionally, the traversal unit 304 may also set the representative line network as the target line network before the traversal begins; during the traversal process, the representative line network is updated to the line network with the highest level in the associated line networks obtained by traversal, and when the representative line network is updated, if the updated representative line network has a processing flag, the current thread is stopped, otherwise the processing flag is configured for the updated representative line network.
[0104] Optionally, the determination unit 301 may also determine the target net from the nets of the integrated circuit design and clear the processing flags of all nets; the execution unit 305 may also add a representative net to the properties of the associated nets corresponding to the target net and clear the processing flags of all associated nets.
[0105] Optionally, the determining unit 301 may further: determine a candidate net from the nets of the integrated circuit design; and when no representative net exists in the attributes of the candidate net, use the candidate net as the target net.
[0106] Optionally, the determining unit 301 may further: when there is a representative net in the attributes of the candidate nets and the forced calculation flag of the candidate net indicates that forced calculation is to be performed, take the candidate net as the target net.
[0107] Optionally, the signal source determination device 300 also includes a setting unit (not shown in the figure) which can, in response to a design update notification, set a forced calculation flag of at least part of the wire nets in the integrated circuit design to indicate forced calculation, and execute the step of determining the target wire net from the wire nets in the integrated circuit design.
[0108] Optionally, the setting unit may also respond to the design update notification and, if it is determined that a partial update is to be performed, set a forced calculation flag of the line net corresponding to the design update notification to indicate forced calculation, and determine the line net corresponding to the design update notification as the target line net.
[0109] Optionally, whether to perform a partial update is determined by the following steps: determining a proportion of the nets corresponding to the design update notification in all nets of the updated integrated circuit design, and determining to perform a partial update when the proportion is less than or equal to a first threshold.
[0110] Optionally, the setting unit may also: determine all the line networks corresponding to the design update notification, record them as updated line networks; when the proportion is less than or equal to a second threshold, set the forced calculation flag of the updated line network to indicate that forced calculation is to be performed, and determine the updated line network as the target line network, wherein the second threshold is less than the first threshold; when the proportion is greater than the second threshold and less than or equal to the first threshold, perform deduplication processing on the updated line network, set the forced calculation flag of the updated line network after the deduplication processing to indicate that forced calculation is to be performed, and determine the updated line network after the deduplication processing as the target line network.
[0111] Optionally, the determination unit 301 may also: determine the top-level module of the integrated circuit design, and determine the wire net in the top-level module as the target wire net; search for lower-level instances step by step from the top-level module downward, and determine the wire net connected to the lower-level instance as a leaf node as the target wire net.
[0112] Optionally, the startup unit 302 may also: when there is a global net in the target net, start the calculation thread for each global net in the target net using a single-threaded method; when there are multiple local nets in the target net, start the calculation threads for multiple local nets using a multi-threaded method.
[0113] Optionally, the starting unit 302 may further: determine a net used to propagate a signal of a preset type as a global net, and determine other nets except the global net as local nets.
[0114] Optionally, the starting unit 302 may further start calculation threads for the multiple local nets in a multi-threaded manner when there are multiple local nets in the target net and there is no global net for which traversal calculation has not been completed in the target net.
[0115] Optionally, the traversal unit 304 may also: map the target net as an associated net to the representative net; for each associated net mapped by the representative net, search for lower-level instances step by step from the associated net toward the bottom layer close to the integrated circuit design, map the nets connected to the associated nets in the lower-level instances as hierarchical nodes to the representative nets as associated nets, and add the output pins of the lower-level instances as leaf nodes to the signal source set as signal sources; for each associated net mapped by the representative net, if the associated net is located in the top-level module, add the input pins of the top-level module as signal sources to the signal source set, otherwise search for high-level modules step by step upward from the associated net toward the top-level module, and map the nets connected to the associated nets in the found high-level modules to the representative net as associated nets.
[0116] Optionally, the execution unit 305 may also: lock the representative wire net obtained by traversal calculation; if the locking is successful, add the representative wire net to the properties of the associated wire net corresponding to the target wire net; if the locking is unsuccessful, stop the current thread and do not add the representative wire net to the properties of the associated wire net corresponding to the target wire net.
[0117] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0118] Figure 4 is a block diagram showing a computer device according to an exemplary embodiment of the present application. Figure 4 As shown, the computer device 400 includes at least one processor 401 and at least one memory 402 storing computer executable instructions. Here, when the computer executable instructions are executed by the processor 401, the processor 401 is prompted to perform the signal source determination method as described in the above exemplary embodiment.
[0119] As an example, the computer device 400 is not necessarily a single device, but may be any collection of devices or circuits that can execute the above instructions (or instruction sets) individually or in combination. The computer device 400 may also be part of an integrated control system or system manager, or may be configured as a server that is interconnected with a local or remote (e.g., via wireless transmission) interface.
[0120] In computer device 400, processor 401 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, processor 401 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0121] The processor 401 may execute instructions or codes stored in the memory 402, wherein the memory 402 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.
[0122] The memory 402 may be integrated with the processor 401, for example, by placing RAM or flash memory within an integrated circuit design microprocessor or the like. In addition, the memory 402 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 402 and the processor 401 may be operationally coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 401 can read files stored in the memory 402.
[0123] In addition, the computer device 400 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the computer device 400 may be connected to each other via a bus and / or a network.
[0124] In an exemplary embodiment, a computer-readable storage medium may also be provided. When the instructions in the computer-readable storage medium are executed by the processor, the processor is enabled to perform the signal source determination method as described in the above exemplary embodiment. The computer-readable storage medium may be, for example, a memory including instructions. Optionally, the computer-readable storage medium may be: a read-only memory (ROM), a random access memory (RAM), a random access programmable read-only memory (PROM), an electrically erasable programmable read-only memory (EEPROM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a flash memory, a non-volatile memory, a CD-ROM, a CD-R, a CD+R, a CD-RW, a CD+RW, a DVD-ROM, a DVD-R, a DVD+R, a DVD-RW, a DVD+RW, a DVD-RAM, a BD-ROM, a BD-R, a BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0125] In an exemplary embodiment, a computer program product may also be provided, including computer instructions. When the computer instructions are executed by a processor, the processor is prompted to perform the signal source determination method as described in the above exemplary embodiment.
[0126] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0127] In addition, it should be noted that although several examples of each step are described above with reference to specific drawings, it should be understood that the implementation methods of the present application are not limited to the combinations given in the examples, and the steps appearing in different drawings may be combined, which are not exhaustively listed here.
[0128] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the claims.
Claims
1. A method for determining a signal source in integrated circuit design, characterized in that: The signal source determination method comprises: Determining a target net from among the nets of the integrated circuit design; Starting a calculation thread for the target network; In the current thread, a representative network and a signal source set associated with the representative network are created, wherein the representative network is the attribute information describing the physical routing to which the network belongs, and the signal source set is used to store the signal source corresponding to the representative network; Traversing the nets of the integrated circuit design, mapping the associated nets corresponding to the target net obtained through the traversal to the representative net, and adding the signal sources of the target net obtained through the traversal to the signal source set, wherein the associated nets are nets belonging to the same physical routing as the target net; adding the representative net to the attributes of the associated net corresponding to the target net, Among them, during the traversal process, if there is an associated line network with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding line network has been taken over by other threads, then the current thread is stopped or one of the current thread and the other threads is retained, otherwise the processing flag is configured for at least one of the associated line networks.
2. The signal source determination method according to claim 1, characterized in that: During the traversal process, if there is an associated line net with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding line net has been handled by other threads, then the current thread is stopped or one of the current thread and the other thread is retained; otherwise, the processing flag is configured for at least one associated line net, including: Before the traversal starts, setting the representative network as the target network; During the traversal process, the representative line network is updated to the line network with the highest level in the associated line networks obtained by traversal, and when the representative line network is updated, if the updated representative line network has the processing flag, the current thread is stopped, otherwise the processing flag is configured for the updated representative line network.
3. The signal source determination method according to claim 1, characterized in that: The determining of the target net from the nets of the integrated circuit design comprises: determining the target net from the nets of the integrated circuit design, and clearing the processing flags of all nets; and / or The adding the representative net to the attributes of the associated nets corresponding to the target net includes: adding the representative net to the attributes of the associated nets corresponding to the target net, and clearing the processing flags of all the associated nets.
4. The signal source determination method according to claim 1, characterized in that: The determining of a target net from among the nets of the integrated circuit design comprises: Determining a candidate net from among the nets of the integrated circuit design; When the representative net does not exist in the attributes of the candidate nets, the candidate net is used as the target net.
5. The signal source determination method according to claim 4, characterized in that: The determining of the target network from the network of the integrated circuit design further includes: When the representative net exists in the attributes of the candidate nets and the forced calculation flag of the candidate net indicates that forced calculation is to be performed, the candidate net is used as the target net.
6. The signal source determination method according to claim 5, characterized in that: The signal source determination method further includes: In response to the design update notification, the forced calculation flag of at least part of the wire nets in the integrated circuit design is set to indicate forced calculation, and the step of determining the target wire net from the wire nets in the integrated circuit design is performed.
7. The signal source determination method according to claim 6, characterized in that: The step of setting the forced calculation flag of at least part of the nets in the integrated circuit design to indicate forced calculation in response to the design update notification, and performing the step of determining the target net from the nets in the integrated circuit design, comprises: In response to the design update notification, if it is determined that a partial update is to be performed, the forced calculation flag of the line net corresponding to the design update notification is set to indicate that forced calculation is to be performed, and the line net corresponding to the design update notification is determined as the target line net.
8. The signal source determination method according to claim 7, characterized in that: Follow these steps to determine whether to perform a partial update: The proportion of the net corresponding to the design update notification in all nets of the updated integrated circuit design is determined, and when the proportion is less than or equal to a first threshold, it is determined to perform a partial update.
9. The signal source determination method according to claim 8, characterized in that: The step of setting the forced calculation flag of the net corresponding to the design update notification to indicate that forced calculation is to be performed, and determining the net corresponding to the design update notification as the target net, comprises: Determine all the nets corresponding to the design update notification and record them as updated nets; When the proportion is less than or equal to a second threshold, setting the forced calculation flag of the updated network to indicate forced calculation, and determining the updated network as the target network, wherein the second threshold is less than the first threshold; When the proportion is greater than the second threshold and less than or equal to the first threshold, deduplication processing is performed on the update line network, the forced calculation flag of the updated line network after deduplication processing is set to indicate forced calculation, and the updated line network after deduplication processing is determined as the target line network.
10. The signal source determination method according to claim 1, characterized in that: The determining of a target net from among the nets of the integrated circuit design comprises: Determine a top-level module of the integrated circuit design, and determine a net in the top-level module as the target net; The lower-level instances are searched step by step downward from the top-level module, and the wire net connected to the lower-level instances as leaf nodes is determined as the target wire net.
11. The signal source determination method according to claim 1, characterized in that: The starting of a computing thread for the target network includes: In the case where there are global nets in the target net, starting a calculation thread for each global net in the target net in a single-threaded manner; When there are multiple local nets in the target net, computing threads for the multiple local nets are started in a multi-threaded manner.
12. The signal source determination method according to claim 11, characterized in that: The starting of the computing thread for the target network further includes: A net used to propagate a preset type of signal is determined as a global net, and other nets except the global net are determined as local nets.
13. The signal source determination method according to claim 11, characterized in that: When there are multiple local nets in the target net, starting computing threads for the multiple local nets in a multi-threaded manner includes: When there are multiple local nets in the target net and there is no global net whose traversal calculation is not completed in the target net, calculation threads for the multiple local nets are started in a multi-threaded manner.
14. The signal source determination method according to any one of claims 1 to 13, characterized in that: The traversing the wire nets of the integrated circuit design, mapping the associated wire nets corresponding to the target wire net obtained through the traversal to the representative wire net, and adding the signal source of the target wire net obtained through the traversal to the signal source set, comprises: Mapping the target net as the associated net to the representative net; For each of the associated nets mapped by the representative net, searching for lower-level instances step by step from the associated net toward the bottom layer of the integrated circuit design, mapping the nets connected to the associated nets in the lower-level instances as hierarchical nodes to the representative nets as the associated nets, and adding the output pins of the lower-level instances as leaf nodes as signal sources to the signal source set; For each associated net mapped to the representative net, if the associated net is located in the top-level module, the input pin of the top-level module is added to the signal source set as a signal source; otherwise, high-level modules are searched upward step by step from the associated net in the direction close to the top-level module, and the nets connected to the associated net in the found high-level modules are mapped to the representative net as the associated net.
15. The signal source determination method according to any one of claims 1 to 13, characterized in that: The adding the representative net to the attributes of the associated net corresponding to the target net includes: Locking the representative network obtained through traversal calculation; In the case of successful locking, adding the representative net to the attributes of the associated net corresponding to the target net; In the case of unsuccessful locking, the current thread is stopped, and the representative net is not added to the attributes of the associated net corresponding to the target net.
16. A signal source determination device for integrated circuit design, characterized in that: The signal source determination device comprises: A determination unit configured to determine a target net from among the nets of the integrated circuit design; A starting unit, configured to start a computing thread for the target network; A creating unit is configured to create a representative network and a signal source set associated with the representative network under the current thread, wherein the representative network is attribute information describing the physical routing to which the network belongs, and the signal source set is used to store the signal source corresponding to the representative network; A traversal unit is configured to traverse the nets of the integrated circuit design, map the associated nets corresponding to the target net obtained through the traversal to the representative net, and add the signal source of the target net obtained through the traversal to the signal source set, wherein the associated net is a net belonging to the same physical routing as the target net; an execution unit, configured to add the representative net to the attribute of the associated net corresponding to the target net, Among them, the traversal unit is also configured to, during the traversal process, if there is an associated line network with a processing flag, and the processing flag indicates that the traversal calculation of the corresponding line network has been performed by other threads, then stop the current thread or retain one of the current thread and the other threads; otherwise, configure the processing flag for at least one of the associated line networks.
17. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the signal source determination method according to any one of claims 1 to 15.
18. A computer device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the signal source determination method according to any one of claims 1 to 15.
19. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by at least one processor, the at least one processor is prompted to perform the signal source determination method according to any one of claims 1 to 15 .
Citation Information
Patent Citations
Method for displaying wireless network signal, and mobile terminal
CN108632470A
GPS tracking module detection method and device, electronic equipment and storage medium
CN111830537A
Positioning precision prediction method and device, and signal source layout determination method and device
CN114554395A
Data processing method and device for power state table, equipment and storage medium
CN117436401A
Pulse generation logic detection method and device, electronic equipment, storage medium and computer program product
CN118150991A
