A method, device, electronic equipment and program product for determining a power consumption analysis time window

By automating the acquisition and analysis of integrated circuit waveform data, generating flip-over activity curves, detecting change points, and calculating consistency values, the problem of power consumption analysis time window selection relying on manual experience is solved, achieving efficient and accurate power consumption analysis.

CN123159227APending Publication Date: 2026-11-24SHANGHAI HONGJUN RUITONG MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the selection of power consumption analysis time windows relies on human experience, resulting in large differences in choices among different engineers. This fails to cover the worst-case scenario, is time-consuming and has high storage costs, and makes it impossible to quantitatively compare the correlation between the selected time window and the maximum power consumption window.

Method used

By acquiring waveform data in the functional mode of the integrated circuit, analyzing the signal state sequence, generating the flip activity curve, detecting the change point to divide the platform segment, statistically analyzing the signal flip rate vector, calculating the consistency value between the sub-time window and the target time window, and automatically selecting the representative time period for power consumption analysis.

Benefits of technology

It automates and quantifies the selection of power consumption analysis time windows, shortens simulation optimization time, improves analysis accuracy and efficiency, and avoids the uncertainty of human experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159227A_ABST
    Figure CN123159227A_ABST
Patent Text Reader

Abstract

This application proposes a method, apparatus, electronic device, and program product for determining the time window for power consumption analysis. The method includes: acquiring waveform data from integrated circuit functional mode simulation; parsing to obtain the state sequences of multiple signals; counting the number of signals undergoing logic state transitions within each preset period to generate a transition activity curve; detecting change points on the curve, dividing the curve into plateau segments with adjacent change points as boundaries, and determining the plateau segment with the highest sum of signal counts as the target time window; sliding and cutting the target time window to obtain multiple sub-time windows, and counting the signal transition rate vectors of each sub-time window and the target time window; calculating the consistency value between the two, and determining the sub-time window with the highest consistency value as the characterizing time period and outputting its start and end times. This application achieves automated and quantifiable selection of the power consumption analysis time window, shortening the time consumed in power consumption simulation optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of integrated circuit design, and more specifically, to a method, apparatus, electronic device, and program product for determining a power consumption analysis time window. Background Technology

[0002] During the implementation of integrated circuit design projects, mid-to-back-end design engineers typically use waveform files provided by verification engineers for power consumption analysis and optimization. Waveform files record the logic states of various signals over time during digital simulation; for example, they can be binary files in a fast signal database format.

[0003] In related technologies, one approach is for engineers to specify the time window for power consumption analysis based on experience, and then perform power consumption analysis based on the waveform within that time window; another approach is to use electronic design automation tools to perform power consumption distribution calculations on all waveforms, observe the waveform of power consumption changes over time, and then select the time window with the largest average power consumption.

[0004] However, specifying a time window based on experience relies on individual expertise, leading to variations in the time windows chosen by different engineers and making it difficult to cover the worst-case power consumption scenarios. Performing power distribution calculations on all waveforms is time-consuming and inefficient in terms of storage, and the selected time windows are often too long, hindering the reduction of subsequent simulation optimization time. Furthermore, both of these methods rely on manual analysis or experience-based judgment, making it impossible to quantitatively compare the correlation between the selected time window and the complete maximum power consumption window. Therefore, an automated mechanism for determining the power analysis time window is needed. Summary of the Invention

[0005] The purpose of this application is to provide a method, apparatus, electronic device, and program product for determining a power consumption analysis time window, so as to improve the efficiency of selecting a power consumption analysis time window and make the quality of the time window selection quantifiable.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide a method for determining a power consumption analysis time window, including: Acquire waveform data generated by the simulation of the integrated circuit in functional mode. The waveform data records the logic state of multiple signals as they change over time. The waveform data is analyzed to obtain the state sequences of multiple signals; the number of signals whose logic states reverse within each cycle is counted according to a preset period to generate a reversal activity curve; Multiple change points are obtained by performing change point detection on the flip activity curve. Multiple platform segments are obtained by dividing the curve with adjacent change points as boundaries. The platform segment with the highest sum of signal counts is determined as the target time window. The change point represents the time position when the activity mode of the flip activity curve changes. The target time window is divided into multiple sub-time windows by sliding. The signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window are calculated respectively. The signal flip rate vector is composed of the flip rate of each signal in the window. The flip rate of the signal is the ratio of the number of flips of the signal in the window to the window duration. Calculate the consistency value between the signal toggle rate vector of each sub-time window and the signal toggle rate vector of the target time window; determine the sub-time window with the highest consistency value as the characterization time period, and output the start and end times of the characterization time period. The characterization time period is used to replace the target time window for power consumption analysis.

[0007] Secondly, embodiments of this application provide a device for determining a power consumption analysis time window, including a data acquisition module, a curve generation module, a window positioning module, and a characterization determination module. The data acquisition module acquires waveform data generated by simulation of an integrated circuit in a functional mode. The curve generation module parses the waveform data to obtain the state sequences of multiple signals, and counts the number of signals undergoing logic state flips within each cycle according to a preset period, generating a flipping activity curve. The window positioning module detects change points on the flipping activity curve to obtain multiple change points, divides the curve into multiple platform segments using adjacent change points as boundaries, determines the platform segment with the highest sum of signal counts as the target time window, performs sliding cutting on the target time window to obtain multiple sub-time windows, and respectively counts the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window. The characterization determination module calculates the consistency value between the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window, determines the sub-time window with the highest consistency value as the characterization time period, and outputs the start and end times of the characterization time period.

[0008] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program to implement the method described in the first aspect.

[0009] Fourthly, embodiments of this application provide a program product including a computer program that, when executed by a processor, implements the method described in the first aspect.

[0010] Compared to existing technologies, this application provides a method, apparatus, electronic device, and program product for determining a power consumption analysis time window. The method includes: acquiring waveform data from integrated circuit functional mode simulation; parsing to obtain the state sequences of multiple signals; counting the number of signals undergoing logic state transitions within each preset period to generate a transition activity curve; detecting change points on the curve, dividing the curve into plateau segments with adjacent change points as boundaries, and determining the plateau segment with the highest sum of signal counts as the target time window; sliding and cutting the target time window to obtain multiple sub-time windows, and counting the signal transition rate vector between each sub-time window and the target time window; calculating the consistency value between the two, and determining the sub-time window with the highest consistency value as the characterizing time period and outputting its start and end times. This application achieves automated and quantifiable selection of the power consumption analysis time window, shortening the time consumed in power consumption simulation optimization.

[0011] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0012] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 A flowchart illustrating a method for determining a power consumption analysis time window provided in an embodiment of this application; Figure 2 A schematic diagram of the flipping activity curve provided in the embodiments of this application; Figure 3 A schematic diagram of target time window sliding cutting and signal flip rate vector statistics provided for embodiments of this application; Figure 4 A flowchart illustrating another method for determining the power consumption analysis time window provided in an embodiment of this application; Figure 5 This application provides a schematic diagram of a change point detection and platform segmentation method. Figure 6 A flowchart illustrating the determination of the time period based on dual criteria provided in this application embodiment; Figure 7 A schematic diagram of a device for determining a power consumption analysis time window provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0015] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0016] In the description of this application, it should also be noted that, unless otherwise explicitly specified and limited, the terms "set" and "connection" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0017] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0018] In integrated circuit power consumption analysis, verification engineers generate waveform files for the functional modes after completing digital simulations. Back-end design engineers then use these waveform files to conduct power consumption analysis and iterative optimization. The selection of the time window directly determines the time consumption and accuracy of the power consumption analysis. An excessively long window will increase the time consumption and storage overhead of power distribution calculation and simulation optimization, while an improperly selected window will fail to cover the worst-case power consumption scenarios.

[0019] In current practices, the time windows specified by verification engineers based on experience vary from person to person and are difficult to guarantee coverage of the worst-case scenario. The method of using electronic design automation tools to perform power distribution calculations on all waveforms before selecting a time window consumes significant computational time and storage resources. A common drawback of both methods is that the correlation between the selected time window and the complete maximum power consumption window cannot be quantified, making the selection quality incomparable.

[0020] To address the aforementioned issues, the core design concept of this application is to parse waveform data into a state sequence of each signal, statistically generate a flipping activity curve, use change point detection to divide the activity mode switching point of the flipping activity curve into homogeneous plateau segments, determine the plateau segment with the highest sum of signal numbers as the target time window, and then quantify the degree of representation by the consistency value between the signal flip rate vector of each sub-time window and the target time window, and select the representation time period that can replace the target time window, thereby realizing the automated and quantifiable selection of the power consumption analysis time window.

[0021] Optionally, Figure 1 This is a flowchart illustrating a method for determining a power consumption analysis time window, provided in an embodiment of this application. The method is executed by a computer device running the method, such as a server or personal computer deployed with power consumption analysis tools. Figure 1 As shown, the method includes the following steps.

[0022] Step 100: Obtain waveform data generated by the integrated circuit simulation in functional mode.

[0023] The waveform data records the logical state of multiple signals as they change over time.

[0024] Optionally, the waveform data originates from a digital simulation of the integrated circuit in a functional mode, such as a binary file in a fast signal database format, which records the 0 / 1 logic states of each signal as they change over time during the simulation. The simulation stimuli in the functional mode closely resemble the actual operating scenario of the chip; therefore, the power consumption analysis time window determined based on this waveform data can reflect the power consumption level under real-world conditions.

[0025] Step 101: Analyze the waveform data to obtain the state sequences of multiple signals.

[0026] Optionally, the binary waveform data is rapidly parsed to extract the logic states of all digital signals at different times, resulting in a 0 / 1 state sequence for each signal. The parsed state sequence can be organized into a two-dimensional data table as shown in Table 1 below. Each row in Table 1 corresponds to a sampling time, and each column corresponds to a signal. The table retains the logic state values ​​of each signal at different times, with the unit of time being femtoseconds.

[0027] Table 1

[0028] It should be noted that the table above is only an example of the state sequence organization. The number of signals and the number of sampling times are determined by the scale of the integrated circuit and the simulation time, and this application does not limit them.

[0029] Step 102: Count the number of signals that undergo logic state flipping in each cycle according to the preset cycle, and generate a flipping activity curve.

[0030] Optionally, the preset period is, for example, 0.5 nanoseconds, i.e., one clock cycle. For each cycle, the number of signals whose signal state changes from 1 to 0 or from 0 to 1 between adjacent moments is counted, and the number of toggling signals at different moments is recorded, thereby generating a toggling activity curve showing the number of toggling signals changing over time. The logic state toggling of a signal causes the circuit to charge and discharge. The more toggling signals there are, the greater the dynamic current during that period. Therefore, the toggling activity curve can serve as a proxy indicator of dynamic current, used to locate periods of high power consumption without performing power distribution calculations.

[0031] Step 103: Detect change points on the flipping activity curve to obtain multiple change points, divide the curve into multiple platform segments with adjacent change points as boundaries, and determine the platform segment with the highest sum of signal counts as the target time window.

[0032] The change point represents the time position at which the activity mode of the flipped activity curve changes.

[0033] Optionally, Figure 2 This is a schematic diagram of the flipping activity curve provided in an embodiment of this application. Figure 2 As shown, the horizontal axis of the flip activity curve represents time, and the vertical axis represents the number of flip signals per cycle. The curve exhibits low activity from 0 microseconds to 50.55 microseconds, relatively low activity from 50.55 microseconds to 69.75 microseconds, relatively high activity from 69.75 microseconds to 80.28 microseconds, and extremely high activity from 80.28 microseconds to 95.79 microseconds. After 95.79 microseconds, it returns to a relatively high activity mode. The high activity mode corresponds to the period of worst chip power consumption. Figure 2 The target power consumption period is marked in the figure. If a fixed width rule is used to divide the total duration corresponding to the curve into windows, the window will span two activity modes at the activity mode switching point, resulting in impure signal activity within the window, which in turn affects the accuracy of the power consumption analysis results.

[0034] Therefore, this step performs change point detection on the flipped activity curve, automatically locates the switching position of the activity mode, and divides the time period corresponding to the curve into multiple plateau segments with adjacent change points as boundaries. The signal activity level within each plateau segment is homogeneous. Based on this, the plateau segment with the highest sum of signal quantity within each plateau segment is determined as the target time window, so that the target time window corresponds to the homogeneous period with the strongest signal activity and the highest power consumption. For example, Figure 2 The time periods corresponding to the medium-to-high activity patterns were determined as the target time windows.

[0035] Step 104: Perform sliding cutting on the target time window to obtain multiple sub-time windows, and calculate the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window respectively.

[0036] The signal flip rate vector is composed of the flip rates of multiple signals within the window, and the flip rate of a signal is the ratio of the number of times the signal flips within the window to the duration of the window.

[0037] Optionally, Figure 3 This is a schematic diagram illustrating the target time window sliding cut and signal flip rate vector statistics provided in an embodiment of this application. (See diagram below.) Figure 3 As shown, the target time window is the period from 80.28 microseconds to 95.79 microseconds. It is divided into sub-time windows W1 to WK by sliding the window according to a specified window duration Δt. For each sub-time window, the true flip rate of each signal within the window is calculated. The flip rate r(i, Wk) of signal i within sub-window Wk is the ratio of the number of flips of signal i within that sub-window to the window duration Δt. The flip rates of n signals constitute the signal flip rate vector R(Wk) = [r(1, Wk), r(2, Wk), ..., r(n, Wk)]. Where k ∈ {1, 2, ..., K}.

[0038] Similarly, the signal toggle rate vector R(Total) for the target time window is statistically analyzed in the same manner. The toggle rate statistics are aligned at the sampling points to ensure that each sub-time window covers the same set of signals as the target time window. The window duration Δt can be set according to the granularity requirements of power consumption simulation, and this application does not limit its specific value.

[0039] Step 105: Calculate the consistency value between the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window.

[0040] Optionally, this consistency value is used to quantify the degree of consistency between the activity level distribution of each signal within the sub-time window and the activity level distribution of each signal within the target time window. The higher the consistency value, the better the sub-time window characterizes the signal activity distribution of the target time window. The specific calculation model for the consistency value will be explained in subsequent embodiments.

[0041] Step 106: Determine the sub-time window with the highest consistency value as the representation time period, and output the start and end times of the representation time period.

[0042] This characterization time period is used to replace the target time window for power consumption analysis.

[0043] Specifically, the characterization time period is the sub-time window that best represents the signal activity distribution of the target time window. After its start and end times are output, the power analysis tool can load only the waveform data within the characterization time period for power analysis, without having to perform power distribution calculations on the waveforms of the entire target time window.

[0044] The method provided in this application detects change points in the flip activity curve and divides the platform segment with the change points as boundaries, making the signal activity within the target time window homogeneous and avoiding the window spanning the activity mode switching point; it quantifies the degree of representation of the target time window by the consistency value between the signal flip rate vectors, so that the selection of the time window no longer depends on human experience and the selection quality can be quantified and compared; it uses the sub-time window with the highest consistency value as the representation time period to replace the target time window for power consumption analysis, which shortens the time consumption and storage overhead of power consumption simulation optimization while ensuring the representativeness of the analysis object.

[0045] Optionally, in one possible implementation, considering the presence of point-by-point noise in the flip activity curve, and the possibility that noise spikes might be falsely detected as activity mode switching points, the flip activity curve is smoothed before change point detection. Figure 1 On this basis, Figure 4 A flowchart illustrating another method for determining the power consumption analysis time window provided in this application embodiment is shown below. Figure 4 As shown, in step 103, multiple change points are obtained by detecting change points on the flipped activity curve, which can be achieved through the following steps.

[0046] Step 103-1: Smooth the flipped activity curve using a moving average to obtain a smoothed sequence.

[0047] The length of the smoothing window is determined based on the number of samples of the flipped active curve, and the length of the smoothing sequence is consistent with the length of the flipped active curve.

[0048] Optionally, an equal-weighted moving average is performed on the flipped activity curve, with the smoothing window length being, for example, one two-hundredth of the number of samples, where the number of samples is the number of time scales recorded on the time axis. The sequence length is kept constant during smoothing to suppress point-by-point noise.

[0049] Step 103-2: Perform change point detection on the smooth sequence based on the pruned exact linear time algorithm to obtain multiple change points.

[0050] The pruning exact linear-time algorithm aims to minimize the sum of intra-segment costs and the sum of segment penalty terms when segmenting smooth sequences, and removes candidate change points that do not constitute the globally optimal segmentation during the segmentation process.

[0051] It should be noted that, unlike heuristic change point detection methods such as binary segmentation, the pruning precise linear-time algorithm finds the globally optimal segmentation in average linear time, thus avoiding the missed or false detections that can occur with heuristic methods. For example, in Figure 2 On this basis, Figure 5 A schematic diagram of variable point detection and platform segmentation provided in an embodiment of this application is shown below. Figure 5 , Figure 5 The detected change points are located at 50.55 microseconds, 69.75 microseconds, 80.28 microseconds, and 95.79 microseconds, corresponding to the transition positions between low activity mode and lower low activity mode, lower low activity mode and higher activity mode, higher activity mode and high activity mode, and high activity mode and higher activity mode, respectively. The change point detection method provided in this example suppresses point-by-point noise through smoothing preprocessing and locates the activity mode transition positions using globally optimal segmentation, thereby improving the accuracy of change point detection.

[0052] Optionally, in one possible implementation, after dividing the platform into multiple segments using adjacent variable points as boundaries, the target time window is selected from the filtered platform segments. For example... Figure 5 As shown, filtering is performed on each platform segment, and platform segments with a segment length less than the preset minimum platform width are merged into adjacent platform segments.

[0053] Specifically, the preset minimum segment length is consistent with the minimum segment length for change point detection, and the preset minimum platform width is, for example, 2 microseconds, i.e., 2 × 10⁻⁶. 9 Femtosecond. For example. Figure 5 The excessively short burst segment between 80.3 microseconds and 81.3 microseconds, with a duration of approximately 1 microsecond, is less than the preset minimum platform width of 2 microseconds and is merged backwards into the adjacent platform segment 4. After merging, platform segments 1 to 5 enter the candidate set for the target time window, among which platform segment 4 has the highest sum of signal counts and is determined as the target time window. The platform segment filtering method provided in this example merges statistically unreliable excessively short segments backwards into adjacent platform segments, avoiding interference from spike segments in the positioning of the target time window. It should be noted that "backwards" in this example means merging in the direction closer to the mean; for example, in this example, merging backwards into the adjacent platform segment means merging the platform segment that does not meet the filtering conditions with its next adjacent platform segment in time into one platform segment. The boundary of the merged platform segment is the end time of the next adjacent platform segment, and the duration of the merged platform segment is the sum of the durations of the original two platform segments.

[0054] Optionally, in other implementations, platform segments that do not meet the filtering conditions can be merged forward to their preceding adjacent platform segment; this application does not limit the merging direction. Optionally, in one possible implementation, the segmentation objective and search method of the pruned exact linear time algorithm are described. When performing change point detection based on the pruned exact linear time algorithm on a smooth sequence, the search range of candidate change points is determined by the minimum segment length as a constraint, and the search step size is set with a preset threshold of the minimum segment length. Then, multiple change points are determined from the candidate change points according to the minimization of the objective function.

[0055] It should be noted that the preset threshold used to determine the search step size in this example represents the proportion of the search step size to the minimum segment length and is used to constrain the search granularity of candidate change points. Its meaning is different from the preset threshold used later to determine whether the consistency value of each sub-time window meets the standard. The latter is used to measure the consistency between the sub-time window and the target time window. The two have different objects and uses.

[0056] Optionally, the objective function is the sum of the intra-segment costs of each sub-segment and the sum of the segment number penalty term, as shown in the following formula.

[0057] Min Σ i=1 C(τ i-1 :τ i )+β·K Where i is the sub-segment number, τ i Let τ be the position of the i-th change point (i = 1, 2, ..., K), where K is the number of sub-segments obtained from the division, and the i-th sub-segment is τ. i-1 To τ i The corresponding time period and τ0 corresponds to the starting point of the smoothed sequence, C(τ i-1 :τ i Let be the intra-segment cost of the i-th sub-segment, and β be the penalty coefficient (β = total variance sum × 0.01, where total variance sum = number of samples × variance of the smoothed sequence). The intra-segment cost uses the variance sum of the sample values ​​within the sub-segment, which is equivalent to the negative log-likelihood under the Gaussian assumption, and is used to measure the homogeneity of activity levels within the sub-segment; the segment number penalty term is the product of the penalty coefficient β and the number of sub-segments K, used to suppress the number of sub-segments generated by the segmentation, and the larger β is, the fewer the number of segments; the penalty coefficient β is the product of the total variance sum and a preset ratio, used to adaptively adjust the strength of the segment number penalty term according to the fluctuation of the smoothed sequence, and the total variance sum is the product of the number of samples and the variance of the smoothed sequence, with the preset ratio, for example, being one percent.

[0058] Specifically, the minimum segment length is the ratio of the number of samples to the total duration of the smoothed sequence, i.e., the average number of sampling points per microsecond. For example, with a preset period of 0.5 nanoseconds and a total duration of 105 microseconds, the number of samples is 210,000, and the minimum segment length is 2,000 sampling points. The search step size is, for example, one-hundredth of the minimum segment length, i.e., 20 sampling points. Candidate change points are searched on the time axis with this step size as the granularity. During the segmentation solution process, the above objective function is used to eliminate candidate points that cannot become the optimal segmentation precursor, thereby obtaining the globally optimal set of change points in average linear time.

[0059] For example, the optimal change points are those with change points τ1 = 50.55 microseconds, τ2 = 69.75 microseconds, τ3 = 80.28 microseconds, and τ4 = 95.79 microseconds. The change point detection method provided in this example controls the number of segments through a segment number penalty term and removes redundant candidate points through pruning, thereby reducing the solution time while ensuring the global optimum of the segmentation.

[0060] Optionally, in one possible implementation, the consistency value is taken as the intraclass correlation coefficient (ICC), which adopts a two-way random effects, absolute consistency, single-measurement model. Combined with... Figure 3 The statistical diagram of the signal flip rate vector is used to illustrate the consistency value. When calculating the consistency value, multiple signals are used as the measurement objects. The signal flip rate vector of the sub-time window and the signal flip rate vector of the target time window are used as two measurements of the measurement objects. According to the two-way random effect, absolute consistency, and intragroup correlation coefficient model of single measurement, the consistency value corresponding to the sub-time window is calculated.

[0061] Among them, the two-way random effect refers to the effect of treating both the signal and the measurement as random sampling; the single measurement refers to using the flip rate vector of a single window as a measurement result; the absolute consistency model is used to penalize the difference in the relative distribution pattern between the two measurements and the deviation of the overall flip rate level when calculating the consistency value.

[0062] Specifically, even if the relative distribution of each signal within a sub-time window is completely consistent with the target time window, as long as the overall flip rate of the sub-time window is too high or too low, for example, if the sub-time window only covers high-activity periods or low-activity periods, its consistency value will decrease significantly.

[0063] This ensures that the determined representation time period is consistent with the target time window not only in the relative morphology of the signals but also in the absolute activity level. This is crucial for using the representation time period instead of the target time window in simulation optimization without introducing system bias. The consistency calculation method provided in this example ensures that the selection of the representation time period satisfies both morphological consistency and absolute activity level consistency, improving the reliability of using the representation time period instead of the target time window for power consumption analysis.

[0064] Optionally, in one possible implementation, the criteria for determining the time period are explained. Figure 6 A flowchart illustrating the determination of the time period based on dual criteria provided in this application's embodiments. (See attached flowchart.) Figure 6 As shown, in step 106, the sub-time window with the highest consistency value is determined as the characterization time period, which can be achieved through the following steps.

[0065] Step 106-1: Determine whether the consistency values ​​of each sub-time window exceed the preset threshold.

[0066] If the number of cases exceeds the limit, proceed to step 106-2; otherwise, proceed to step 106-3.

[0067] Step 106-2: Determine the sub-time window that exceeds the preset threshold and has the highest consistency value as the characterization time period.

[0068] Step 106-3: Determine the sub-time window with the highest consistency value as the representation time period, and mark the representation time period as not reaching the preset threshold.

[0069] Specifically, a preset threshold of 0.999 corresponds to a consistency mismatch rate of less than one in a thousand. The above criteria constitute a dual criterion: first, the preset threshold ensures strict representation that the representation time period is almost completely consistent with the target time window; second, the highest value is used to select the optimal one among all sub-time windows that meet the criteria, avoiding unstable selection results when multiple sub-time windows meet the criteria simultaneously.

[0070] For example, if there are windows with a consistency value exceeding 0.999 within any of the sub-time windows, then proceed... Figure 6 In step 106-2, the branch that meets the standard and has the highest value is determined as the representative time period; when the consistency value of each sub-time window does not exceed 0.999, proceed to... Figure 6 In step 106-3, the branch with the highest consistency value is identified as the representative time period and marked as not having reached a preset threshold, allowing users to determine whether to adopt it based on their business needs. Figure 6As shown, both branches ultimately converge to the start and end times of the output representation time period, which is used to replace the target time window for power consumption analysis. The method for determining the representation time period provided in this example ensures the rigor of the representation while retaining a manual intervention interface, making the selection results stable and traceable.

[0071] In one possible implementation, after step 106, the method further includes replacing the target time window with a characterizing time period, performing power consumption simulation on the integrated circuit, and optimizing and iterating the integrated circuit based on the power consumption simulation results.

[0072] Specifically, this power consumption analysis tool only loads waveform data corresponding to the characterization time period to perform power consumption analysis, and optimizes the integrated circuit based on the power consumption analysis results. After optimization, the simulation can be repeated and the aforementioned method can be executed again until the power consumption indicators meet the design requirements. Since the characterization time period is shorter than the target time window, and it has quantifiable characterization of the signal activity distribution within the target time window, the time consumption and storage overhead of power consumption analysis are reduced, and no system bias is introduced. The application method provided in this example implements the determined characterization time period into the power consumption analysis optimization process, shortening the optimization iteration cycle.

[0073] It should be noted that the smoothing method in the above embodiments is based on the equal-weighted moving average, but other smoothing methods can also be used; the penalty coefficient can be determined according to the preset proportion of the total variance, or it can be determined according to the Bayesian information criterion or a preset fixed value; the change point detection algorithm is not limited to the pruned exact linear time algorithm, but other change point detection algorithms that can locate the change point position of the activity mode switching can also be used; the waveform data file format is based on the fast signal database format, but this application does not limit the specific format of the waveform data.

[0074] Optionally, Figure 7 This is a schematic diagram of a device for determining a power consumption analysis time window, provided in an embodiment of this application. Figure 7 As shown, the device 20 includes a data acquisition module 200, a curve generation module 201, a window positioning module 202, and a characterization determination module 203.

[0075] The data acquisition module 200 is used to acquire waveform data generated by the simulation of the integrated circuit in functional mode.

[0076] The curve generation module 201 is used to parse the waveform data to obtain the state sequence of multiple signals, and to count the number of signals whose logic state flips in each cycle according to a preset period, thereby generating a flipping activity curve.

[0077] The window positioning module 202 is used to detect multiple change points on the flipping activity curve, divide it into multiple platform segments with adjacent change points as boundaries, determine the platform segment with the highest sum of signal counts as the target time window, slide and cut the target time window to obtain multiple sub-time windows, and respectively calculate the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window.

[0078] The characterization determination module 203 is used to calculate the consistency value between the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window, determine the sub-time window with the highest consistency value as the characterization time period, and output the start and end times of the characterization time period.

[0079] Optionally, such as Figure 7 As shown, waveform data flows into the data acquisition module 200, the state sequence generated by the curve generation module 201 and the flipping activity curve flow to the window positioning module 202, the target time window determined by the window positioning module 202 and the statistically obtained signal flipping rate vector flow to the characterization determination module 203, and the start and end times of the characterization time period output by the characterization determination module 203 are used to replace the target time window to carry out power consumption simulation and optimization iteration.

[0080] Optionally, in one possible implementation, when the window positioning module 202 performs change point detection, it first performs a sliding average smoothing on the flipped activity curve to obtain a smoothed sequence, and then performs change point detection on the smoothed sequence based on the pruning precise linear time algorithm.

[0081] The length of the smoothing window is determined based on the number of samples in the flipped activity curve, and the length of the smoothing sequence is consistent with the length of the flipped activity curve. The pruning precise linear-time algorithm segments the smoothing sequence with the goal of minimizing the sum of the intra-segment cost and the sum of the segment penalty term, and removes candidate change points that do not constitute a globally optimal segmentation during the segmentation process. This processing method corresponds to the smoothing and change point detection processing in the aforementioned method embodiments. It suppresses point-by-point noise through smoothing preprocessing and locates the activity mode switching position using globally optimal segmentation, thereby improving the accuracy of change point detection.

[0082] Optionally, in one possible implementation, the window positioning module 202 is further used to filter each platform segment before determining the target time window, merge platform segments with a number of sample points less than a preset minimum segment length and platform segments with a segment duration less than a preset minimum platform width into adjacent platform segments, and select the target time window from the filtered platform segments.

[0083] For example, in the previous case, the excessively short burst segment from 80.3 microseconds to 81.3 microseconds was merged backwards into the adjacent platform segment 4 by the window positioning module 202. After merging, the sum of the signal counts in platform segment 4 was the highest, and it was determined as the target time window. This processing method merges statistically unreliable excessively short segments into the adjacent platform segment, avoiding interference from glitch segments in the positioning of the target time window.

[0084] Optionally, in one possible implementation, when the window positioning module 202 performs change point detection based on the pruned exact linear time algorithm, it determines the search range of candidate change points with the minimum segment length as a constraint, and searches for candidate change points with a preset threshold of the minimum segment length as the search step size. Then, it determines multiple change points from the candidate change points according to the minimization of the objective function. Here, the minimum segment length is the ratio of the number of samples in the smoothed sequence to the total duration, the objective function is the sum of the intra-segment costs of each sub-segment and the sum of the segment number penalty term, and the penalty coefficient of the segment number penalty term is the product of the total variance and the preset ratio, so that the strength of the segment number penalty term is adaptively adjusted according to the fluctuation degree of the smoothed sequence.

[0085] For example, in the previous example, the window positioning module 202 searches with a step size of 20 sampling points, obtaining the variable point positions τ1 = 50.55 microseconds, τ2 = 69.75 microseconds, τ3 = 80.28 microseconds, and τ4 = 95.79 microseconds. This processing method makes the number of segmentation segments controllable through a segment number penalty term, reducing the solution time while ensuring the global optimum of segmentation.

[0086] Optionally, in one possible implementation, when the characterization determination module 203 calculates the consistency value, it takes multiple signals as measurement objects, and takes the signal flip rate vector of the sub-time window and the signal flip rate vector of the target time window as two measurements of the measurement objects. According to the intra-group correlation coefficient model of two-way random effects, absolute consistency, and single measurement, the consistency value corresponding to the sub-time window is calculated. The intra-group correlation coefficient model simultaneously penalizes the difference in the relative distribution pattern between the two measurements and the deviation of the overall flip rate level, so that the consistency value of the sub-time window whose overall flip rate level deviates from the target time window decreases, thereby improving the sensitivity of the consistency value to the flip rate level deviation.

[0087] Optionally, in one possible implementation, when determining the representation time period, the representation determination module 203 checks whether the consistency value of each sub-time window exceeds a preset threshold. If there is a sub-time window whose consistency value exceeds the preset threshold, the sub-time window with the highest consistency value exceeding the preset threshold is determined as the representation time period. If there is no sub-time window whose consistency value exceeds the preset threshold, the sub-time window with the highest consistency value is determined as the representation time period, and the representation time period is marked as not reaching the preset threshold. For example, in the previous example, the representation determination module 203 performs the above judgment with 0.999 as the preset threshold. This processing method ensures the reliability of the representation time period while providing a marking prompt for cases where the consistency value does not meet the standard.

[0088] Optionally, in one possible implementation, the device 20 is further configured to replace the target time window with a representative time period to perform power consumption simulation on the integrated circuit, and to perform optimization iteration on the integrated circuit based on the power consumption simulation results; wherein, the power consumption simulation and optimization iteration can be executed by the device 20 calling an external simulation tool, and this application does not limit the specific execution method of the power consumption simulation. This processing method performs power consumption simulation with a more representative representative time period, shortens the time consumption of a single simulation, and improves the efficiency of optimization iteration.

[0089] For example, in the previous example, platform segment 4 from 80.28 microseconds to 95.79 microseconds is determined as the target time window by window positioning module 202, and characterization determination module 203 determines the characterization time segment from the sub-time window obtained by sliding cutting. The specific processing of each module corresponds to the processing in the aforementioned method embodiments, and will not be repeated here. Optionally, Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 30 includes a processor 300, a memory 301, and a bus 302. The processor 300 and the memory 301 are connected through the bus 302. The memory 301 is used to store computer programs. When the processor 300 executes the computer programs, it implements the method for determining the power consumption analysis time window as described in any of the aforementioned method embodiments.

[0090] Optionally, the processor 300 may include one or more of a central processing unit and a graphics processing unit, and the number of processors 300 may be one or more.

[0091] Specifically, waveform data usually has a large data scale. Multi-core processors can be used to perform parallel processing of the state analysis, flip statistics and flip rate statistics of multiple signals to shorten the processing time. In computing devices with graphics processors, the parallel computing capabilities of graphics processors can also be used to accelerate the flip statistics and consistency value calculation.

[0092] The memory 301 may include one or more of volatile memory and non-volatile memory. The volatile memory is, for example, dynamic random access memory, used to temporarily store intermediate data such as state sequences, flip activity curves, signal flip rate vectors, and consistent values ​​of each sub-time window during method execution. The non-volatile memory is, for example, a solid-state drive, a hard disk drive, or a network-attached storage device, used to store computer programs and waveform data.

[0093] The bus 302 may include a data bus, an address bus, and a control bus, used to transmit data and control signals between the processor 300 and the memory 301. It should be noted that the specific types of the processor 300 and the memory 301 described above are merely examples, and this application does not limit their specific implementation.

[0094] Alternatively, in practical applications, the electronic device 30 may be manifested as a server, personal computer, or workstation with electronic design automation tools deployed, or as a computing node in a computing cluster or a computing instance provided by a cloud computing platform.

[0095] Specifically, the aforementioned method can be executed on a personal computer or workstation equipped with power analysis tools, providing waveform data for time window selection. For waveform data with a large data volume, the analysis task can also be submitted to a computing cluster, where computing nodes perform waveform parsing and inversion statistics, outputting the start and end times representing the time period, and then loading the corresponding waveform data with the returned start and end times for power consumption simulation. This application does not limit the specific product form of the electronic device 30.

[0096] This application also provides a program product, including a program that, when executed by a processor, implements the method for determining the power consumption analysis time window as described in any of the foregoing method embodiments, which will not be repeated here.

[0097] It should be noted that the specific values ​​in the above embodiments, such as the preset period of 0.5 nanoseconds, the smoothing window length of one two-hundredth of the number of samples, the preset minimum platform width of 2 microseconds, the preset ratio of one percent, and the preset threshold of 0.999, are merely illustrative examples, and this application does not limit the specific values ​​of the above parameters. Those skilled in the art can adjust the above parameters according to the scale of the integrated circuit, the simulation accuracy requirements, and the computing power conditions.

[0098] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

[0099] In the 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 program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code 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.

[0100] In addition, the functional modules in the various embodiments of this application 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.

[0101] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

[0102] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this application. No reference numerals in the claims should be construed as limiting the scope of the claims.

Claims

1. A method for determining a power consumption analysis time window, characterized in that, include: Acquire waveform data generated by simulating an integrated circuit in its functional mode; The waveform data is analyzed to obtain the state sequences of multiple signals. The number of signals whose logic state flips is counted among the multiple signals in each preset period, and a flip activity curve is generated. Multiple change points are obtained by performing change point detection on the flipped activity curve. Multiple platform segments are obtained by dividing the curve with adjacent change points as boundaries. The platform segment with the highest sum of signal counts is determined as the target time window. The change point represents the time position at which the activity mode of the flipped activity curve switches. The target time window is divided into multiple sub-time windows by sliding segmentation, and the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window are calculated respectively. Calculate the consistency value between the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window; The sub-time window with the highest consistency value is determined as the characterization time period, and the start and end times of the characterization time period are output; wherein, the characterization time period is used to replace the target time window for power consumption analysis.

2. The method according to claim 1, characterized in that, The step of detecting multiple change points on the flipped activity curve includes: The flipped activity curve is smoothed by a moving average to obtain a smoothed sequence; wherein, the length of the smoothing window is determined according to the number of samples of the flipped activity curve, and the length of the smoothed sequence is the same as the length of the flipped activity curve; The smooth sequence is subjected to change point detection based on the pruned exact linear time algorithm to obtain the multiple change points; wherein the pruned exact linear time algorithm segments the smooth sequence with the goal of minimizing the sum of the intra-segment cost and the sum of the segment number penalty term, and removes candidate change points that do not constitute the global optimal segmentation during the segmentation process.

3. The method according to claim 1, characterized in that, Before the step of determining the platform segment with the highest sum of the signal counts as the target time window, the method further includes: Each platform segment is filtered, and platform segments with fewer sample points than the preset minimum segment length and platform segments with a duration less than the preset minimum platform width are merged into adjacent platform segments; wherein, the target time window is selected from the filtered platform segments.

4. The method according to claim 2, characterized in that, The step of performing change point detection on the smoothed sequence based on a pruned exact linear-time algorithm includes: The search range of candidate change points is determined by using the minimum segment length as a constraint, and the search step size is set by using a preset threshold of the minimum segment length; wherein, the minimum segment length is the ratio of the number of samples in the smooth sequence to the total duration. The multiple variable points are determined from the candidate variable points according to the objective function minimization; wherein, the objective function is the sum of the intra-segment costs and the segment number penalty term of each sub-segment; the intra-segment cost is the sum of the variances of the sample values ​​within the sub-segment, used to measure the homogeneity of the activity level within the sub-segment; the segment number penalty term is the product of the penalty coefficient and the number of sub-segments, used to suppress the number of sub-segments generated by segmentation; the penalty coefficient is the product of the total variance and a preset ratio, used to adaptively adjust the strength of the segment number penalty term according to the fluctuation of the smoothed sequence, and the total variance is the product of the number of samples and the variance of the smoothed sequence.

5. The method according to claim 1, characterized in that, The step of calculating the consistency value between the signal flip rate vector of each of the sub-time windows and the signal flip rate vector of the target time window includes: Using the multiple signals as the measurement object, and the signal reversal rate vector of the sub-time window and the signal reversal rate vector of the target time window as two measurements of the measurement object, the consistency value corresponding to the sub-time window is calculated according to the two-way random effect, absolute consistency, and intragroup correlation coefficient model of a single measurement. The absolute consistency within-group correlation coefficient model is used to penalize the difference in relative distribution patterns between the two measurements and the deviation of the overall flip rate level when calculating the consistency value, so that the consistency value of the sub-time window of the overall flip rate level deviates from the target time window.

6. The method according to claim 1, characterized in that, The step of determining the sub-time window with the highest consistency value as the representative time period includes: Determine whether the consistency value of each of the sub-time windows exceeds a preset threshold; In the case where there is a sub-time window with a consistency value exceeding the preset threshold, the sub-time window that exceeds the preset threshold and has the highest consistency value is determined as the characterization time period; If there is no sub-time window with a consistency value exceeding the preset threshold, the sub-time window with the highest consistency value is determined as the representation time period, and the representation time period is marked as not reaching the preset threshold.

7. The method according to claim 1, characterized in that, After the step of determining the sub-time window with the highest consistency value as the representative time period and outputting the start and end times of the representative time period, the method further includes: The target time window is replaced by the characterized time period, and power consumption simulation is performed on the integrated circuit. The integrated circuit is then optimized and iterated based on the power consumption simulation results.

8. A device for determining a power consumption analysis time window, characterized in that, include: The data acquisition module is used to acquire waveform data generated by the simulation of the integrated circuit in functional mode; The curve generation module is used to parse the waveform data to obtain the state sequences of multiple signals. The number of signals whose logic state flips is counted among the multiple signals in each preset period, and a flip activity curve is generated. The window positioning module is used to detect multiple change points on the flipping activity curve, divide it into multiple platform segments with adjacent change points as boundaries, and determine the platform segment with the highest sum of signal counts as the target time window. The target time window is divided into multiple sub-time windows by sliding segmentation, and the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window are calculated respectively. The characterization determination module is used to calculate the consistency value between the signal flip rate vector of each sub-time window and the signal flip rate vector of the target time window; determine the sub-time window with the highest consistency value as the characterization time period, and output the start and end times of the characterization time period; wherein, the characterization time period is used to replace the target time window for power consumption analysis.

9. An electronic device, characterized in that, It includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program to implement the method as described in any one of claims 1 to 7.

10. A program product, comprising a program, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 7.