CN-121560703-B - SoC signal event analysis method and device, electronic equipment and storage medium
Abstract
The application provides an analysis method, an analysis device, electronic equipment and a storage medium of SoC signal events, which are used for acquiring input waveform files to be analyzed, configuration files and analysis processing time ranges, preprocessing the configuration files, determining at least one target analysis signal, analyzing the waveform files to be analyzed, extracting time points and jump values corresponding to at least one signal jump event of at least one target analysis signal in the analysis processing time ranges, recording accumulated events or target values based on a counting mode after a signal expression is executed at the time points corresponding to the signal jump events, and outputting SoC signal event analysis reports aiming at the waveform files to be analyzed based on the accumulated events or the target values. Therefore, the error rate of analysis and the analysis processing time can be reduced, and the efficiency and the accuracy of analysis of the SoC signal event can be improved.
Inventors
- HUANG HANWEN
- QIN SHUANGSHUANG
- WANG DASHENG
Assignees
- 此芯科技(武汉)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260123
Claims (10)
- 1. A method for analyzing SoC signal events, the method comprising: The method comprises the steps of acquiring an input waveform file to be analyzed, a configuration file and an analysis processing time range, wherein the configuration file comprises at least one data of a signal expression and a counting mode, wherein SoC signal events are triggered by hardware or software inside a system-level chip and are used for transmitting states, control information or synchronous instructions among different subsystems, IP cores or processing units, the signal expression is an expression supporting multiple operation models and multiple counting modes, and the signal expression is determined by self-defining logic paths, arithmetic modes and sampling operators in the signal expression according to analysis requirements; Preprocessing the configuration file, determining at least one target analysis signal, analyzing the waveform file to be analyzed, and extracting a time point and a jump value corresponding to at least one signal jump event of at least one target analysis signal in the analysis processing time range; after executing the signal expression at the time point corresponding to each signal jump event, recording an accumulation event or a target value based on the counting mode; And outputting an SoC signal event analysis report aiming at the waveform file to be analyzed based on the accumulated event or the target value.
- 2. The analysis method according to claim 1, wherein the configuration file further includes configuration file information, wherein the preprocessing the configuration file to determine at least one target analysis signal includes: analyzing a main configuration file in the configuration file based on the configuration file information; recursively loading the referenced sub-profiles in the profile, determining at least one target analysis signal for the waveform file to be analyzed.
- 3. The method according to claim 1, wherein the configuration file further includes view mode information, and before the analyzing the waveform file to be analyzed and extracting a time point and a jump value corresponding to at least one signal jump event of at least one target analysis signal in the analysis processing time range, the method further includes: detecting whether the view mode indicated by the view mode information is a block view mode or not based on the view mode information; if the view mode indicated by the view mode information is a block view mode, loading a logic block path mapping file and converting a logic path contained in the signal expression into a corresponding physical path.
- 4. The method of analysis of claim 1, wherein prior to the performing the signal expression at the point in time corresponding to each signal transition event, the method of analysis further comprises: And compiling and converting the signal expression into a suffix expression.
- 5. The method of claim 4, wherein the performing the signal expression at the corresponding time point of each signal transition event comprises: for each time point corresponding to the signal jump event, determining a clock edge corresponding to the time point, and executing the suffix expression on the corresponding clock edge.
- 6. The analysis method according to claim 1, wherein the configuration file further includes report parameter setting information, and the outputting of the SoC signal event analysis report for the waveform file to be analyzed based on the accumulated event or the target value includes: determining a target report type and type setting information of the analysis report based on the report parameter setting information; And outputting the SoC signal event analysis report of the waveform file to be analyzed of the target report type according to the type setting information based on the accumulated event or the target value.
- 7. The analysis method according to claim 6, wherein the report parameter setting information further includes a target processing mode, and the SoC signal event analysis report of the waveform file to be analyzed of the target report type is output according to the type setting information based on the accumulated event or the target value, and includes: Determining target processing data in the SoC signal event analysis report, processing the target processing data according to the target processing mode, and outputting the SoC signal event analysis report of the waveform file to be analyzed in the target report type according to the type setting information; wherein the target processing mode at least comprises highlighting the target processing data.
- 8. An analysis device for SoC signal events, the analysis device comprising: The system comprises a file input module, a signal expression and a counting mode, wherein the file input module is used for acquiring an input waveform file to be analyzed, a configuration file and an analysis processing time range, the configuration file comprises at least one data of a signal expression and the counting mode, wherein an SoC signal event is triggered by hardware or software in a system-level chip and is used for transmitting states, control information or synchronous instructions among different subsystems, IP cores or processing units, the signal expression is an expression supporting multiple operation models and multiple counting modes, and the signal expression is determined by self-defining a logic path, an arithmetic mode and a sampling operator in the signal expression according to analysis requirements; The waveform analysis module is used for preprocessing the configuration file, determining at least one target analysis signal, analyzing the waveform file to be analyzed and extracting a time point and a jump value corresponding to at least one signal jump event of at least one target analysis signal in the analysis processing time range; The event statistics module is used for recording accumulated events or target values based on the counting mode after the signal expression is executed at the time point corresponding to each signal jump event; and the report output module is used for outputting an SoC signal event analysis report aiming at the waveform file to be analyzed based on the accumulated event or the target value.
- 9. An electronic device comprising a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor in communication with the memory via the bus when the electronic device is in operation, the processor executing the machine-readable instructions to perform the steps of the method of analyzing SoC signal events of any of claims 1 to 7.
- 10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method of analyzing SoC signal events according to any of claims 1 to 7.
Description
SoC signal event analysis method and device, electronic equipment and storage medium Technical Field The present application relates to the technical field of chip performance analysis, and in particular, to a method and apparatus for analyzing SoC signal events, an electronic device, and a storage medium. Background The SoC signal event is a communication mechanism triggered by hardware or software in a system-level chip and used for transmitting state, control information or synchronous instructions among different subsystems, IP cores or processing units, and SoC analysis and verification are required in the chip development process so as to ensure that the chip functions correctly and the performance reaches the standard. In the prior art, the simulation event is generally output to a log when changing, an analysis result is obtained by analyzing the log, or the signal analysis result is obtained by manually positioning signal change by an engineer aiming at a generated waveform file, or SoC signal event analysis is carried out through bus access. In the scheme, the scheme cannot be adjusted in real time according to analysis requirements, or the manual processing efficiency is low, the error rate is high, and the efficiency and the accuracy of analysis of the SoC signal event are low. Disclosure of Invention Accordingly, the present application is directed to a method, an apparatus, an electronic device, and a storage medium for analyzing SoC signal events, which directly analyze and process acquired waveform files to be analyzed according to data in configuration files without modifying a test platform or a design code, to obtain accumulated events or target values, and further output SoC signal event analysis reports for the waveform files to be analyzed, so that analysis error rate and analysis processing time can be reduced, and efficiency and accuracy of SoC signal event analysis can be improved. In a first aspect, an embodiment of the present application provides an analysis method for SoC signal events, where the analysis method includes: acquiring an input waveform file to be analyzed, a configuration file and an analysis processing time range, wherein the configuration file comprises at least one data of a signal expression and a counting mode; Preprocessing the configuration file, determining at least one target analysis signal, analyzing the waveform file to be analyzed, and extracting a time point and a jump value corresponding to at least one signal jump event of at least one target analysis signal in the analysis processing time range; after executing the signal expression at the time point corresponding to each signal jump event, recording an accumulation event or a target value based on the counting mode; And outputting an SoC signal event analysis report aiming at the waveform file to be analyzed based on the accumulated event or the target value. In one possible implementation, the configuration file further includes configuration file information, wherein the preprocessing the configuration file to determine at least one target analysis signal includes: analyzing a main configuration file in the configuration file based on the configuration file information; recursively loading the referenced sub-profiles in the profile, determining at least one target analysis signal for the waveform file to be analyzed. In a possible implementation manner, the configuration file further includes view mode information, and before the analyzing the waveform file to be analyzed and extracting a time point and a jump value corresponding to at least one signal jump event of at least one target analysis signal in the analysis processing time range, the analysis method further includes: detecting whether the view mode indicated by the view mode information is a block view mode or not based on the view mode information; if the view mode indicated by the view mode information is a block view mode, loading a logic block path mapping file and converting a logic path contained in the signal expression into a corresponding physical path. In one possible implementation manner, before the signal expression is executed at the time point corresponding to each signal jump event, the analysis method further includes: And compiling and converting the signal expression into a suffix expression. In a possible implementation manner, the executing the signal expression at the time point corresponding to each signal jump event includes: for each time point corresponding to the signal jump event, determining a clock edge corresponding to the time point, and executing the suffix expression on the corresponding clock edge. In one possible implementation, the configuration file further includes report parameter setting information, and the outputting, based on the accumulated event or target value, a SoC signal event analysis report for the waveform file to be analyzed includes: determining a target report type and type settin