Method, device, equipment, medium and product for querying designated path of netlist circuit
By traversing and matching path nodes in the netlist circuit, the problem of low query efficiency for specified paths in the circuit is solved, fast query and efficient design are achieved, and the efficiency of circuit design and detection is improved.
Patent Information
- Application Number
- CN202411063941.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-05
AI Technical Summary
In electronic design automation, the number of gate circuit nodes in the netlist circuit is huge, and it is difficult for the existing technology to efficiently query the designated path that meets the user's needs, resulting in low circuit design and detection efficiency.
Provides a designated path query method for netlist circuits. By responding to the path query command, the starting point, ending point and passing point are determined. Each branch is traversed from the starting point to generate a path node set, and based on the traversed nodes and Specify path matching and update the number of passing points until all branches are traversed and path matching results are generated.
It enables quick querying of specified paths that meet user needs from netlist circuits, improves circuit design and detection efficiency, occupies small memory resources, and does not consume a large amount of computing resources.
Smart Images

Figure CN118586328B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of integrated circuit design, and in particular, relates to a method, device, equipment, medium and product for querying a specified path of a netlist circuit. Background Art
[0002] Electronic design automation (EDA) refers to the use of computer-aided design software to complete the functional design, synthesis, verification, physical design (including layout, routing, layout, design rule checking, etc.) of VLSI (Very Large Scale Integration Circuit) chips.
[0003] In EDA software, circuit diagrams are usually used to represent the connection relationship of circuits. Graph traversal can be used to analyze the structure and characteristics of circuits, such as finding all paths in a circuit, calculating the impedance of a circuit, etc.
[0004] In the process of circuit analysis, users need to query the specified path, that is, specify the starting point and at least one passing point of the electrical signal, and determine all the routes from the starting point through all the passing points. However, the number of gate nodes in the netlist circuit is usually hundreds of millions, billions or even higher. Therefore, it is necessary to propose a path query method that can filter out all paths that meet user needs from the circuit. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment, medium and product for querying a specified path of a netlist circuit, which can solve the technical problem of querying and obtaining all user-specified paths from a circuit.
[0006] In a first aspect, an embodiment of the present application provides a method for querying a specified path of a netlist circuit, and the method may include:
[0007] In response to the path query instruction, determining at least one designated path; wherein the designated path includes a starting point, an end point, and at least one waypoint;
[0008] Traversing each branch of the netlist circuit from the starting point, generating a path node set of the specified path when the traversed branch contains all the passing points and the ending points of at least one specified path, and traversing the next branch from the starting point until all branches are traversed;
[0009] Generate path matching results based on the path node set of each specified path.
[0010] Optionally, in response to the path query instruction, determining at least one specified path includes:
[0011] In response to the path query instruction, obtaining the path traversal constraint condition input by the user;
[0012] Determine a starting point, an end point, and at least one set of waypoints according to the path traversal constraints;
[0013] A first point set corresponding to each specified path is generated according to the starting point, the ending point and each group of passing points; wherein the first point set includes all passing points and the ending point of the specified path.
[0014] Optionally, when the traversed branch contains all the waypoints and end points of at least one specified path, a path node set of the specified path is generated, including:
[0015] During the traversal process, the traversed nodes are matched with each specified path;
[0016] When the traversed node matches at least one specified path, the number of passing points corresponding to the matching specified path is counted and updated;
[0017] When the traversed node is a termination point and the number of passed points meets the first matching condition, a path node set of the specified path is generated.
[0018] Optionally, when the traversed node is a termination point and the number of passed points meets the first matching condition, a path node set of the specified path is generated, including:
[0019] When the traversed node is the end point, obtain the first point set and the number of passing points corresponding to the specified path;
[0020] Determine the number of point groups of the specified path according to the first point set; the number of point groups is the total number of passing points and end points;
[0021] When the number of points passed matches the number of point groups, continue traversing to the last node of the branch of the netlist circuit;
[0022] When the last node of the branch is traversed, backtrack to the starting point, obtain all the nodes passed from the end point to the starting point during the backtracking process, and generate a path node set for the specified path.
[0023] Optionally, the number of passing points corresponding to the matched specified path is counted and updated, including:
[0024] The number of passing points corresponding to the specified path is counted + 1; wherein the initial value of the number of passing points is 0, and the first matching condition is that the number of passing points is consistent with the total number of passing points and end points of the specified path;
[0025] Alternatively, the number of passing points corresponding to the specified path is counted -1; wherein the initial value of the number of passing points is the total number of passing points and end points of the specified path, and the first matching condition is that the number of passing points is 0.
[0026] Optionally, the traversed nodes are matched against various specified paths, including:
[0027] Match the traversed nodes with the first point set corresponding to each specified path;
[0028] In the case where at least one first point set matches the traversed node, a corresponding designated path is determined according to the matched first point set.
[0029] Optionally, all nodes passed from the end point to the start point during the backtracking process are obtained to generate a path node set of the specified path, including:
[0030] During the backtracking process, starting from the end point, the backtracked nodes are stored in the path result container until the backtracking reaches the starting point.
[0031] Optionally, during the traversal process, after matching the traversed nodes with the respective specified paths, the following steps are further included:
[0032] When the last node of a branch is traversed and the branch does not contain a termination point, the number of passing points corresponding to the specified path is initialized.
[0033] Optionally, the first point set corresponding to each designated path is stored in a first container, and each mapping data in the first container includes an identifier of the designated path and the first point set corresponding to the designated path;
[0034] The number of passing points corresponding to each designated path is stored in the second container, and each mapping data in the second container includes the number of the traversed branch, the number of passing points and the identifier of the designated path.
[0035] Optionally, the method of traversing each branch of the netlist circuit from the starting point is depth-first traversal.
[0036] In a second aspect, an embodiment of the present application provides a designated path query device for a netlist circuit, comprising:
[0037] A path determination module, configured to determine at least one designated path in response to a path query instruction; wherein the designated path includes a starting point, an ending point, and at least one waypoint, and the starting point and the ending point of any two designated paths are the same;
[0038] A traversal module is used to traverse each branch of the netlist circuit from the starting point, and when the traversed branch contains all the passing points and the ending points of at least one specified path, generate a path node set of the specified path, and traverse the next branch from the starting point until all branches are traversed;
[0039] The result generation module is used to generate a path matching result according to the path node set of each specified path.
[0040] In a third aspect, an embodiment of the present application provides a designated path query device for a netlist circuit, the designated path query device for a netlist circuit comprising:
[0041] a processor and a memory storing computer program instructions;
[0042] When the processor executes the computer program instructions, the steps of the method for searching the specified path of the netlist circuit in the above aspect are implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method for specifying a path query of a netlist circuit in the above aspect.
[0044] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the instructions in the computer program product are executed by a processor, the steps of the method for querying a specified path of a netlist circuit in the above aspect are implemented.
[0045] The designated path query method, device, equipment, medium and product of the netlist circuit of the embodiment of the present application can determine at least one designated path specified by the user and determine the starting point, end point and passing point of the designated path by responding to the path query instruction triggered by the user. Determine the starting point from the netlist circuit, and traverse each branch from the starting point. During the traversal process, if a branch contains all the passing points and end points of at least one designated path, a path node set of the designated path is generated, and the next branch is traversed until all branches are traversed, and a path matching result is generated based on all the obtained path node sets. The present application can query the designated path that meets the user's needs from the netlist circuit, which helps to analyze the structure and characteristics of the circuit according to the query results, and improve the circuit design efficiency and detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0047] Figure 1 It is a flowchart of a method for querying a specified path of a netlist circuit provided in an embodiment of the present application;
[0048] Figure 2 is a flow chart of a method for querying a specified path of a netlist circuit provided by another embodiment of the present application;
[0049] Figure 3 It is a flowchart of a method for querying a specified path of a netlist circuit provided by another embodiment of the present application;
[0050] Figure 4 is a flowchart of a method for querying a specified path of a netlist circuit provided in yet another embodiment of the present application;
[0051] Figure 5 It is a partial structural schematic diagram of a netlist circuit provided in one embodiment of the present application;
[0052] Figure 6 It is a structural schematic diagram of a designated path query device for a netlist circuit provided in an embodiment of the present application;
[0053] Figure 7 It is a structural diagram of a designated path query device for a netlist circuit provided in one embodiment of the present application. DETAILED DESCRIPTION
[0054] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0055] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0056] Electronic design automation (EDA) refers to the use of computer-aided design software to complete the functional design, synthesis, verification, physical design (including layout, routing, layout, design rule checking, etc.) of very large scale integrated circuit (VLSI) chips.
[0057] In EDA software, circuit diagrams are usually used to represent the connection relationship of circuits. Graph traversal can be used to analyze the structure and characteristics of circuits, such as finding all paths in a circuit, calculating the impedance of a circuit, etc.
[0058] In the process of circuit analysis, users need to query the specified path, that is, specify the starting point and at least one passing point of the electrical signal, and determine all the routes from the starting point through all the passing points. However, the number of gate nodes in the netlist circuit is usually hundreds of millions, billions or even higher. Therefore, it is necessary to propose a method for querying user-specified paths, which can filter out all paths that meet user needs from the netlist circuit.
[0059] In order to solve at least one of the above technical problems, the embodiments of the present application provide a method, device, equipment, medium and product for querying a specified path of a netlist circuit. The following first introduces the method for querying a specified path of a netlist circuit provided by the embodiments of the present application.
[0060] Figure 1 A schematic flow chart of a method for querying a specified path of a netlist circuit provided by an embodiment of the present application is shown. The method may include the following steps:
[0061] S110, in response to the path query instruction, determining at least one designated path; wherein the designated path includes a starting point, an end point, and at least one waypoint;
[0062] S120, traversing each branch of the netlist circuit from the starting point, generating a path node set of the specified path when the traversed branch contains all the passing points and the ending points of at least one specified path, and traversing the next branch from the starting point until all branches are traversed;
[0063] S130, generating a path matching result according to the path node set of each specified path.
[0064] In this embodiment, by responding to the path query instruction triggered by the user, at least one specified path specified by the user can be determined, and the starting point, end point and passing point of the specified path can be determined. The starting point is determined from the netlist circuit, and each branch is traversed from the starting point. During the traversal process, if a branch contains all the passing points and end points of at least one specified path, a path node set of the specified path is generated, and the next branch is traversed until all branches are traversed, and a path matching result is generated based on all the obtained path node sets. This embodiment can quickly query the specified path that meets the user's needs from the netlist circuit, and occupies less memory resources and does not consume a large amount of computing resources. It is helpful to analyze the structure and characteristics of the circuit according to the query results, and improve the circuit design efficiency and detection efficiency.
[0065] The specific implementation methods of the above steps are introduced below.
[0066] In the process of circuit design, it is necessary to analyze the top-level input pin of the netlist circuit, transmit the electrical signal information to each node in each layer of the circuit along the signal propagation direction, and complete the calculation and propagation of the signal through a series of logical operations to achieve the specified function. In the process of signal propagation, a large number of gate circuits will be passed along the signal propagation direction. Therefore, in the analysis process, it is inevitable to traverse hundreds of millions or even more gate circuits in the netlist circuit, thereby consuming a lot of running time and computing resources. The above analysis process is not only applied to the circuit visualization algorithm, but also to the cross-clock domain detection algorithm. In the circuit visualization algorithm, the EDA software needs to be able to show the user the signal path containing the above nodes based on the user-specified starting point, end point and passing point; in the cross-clock domain detection algorithm, the EDA software needs to determine the user-specified cross-clock domain path or determine the user-excluded cross-clock domain specified path based on the user's command, so as to reduce the detection time and improve the detection efficiency in the subsequent detection process. It can be seen that in the circuit analysis process, the EDA software needs to be able to query all the specified paths that meet the conditions from the netlist circuit based on the conditions provided by the user.
[0067] In S110, the user may input a corresponding path query instruction to the EDA software, and the EDA software may respond to the path query instruction and determine at least one designated path designated by the user.
[0068] In a single path query instruction, the user can specify one or more specified paths. Each specified path specified by the user needs to include a starting point, an end point, and at least one waypoint. When the user specifies multiple specified paths through a single path query instruction, the starting point, end point, and waypoints of each specified path can be the same or different.
[0069] Please refer to Figure 2 In some embodiments, the above S110 may include:
[0070] S210, in response to the path query instruction, obtaining a path traversal constraint condition input by a user;
[0071] S220, determining a starting point, an end point, and at least one set of waypoints according to the path traversal constraint conditions;
[0072] S230, generating a first point set corresponding to each designated path according to the starting point, the ending point and each group of passing points; wherein the first point set includes all passing points and the ending point of the designated path.
[0073] In this embodiment, the user may input a path traversal constraint condition, including a starting point, an end point, and at least one set of waypoints specified by the user. Each set of waypoints may form a specified path with the starting point and the end point, and according to one or more specified paths specified by the user, a first point set corresponding to each specified path including all waypoints and the end point may be determined.
[0074] In S210 , the user may input corresponding path traversal constraints through a path query instruction, and the EDA software may determine the path traversal constraints input by the user according to the path query instruction.
[0075] In S220, after the path traversal constraint conditions are obtained, a starting point, an end point, and at least one set of waypoints may be determined therefrom.
[0076] In S230, when the path traversal constraint condition corresponds to a group of waypoints, the starting point, the end point and the group of waypoints constitute a specified path, and a first point set corresponding to the specified path can be generated. The first point set includes the group of waypoints and the end point.
[0077] When the path traversal constraint corresponds to multiple sets of waypoints, it means that the user has specified multiple specified paths, and each specified path includes a starting point, an end point, and a corresponding set of waypoints. According to the nodes included in each specified path, the first point set corresponding to each specified path can be determined. That is, the first point set corresponding to each specified path includes a set of waypoints and an end point corresponding to the specified path.
[0078] In the above embodiment, the user can specify one or more specified paths by inputting the path traversal constraint condition. When the user specifies multiple specified paths, the starting point and the end point of the multiple specified paths can be the same. In addition to the starting point and the end point, each specified path also includes a corresponding set of waypoints.
[0079] It should be noted that, in order to avoid the existence of two identical designated paths in the multiple designated paths specified by the user, there should be differences between any two sets of waypoints. That is, in any two sets of waypoints, the number of waypoints in the two sets may be different, or the number of waypoints in the two sets may be the same but have different waypoints.
[0080] In S120, after determining the starting point of the designated path, the pin node corresponding to the starting point can be determined from the netlist circuit, and starting from the starting point, each branch of the netlist circuit is traversed along the propagation direction of the electrical signal.
[0081] In the process of traversing one of the branches, if the traversed branch contains all the waypoints and end points of at least one specified path, it can be determined that the traversed branch contains all the nodes of the specified path. At this time, a path node set of the specified path can be generated.
[0082] It should be noted that the path node set of the above-mentioned specified path refers to the set of all nodes passed through in the path from the starting point to the end point in the branch of the netlist circuit. For example, taking a specified path specified by the user containing 3 passing points as an example, if a branch traversed contains the starting point, the end point and all 3 passing points of the specified path, and the path from the starting point to the end point in the branch contains 100 nodes, the path node set corresponding to the specified path finally generated is the set of all 100 nodes from the starting point to the end point.
[0083] Please refer to Figure 3 In some embodiments, the above S120 may include:
[0084] S310, during the traversal process, matching the traversed nodes with each designated path;
[0085] S320, when the traversed node matches at least one specified path, counting and updating the number of passing points corresponding to the matched specified path;
[0086] S330: When the traversed node is a termination point and the number of passed points meets the first matching condition, a path node set of the specified path is generated.
[0087] In this embodiment, the traversed nodes can be matched with each designated path during the traversal process. If the node matches at least one designated path, the number of passing points corresponding to the matched designated path can be counted and updated. When the traversed node is the end point, it can be determined whether the number of passing points meets the first matching condition. If it meets the first matching condition, it means that all nodes of the designated path are passed during the traversal of the branch, that is, the branch contains the designated path, and the path node set of the designated path can be generated at this time.
[0088] In S310 , in the process of traversing each branch of the netlist circuit starting from the starting point, the process of traversing a certain branch starting from the starting point is taken as an example for description.
[0089] When traversing a branch from the starting point, each time a node is traversed, the traversed node can be matched with each specified path specified by the user. That is, it is determined whether the current traversed node is a passing point or an ending point in a specified path. If the traversed node matches a specified path, it means that the node is a passing point or an ending point on the matching specified path.
[0090] In some embodiments, the above S310 may include:
[0091] S410, matching the traversed nodes with the first point sets corresponding to each specified path;
[0092] S420: When at least one first point set matches the traversed node, determine a corresponding designated path according to the matched first point set.
[0093] In this embodiment, matching the node with the specified path may be matching the node with the first point set corresponding to the specified path, and determining whether the traversed node exists in the first point set. If the traversed node exists in the first point set, the first point set matches the traversed node, and the specified path matching the node can be determined based on the matched first point set.
[0094] In S410, a specific method of matching the traversed nodes with each designated path may be, after determining the first point set corresponding to each designated path, matching the traversed nodes with the first point set corresponding to each designated path.
[0095] Since the first point set corresponding to each specified path includes all the passing points and the end points of the specified path, if the traversed node matches a certain first point set, it can be determined that the node matches the specified path corresponding to the first point set.
[0096] In S420, if at least one of the multiple first point sets matches the traversed node, one or more first point sets matching the node can be determined, and the specified paths corresponding to the matched first point sets can be determined. For example, if a traversed node matches three first point sets, it can be determined that the node matches three specified paths corresponding to the three first point sets.
[0097] In S320, when it is determined that the traversed node matches at least one designated path, the number of passing points corresponding to the matching designated path may be counted and updated.
[0098] When traversing a branch from a starting point, the number of passing points corresponding to all specified paths can be initialized.
[0099] During the traversal of the branch, if a node matches a specified path, the number of passing points corresponding to the matching specified path can be counted and updated. For example, when the initialization value of the number of passing points is 0, the number of passing points corresponding to the matching specified path can be updated to 1.
[0100] After completing the count update of the number of passing points, you can continue to traverse along the branch. During the traversal process, if a node is traversed and matches two specified paths. When the number of passing points corresponding to one specified path is 1 and the number of passing points corresponding to the other specified path is 0, the number of passing points corresponding to the two matching specified paths can be updated to 2 and 1 respectively. That is, in the process of traversing the branch, each time a node matching a specified path is traversed, the number of passing points corresponding to the matching specified path can be updated. Among them, the specified path matching a single node can be one or more.
[0101] In some embodiments, the above S320 may include:
[0102] S510, count the number of passing points corresponding to the specified path + 1; wherein the initial value of the number of passing points is 0, and the first matching condition is that the number of passing points is consistent with the total number of passing points and end points of the specified path; or,
[0103] S520, count -1 the number of passing points corresponding to the specified path; wherein the initial value of the number of passing points is the total number of passing points and end points of the specified path, and the first matching condition is that the number of passing points is 0.
[0104] In this embodiment, when the initial value of the number of passing points is 0, a count + 1 operation can be used, and when the number of passing points increases to the same as the total number of the passing points and the end points, it is determined that the first matching condition is met. Correspondingly, when the initial value of the number of passing points is the total number of the passing points and the end points, a count - 1 operation can be used, and when the number of passing points decreases to 0, it is determined that the first matching condition is met.
[0105] In S510, before traversing a branch from the starting point, the number of passing points of each designated path can be initialized so that the initial value of the number of passing points is 0. In the process of traversing the branch from the starting point, whenever a node is traversed that matches a designated path, the number of passing points corresponding to the designated path is counted +1.
[0106] It should be noted that if a traversed node matches multiple specified paths at the same time, it is necessary to count the number of passing points corresponding to each specified path by +1.
[0107] The first matching condition associated with the number of passing points is that the number of passing points is consistent with the total number of passing points and end points of the specified path. That is, when the number of passing points reaches the total number of passing points and end points through continuous counting +1 operations, the first matching condition is considered to be satisfied.
[0108] In S520, before traversing a branch road from the starting point, the number of passing points of each designated path can be initialized so that the initial value of the number of passing points is the total number of passing points and end points of the designated path. For example, if the number of passing points of a designated path is 3, the total number of passing points and end points is 4, and the initial value of the number of passing points of the designated path can be set to 4.
[0109] In the process of traversing the branch from the starting point, whenever a node is traversed and matches a specified path, the number of passing points corresponding to the specified path is counted by -1.
[0110] When the initial value of the number of passing points is the total number of passing points and the end point of the specified path, the first matching condition associated with the number of passing points is that the number of passing points is 0. That is, when the number of passing points reaches 0 through continuous counting -1 operations, the first matching condition is considered to be satisfied.
[0111] In S330, during the traversal of a branch, if the traversed node is the end point of the specified path, and the number of passing points of the specified path meets the first matching condition, it can be determined that the branch contains all the passing points and end points in the specified path, and a path node set of the specified path is generated.
[0112] Please refer to Figure 4 In some embodiments, the above S330 may include:
[0113] S610, when the traversed node is a terminal point, obtaining a first point set and the number of passing points corresponding to the specified path;
[0114] S620, determining the number of point groups of the specified path according to the first point set; the number of point groups is the total number of passing points and end points;
[0115] S630, when the number of the passed points matches the number of the point groups, continue traversing to the last node of the branch of the netlist circuit;
[0116] S640, when the last node of the branch is traversed, backtrack to the starting point, obtain all the nodes passed from the end point to the starting point during the backtracking process, and generate a path node set of the specified path.
[0117] In this embodiment, when traversing to the end point of the specified path, the number of points passed by the current corresponding specified path and the number of point groups in the first point set can be determined. If the two are consistent, it means that the branch contains the specified path, and all the nodes passed from the end point to the starting point can be obtained in the subsequent backtracking process to generate the path node set of the specified path.
[0118] In S610, when traversing a certain node on a branch road, if the traversed node is the end point of a specified path, the first point set and the number of passing points corresponding to the specified path may be obtained.
[0119] It should be noted that when multiple specified paths have the same starting point and ending point, if a traversed node is also the ending point of multiple specified paths, the first point set corresponding to the multiple specified paths and the number of passing points corresponding to the multiple specified paths can be obtained respectively.
[0120] In S620, when the node is the end point of multiple designated paths, one of the designated paths is taken as an example for description below.
[0121] After determining the designated path corresponding to the end point, the number of point groups of the designated path can be determined based on the first point set corresponding to the designated path. The number of point groups is the total number of passing points and end points of the designated path, that is, the number of nodes of the first point set corresponding to the designated path.
[0122] In S630, after determining the number of point groups of the specified path, the number of points currently passed by the specified path can be matched with the number of point groups. If the number of passed points is consistent with the number of point groups, it means that the node traversed at this time is the end point of the specified path, and the route traversed from the starting point to the node contains all the passing points of the specified path.
[0123] At this time, if the traversed node is not the last node of the branch in the netlist circuit, the traversal can continue until the last node of the branch is traversed.
[0124] In S640, when traversing to the last node in the branch, you can start backtracking from the last node to the starting point, and obtain all the nodes passed from the end point of the specified path to the starting point during the backtracking process, and generate a path node set for the specified path based on all the nodes passed from the end point to the starting point.
[0125] When the end point is the end point of multiple specified paths, it can be determined whether the number of passing points of each specified path matches the number of point groups of the specified path. For the specified paths whose number of passing points matches the number of point groups, the corresponding path node set can be generated.
[0126] Take the traversed node as the end point of the three specified paths as an example. At this time, we can determine whether the current number of passing points of the three specified paths matches the number of point groups of the specified paths. If the number of passing points of two specified paths matches the number of point groups, it means that the branch only contains the routes of the two specified paths. Since the starting point and the end point of the two specified paths are the same, the two specified paths have the same set of path nodes.
[0127] In another optional implementation, different from the above-mentioned embodiment, when the traversed node is the end point and the number of points passed matches the number of point groups, the traversal will no longer continue to the last node of the branch, but will immediately backtrack to the starting point and generate a path node set for the specified path based on all the nodes passed from the end point to the starting point.
[0128] In some embodiments, the above-mentioned obtaining all nodes passed from the end point to the start point in the backtracking process to generate a path node set of the specified path may include:
[0129] During the backtracking process, starting from the end point, the backtracked nodes are stored in the path result container until the backtracking reaches the starting point.
[0130] In this embodiment, in the backtracking process after traversing a branch, starting from the end point, each node backtracked to can be stored in the path result container until backtracking to the starting point. At this time, the path result container stores all the nodes on the backtracking route from the end point to the starting point.
[0131] It should be noted that after backtracking to the starting point, the next branch can be traversed from the starting point. If the backtracking start condition is met during the traversal of the next branch, all nodes on the backtracking route from the end point to the starting point can be stored in the path result container during the backtracking of the next branch. That is, in the process of traversing each branch, whenever the traversed branch contains all the nodes of at least one specified path, all nodes on the route from the end point to the starting point in the branch can be stored in the path result container.
[0132] In some embodiments, after the above S310, the following steps may also be included:
[0133] S710, when the last node of the branch is traversed and the branch does not include a termination point, the number of passing points corresponding to the specified path is initialized.
[0134] In this embodiment, when traversing a branch, if the last node of the branch is traversed and the branch does not contain the end point of the specified path, it can be determined that the branch does not contain any specified path. At this time, the number of passing points corresponding to each specified path can be initialized, and the next branch can be traversed from the starting point. In the process of traversing the next branch, the number of passing points of each specified path can be counted and updated starting from the initial value.
[0135] In the above embodiment, the first point set corresponding to each specified path is stored in a first container, and each mapping data in the first container includes the identifier of the specified path and the first point set corresponding to the specified path; the number of passing points corresponding to each specified path is stored in a second container, and each mapping data in the second container includes the number of the traversed branch, the number of passing points and the identifier of the specified path.
[0136] In some embodiments, each branch of the netlist circuit is traversed from the starting point in a depth-first traversal manner. In the depth-first traversal manner, each branch can be traversed from the starting point, and after traversing the last node of the branch, the next branch is traversed until all branches are traversed.
[0137] In S130, in the process of traversing each branch of the netlist circuit from the starting point, if a certain branch traversed contains all the passing points and the ending points of at least one specified path, a path node set of the specified path can be generated. After traversing all branches, the final path matching result can be generated according to the path node set of each specified path.
[0138] It should be noted that when the user specifies multiple specified paths, the number of path node sets corresponding to each specified path may not be equal. For example, the user specifies 3 specified paths, the path node set corresponding to the first specified path is 3, the path node set corresponding to the second specified path is 1, and the path node set corresponding to the third specified path is 0. At this time, the final path matching result can be generated based on the total of 4 path node sets corresponding to the above multiple specified paths.
[0139] As an optional implementation, Figure 5 The above implementation mode is specifically described by taking the partial schematic diagram of the netlist circuit shown in FIG. Figure 5 Here, input indicates that the node is a top-level input pin, and output indicates that the node is a bottom-level output pin.
[0140] The user may trigger the path query instruction by inputting a command including path traversal constraints. The path traversal constraints input by the user may include the starting point, the ending point, and the passing point of one or more specified paths specified by the user.
[0141] In an exemplary implementation, a user may enter the command:
[0142] set_false_path -from [get_ports p2] -to [get_port p31]-through{([get_pins i8 / p8]&&[get_pins i6 / p4]) || [get_pins i4 / p10]&&[get_pins i5 / p19])};
[0143] Among them, the above command indicates that the path traversal constraints input by the user include: the starting point is pin p2, and the ending point is pin p31; there are two groups of waypoints, one group of waypoints is pins i8 / p8 and pins i6 / p4, indicating that the two waypoints are pin p8 in instance i8 and pin p4 in instance i6; the other group of waypoints is pins i4 / p10 and pins i5 / p19, indicating that the two waypoints are pin p10 in instance i4 and pin p19 in instance i5.
[0144] After determining the two designated paths corresponding to the two groups of waypoints, the first point sets corresponding to the two designated paths can be stored in the first container. In an optional implementation, the data content stored in the first container can be as shown in the following Table 1, which can be a mapping relationship table between the point group ID and the first point set:
[0145]
[0146] Table 1
[0147] Each mapping data in the first container may correspond to a specified path, and each mapping data may include the identifier of the corresponding specified path and the nodes included in the first point set corresponding to the specified path. For example, the identifier of the specified path may be a point group ID, and the nodes included in the first point set may include a group of passing points and an end point corresponding to the specified path. That is, the point group ID in the first mapping data may be 1, and the corresponding first point set may include pins i8 / p8, pins i6 / p4, and p31; the point group ID in the second mapping data may be 2, and the corresponding first point set may include pins i4 / p10, pins i5 / p19, and p31. The mapping relationship shown in Table 1 above is an optional data structure of the mapping data stored in the first container. The mapping data in the first container may also be other types of data structures such as sets and tree structures, which are not limited here.
[0148] It should be noted that in EDA software, if there is a pin, it can be marked as p8, that is, the pin name is directly marked; it can also be marked as i8 / p8, that is, the instance name to which it belongs is marked in front of the pin name. That is, the first point set can also be p8, p4 and p31, and the second point set can also be p10, p19 and p31.
[0149] After determining one or more designated paths according to the path query instruction and generating a plurality of mapping data corresponding to the plurality of designated paths in the first container, the plurality of mapping data stored in the first container may remain unchanged during the query process of the designated path.
[0150] In the process of traversing the first branch from the starting point, taking the depth-first traversal DFS as an example, starting from the starting point P2, traversing through nodes P5, P7 and P4 in sequence. When traversing to node P5, it can be matched with the first point set in each mapping data in the first container. Since the first point set corresponding to all specified paths does not contain node P5, the traversal can continue to the next node. Similarly, since the first point set corresponding to all specified paths does not contain node P7, the traversal can continue to the next node.
[0151] When traversing to the node P4, since there is a first point set in the first container including pins i6 / p4, the node P4 matches the specified path corresponding to the first point set.
[0152] When it is determined that the node P4 matches a first point set in the first container, it can be determined that the designated path corresponding to the first point set is the designated path matching the node P4, and the number of passing points of the designated path is counted and updated.
[0153] As an optional implementation, a method for counting and updating the number of passing points of a specified path may be to establish a second container, and each time a branch is traversed, generate mapping data corresponding to the branch in the second container, and the mapping data may include the number of the traversed branch, the identifier of the specified path, and the corresponding number of passing points.
[0154] Taking traversing the first branch from the starting point as an example, at this time, mapping data corresponding to the first branch is generated in the second container, and the mapping data includes the branch number, the identifier of the specified path, and the number of passing points corresponding to the specified path.
[0155] Before starting the traversal, the data in the second container may be as shown in Table 2 below. Table 2 may be a mapping table of branch numbers, the number of passing points, and point group IDs:
[0156]
[0157] Table 2
[0158] The branch number may be 1, the identifier of the specified path may be the point group ID of the specified path stored in the first container, and the initial value of the number of passing points corresponding to the specified path is 0.
[0159] In the above embodiment, when it is determined that the node P4 matches the first point set with the point group ID of 1 in the first container, the value of the number of passing points in the mapping data with the point group ID of 1 in the second container can be updated from 0 to 1. At this time, the data in the second container is updated as shown in the following Table 3, which is a mapping relationship correspondence table after the number of passing points in Table 2 is updated:
[0160]
[0161] Table 3
[0162] At this time, the number of passing points can be matched with the number of point groups of the specified path. Since the number of passing points is 1 and the number of point groups is 3, the number of passing points does not match the number of point groups, and the traversal can continue to the next node of the branch.
[0163] When traversing the next node P6, since the first point set corresponding to all the specified paths does not include the node P6, the traversal can continue to the next node. When traversing to the node P8, the value of the number of passing points corresponding to the identifier 1 of the specified path in the second container can be updated from 1 to 2. At this time, the data in the second container is updated as shown in the following Table 4, which is a mapping relationship table after the number of passing points in Table 3 is updated:
[0164]
[0165] Table 4
[0166] At this time, the number of passing points is 2, which still does not match the number of point groups. The nodes of the branch can continue to be traversed until the node P31 is traversed. The data in the second container is updated as shown in the following Table 5, which is a mapping relationship table after the number of passing points in Table 4 is updated:
[0167]
[0168] Table 5
[0169] At this time, the number of points passed is updated to 3, which matches the number of point groups with ID 1 in the first container, and the node P31 is the end point of the specified path. At this time, it can be determined that the current branch contains all the nodes in the first point set with ID 1, that is, the branch contains pins i8 / p8, pins i6 / p4 and p31.
[0170] In the above implementation, the number of passed points may be matched with the number of point groups each time the number of passed points is updated; or the number of passed points may be matched with the number of point groups when the end point of the specified path is traversed.
[0171] When traversing to the end point P31, and the number of points passed by the specified path in the second container matches the number of point groups, you can continue to traverse to the last node of the branch and then backtrack, or you can directly backtrack from the end point.
[0172] In the backtracking process, each node passed from the end point to the start point can be obtained in sequence, and the multiple nodes passed can be stored in the third container in sequence to generate a path node set that satisfies the specified path. The third container is the path result container in the above embodiment.
[0173] In the process of continuously traversing each branch, whenever a branch that satisfies a specified path is found, all nodes in the branch from the end point to the starting point of the specified path can be stored in the third container to form a path node set. After traversing all branches, the multiple path node sets in the third container can be organized into the final path matching result.
[0174] Each mapping data in the third container may include a peer group ID and a path node set corresponding to the specified path. The data in the third container may be as shown in Table 6 below, which may be a mapping relationship table between a peer group ID and a path node set corresponding to a specified path generated after traversing a branch satisfying the specified path:
[0175]
[0176] Table 6
[0177] by Figure 5 For example, after traversing to node P12, the next node of the branch is P32. Since P32 does not match any of the first point sets, you can continue to traverse to the last node P35 of the branch. When traversing to the last node P35 of the branch, since the end point P31 of the specified path has not been traversed at this time, you can use the backtracking step in the depth-first traversal algorithm to backtrack to node P12, and continue to traverse to node P26 until you traverse to node P31, and determine that node P31 is the end point of the specified path.
[0178] It should be noted that during the backtracking process of the traversal, when tracing back from node P35 to node P12, no waypoints of the specified path are passed, so the number of passing points does not need to be updated. If the waypoints of the specified path are passed during the backtracking process, the number of passing points needs to be backtracked to avoid the number of passing points being inconsistent with the actual traversal route.
[0179] Please continue to refer to Figure 5 In an optional implementation, the second branch is traversed from the starting point P2, and the nodes traversed are P9, P13, P17, P18, P22, and P25 in order. None of the above nodes matches any of the first point sets, so the number of passing points in the mapping data of the branch numbered 2 in the second container is not updated. When the traversal continues to the node P31, since the end point of the specified path is reached, the number of point groups needs to be matched with the number of passing points. Since the number of passing points is 1, the number of point groups corresponding to each specified path does not match, so the branch does not meet the requirements.
[0180] After determining that the second branch does not meet the requirements, the traversal of the third branch can be continued, and so on, until the traversal process of all branches is completed.
[0181] In the process of traversing the third branch, the traversed nodes are P10, P14, P19, P23, and P31. When traversing to nodes P10, P19, and P31, since the first point set pins i4 / p10, pins i5 / p19, and p31 corresponding to the point group ID 2 are matched, the number of passing points can be counted and updated. When traversing to node P31, the data in the second container is updated as shown in Table 7 below. Table 7 is a mapping relationship correspondence table after the number of passing points of branch 2 is updated:
[0182]
[0183] Table 7
[0184] At this time, the number of passing points is 3, which is consistent with the number of point groups with point group ID 2 in the first container, and P31 is the end point of the specified path. It can be determined that the third branch meets the requirements, and in the backtracking process, all nodes passed from the end point to the starting point are stored in the third container to form a path node set.
[0185] After traversing all branches, if only two branches meet the requirements, two path node sets are stored in the third container, namely P2, P5, P7, P4, P6, P8, P26, P31 and P2, P10, P14, P19, P23, P31. The data in the third container can be as shown in Table 8 below, which can be a mapping table of the point group ID corresponding to the specified path generated after traversing all branches and the path node set:
[0186]
[0187] Table 8
[0188] At this point, the final path matching result can be generated based on the two path node sets and displayed or output to the user.
[0189] The data structures listed in Tables 2 to 8 are optional data structures for data stored in the second container and the third container. Similar to the first container, the data stored in the second container and the third container may also be other types of data structures such as sets and tree structures, which are not limited here.
[0190] The above embodiment only exemplifies the query method of multiple designated paths with the same starting point and ending point.
[0191] As an optional implementation, when the starting points of multiple designated paths are the same but the ending points are different, the above implementation can determine whether the node is the ending point of a designated path when traversing to each node, and if it is the ending point of a designated path, determine whether the first matching condition of the designated path is met at this time. Regardless of whether it is met, it is necessary to continue traversing the next node of the branch, and when traversing to the ending point of another designated path, continue to determine whether the first matching condition of another designated path is met, until the last node of the branch is traversed.
[0192] As another optional implementation, when the starting points and the ending points of the multiple designated paths are different, the multiple designated paths can be divided according to the starting points. For example, when 10 designated paths correspond to 8 different starting points, each branch of the netlist circuit can be traversed from each starting point, and after completing the traversal of all branches of a starting point, continue to traverse the branches of the next starting point until the traversal process of all starting points is completed.
[0193] Based on the same inventive concept, the present application also provides a device for querying a specified path of a specified netlist circuit. Figure 6 Provide detailed explanation.
[0194] Figure 6 It is a structural diagram of a designated path query device 1400 of a designated netlist circuit of a netlist circuit provided in an embodiment of the present application.
[0195] like Figure 6 As shown, the designated path query device 1400 of the designated netlist circuit of the netlist circuit may include:
[0196] The path determination module 1401 is used to determine at least one designated path in response to the path query instruction; wherein the designated path includes a starting point, an ending point and at least one waypoint, and the starting point and the ending point of any two designated paths are the same;
[0197] The traversal module 1402 is used to traverse each branch of the netlist circuit from the starting point, and when the traversed branch contains all the passing points and the ending points of at least one specified path, generate a path node set of the specified path, and traverse the next branch from the starting point until all branches are traversed;
[0198] The result generating module 1403 is used to generate a path matching result according to the path node set of each specified path.
[0199] The following is a detailed description of the designated path query device 1400 of the designated netlist circuit of the above netlist circuit, which is specifically as follows:
[0200] In some embodiments, the path determination module 1401 may include:
[0201] A constraint condition determination unit, used to obtain a path traversal constraint condition input by a user in response to a path query instruction;
[0202] A path determination unit is specified, which is used to determine a starting point, an end point and at least one set of waypoints according to the path traversal constraint conditions;
[0203] The first point set determination unit is used to generate a first point set corresponding to each specified path according to the starting point, the ending point and each group of passing points; wherein the first point set includes all passing points and the ending point of the specified path.
[0204] In some embodiments, the traversal module 1402 may include:
[0205] A matching unit is used to match the traversed nodes with each specified path during the traversal process;
[0206] A counting update unit, used for counting and updating the number of passing points corresponding to the matched specified path when the traversed node matches at least one specified path;
[0207] The set generation unit is used to generate a path node set of the specified path when the traversed node is a terminal point and the number of passed points meets the first matching condition.
[0208] In some embodiments, the above-mentioned set generation unit may include:
[0209] The end point acquisition subunit is used to obtain the first point set and the number of passing points corresponding to the specified path when the traversed node is the end point;
[0210] The point group acquisition subunit is used to determine the number of point groups of the specified path according to the first point set; the number of point groups is the total number of passing points and end points;
[0211] A traversal subunit is used to continue traversing to the last node of the branch of the netlist circuit when the number of the passed points matches the number of the point groups;
[0212] The backtracking subunit is used to backtrack to the starting point when traversing to the last node of the branch, obtain all the nodes passed from the end point to the starting point during the backtracking process, and generate a path node set of the specified path.
[0213] In some embodiments, the counting update unit may include:
[0214] The first counting subunit is used to count the number of passing points corresponding to the specified path + 1; wherein the initial value of the number of passing points is 0, and the first matching condition is that the number of passing points is consistent with the total number of passing points and end points of the specified path; or,
[0215] The second counting subunit is used to count -1 the number of passing points corresponding to the specified path; wherein the initial value of the number of passing points is the total number of passing points and end points of the specified path, and the first matching condition is that the number of passing points is 0.
[0216] In some embodiments, the matching unit may include:
[0217] A point set matching subunit, used for matching the traversed nodes with the first point sets corresponding to each specified path;
[0218] The path matching subunit is used to determine the corresponding designated path according to the matched first point set when at least one first point set matches the traversed node.
[0219] In some embodiments, the backtracking subunit may include:
[0220] The backtracking storage subunit, during the backtracking process, starts from the end point and stores the backtracked nodes into the path result container until backtracking to the starting point.
[0221] In some embodiments, the traversal module 1402 may further include:
[0222] The initialization unit is used to initialize the number of passing points corresponding to the specified path when the last node of the branch is traversed and the branch does not contain a terminal point.
[0223] Figure 7 The hardware structure diagram of the designated path query device of the netlist circuit provided in the embodiment of the present application is shown. The designated path query device of the netlist circuit can be at least one of a computer, a server and a document generation dedicated device. The designated path query device of the netlist circuit includes a processor 1501 and a memory 1502 storing computer program instructions.
[0224] Specifically, the processor 1501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0225] Memory 1502 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 1502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1502 may include a removable or non-removable (or fixed) medium. Where appropriate, memory 1502 may be inside or outside a designated path query device for a netlist circuit. In a particular embodiment, memory 1502 is a non-volatile solid-state memory.
[0226] The memory 1502 may include a read-only memory (ROM), a flash memory device, a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory 1502 includes a tangible (non-transitory) computer-readable storage medium (e.g., a memory device) of one or more software that may be encoded with computer-executable instructions and that, when executed (e.g., by one or more processors), is operable to perform the operations described with reference to the methods according to the above aspects of the present disclosure.
[0227] The processor 1501 reads and executes the computer program instructions stored in the memory 1502 to implement any one of the methods for querying a specified path of a netlist circuit in the above embodiments.
[0228] In one example, the designated path query device of the netlist circuit may further include a communication interface 1503 and a bus 1510. Figure 7 As shown, the processor 1501, the memory 1502, and the communication interface 1503 are connected via a bus 1510 and communicate with each other.
[0229] The communication interface 1503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0230] Bus 1510 includes hardware, software or both, and couples the components of the designated path query device of the netlist circuit to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-end bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, bus 1510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnect.
[0231] The designated path query device of the netlist circuit can be based on the designated path query method of the netlist circuit, thereby realizing the combination Figures 1 to 4 as well as Figure 6 The invention describes a method and device for querying a specified path of a netlist circuit.
[0232] In addition, in combination with the designated path query method of the netlist circuit in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any designated path query method of the netlist circuit in the above embodiment is implemented.
[0233] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0234] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0235] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0236] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for querying a specified path of a netlist circuit, characterized in that: include: In response to the path query instruction, determining at least one designated path; wherein the designated path includes a starting point, an end point, and at least one waypoint; Traversing each branch of the netlist circuit from the starting point, generating a path node set of the specified path when the traversed branch contains all the passing points and the ending points of at least one specified path, and traversing the next branch from the starting point until all branches are traversed; Generate a path matching result according to the path node set of each of the specified paths; The step of determining at least one designated path in response to the path query instruction includes: In response to the path query instruction, obtaining the path traversal constraint condition input by the user; Determine a starting point, an end point, and at least one set of waypoints according to the path traversal constraint conditions; Generate a first point set corresponding to each designated path according to the starting point, the ending point and each group of the passing points; wherein the first point set includes all the passing points and the ending point of the designated path; In the case where the traversed branch contains all the waypoints and the end points of at least one specified path, generating a path node set of the specified path includes: During the traversal process, the traversed nodes are matched with each specified path; When the traversed node matches at least one specified path, the number of passing points corresponding to the matching specified path is counted and updated; When the traversed node is the end point and the number of the passing points meets the first matching condition, a path node set of the designated path is generated.
2. The method for querying a designated path of a netlist circuit according to claim 1, characterized in that: The step of generating a path node set of the specified path when the traversed node is the end point and the number of the passing points satisfies the first matching condition comprises: When the traversed node is the end point, obtaining the first point set and the number of passing points corresponding to the specified path; Determine the number of point groups of the specified path according to the first point set; the number of point groups is the total number of passing points and end points; When the number of the passing points matches the number of the point groups, continue traversing to the last node of the branch of the netlist circuit; When traversing to the last node of the branch, backtrack to the starting point, obtain all the nodes passed from the end point to the starting point during the backtracking process, and generate a path node set of the specified path.
3. The method for querying a designated path of a netlist circuit according to claim 1, characterized in that: The counting and updating of the number of passing points corresponding to the matched specified path includes: Performing a counting + 1 operation on the number of passing points corresponding to the specified path; wherein the initial value of the number of passing points is 0, and the first matching condition is that the number of passing points is consistent with the total number of passing points and end points of the specified path; Alternatively, a counting operation of -1 is performed on the number of passing points corresponding to the specified path; wherein the initial value of the number of passing points is the total number of passing points and end points of the specified path, and the first matching condition is that the number of passing points is 0.
4. The method for querying a designated path of a netlist circuit according to claim 1, characterized in that: The traversed nodes are matched with each specified path, including: Match the traversed nodes with the first point set corresponding to each specified path; In the case where at least one first point set matches the traversed node, a corresponding designated path is determined according to the matched first point set.
5. The method for querying a designated path of a netlist circuit according to claim 2, characterized in that: The obtaining of all nodes passed from the end point to the start point during the backtracking process to generate a path node set of the specified path includes: In the backtracking process, starting from the end point, the backtracked nodes are stored in the path result container until the backtracking reaches the start point.
6. The method for querying a designated path of a netlist circuit according to claim 1, characterized in that: In the traversal process, after matching the traversed nodes with the respective specified paths, the following steps are further included: When the last node of the branch is traversed and the branch does not include a termination point, the number of passing points corresponding to the designated path is initialized.
7. The method for querying a designated path of a netlist circuit according to any one of claims 1 to 6, characterized in that: The first point set corresponding to each designated path is stored in a first container, and each mapping data in the first container includes an identifier of the designated path and the first point set corresponding to the designated path; The number of passing points corresponding to each designated path is stored in the second container, and each mapping data in the second container includes the number of the traversed branch, the number of passing points and the identifier of the designated path.
8. The method for querying a designated path of a netlist circuit according to any one of claims 1 to 6, characterized in that: The method of traversing each branch of the netlist circuit from the starting point is depth-first traversal.
9. A designated path query device for a netlist circuit, characterized in that: include: A path determination module, configured to determine at least one designated path in response to a path query instruction; wherein the designated path includes a starting point, an ending point, and at least one waypoint, and the starting point and the ending point of any two designated paths are the same; A traversal module, configured to traverse each branch of the netlist circuit starting from the starting point, generate a path node set of the specified path when the traversed branch contains all the passing points and the ending points of at least one specified path, and traverse the next branch starting from the starting point until all branches are traversed; A result generation module, used for generating a path matching result according to the path node set of each specified path; The path determination module specifically includes: A constraint condition determination unit, used to obtain a path traversal constraint condition input by a user in response to a path query instruction; A path determination unit is specified, which is used to determine a starting point, an end point and at least one set of waypoints according to the path traversal constraint conditions; A first point set determination unit, configured to generate a first point set corresponding to each designated path according to the starting point, the ending point and each group of passing points; wherein the first point set includes all passing points and the ending point of the designated path; The traversal module specifically includes: A matching unit is used to match the traversed nodes with each specified path during the traversal process; A counting update unit, used for counting and updating the number of passing points corresponding to the matched specified path when the traversed node matches at least one specified path; The set generation unit is used to generate a path node set of the specified path when the traversed node is a terminal point and the number of passed points meets the first matching condition.
10. A designated path query device for a netlist circuit, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the processor implements the steps of the method for querying a specified path of a netlist circuit as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps of the method for querying a specified path of a netlist circuit according to any one of claims 1 to 8 are implemented.
12. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor, the steps of the method for querying a specified path of a netlist circuit as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Electric vehicle optimal charging path planning method oriented to multi-level experience
CN113029176A
Power grid path query method and device, electronic equipment and medium
CN116128475A
