Signal path tracing method and system, electronic device
By employing a recursive tracing mechanism and highlighting technology, the problem of incomplete signal paths in existing technologies has been solved, enabling a clear display of signal paths in complex models and improving the efficiency and accuracy of model design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI TOSUN TECH LTD
- Filing Date
- 2026-04-17
- Publication Date
- 2026-07-14
Smart Images

Figure CN122389262A_ABST
Abstract
Description
Cross-reference to related applications
[0001] This application is based on and claims priority to Chinese Patent Application No. 2026101147557, filed on January 28, 2026. The entire contents of the aforementioned application are incorporated herein by reference. Technical Field
[0002] This invention relates to model design technology, and more particularly to a signal path tracing method and system, and electronic equipment. Background Technology
[0003] In the field of model design technology, especially in block diagram modeling environments, visual tracing of signal paths is an important function for model debugging and analysis.
[0004] In some existing solutions, after a user selects a signal connection, the system can only display the directly adjacent connections or local connections of that connection. In simple linear connection scenarios, this approach can provide some assistance; however, in models containing multiple branches, parent-child line hierarchies, virtual connection modules, or complex topologies, existing solutions often struggle to fully trace and display the complete signal path from the starting connection to the source or target module. Especially in scenarios where a single starting connection corresponds to multiple target modules, existing solutions also struggle to clearly distinguish the path relationships corresponding to each target module, thus affecting the accuracy and operability of signal path analysis. Due to the lack of complete and clearly defined tracing results, engineers typically need to manually analyze the signal transmission direction step by step, which not only increases debugging workload but also easily leads to judgment errors in complex models.
[0005] Therefore, existing technologies suffer from incomplete signal path tracing results.
[0006] It should be noted that the information disclosed in this background section is only for understanding the background technology of this application concept and is not considered to constitute prior art information. Summary of the Invention
[0007] The purpose of this invention is to provide a signal path tracing method, system, and electronic device.
[0008] To address the aforementioned technical problems, this invention provides a signal path tracing method, which is applied to a model design unit and includes: Using the signal connection to be tracked as the starting connection, and recursively tracing from the starting connection to the source module or at least one target module according to the tracking direction, to generate tracking data from the starting connection to the source module or at least one target module; and After the tracking is completed, all connections on the tracking path and the source module or each target module are highlighted based on the tracking data to show the signal path from the starting connection to the source module or each target module.
[0009] In another aspect, the present invention also provides a signal path tracing system, comprising: a computer device configured to run a model design unit deployed in a model design system, the model design unit being configured to include: The tracking module is configured to take the signal connection to be tracked as the starting connection, and recursively track the signal from the starting connection to the source module or at least one target module according to the tracking direction, so as to generate tracking data from the starting connection to the source module or at least one target module; and The highlighting module is configured to, after tracking is completed, highlight all connections along the tracking path and the source module or each target module based on the tracking data, in order to display the signal path from the starting connection to the source module or each target module. Thirdly, the present invention also provides a non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the signal path tracing method as described above.
[0010] Fourthly, the present invention also provides an electronic device, comprising: Non-transitory computer-readable storage medium; processor; The non-transitory computer-readable storage medium stores instructions that, when executed by a processor, cause the processor to perform the signal path tracing method as described above.
[0011] Fifthly, the present invention also provides a computer program product including instructions that, when executed by a processor, cause the processor to perform the signal path tracing method as described above.
[0012] The beneficial effects of this invention are that the signal path tracing method of this invention realizes the construction of a complete tracing path from the starting connection to the source module or target module through a recursive tracing mechanism, and highlights all connections on the complete signal path from the starting connection to the source module or each target module, as well as the source module or each target module, based on the generated tracing data, providing users with a clear and complete signal path, and effectively improving the efficiency and accuracy of model design and debugging.
[0013] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained through the structures particularly pointed out in the description and the drawings.
[0014] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0015] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 The diagram illustrates the steps of a signal path tracing method according to some embodiments; Figure 2 Schematic diagrams illustrating examples of signal path tracing methods involved in some embodiments are shown; Figure 3 The diagram illustrates a tracing example from the starting connection to the source module as shown in some embodiments; Figure 4 It shows in Figure 3 A schematic diagram showing the effect after highlighting the base material; Figure 5 The diagram illustrates some examples of tracing from the starting connection to the target module. Figure 6 It shows in Figure 5 A schematic diagram showing the effect after highlighting the base material; Figure 7 The illustrations show some examples of tracing scenarios involving virtual connection modules encountered during the tracing process; Figure 8 It shows in Figure 7 A schematic diagram showing the effect after highlighting the base material; Figure 9 The illustration shows a tracking case where a stopping module is encountered during tracking, as illustrated in some embodiments. Figure 10 It shows in Figure 9 A schematic diagram showing the effect after highlighting the base material; Figure 11 A schematic block diagram of a signal path tracing system according to some embodiments is shown; Figure 12 Block diagrams of electronic devices involved in some embodiments are shown. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Therefore, at least one embodiment provides a signal path tracing method applied to a model design unit, comprising: taking the signal connection to be traced as the starting connection, recursively tracing from the starting connection to the source module or at least one target module according to the tracing direction, so as to generate tracing data from the starting connection to the source module or at least one target module; and after the tracing is completed, highlighting all connections on the tracing path and the source module or each target module according to the tracing data, so as to display the signal path from the starting connection to the source module or each target module.
[0019] The signal path tracing method in this embodiment realizes the construction of a complete tracing path from the starting connection to the source module or target module through a recursive tracing mechanism. Based on the generated tracing data, it highlights all the connections on the complete signal path from the starting connection to the source module or each target module, as well as the source module or each target module, providing users with a clear and complete signal path and effectively improving the efficiency and accuracy of model design and debugging.
[0020] The various non-limiting embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings.
[0021] like Figure 1 As shown, some embodiments provide a signal path tracing method, which is applied to a model design unit and includes: Step S101: Using the signal connection to be tracked as the starting connection, recursively trace from the starting connection to the source module or at least one target module according to the tracking direction, to generate tracking data from the starting connection to the source module or at least one target module; and Step S102: After the tracking is completed, highlight all the connections on the tracking path and the source module or each target module according to the tracking data to display the signal path from the starting connection to the source module or each target module.
[0022] Specifically, the signal path tracing method in this embodiment constructs a complete tracing path from the initial connection to the source module or target module through a recursive tracing mechanism. Based on the generated tracing data, it highlights all connections along the complete signal path from the initial connection to the source module or each target module, as well as the source module or each target module, providing users with a clear and complete signal path. This is particularly suitable for the design and debugging of large and complex models, such as... Figure 2 As shown, with the signal line L0 to be tracked as the starting line, the signal transmission direction after the signal output from line L0 is tracked. It can be clearly seen that the highlighted part is the complete signal path from line L0 to target module M1 to target module M18. This effectively improves the operability of model analysis, thereby improving the efficiency and accuracy of model design and debugging, and reducing the error rate in complex models.
[0023] In some embodiments, a method for generating tracing data from the starting connection to the source module by recursively tracing layer by layer according to the tracing direction includes: starting from the starting connection, tracing the upstream parent line to which the starting connection belongs in the direction opposite to the signal transmission direction, and then continuing to trace the upstream parent line to which the new starting connection belongs, until the upstreammost parent line directly connected to the module is traced, and the module directly connected to the upstreammost parent line is the source module; and the tracing data includes at least: a sequence of connection identifiers arranged in tracing order, connection identifiers of the parent lines corresponding to each connection except the upstreammost parent line, and the module identifier of the source module.
[0024] Specifically, a tracing path from the starting connection to the source module is constructed based on the tracing data.
[0025] Specifically, in this embodiment, a parent line is defined as: in the signal transmission path, relative to the current connection, along the direction opposite to the signal transmission direction, the upstream connection that directly connects to and serves as the signal source. The parent line relationship is recursive; each parent line may have even more upstream parent lines, tracing back to the source module, where the connection directly connected to the source module is the most upstream parent line.
[0026] Specifically, a case study describes in detail a method for recursively tracing from the starting connection to the source module based on the tracing direction, in order to generate tracing data from the starting connection to the source module.
[0027] like Figure 3 As shown, when connection L1 in a branch path is selected and the signal path from connection L1 to the source module needs to be displayed, the model design unit first determines connection L1 as the starting connection and determines that the tracking direction is opposite to the signal transmission direction.
[0028] For the initial connection, the model design unit needs to find its upstream connection, which is the upstream parent line of the current connection L1 in the source direction.
[0029] The model design unit first traces back from the starting connection to node 10 below it. Then, based on the parent-child relationship and tracing direction, it determines that the upstream parent line of the starting connection is connection L2. Therefore, the model design unit selects connection L2 as the new starting connection to continue tracing forward. The model design unit continues to move towards the source along the new starting connection until it reaches the bottom node 20. At node 20, the model design unit continues to determine the upstream parent line of connection L2 based on the parent-child relationship and tracing direction rules. At this time, the model design unit determines that connection L3 connected to node 20 is the upstream parent line of connection L2. Therefore, it selects connection L3 as the new starting connection to continue tracing forward. In the subsequent tracing process, the model design unit finds that connection L3 is connected to the output port of module Data Type Conversion3. The tracing ends, and it is confirmed that module Data Type Conversion3 is the source module corresponding to connection L1, and connection L3 is the upstream parent line.
[0030] The model design unit incorporates the connection identifier sequence (ID1, ID2, ID3), the parent line ID corresponding to connection L1, the parent line ID corresponding to connection L2, and the module identifier ID of the source module Data Type Conversion3 into the tracking data. The connection identifier sequence (ID1, ID2, ID3) is formed by arranging the connection identifier ID1 of connection L1, the connection identifier ID2 of connection L2, and the connection identifier ID3 of connection L3 in the tracking order, thereby constructing a complete tracking path from connection L1 to connection L2 to connection L3, and finally to the source module DataType Conversion3.
[0031] The model design unit then generates a highlight display result based on the tracking data, such as... Figure 4 As shown, it can be clearly seen that the signal source corresponding to line L1 comes from the source module Data Type Conversion3 and the signal path between line L1 and the source module Data Type Conversion3.
[0032] In some embodiments, a method for generating tracking data from the starting connection to each target module by recursively tracing layer by layer from the starting connection according to the tracking direction includes: traversing all lower-level branch connections of the starting connection along the same direction as the signal transmission direction, and then traversing the lower-level branch connections of each new starting connection in turn, until the last branch connection directly connected to the module is reached, and the module directly connected to the last branch connection is the target module; and the tracking data includes at least: a sequence of connection identifiers arranged in the tracking order corresponding to each target module, the connection identifiers of the parent lines corresponding to each connection except the starting connection in each connection identifier sequence, and the module identifier of each target module.
[0033] Specifically, a tracking path is constructed from the starting connection to each target module based on the tracking data.
[0034] Specifically, in this embodiment, lower-level branch lines are defined as: in the signal transmission path, all downstream lines that are directly connected relative to the current line and in the same direction as the signal transmission direction, and which serve as the object of its signal transmission. The relationship of lower-level branch lines is recursive; each lower-level branch line may have even more downstream branch lines, until all target modules are traversed.
[0035] Specifically, a case study describes in detail a method for recursively tracing from the starting connection to at least one target module according to the tracing direction, in order to generate tracing data from the starting connection to each target module.
[0036] like Figure 5 As shown, when a connection L1 in a branch path is selected and the signal path from connection L1 to at least one target module needs to be displayed, the model design unit first determines connection L1 as the starting connection and determines that the tracking direction is the same as the signal transmission direction.
[0037] The model design unit first traverses from connection L1 to node 30 above it to determine if connection L1 has any lower branches. If so, it obtains all lower branch connections of connection L1, namely connections L4 and L5. Then, it continues to traverse the lower branch connections of connection L4 and L5 respectively, using connection L4 and L5 as new starting connections. When traversing from connection L4 as a new starting connection, it first traverses to node 40 above connection L4 to determine if connection L4 has any lower branches. If so, all lower-level branch connections of connection L4 are obtained, namely connections L6 and L7; then, the traversal continues with connections L6 and L7 as new starting connections respectively; and so on, until the last branch connection directly connected to the module is reached; for example, in this case, when traversing with connection L5 as the new starting connection, it is found that connection L5 has no lower-level branches, but is directly connected to the module Testenable, then the traversal of connection L5 ends here, and the module Testenable is one of the target modules, then the model design unit will use connection L1, connection L5 and module Testenable together to form one of the complete tracing paths in this tracing.
[0038] The final model design unit generates the highlighted display result based on the tracking data, as shown below. Figure 6 As shown, it can be clearly seen that the signals transmitted from the connection L1 reach the target modules Test enable, Test trigger, Delay1, Delay2, Unit Delay, and Scope3, as well as the signal paths between the connection L1 and each target module.
[0039] In some embodiments, the signal path tracing method further includes: during the tracing process, storing the connection identifiers of the traversed lines and the tracing direction into an access record set.
[0040] Specifically, in a multi-branch topology, connections may merge or fork at nodes, and when paths intersect, they may form connection-level loops. For example, connection L1 connects to node N1, and returns to connection L1 via connection L2, forming a connection-level loop of "L1→N1→L2→L1". For this type of connection-level loop, during tracing, when a connection L1 with a corresponding record already existing in the access record set is encountered again, the model design unit identifies connection L1 as a duplicated connection and terminates the current branch's continued tracing of connection L1. If other unvisited branches exist, tracing of these unvisited branches continues to avoid duplicate tracing.
[0041] In some embodiments, the signal path tracing method further includes: during the tracing process, if a virtual connection module with a mapping identifier is traced, jumping to the connection line connected to another virtual connection module that has a mapping relationship with the virtual connection module based on the mapping identifier, and then continuing to trace towards the source module or target module along the connection line; and during the tracing process, storing the module identifiers of the virtual connection modules passed through into the access record set.
[0042] In some embodiments, the signal path tracing method further includes: during the tracing process, determining whether the connection identifier of the current line to be traced or the module identifier of the virtual connection module already exists in the access record set based on the tracing direction; if it already exists, terminating the tracing of the current line to be traced or the virtual connection module; otherwise, continuing to traceive the current line to be traced or the virtual connection module.
[0043] Specifically, a virtual connection module with a mapping identifier is a logical module used in model design to represent indirect signal connections. It establishes the mapping relationship between input and output terminals through a unique mapping identifier (such as a label or identifier). For example, the "From / Goto" module.
[0044] Specifically, when virtual connection modules exist in the tracing path, the tracing path may also form a connection-level loop because the input and output of the virtual connection modules are indirectly connected through a mapping relationship. For example, connection L1 connects to the virtual connection module Goto, and then jumps to the virtual connection module From according to the mapping relationship. The virtual connection module From returns to connection L1 via connection L2, forming a connection-level loop of "L1→virtual connection module Goto→virtual connection module From→L2→L1". For this type of connection-level loop, during the tracing process, when a connection L1 with a corresponding record item already existing in the access record set is encountered again, the model design unit identifies the connection L1 as a duplicate access connection and terminates the current branch's continued tracing of the connection L1; if there are other unvisited branches, the tracing of other unvisited branches continues to avoid duplicate tracing.
[0045] Preferably, the module identifiers of the virtual connection modules that have been passed through are also obtained and stored in the access record set to identify repeated accesses formed by mapping jumps.
[0046] Specifically, let's take a case to illustrate in detail the method of tracing a virtual connection module with a mapping identifier during the tracing process, jumping to the connection line that is connected to another virtual connection module that has a mapping relationship with the virtual connection module based on the mapping identifier, and then continuing to trace towards the source module or target module along the connection line.
[0047] like Figure 7As shown, when connection L8 is selected and the signal path from connection L8 to at least one target module needs to be displayed, the model design unit starts traversing from connection L8. It finds that connection L8 is connected to the virtual connection module with mapping identifier A123. Then, it queries the corresponding input and output terminals based on mapping identifier A123 and forms a mapping relationship. Therefore, when tracing to the Goto module with mapping identifier A123, the traversal does not terminate at this virtual connection module, but jumps to the From module with mapping identifier A123 to continue tracing. That is, the tracing path continues traversing down from connection L9 output by the From module. It finds that connection L9 is directly connected to module Scope, so the traversal of this layer of connection L9 ends here. And module Scope is the target module. Therefore, the model design unit combines connection L8, the Goto module with mapping identifier A123, the From module with mapping identifier A123, connection L9, and module Scope to form a complete tracing path for this tracing.
[0048] The final model design unit generates the highlighted display result based on the tracking data, as shown below. Figure 8 As shown, the signal transmitted from connection L8 to the target module Scope and the signal path between connection L8 and the target module can be clearly seen.
[0049] In some embodiments, the signal path tracing method further includes: during the tracing process, if a stop module is traced, tracing of the connection connected to the stop module is terminated, and after the tracing is completed, only the traced connection is highlighted.
[0050] Specifically, such as Figure 9 As shown, when connection L10 is selected and the signal path from connection L10 to at least one target module needs to be displayed, the model design unit traverses from connection L10. If connection L10 is found to be connected to the stopping module Terminator, then the tracking of connection L10 is terminated. The model design unit then uses connection L10 as the tracking path for this tracking iteration. The highlighted display result generated by the model design unit based on the tracking data is as follows: Figure 10 As shown, it can be clearly seen that only the connection L10 is highlighted.
[0051] In some embodiments, the signal path tracing method further includes: if the number of traced connection segments exceeds a preset maximum number of connection segments, then terminating the tracing of the current branch to the lower branch; if the tracing recursion depth exceeds a preset maximum recursion depth, then terminating the tracing to a deeper level.
[0052] Specifically, the number of line segments refers to the number of lines traversed during the tracing process, that is, the total number of line segments in the path. For example, such as Figure 3 and Figure 4In the example shown, there are 3 line segments from the initial connection L1 to the source module; the recursion depth refers to the number of levels of recursive tracing, that is, starting from the input or output node of the initial connection, the recursion depth increases by 1 level for each level extended towards the source or target module. For example, as Figure 5 and Figure 6 In the example shown, the maximum recursion depth is 8 layers, which is the depth from the initial connection L1 to the target module Scope3.
[0053] Specifically, the model design user or model design unit pre-sets thresholds, including the maximum number of connection segments (e.g., 100) and the maximum recursion depth (e.g., 10 levels), to control the tracing range. If the maximum number of connection segments exceeds the preset value, tracing from the current branch to its lower branch is immediately terminated; if the recursion depth exceeds the preset value, tracing to deeper levels is immediately terminated. By limiting the maximum number of connection segments and the maximum recursion depth, performance issues or infinite recursion in large and complex models are prevented.
[0054] like Figure 11 As shown, some embodiments also provide a signal path tracing system, including: a computer device configured to run a model design unit deployed in a model design system, the model design unit being configured to include: The tracking module is configured to take the signal connection to be tracked as the starting connection, and recursively track the signal from the starting connection to the source module or at least one target module according to the tracking direction, so as to generate tracking data from the starting connection to the source module or at least one target module; and The highlighting module is configured to highlight all connections along the tracking path and the source module or each target module based on the tracking data after tracking is completed, so as to display the signal path from the starting connection to the source module or each target module.
[0055] The specific implementation functions of the tracking module and the highlighting module can be found in the aforementioned signal path tracking method, and will not be repeated here.
[0056] The electronic devices in the embodiments of this disclosure are described below from the perspective of hardware processing: The embodiments disclosed herein do not limit the specific implementation of the electronic device.
[0057] like Figure 12 As shown, some embodiments also provide an electronic device, including: a processor, a non-transitory computer-readable storage medium, a communication bus, and a communication interface; wherein the processor, the non-transitory computer-readable storage medium, and the communication interface communicate with each other through the communication bus; the non-transitory computer-readable storage medium stores instructions that, when executed by the processor, cause the processor to perform the signal path tracing method described above.
[0058] In some embodiments, computer devices, industrial control computers, and bus adapters may also be considered as electronic devices.
[0059] Figure 12 The diagram shows a schematic structure of an electronic device, which is for illustration only and does not constitute a limitation on the electronic device. The electronic device may include fewer or more components than shown, or may combine components, or may use different component arrangements.
[0060] In some embodiments, the communication interface may include physical interfaces such as RS-232, RS-485, and USB (including Type-C) for connecting external devices or bus adapters; it may also include wired network interfaces such as Ethernet, or wireless network interfaces such as Wi-Fi and Bluetooth for establishing communication connections between computer devices and other electronic devices.
[0061] In some embodiments, non-transitory computer-readable storage media include, but are not limited to, flash memory, hard disks, magnetic storage, magnetic disks, optical disks, and card-type storage (e.g., multimedia cards, secure digital storage (SD) cards, etc.). In some embodiments, the storage medium can serve as an internal storage unit of a computer device, such as a built-in hard disk; in other embodiments, it can serve as an external storage device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital storage (SD) card, a flash memory card, etc. Furthermore, the storage medium may also include both internal storage units and external storage devices. This storage medium can be used to store application software and various types of data (e.g., computer program code) installed on the computer device, and can also be used to temporarily store data that has been output or will be output.
[0062] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run program code in a storage medium and / or process data, such as executing a computer program.
[0063] In some embodiments, the communication bus can be an input / output bus, such as a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This bus can be categorized into an address bus, a data bus, and a control bus.
[0064] Optionally, the computer device also includes a user interface. The user interface may include a display, an input unit (e.g., a keyboard), and standard wired and / or wireless interfaces. Optionally, the display (or display module) may be an LED display, a liquid crystal display, a touch-screen liquid crystal display, or an OLED display. The display (or display module) may also be referred to as a screen or display unit, used to display information processed by the computer device and present a visual user interface.
[0065] When the processor executes the program, it implements the above. Figure 1 The steps in the signal path tracing method embodiment shown. Alternatively, the processor executes a computer program to implement the functions of each module or unit in the above-described device embodiments.
[0066] Some embodiments also provide a non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the signal path tracing method described above.
[0067] Please refer to the detailed description of the signal path tracing method; it will not be repeated here.
[0068] Some embodiments also provide a computer program product including instructions that, when executed by a processor, cause the processor to perform the signal path tracing method described above.
[0069] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of a code program containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0070] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0071] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a non-transitory computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0072] Based on the above-described preferred embodiments of the present invention, and through the foregoing description, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A signal path tracing method, characterized in that, The signal path tracing method is applied to the model design unit, including: Using the signal connection to be tracked as the starting connection, and recursively tracing from the starting connection to the source module or at least one target module according to the tracking direction, to generate tracking data from the starting connection to the source module or at least one target module; and After the tracking is completed, all connections on the tracking path and the source module or each target module are highlighted based on the tracking data to show the signal path from the starting connection to the source module or each target module.
2. The signal path tracing method according to claim 1, characterized in that, The method for generating tracing data from the starting connection to the source module by recursively tracing layer by layer from the starting connection according to the tracing direction includes: Starting from the initial connection, trace the upstream parent line to which the initial connection belongs in the direction opposite to the signal transmission direction. Then, using the upstream parent line as the new starting connection, continue tracing the upstream parent line to which the new starting connection belongs, until the upstreammost parent line connected to the module is reached. The module connected to the upstreammost parent line is the source module. The tracking data includes at least: a sequence of connection identifiers arranged in the tracking order, connection identifiers of the parent lines corresponding to each connection except the most upstream parent line, and module identifiers of the source modules.
3. The signal path tracing method according to claim 1, characterized in that, The method for generating tracking data from the starting connection to each target module by recursively tracing layer by layer from the starting connection to at least one target module according to the tracking direction includes: Starting from the initial connection, traverse all lower-level branch connections in the same direction as the signal transmission direction. Then, using each lower-level branch connection as a new starting connection, continue traversing the lower-level branch connections of each new starting connection until the last branch connection connected to the module is reached. The module connected to the last branch connection is the target module. The tracking data includes at least: a sequence of connection identifiers arranged in the tracking order corresponding to each target module, the connection identifiers of the parent lines of each connection except the starting connection in each connection identifier sequence, and the module identifier of each target module.
4. The signal path tracing method according to claim 1, characterized in that, Also includes: During the tracking process, the connection identifiers of the traversed lines and the tracking direction are stored in the access record set.
5. The signal path tracing method according to claim 4, characterized in that, Also includes: During the tracing process, if a virtual connection module with a mapping identifier is found, the system jumps to the connection line between that virtual connection module and another virtual connection module that has a mapping relationship based on the mapping identifier, and then continues tracing along that connection line towards the source or target module; and During the tracing process, the module identifiers of the virtual connection modules that are passed through are also stored in the access record set.
6. The signal path tracing method according to claim 5, characterized in that, Also includes: During the tracing process, the system determines whether the connection identifier of the current connection to be traced or the module identifier of the virtual connection module already exists in the access record set based on the tracing direction. If it already exists, the tracing of the current connection to be traced or the virtual connection module is terminated; otherwise, the tracing of the current connection to be traced or the virtual connection module continues.
7. The signal path tracing method according to claim 4, characterized in that, Also includes: During the tracking process, if a stop module is tracked, the tracking of the connection to the stop module is terminated, and only the tracked connection is highlighted after the tracking is completed.
8. The signal path tracing method according to claim 1, characterized in that, Also includes: If the number of connected segments being traced exceeds the preset maximum number of connected segments, then the tracing of the current branch to the lower branch will be terminated. If the recursion depth of the tracking exceeds the preset maximum recursion depth, the tracking to a deeper level will be terminated.
9. A signal path tracing system, characterized in that, include: A computer device configured to run a model design unit deployed in a model design system, the model design unit being configured to include: The tracking module is configured to take the signal connection to be tracked as the starting connection and recursively track from the starting connection to the source module or at least one target module according to the tracking direction, so as to generate tracking data from the starting connection to the source module or at least one target module. as well as The highlighting module is configured to highlight all connections along the tracking path and the source module or each target module based on the tracking data after tracking is completed, so as to display the signal path from the starting connection to the source module or each target module.
10. The signal path tracing system according to claim 9, characterized in that, The method for generating tracing data from the starting connection to the source module by recursively tracing layer by layer from the starting connection according to the tracing direction includes: Starting from the initial connection, trace the upstream parent line to which the initial connection belongs in the direction opposite to the signal transmission direction. Then, using the upstream parent line as the new starting connection, continue tracing the upstream parent line to which the new starting connection belongs, until the upstreammost parent line connected to the module is reached. The module connected to the upstreammost parent line is the source module. The tracking data includes at least: a sequence of connection identifiers arranged in the tracking order, connection identifiers of the parent lines corresponding to each connection except the most upstream parent line, and module identifiers of the source modules.
11. The signal path tracing system according to claim 9, characterized in that, The method for generating tracking data from the starting connection to each target module by recursively tracing layer by layer from the starting connection to at least one target module according to the tracking direction includes: Starting from the initial connection, traverse all lower-level branch connections in the same direction as the signal transmission direction. Then, using each lower-level branch connection as a new starting connection, continue traversing the lower-level branch connections of each new starting connection until the last branch connection connected to the module is reached. The module connected to the last branch connection is the target module. The tracking data includes at least: a sequence of connection identifiers arranged in the tracking order corresponding to each target module, the connection identifiers of the parent lines of each connection except the starting connection in each connection identifier sequence, and the module identifier of each target module.
12. A non-transitory computer-readable storage medium, characterized in that, The system stores instructions that, when executed by a processor, cause the processor to perform the signal path tracing method according to any one of claims 1-8.
13. An electronic device, characterized in that, include: Non-transitory computer-readable storage medium; processor; The non-transitory computer-readable storage medium stores instructions that, when executed by a processor, cause the processor to perform the signal path tracing method according to any one of claims 1-8.
14. A computer program product, characterized in that, Includes instructions that, when executed by a processor, cause the processor to perform the signal path tracing method according to any one of claims 1-8.