Method for analyzing a data stream and related device

By recording node objects and their topological relationships in the design database and converting them into object connectivity problems, the slow speed problem in high-frequency data flow analysis is solved, and efficient data flow analysis is achieved.

CN123157783APending Publication Date: 2026-11-24X TIMES DESIGN AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611639216.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies for high-frequency data stream analysis suffer from slow analysis speed and high computational performance requirements. In particular, in integrated circuit design, the computational speed of data stream analysis modules is too low to meet engineering requirements.

Method used

By traversing the objects in the design database, identifying and recording node objects and their topological relationships, high-frequency queries are avoided, the data flow tracing problem is transformed into an object connectivity problem, and the breadth-first search algorithm is used to simplify the analysis process.

Benefits of technology

It improves the efficiency of data stream analysis, reduces computational performance requirements, simplifies the analysis process, enables second-level data stream analysis, and significantly improves analysis speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157783A_ABST
    Figure CN123157783A_ABST
Patent Text Reader

Abstract

This disclosure provides a data flow analysis method and related equipment. The method includes: traversing and recording node objects in a design database that can serve as start points or intermediate points; wherein, the node objects serving as endpoints of the data flow are marked with a first mark; traversing the network in the design database and recording the topological relationships between the node objects; and determining the data flow corresponding to the node object with the first mark by judging the connectivity between the node objects based on the topological relationships of the node objects. Through the embodiments of this disclosure, the efficiency of data flow analysis can be improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a data stream analysis method and related equipment. Background Technology

[0002] Electronic Design Automation (EDA) refers to the design method that uses computer-aided design (CAD) software to complete the functional design, synthesis, verification, and physical design (including placement, routing, layout, design rule checking, etc.) of Very Large Scale Integration (VLSI) chips.

[0003] Data flow analysis capabilities help users analyze and understand the data flow relationships in chip design, assisting users in chip design and optimization, and its importance is self-evident. Summary of the Invention

[0004] The first aspect of this disclosure provides a method for analyzing data streams, the method comprising: Traverse and record node objects in the design database that can serve as start points or intermediate points; wherein, the node objects that serve as endpoints of the data flow are marked first; Traverse the network in the design database and record the topological relationships between the node objects; Based on the topological relationship of the node objects, the data flow corresponding to the node object with the first tag is determined by judging the connectivity between the node objects.

[0005] A second aspect of this disclosure provides an electronic device, comprising: a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions to cause the electronic device to perform the method as described in the first aspect.

[0006] A third aspect of this disclosure provides a non-transitory computer-readable storage medium storing a set of instructions for a computer, which, when executed, causes the computer to perform the method described in the first aspect.

[0007] In a fourth aspect, this disclosure provides a computer program product including computer program instructions that, when executed on a computer, cause the computer to perform the method as described in the first aspect.

[0008] This disclosure provides a data flow analysis method and related equipment. By traversing objects in a design database, it identifies and records node objects and their topological relationships that can serve as endpoints and intermediate nodes of the data flow. This avoids repeated access to the design database in cases of high-frequency data flow queries, thereby reducing computational performance requirements and improving analysis efficiency. Based on determining the target object nodes and their topological relationships, it determines the data flow by judging whether the node objects have connectivity, transforming the data flow tracing problem into an object connectivity problem, thus simplifying the data flow analysis process and improving analysis efficiency. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in this disclosure or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 A schematic diagram of the hardware structure of an exemplary computer device provided in an embodiment of this disclosure is shown.

[0011] Figure 2 A schematic diagram of the basic structure of an EDA tool according to an embodiment of the present disclosure is shown.

[0012] Figure 3 A schematic diagram illustrating the basic execution flow of a computation command of an EDA tool according to an embodiment of the present disclosure is shown.

[0013] Figure 4 A flowchart illustrating an exemplary data stream analysis method provided according to embodiments of this disclosure is shown. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0015] It should be noted that, unless otherwise defined, the technical or scientific terms used in this disclosure should have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms "first," "second," and similar terms used in this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" mean that an element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connection" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0016] As mentioned above, data flow analysis helps users analyze and understand the data flow relationships in chip design, assisting them in chip design and optimization; its importance is self-evident. How to achieve efficient and fast data flow analysis is a pressing technical problem to be solved. However, in related technologies, problems such as low analysis speed and high computational performance requirements still exist when performing high-frequency data flow analysis.

[0017] To address at least the aforementioned issues, this disclosure provides a data flow analysis method and related equipment. By traversing objects in a design database, it identifies and records node objects and their topological relationships that can serve as endpoints and intermediate nodes of the data flow. This avoids repeated access to the design database in cases of high-frequency data flow queries, thereby reducing computational performance requirements and improving analysis efficiency. Based on determining the target object nodes and their topological relationships, it determines the data flow by judging whether the node objects have connectivity, transforming the data flow tracing problem into an object connectivity problem. This simplifies the data flow analysis process and improves analysis efficiency.

[0018] Figure 1 A schematic diagram of a device 100 according to an embodiment of the present disclosure is shown. Device 100 may be an electronic device running a simulation system. For example... Figure 1 As shown, device 100 may include: processor 102, memory 104, network interface 106, peripheral interface 108, and bus 110. The processor 102, memory 104, network interface 106, and peripheral interface 108 are interconnected within the electronic device via bus 110.

[0019] Processor 102 may be a Central Processing Unit (CPU), a graphics processor, a neural network processor (NPU), a microcontroller (MCU), a programmable logic device, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or one or more integrated circuits. Processor 102 can be used to perform functions related to the techniques described in this disclosure. In some embodiments, processor 102 may also include multiple processors integrated into a single logic component. Figure 1 As shown, the processor 102 may include a plurality of first processors 102a, second processors 102b and third processors 102c.

[0020] Memory 104 can be configured to store data (e.g., instruction sets, computer code, intermediate data, etc.). In some embodiments, a simulation test system for simulation test design can be a computer program stored in memory 104. Figure 1 As shown, the data stored in the memory may include program instructions (e.g., program instructions of the technical solutions of this disclosure) and data to be processed (e.g., the memory may store temporary code generated during the compilation process). The processor 102 may also access the program instructions and data stored in the memory and execute the program instructions to operate on the data to be processed. The memory 104 may include a volatile storage device or a non-volatile storage device. In some embodiments, the memory 104 may include random access memory (RAM), read-only memory (ROM), optical disk, magnetic disk, hard disk, solid-state drive (SSD), flash memory, memory stick, etc.

[0021] Network interface 106 can be configured to provide communication with other external devices to device 100 via a network. This network can be any wired or wireless network capable of transmitting and receiving data. For example, the network can be a wired network, a local wireless network (e.g., Bluetooth, WiFi, Near Field Communication (NFC), etc.), a cellular network, the Internet, or a combination thereof. It is understood that the type of network is not limited to the specific examples described above. In some embodiments, network interface 106 may include any combination of any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, etc.

[0022] The peripheral interface 108 can be configured to connect the device 100 to one or more peripheral devices to enable information input and output. For example, peripheral devices may include input devices such as keyboards, mice, touchpads, touch screens, microphones, and various sensors, as well as output devices such as displays, speakers, vibrators, and indicator lights.

[0023] Bus 110 can be configured to transfer information between various components of device 100 (e.g., processor 102, memory 104, network interface 106, and peripheral interface 108), such as internal buses (e.g., processor-memory bus), external buses (USB port, PCI-E bus), etc.

[0024] It should be noted that although the above electronic device architecture only shows the processor 102, memory 104, network interface 106, peripheral interface 108, and bus 110, in specific implementations, this electronic device architecture may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above electronic device architecture may only include the components necessary for implementing the embodiments of this disclosure, and not necessarily all the components shown in the figures.

[0025] Figure 2 A schematic diagram of the basic structure of an EDA tool 200 according to an embodiment of the present disclosure is shown.

[0026] like Figure 2 As shown, the area above the dashed line represents the user interface; the area below the dashed line represents EDA tool 200. EDA tool 200 can be... Figure 1 The device 100 shown is implemented. In some embodiments, the EDA tool 200 can be implemented as EDA software. More specifically, the EDA tool 200 can be software for placement and routing based on chip design. The EDA tool 200 may include a Tcl command module 204 (or a graphical / window interface), various calculation modules (e.g., Place calculation module 206, Route calculation module 208, Optimization calculation module 210, etc.), and a database system 212. The user 202 can operate the EDA tool 200 by entering relevant commands in the Tcl command module 204 (or the graphical / window interface).

[0027] The Tcl command module 204 primarily functions as a message or command transmission module. It can read instructions input by the user 202 into the EDA tool 200 and, based on the specific content of the instructions, allocate and transmit them to the corresponding computing modules for execution of specific tasks.

[0028] Depending on the computational task, the computational modules can be divided into, for example, Place computation module 206, Route computation module 208, and Optimization computation module 210. Place computation module 206 can calculate a reasonable placement for all components, Route computation module 208 can calculate a reasonable wiring connection method between the components, and Optimization computation module 210 can optimize the placement and wiring connection methods between the components. The computational processes of these modules can be performed, for example, Figure 1 It is carried out in the processor 102.

[0029] Database system 212 can be used to completely and comprehensively record and store all information (such as location, orientation, size, structure, wire connection method, etc.) of the simulated or designed chip. This information, for example, can be stored in... Figure 1 In memory 104.

[0030] Figure 3 The basic execution flow 300 of a computation command of an EDA tool 200 according to an embodiment of this disclosure is shown. For example... Figure 3 As shown, in step 302, user 202 can issue a command (e.g., the do_place command) to EDA tool 200 through the command interface or graphical user interface (GUI) provided by Tcl command module 204. Then, in step 304, Tcl command module 204 parses this command and distributes it to the corresponding calculation module (e.g., Place calculation module 206). In step 306, each calculation module performs its specific calculations. During this process, as shown in step 308, each calculation module needs to (frequently and repeatedly) retrieve data from database system 212 for calculations. After the calculations are completed, as shown in step 310, each calculation module can write the calculation results to database system 212 and return the results to Tcl command module 204. In step 312, Tcl command module 204 returns the calculation results to user 202 through the command interface or graphical user interface (GUI), and the processing of a calculation command by EDA tool 200 ends. In step 314, the user can evaluate the calculation results and then determine the next step.

[0031] In some embodiments, during various physical design stages of chip design using EDA, such as floorplanning (FP), placement, routing, and post-route optimization, a design quality assessment is required for more detailed adjustments. For example, timing path analysis can be used to verify whether signals arrive on time and are correctly captured, confirming that timing constraints are met. However, timing path analysis suffers from slow computation speed.

[0032] Therefore, in some embodiments, data flow analysis capabilities are proposed to help users analyze and understand the data flow relationships in chip design, thereby assisting users in chip design and optimization. For example, the number of connections in a data flow graph that shows chip components (generally represented as nodes in a data flow graph) and data flow directions can guide layout planning or check the rationality of post-routing optimization or other optimization results.

[0033] For example, data flow analysis and results can be generated using a traversal algorithm: A design database (DB) can be used as a starting point, such as a hierarchical instance (HINST), macrocell, or input / output port (IO). The corresponding ports for each starting point are then counted, such as hierarchical terms (Hterm), terms, and flat terms (Fterm). The network connected to these starting points and their ports is obtained through the application programming interface (API) provided by the design database. The next level of connection is then found through the drivers / loaders on the network. If the next level connection is an instance (Inst), the search continues along its input / output pins. If the next level connection is a register (reg), the search backtracks, and a different driver / loader or output pin is used to continue the search. The above process is executed recursively. During the recursion, a container can be used to record which chip components (i.e., nodes) have been visited, and the register level (e.g., 0 or 1) when these nodes are reached can be recorded in the state table. Dynamic programming can then be performed based on this state table to avoid repeated traversal and invalid searches.

[0034] However, the data flow analysis scheme in the above embodiments requires iterative traversal for each call. In high-frequency call scenarios, the above embodiments have high demands on computing resources, resulting in a low computational speed for the data flow analysis module. Furthermore, as the register level increases, the computation time for data flow analysis increases non-linearly, and computational performance deteriorates rapidly, ultimately failing to meet engineering requirements. For example, in scenarios where the register level (reg level) ≤ 1, when the scale of integrated circuit design cases reaches millions, the built-in data flow analysis capabilities of the EDA physical design tool ICC2 will be almost unusable in practical engineering applications.

[0035] In view of this, this disclosure proposes a data flow graph generation method. The data flow analysis method provided by this disclosure traverses objects in a design database, identifies and records node objects and their topological relationships that can serve as data flow endpoints and intermediate nodes. This avoids repeated access to the design database in situations involving high-frequency data flow queries, thereby reducing computational performance requirements and improving analysis efficiency. Furthermore, in determining the target object nodes and their topological relationships, the data flow is determined by judging whether the node objects have connectivity, transforming the data flow tracing problem into an object connectivity problem, thus simplifying the data flow analysis process and improving analysis efficiency.

[0036] Figure 4 A flowchart illustrating an exemplary method 400 provided in an embodiment of this disclosure is shown. Method 400 can be... Figure 1 The device 100 is implemented and can be implemented as Figure 2 This is part of the functionality of EDA tools 200. For example... Figure 4 As shown, the method 400 may further include the following steps.

[0037] Step S402: Traverse the node objects in the design database that can serve as start points or intermediate points and record them.

[0038] In this step, you can iterate through the objects in the design database and record the node objects that can serve as endpoints (including start and end points) or intermediate points of the data flow.

[0039] In some cases, node objects that can serve as data stream endpoints may include HINST, Macro, and IO, etc.

[0040] In some cases, node objects that can serve as intermediate points in a data flow may include instances.

[0041] Optionally, a node object may also include ports of node objects that can serve as endpoints of a data stream, such as Hterm, Term, and Fterm.

[0042] In this step, node objects that can serve as data flow endpoints can be marked (e.g., marked with endpoint_flag) to distinguish between node objects that can serve as endpoints and intermediate points.

[0043] It should be noted that `endpoint_flag` can indicate that a node object is either the start or end point of a data flow. Furthermore, some node objects can be both the start and end points of a data flow. For example, a node object can be the start point of one data flow and the end point of another.

[0044] In some embodiments, the node objects can be numbered and an object table (obj table) can be constructed. This object table can be used to represent the node object's identifier (ID) and original data.

[0045] Optionally, the data in the object table can be a dynamic array to store the node object's number and original data.

[0046] This step clarifies the role of each node object in the design database, providing a foundation for subsequent data flow analysis and, to some extent, avoiding repeated access to the design database by high-frequency data flow analysis.

[0047] Step S404: Traverse the network in the design database and record the topological relationships between node objects.

[0048] In this step, you can traverse the network in the design database and record the topological relationships between node objects.

[0049] It can be understood that the aforementioned topological relationships can include the topological relationships between a node object with a first marker point and other node objects, as well as the topological relationships between other node objects. That is, the aforementioned topological relationships can include the topological relationships between a node object that can serve as a data flow endpoint and a node object that can serve as a data flow intermediate point, as well as the topological relationships between node objects that can serve as intermediate points in a data flow.

[0050] In some embodiments, a topology table (jumps table) can be constructed based on the topological relationships between node objects. This topology table can be used to represent the topological relationships between node objects.

[0051] Optionally, the above topological relationship can represent the direct subordinates of each node object and record the jump direction.

[0052] It is understandable that the topology table itself can be regarded as a design analysis diagram, and the above topology table and the above object table can represent the same design analysis diagram.

[0053] This step can, to some extent, avoid repeated accesses to the design database by high-frequency data flow analysis. It also provides a basis for converting the data flow analysis tracing process into a connectivity problem of the design analysis graph, thus simplifying the calculation process of data flow analysis and improving computational efficiency.

[0054] Step S406: Based on the recorded topological relationships of node objects, determine the data flow corresponding to the node object with the first tag by judging the connectivity between node objects.

[0055] In this step, the data flow analysis problem can be transformed into a connectivity problem of the design analysis graph based on the topological relationship of the node objects, that is, the connectivity problem between node objects, so as to determine the data flow corresponding to the node object with the first label.

[0056] In some cases, determining the data flow corresponding to a node object with a first label can refer to taking one of the node objects with the first label as an endpoint each time, analyzing the data flow corresponding to that node object by judging the connectivity between node objects, and then taking another node object with the first label as an endpoint to continue the analysis after determining the data flow corresponding to that node object.

[0057] It is understandable that in some cases, node objects with the first tag can be analyzed synchronously, but the node objects with the first tag do not interfere with each other during synchronous analysis.

[0058] This step utilizes the topological relationships obtained in the preceding steps to quickly determine the data flow connections corresponding to all endpoints through graph connectivity search, thereby completing data flow analysis and improving the efficiency of data flow analysis to a certain extent.

[0059] In some embodiments, step S406, which determines the data flow corresponding to a node object with a first tag based on the topological relationship of node objects by judging the connectivity between node objects, may further include the following steps.

[0060] Step S4062: Establish the tracking task corresponding to the node object with the first mark; Step S4064: Add the tracing task to the task queue and iteratively execute the following steps until all tracing tasks in the task queue are completed: Step S502: Select a tracking task from the task queue and determine the node object corresponding to the tracking task; Step S504: Determine whether the node object is a valid endpoint; Step S506: In response to the node object being a valid endpoint, determine a data stream and complete the tracing task; Step S508: In response to the node object not being a valid endpoint, determine the child node object based on the topological relationship. Step S510: Based on the lower-level node object, create a new tracking task and add it to the task queue.

[0061] It should be noted that in the above embodiments of this disclosure, each node object with a first mark corresponds to a task queue, and the first tracing task of the task queue is constructed based on the node object with the first mark, so as to use the node object with the first mark as the tracing starting point (startpos).

[0062] Optionally, each tracing task may include the ID of a node object to clarify the relationship between the node object and the tracing task, and to distinguish different tracing tasks.

[0063] For each task queue, the tracing tasks within it can be executed iteratively until all tracing tasks in the task queue are completed, in order to determine the data stream corresponding to the node object with the first mark.

[0064] For example, suppose there are multiple node objects A, B, and C with a first label. Tracing tasks a, b, and c are constructed for node objects A, B, and C respectively and added to different task queues. By iteratively executing the tracing tasks in different task queues (each task queue may only include tracing tasks a, b, or c, or may further include multiple other tracing tasks), the data streams corresponding to multiple node objects A, B, and C are determined respectively.

[0065] In some cases where a node object with a first marker is defined as the starting point of tracing, the above-mentioned valid endpoint can be understood as a valid tracing endpoint.

[0066] Optionally, determining whether a node object is a valid endpoint can be based on whether the node object is an endpoint that is not a tracing start point, or based on conditions such as whether the path length of the data stream formed by the node object and its corresponding tracing start point is greater than 0.

[0067] For example, assuming node object A is the starting point for tracing, node object B can be determined to be a valid endpoint if the searched node object B is a different endpoint from node object A, or if the path length between node objects A and B is greater than 0. In this case, a data stream with node object A and node object B as endpoints is determined.

[0068] In some cases, when a node object is not a valid endpoint, it can be assumed that the data flow corresponding to the tracing start point has not yet been determined. It is necessary to further determine the lower-level node objects based on the topological relationship, create a new tracing task, and determine the data flow path through iteration.

[0069] For example, assuming node object A is the starting point for tracing, node object B, which is connected to it, is determined based on topological relationships. If node object B is determined not to be a valid endpoint, node objects C, D, and E, which are connected to node object B, can be further determined based on topological relationships. Tracing tasks are then created based on node objects C, D, and E and added to the task queue. This process continues until all tracing tasks in the task queue are completed.

[0070] It is understood that the above embodiments of this disclosure transform the traditional step-by-step tracing algorithm into a breadth-first search (BFS) recursive process on the design analysis graph. This recursive process takes the endpoint with the first label as the starting point for tracing, and through a queue iteration method, it transforms the process from following a single path to the end to simultaneously expanding layer by layer from the starting point in all possible directions, thus avoiding recursive calls and dynamic programming to a certain extent.

[0071] Therefore, the above embodiments of this disclosure can improve the efficiency of data stream analysis to a certain extent and alleviate the pressure on computing performance.

[0072] In some embodiments, before determining whether the node object is a valid endpoint in step S504, the following steps may be further included.

[0073] Step S512: Determine whether the node object record is recorded during the iteration process; Step S514: In response to determining that the node object has not been recorded, record the node object and execute the next step; Step S516: In response to the node object being recorded, the tracing task is abandoned.

[0074] In some cases, determining whether a node object record is recorded during the iteration process means determining whether the node object corresponding to the tracing task being executed has been executed in previous iterations.

[0075] In some embodiments, a history table can be established for each task queue to record the execution history of each node. For example, a walked data structure can be established for each task queue and used to record the execution history.

[0076] Optionally, each tracing task includes the ID of a node object. Whenever a tracing task is executed, the ID of the node object can be recorded in the history table, and the ID of the corresponding node object can be checked when a new tracing task is executed in the future.

[0077] It should be noted that, in some cases, establishing a historical record table for each task queue can mean: when multiple node objects with the first mark are iterated synchronously, each task queue corresponds to a historical record table, and multiple historical record tables do not interfere with each other; when multiple node objects with the first mark are iterated sequentially, only one historical record table is needed, and this historical record table is cleared before the start of each iteration to avoid interference between different iterations.

[0078] By following the steps above, we can ensure that the node object corresponding to the current round of tracking task has not been executed, thereby avoiding multiple processing of the same node object to a certain extent and reducing the computational pressure.

[0079] In some embodiments, before determining the child node object of the node object based on the topological relationship in step S508, the following steps may be further included.

[0080] Step S518: Determine whether the node object is a register; In step S520, in response to the node object not being a register, proceed to the next step; Step S522: In response to the node object being a register, determine whether the register level constraint is satisfied after incrementing the register level by one; Step S524: In response to satisfying the register series constraint, proceed to the next step; Step S526: In response to the failure to meet the register series constraint, the tracing task is terminated.

[0081] Optionally, whether a node object is a register can be determined based on the attributes of the node object recorded in the object table.

[0082] In some embodiments, a tracing task may further include a register level. Optionally, the register level of the first tracing task in the task queue is 0, the register level is incremented when a register is encountered, and newly created tracing tasks inherit the register level of the previous tracing task during iterative execution of the tracing task.

[0083] For example, suppose the first tracing task a in a task queue has a register level of 0; during the execution of tracing task a, a node object B is encountered, and a new tracing task b is created. At this time, node object B is a register, and the register level is incremented by one, so the register level of tracing task b is adjusted to 1; during the execution of tracing task b, a node object C is encountered, and a new tracing task c is created. Node object C is not a register, so the register level of tracing task c is still 1.

[0084] By following the steps above, it can be determined whether the register series still satisfies the register series constraint after passing the node object corresponding to the current tracking task. If the constraint is not satisfied, the tracking task will be terminated in time, and if the constraint is satisfied, further iteration will be performed.

[0085] For example, suppose that during the execution of tracing task c, a node object D is encountered, and a new tracing task d is created. If node object D is a register, then the register level of tracing task d is 2. However, the register level constraint requires that the register level of the tracing task be less than or equal to 1. Therefore, tracing task d can be terminated and the next tracing task can continue.

[0086] It should be noted that when a historical record table (such as a walked data structure) is established for the task queue, tracing tasks of any register level share this historical record table. That is, regardless of whether the register level is 0, 1, or something else, all tracing tasks share this historical record table. This further ensures that node objects are not executed repeatedly, while reducing complex calculations such as multi-level judgments, thereby improving computational efficiency to a certain extent.

[0087] In some embodiments, the following steps may be further included.

[0088] Step S408: Determine whether all node objects have a parent object and record the parent-child relationship of the node objects.

[0089] In the above steps, after determining the node objects in the design database, the parent-child relationship between the node objects can be further determined to further ensure the legality of the final determined data flow.

[0090] In some embodiments, a parent-child relationship table can be constructed based on the parent-child relationship between node objects, which can be used for security checks. Optionally, the parent-child relationship table may include the IDs of the node objects and the parent-child relationships between the node objects.

[0091] It is understandable that the parent-child relationship table and the object table can represent the same design analysis diagram.

[0092] Thus, in some embodiments, after traversing the design database, three tables are established: an object table, a topology table, and a parent-child relationship table. All three tables represent the same design analysis diagram. The object table records node objects and their numbers, and can serve as the basis for associating the topology table and the parent-child relationship table.

[0093] In some embodiments, after determining the child node object of the node object based on the topological relationship in step S508, the following steps may be further included.

[0094] Step S528: Based on the parent-child relationship of node objects, determine whether there is a parent-child relationship between the lower-level node object and the node object with the first tag; Step S530: In response to the absence of a parent-child relationship, a new tracking task is created based on the lower-level node object and added to the task queue; Step S532, in response to the parent-child relationship, terminate the tracking task.

[0095] In the above steps, if the register level satisfies the constraints, the associated node objects are determined based on the topological relationship, and the parent-child relationship is used to determine whether the next node object satisfies the parent-child relationship constraint.

[0096] It is understandable that determining whether a child node object has a parent-child relationship with a node object that has the first tag can, to some extent, prevent the data flow path from looping back to the tracing starting point, thereby avoiding loops.

[0097] In some embodiments, after traversing the design database, node objects can be shrunk before constructing the object table, or shrunk during the object table construction process. This can merge multiple logically equivalent, serially connected, and branchless nodes in the design analysis diagram to some extent, thereby reducing the computational load. The logical equivalence condition can, to some extent, avoid calculating the number of registers and register levels.

[0098] In the above embodiments, the mapping relationship between node objects before and after the shrinking process can also be recorded.

[0099] For example, assuming that node objects A, B, and C are connected in sequence without any branches in between, these three node objects can be merged into node object D, and a mapping relationship A→D, B→D, C→D can be constructed.

[0100] Optionally, the reduction amount of the node reduction process can be adjusted based on the actual application scenario. For example, the number of node objects can be reduced to 1 / 3 to 2 / 3 of the original number, preferably 2 / 3.

[0101] It is understandable that after the object table is condensed, the topology table and parent-child table can also be generated based on the condensed node objects.

[0102] It is understandable that after determining the data flow based on the node object data after the point reduction processing, the complete data flow path can be restored based on the above mapping relationship.

[0103] To verify the technical effectiveness of the exemplary data stream analysis method provided in the embodiments of this disclosure, the inventors of this disclosure conducted a comparative experiment in the application scenario of IO and Macro data stream analysis, where the number of register levels is limited to no more than 1 (reg level≤1).

[0104] When the inventors of this disclosure executed the command `compute_dff_connections -max_reg 1` in the EDA physical design tool ICC2, the START_CMD record showed: CPU time was approximately 44162 seconds, or approximately 12.27 hours; actual time consumption was approximately 666905 seconds, or approximately 185.25 hours; peak memory usage was approximately 5122MB. The END_CMD record showed: CPU time was approximately 44290 seconds, or approximately 12.30 hours; actual time consumption was approximately 667031 seconds, or approximately 185.29 hours; peak memory usage remained approximately 5122MB. Furthermore, each iteration of this command took approximately 125809234 microseconds, or approximately 125.81 seconds.

[0105] In the exemplary data flow analysis method provided in this disclosure embodiment, when executing the command `gui_run_data_flow -hierarchy_level 0`, the log shows: during the module boundary update phase, CPU time was approximately 0 seconds, peak memory usage was approximately 2.84GB, and current memory usage was approximately 2.59GB; during the data flow graph construction phase, CPU time was approximately 1 second, and peak memory usage was approximately 2.59GB; during the object tracking phase, CPU time was approximately 8 seconds, and peak memory usage was approximately 2.59GB. Each iteration of this command takes approximately 1,920,377 microseconds, or approximately 1.92 seconds.

[0106] Therefore, in the above scenario, the exemplary method provided by this disclosure has significantly lower running time and memory usage than the traditional ICC2 scheme, reducing the data stream analysis that might have taken several hours or even hundreds of hours to seconds, greatly improving analysis efficiency and enabling the data stream to become a frequently used functional module.

[0107] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this disclosure embodiment can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.

[0108] It should be noted that the above description describes specific embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0109] Based on the same inventive concept, this disclosure also provides an electronic device. This electronic device may be... Figure 1 The device 100 may include a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions to cause the electronic device to perform method 400.

[0110] Based on the same inventive concept, this disclosure also provides a non-transitory computer-readable storage medium. This non-transitory computer-readable storage medium stores a set of instructions for a computer, which, when executed, cause the electronic device to perform method 400.

[0111] The computer program stored in the storage medium of the above embodiments is used to cause the one or more processors to execute the method 400 as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0112] Based on the same inventive concept, corresponding to the method 400 of any of the above embodiments, this disclosure also provides a computer program product, which includes one or more computer programs. In some embodiments, the one or more computer programs can be executed by one or more processors to cause the one or more processors to perform the method 400. Corresponding to the execution entity for each step in each embodiment of method 400, the processor executing the corresponding step may belong to the corresponding execution entity.

[0113] The computer program product of the above embodiments is used to cause the processor to execute the method 400 as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0114] It should be noted that the foregoing has described some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than those in the foregoing embodiments and may still achieve the desired results.

[0115] Furthermore, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are possible or may be advantageous.

[0116] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this disclosure (including the claims) is limited to these examples; within the framework of this disclosure, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of the different aspects of this disclosure as described above, which are not provided in detail for the sake of brevity.

[0117] Although this disclosure has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0118] This disclosure is intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A data stream analysis method, characterized in that, include: Traverse and record node objects in the design database that can serve as start points or intermediate points; wherein, the node objects that serve as endpoints of the data flow are marked first; Traverse the network in the design database and record the topological relationships between the node objects; Based on the topological relationship of the node objects, the data flow corresponding to the node object with the first tag is determined by judging the connectivity between the node objects.

2. The method according to claim 1, characterized in that, Based on the topological relationship of the node objects, the data flow corresponding to the node object with the first tag is determined by judging the connectivity between the node objects, including: Establish a tracking task corresponding to the node object with the first tag; Add the tracking task to the task queue and iteratively execute the following steps until all tracking tasks in the task queue are completed: Select a tracking task from the task queue and determine the node object corresponding to the tracking task; Determine whether the node object is a valid endpoint; In response to the node object being a valid endpoint, a data stream is determined and the tracing task is completed; In response to the node object not being a valid endpoint, the child node object of the node object is determined based on the topological relationship; Based on the lower-level node object, a new tracking task is created and added to the task queue.

3. The method according to claim 2, characterized in that, Before determining whether the node object is a valid endpoint, the process also includes: Determine whether the node object record is recorded during the iteration process; In response to determining that the node object has not been recorded, the node object is recorded and the next step is executed; In response to the node object being recorded, the tracking task is abandoned.

4. The method according to claim 2, characterized in that, The tracking task includes register levels; Before determining the child node objects of a node object based on the aforementioned topological relationship, the process also includes: Determine whether the node object is a register; If the node object is not a register, proceed to the next step; In response to the node object being a register, determine whether incrementing the register level by one satisfies the register level constraint; In response to satisfying the register series constraint, proceed to the next step; The tracing task is terminated in response to the failure to meet the register level constraint.

5. The method according to claim 2, characterized in that, Also includes: Determine whether each node object has a parent object, and record the parent-child relationship of the node objects; After determining the child node objects of the node objects based on the aforementioned topological relationships, the process further includes: Based on the parent-child relationship of the node objects, determine whether there is a parent-child relationship between the lower-level node object and the node object with the first tag; In response to a situation where there is no parent-child relationship, a new tracking task is created based on the lower-level node object and added to the task queue; In response to a parent-child relationship, the tracking task is terminated.

6. The method according to claim 1, characterized in that, Also includes: Number the node objects; The node objects are condensed, an object table is constructed, and the mapping relationship between the node objects before and after the condensation process is recorded. A topology relationship table is constructed based on the topology relationships between the node objects after the point reduction process; the topology relationship table and the object table represent the same design analysis diagram.

7. The method according to claim 6, characterized in that, Also includes: A parent-child relationship table is constructed based on the parent-child relationships between the node objects after the point reduction process. The parent-child relationship table and the object table represent the same design analysis diagram.

8. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in any one of claims 1-7.

9. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores... The computer instructions are stored to cause the computer to perform the method described in any one of claims 1-7.

10. A computer program product comprising computer program instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-7.