A circuit diagram display system for signal value traceability analysis

A concise and intuitive target circuit diagram is generated through the signal value tracing analysis module and the circuit diagram connection relationship database, which solves the problems of the non-intuitive tree structure and redundant information in the circuit diagram in the existing technology, and improves the understanding and debugging efficiency of chip design.

CN119250012BActive Publication Date: 2025-09-09成都融见软件科技有限公司 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411286963.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-09-09
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

In chip design verification and debugging, the existing signal tracing analysis method has a tree structure that is not intuitive enough and contains redundant information in the circuit diagram, resulting in low user understanding and debugging efficiency.

Method used

Through the signal value traceability analysis module and the circuit diagram connection relational database, a target circuit diagram containing only active signal paths is generated, eliminating redundant information and improving intuitiveness and efficiency.

Benefits of technology

The generated target circuit diagram is concise and intuitive, which improves the user's understanding of chip design and debugging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119250012B_ABST
    Figure CN119250012B_ABST
Patent Text Reader

Abstract

The present application relates to the field of chip simulation technology, and in particular to a circuit diagram display system for signal value traceability analysis. The system analyzes source code corresponding to a target design according to a signal value traceability analysis module, determines active signals related to the target signal, and then determines a set of paths related to the target signal according to the connection relationship between reference signals in a circuit diagram connection relationship database. A target circuit diagram is generated according to the path information, thereby generating a target circuit diagram that only contains the paths to which the active signals belong. This makes the target circuit diagram contain no redundant information while containing the signal value change analysis results of the target signal, thereby making the target circuit diagram more concise and intuitive, thereby effectively improving the user's understanding efficiency and debugging efficiency of the target design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal analysis, and in particular to a circuit diagram display system for signal value traceability analysis. Background Art

[0002] In the chip design verification and debugging software process, users will retroactively analyze the simulated value of a signal of interest at a specific moment based on the design and simulation results to identify the cause of the signal's value at that moment. In other words, they will find which signals affect the signal's value at a specific moment. When the signal value does not meet the user's expectations, the user can use the retroactive analysis results to identify the source signal and fix the unexpected behavior through design modifications or other means.

[0003] However, signal tracing analysis in existing methods is usually based on the syntax parse tree generated by the design source code and the simulation results for reverse deduction to obtain the results, and then the results are graphically displayed in the form of a tree structure. However, although the tree structure can assist users in understanding and debugging the design, it is still not intuitive enough compared to the circuit diagram form, which leads to a longer time-consuming understanding of the design and low debugging efficiency. Although the circuit diagram can comprehensively and intuitively display the connection relationship between signals, under the needs of signal tracing analysis, the circuit diagram will contain redundant information that the user does not care about, which also interferes with the user's understanding and debugging of the design.

[0004] Therefore, how to improve users' understanding and debugging efficiency of chip design has become an urgent problem to be solved. Summary of the Invention

[0005] In view of the above technical problems, the technical solution adopted by the present invention is:

[0006] A circuit diagram display system for signal value traceability analysis, the system comprising: a signal value traceability analysis module, a processor, and a memory storing a computer program. The memory also comprises source code corresponding to a target design and a circuit diagram connection relationship database corresponding to the target design. The circuit diagram connection relationship database comprises all reference signals in the target design and the connection relationships between the reference signals. When the computer program is executed by the processor, the following steps are implemented:

[0007] S101, obtaining a target signal and a time value specified by a user, wherein the target signal has a uniquely corresponding reference signal.

[0008] S102 : Analyze the source code using the signal value tracing analysis module according to the target signal and the time value to obtain a plurality of active signals.

[0009] S103 , selecting from the circuit diagram connection relationship database a plurality of reference signals that have a connection relationship with the reference signal corresponding to the target signal as first signals.

[0010] S104 : For any first signal, form a path set by the first signal and the target signal to obtain a path set corresponding to each first signal.

[0011] S105: For any first signal, use the first signal as a temporary signal.

[0012] S106 , according to the circuit diagram connection relationship database, taking a plurality of reference signals that have a connection relationship with the reference signal corresponding to the temporary signal as second signals.

[0013] S107 : For any second signal, if the second signal is the same as any active signal, add the second signal to the path set to which the temporary signal belongs.

[0014] S108: If the second signal is different from each active signal and the second signal satisfies a first preset condition, deleting the path set to which the temporary signal belongs.

[0015] S109: If the second signal is different from each active signal and the second signal satisfies the second preset condition, the second signal is added to the path set corresponding to the temporary signal, and the second signal is used as the temporary signal. The process returns to step S106 to step S108.

[0016] S110 , forming a target circuit diagram according to all path sets, wherein the target circuit diagram is used to display a traceback analysis result of the target signal in the target design at the time value.

[0017] The present invention has significant advantages over the prior art. By utilizing the above technical solution, the circuit diagram display system for signal value traceability analysis provided by the present invention can achieve considerable technological advancement and practicality, and has wide industrial application value. It has at least the following beneficial effects:

[0018] The present invention provides a circuit diagram display system for signal value traceability analysis, the system comprising: a signal value traceability analysis module, a processor, and a memory storing a computer program, the memory further comprising source code corresponding to a target design, and a circuit diagram connection relationship database corresponding to the target design, wherein the circuit diagram connection relationship database comprises all reference signals in the target design and the connection relationship between the reference signals. When the computer program is executed by the processor, the following steps are implemented: S101, obtaining a target signal and a time value specified by a user, wherein the target signal has a reference signal uniquely corresponding to it; S102, analyzing the source code using the signal value traceability analysis module according to the target signal and the time value to obtain several active signals; S103, taking several reference signals that have a connection relationship with the reference signal corresponding to the target signal from the circuit diagram connection relationship database as first signals; S104, for any first signal, forming a path set by the first signal and the target signal to obtain each first signal Corresponding path set, S105, for any first signal, take the first signal as a temporary signal, S106, according to the circuit diagram connection relationship database, take several reference signals that have a connection relationship with the reference signal corresponding to the temporary signal as second signals, S107, for any second signal, if the second signal is the same as any active signal, then add the second signal to the path set to which the temporary signal belongs, S108, if the second signal is different from each active signal and the second signal meets the first preset condition, then delete the path set to which the temporary signal belongs, S109, if the second signal is different from each active signal and the second signal meets the second preset condition, then add the second signal to the path set corresponding to the temporary signal, take the second signal as the temporary signal, and return to execute steps S106 to S108, S110, form a target circuit diagram according to all path sets, and the target circuit diagram is used to display the traceability analysis results of the target signal in the target design at the time value.

[0019] It can be seen that the source code corresponding to the target design is analyzed according to the signal value tracing analysis module to determine the active signals related to the target signal, and then the path set related to the target signal is determined according to the connection relationship between the reference signals in the circuit diagram connection relationship database, and the target circuit diagram is generated according to the path information, so that the target circuit diagram that only contains the paths to which the active signals belong can be generated, so that the target circuit diagram contains the signal value change analysis results of the target signal without containing redundant information, thereby making the target circuit diagram more concise and intuitive, thereby effectively improving the user's understanding efficiency and debugging efficiency of the target design. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic diagram of a flow chart of a computer program being executed by a processor in a circuit diagram display system for signal value tracing analysis provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.

[0023] This embodiment provides a circuit diagram display system for signal value traceability analysis, the system comprising: a signal value traceability analysis module, a processor, and a memory storing a computer program, the memory further comprising source code corresponding to a target design, and a circuit diagram connection relationship database corresponding to the target design, wherein the circuit diagram connection relationship database comprises all reference signals in the target design and the connection relationships between the reference signals, see Figure 1 , which is a flow chart of a computer program executed by a processor in a circuit diagram display system for signal value traceability analysis provided by an embodiment of the present invention. When the computer program is executed by the processor, the following steps are implemented:

[0024] S101, obtaining a target signal and a time value specified by a user, wherein the target signal has a uniquely corresponding reference signal;

[0025] S102, analyzing the source code using the signal value tracing analysis module according to the target signal and the time value to obtain a plurality of active signals;

[0026] S103, selecting, from the circuit diagram connection relationship database, a plurality of reference signals that have a connection relationship with the reference signal corresponding to the target signal as first signals;

[0027] S104, for any first signal, forming a path set by the first signal and the target signal, to obtain a path set corresponding to each first signal;

[0028] S105, for any first signal, use the first signal as a temporary signal;

[0029] S106, according to the circuit diagram connection relationship database, taking as second signals a plurality of reference signals that have a connection relationship with the reference signal corresponding to the temporary signal;

[0030] S107, for any second signal, if the second signal is the same as any active signal, add the second signal to the path set to which the temporary signal belongs;

[0031] S108, if the second signal is different from each active signal and the second signal satisfies a first preset condition, deleting the path set to which the temporary signal belongs;

[0032] S109: If the second signal is different from each active signal and the second signal satisfies a second preset condition, the second signal is added to the path set corresponding to the temporary signal, the second signal is used as the temporary signal, and the process returns to steps S106 to S108.

[0033] S110 , forming a target circuit diagram according to all path sets, wherein the target circuit diagram is used to display a traceback analysis result of the target signal in the target design at the time value.

[0034] The target design may refer to a chip design, and correspondingly, the source code may refer to an RTL code, and all signals included in the target design are reference signals.

[0035] The target signal may refer to a signal for which the implementer needs to perform signal value change analysis, and the moment value may refer to a time point corresponding to a change in the signal value of the target signal.

[0036] An active signal may refer to a reference signal that is related to a target signal and is in an active state. The path set to which a single active signal belongs may be used to describe path information from the target signal to the active signal.

[0037] In a specific embodiment, step S102 includes the following steps:

[0038] S1021: Analyze the source code using the signal value tracing analysis module according to the target signal and the time value to obtain a plurality of reference signals associated with the target signal as related signals;

[0039] S1022: The related signal whose signal value changes at the time value is taken as the active signal.

[0040] Among them, the signal value tracing analysis module can adopt an open source signal value tracing analysis system. The signal value tracing analysis module can be used to extract reference signals associated with the target signal from the source code as related signals, and according to the moment value, the related signals whose signal values ​​change at the time point corresponding to the moment value are regarded as active signals, that is, at the moment value, the change of the active signal causes the change of the target signal.

[0041] In a specific embodiment, the first preset condition is that the second signal is a preset declaration signal, and the preset declaration signal is a signal pre-declared in the target design.

[0042] The preset declaration signal may refer to a signal pre-defined by a designer in a target design.

[0043] In a specific embodiment, the second preset condition is that the second signal is an intermediate signal, and the intermediate signal is a non-predeclared signal generated by a signal transmission process in the target design.

[0044] For example, the designer predefines the input signal and the output signal. The input signal passes through two circuit units to reach the output signal. The signal between the two circuit units is the intermediate signal.

[0045] In a specific embodiment, the circuit diagram connection relationship database further includes circuit units, and a correspondence between reference signals and circuit units;

[0046] The forming of the target circuit diagram according to all path sets includes:

[0047] The target circuit diagram is formed according to the reference signals included in all path sets and the circuit units corresponding thereto.

[0048] The circuit unit may refer to a module in a target design, and a single circuit unit may correspond to multiple reference signals.

[0049] In a specific embodiment, after step S109 and before step S110, the following steps are further included:

[0050] S201, for any active signal, treating the active signal as a temporary signal;

[0051] S202, according to the circuit diagram connection relationship database, taking as second signals a plurality of reference signals that have a connection relationship with the reference signal corresponding to the temporary signal;

[0052] S203, for any second signal, if the second signal satisfies a third preset condition, adding the second signal to the path set to which the temporary signal belongs;

[0053] S204: If the second signal satisfies a fourth preset condition, the second signal is added to the path set corresponding to the temporary signal, the second signal is used as the temporary signal, and the process returns to step S202 to step S203.

[0054] Among them, the active signal is only the direct or first-level factor that causes the target signal to change at the moment value. The implementer can continue to trace and analyze the active signal according to needs to determine the most original factor that causes the target signal to change at the moment value.

[0055] In a specific implementation, the third preset condition is: the second signal is a top layer signal or a non-driving signal.

[0056] Among them, there may be dependencies between the multiple modules included in the chip design. The top-level module can be determined based on the dependencies. The top-level signal can refer to the signal corresponding to the top-level module, and the undriven signal can refer to the signal not being driven by other signals.

[0057] In a specific implementation, the fourth preset condition is: the second signal is neither a top layer signal nor a no-driving signal.

[0058] In this embodiment, the source code corresponding to the target design is analyzed according to the signal value tracing analysis module to determine the active signal related to the target signal. Then, based on the connection relationship between the reference signals in the circuit diagram connection relationship database, the path set related to the target signal is determined, and the target circuit diagram is generated according to the path information, so that a target circuit diagram that only contains the paths to which the active signals belong can be generated. While the target circuit diagram contains the signal value change analysis results of the target signal, it does not contain redundant information, thereby making the target circuit diagram more concise and intuitive, thereby effectively improving the user's understanding efficiency and debugging efficiency of the target design.

[0059] Although some specific embodiments of the present invention have been described in detail by way of example, it will be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A circuit diagram display system for signal value traceability analysis, characterized in that: The system includes: a signal value traceability analysis module, a processor, and a memory storing a computer program. The memory also includes source code corresponding to a target design and a circuit diagram connection relationship database corresponding to the target design. The circuit diagram connection relationship database includes all reference signals in the target design and the connection relationships between the reference signals. When the computer program is executed by the processor, the following steps are implemented: S101, obtaining a target signal and a time value specified by a user, wherein the target signal has a uniquely corresponding reference signal; S102, analyzing the source code using the signal value tracing analysis module according to the target signal and the time value to obtain a plurality of active signals; S103, selecting from the circuit diagram connection relationship database a plurality of reference signals that have a connection relationship with the reference signal corresponding to the target signal as first signals; S104, for any first signal, forming a path set by the first signal and the target signal, to obtain a path set corresponding to each first signal; S105: for any first signal, use the first signal as a temporary signal; S106, according to the circuit diagram connection relationship database, taking as second signals a plurality of reference signals that have a connection relationship with the reference signal corresponding to the temporary signal; S107, for any second signal, if the second signal is the same as any active signal, add the second signal to the path set to which the temporary signal belongs; S108, if the second signal is different from each active signal and the second signal satisfies a first preset condition, deleting the path set to which the temporary signal belongs; S109: If the second signal is different from each active signal and the second signal satisfies a second preset condition, the second signal is added to the path set corresponding to the temporary signal, the second signal is used as the temporary signal, and the process returns to steps S106 to S108. S110 , forming a target circuit diagram according to all path sets, wherein the target circuit diagram is used to display a traceback analysis result of the target signal in the target design at the time value.

2. The circuit diagram display system for signal value traceability analysis according to claim 1, characterized in that: Step S102 includes the following steps: S1021: Analyze the source code using the signal value tracing analysis module according to the target signal and the time value to obtain a plurality of reference signals associated with the target signal as related signals; S1022: The related signal whose signal value changes at the time value is used as the active signal.

3. The circuit diagram display system for signal value traceability analysis according to claim 1, characterized in that: The first preset condition is that the second signal is a preset declaration signal, and the preset declaration signal is a signal pre-declared in the target design.

4. The circuit diagram display system for signal value traceability analysis according to claim 3, characterized in that: The second preset condition is that the second signal is an intermediate signal, and the intermediate signal is a non-predeclared signal generated by a signal transmission process in the target design.

5. The circuit diagram display system for signal value traceability analysis according to claim 1, characterized in that: The circuit diagram connection relationship database also includes circuit units, and corresponding relationships between reference signals and circuit units; The forming of the target circuit diagram according to all path sets includes: The target circuit diagram is formed according to the reference signals included in all path sets and the circuit units corresponding thereto.

Citation Information

Patent Citations

  • Signal path searching method and system

    CN113193878A

  • Data processing system for target data path display

    CN114896173A