# US 2020/0401201 A1 · Dynamic Power Consumption Estimation Method, Apparatus, and System

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0401201 A1
- Document ID: US20200401201A1
- Status: Published application
- Kind: A1
- Application number: 17/014,371
- Filed: 2020-09-08
- Published: 2020-12-24
- Earliest claimed: 2018-03-08
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wei Wei; Zhou Zhou; Yuwei Pu
- Web page: https://patentgrep.com/patent/US20200401201A1

## CPC

- G06F 1/28: Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
- G06F 30/33: Design verification, e.g. functional simulation or model checking
- G06F 1/08: Clock generators with changeable or programmable clock frequency
- G06F 30/396: Clock trees
- G06F 2117/04: Clock gating
- G06F 2119/06: Power analysis or power optimisation
- G06F 2119/12: Timing analysis or timing optimisation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A dynamic power consumption estimation method includes recording a statistical value of each of n target signals of a to-be-measured target in a unit time, where the target signal is a clock signal obtained after clock gating and the statistical value is a quantity of times toggling, or the target signal is a clock gating signal and the statistical value is a quantity of enable cycles, and calculating the dynamic power consumption of the to-be-measured target in the unit time based on the statistical value of each of the n target signals in the unit time.

## Claims

### Claim 1

A dynamic power consumption estimation apparatus, comprising:
a counter configured to:
record a statistical value of each of a plurality of target signals of a to-be-measured target in a unit time, wherein each of the target signals is a clock signal after clock gating and the statistical value is a quantity of times toggling, or wherein each of the target signals is a clock gating signal and the statistical value is a quantity of enable cycles; and
send the statistical value in the unit time; and
an adder circuit coupled to the counter and configured to:
receive the statistical value from the counter; and
calculate dynamic power consumption of the to-be-measured target in the unit time based on the statistical value in the unit time.

### Claim 2 (depends on 1)

The dynamic power consumption estimation apparatus of claim 1, further comprising a register coupled to the adder circuit and configured to store a weight coefficient corresponding to each of the target signals, wherein the adder circuit is further configured to calculate the dynamic power consumption of the to-be-measured target in the unit time based on the statistical value in the unit time and the weight coefficient.

### Claim 3 (depends on 2)

The dynamic power consumption estimation apparatus of claim 2, wherein the adder circuit is further configured to calculate the dynamic power consumption of the to-be-measured target in the unit time according to the following equation:
p
=
∑
i
=
1
n


a
i

k
i
+
ɛ
,
wherein ki represents a statistical value of an ith target signal in the target signals in the unit time, wherein ai represents a weight coefficient corresponding to the ith target signal, wherein ε represents an error term, wherein 1≤i≤n, and wherein i is an integer.

### Claim 4 (depends on 1)

The dynamic power consumption estimation apparatus of claim 1, wherein the counter comprises a plurality of counters, and wherein each of the counters is configured to count a statistical value of a target signal of the target signals in the unit time.

### Claim 5 (depends on 1)

The dynamic power consumption estimation apparatus of claim 1, wherein the to-be-measured target comprises a multi-level clock gating, and wherein each of the target signals is a clock signal after first-level clock gating.

### Claim 6 (depends on 1)

The dynamic power consumption estimation apparatus of claim 1, wherein the to-be-measured target comprises a multi-level clock gating, and wherein each of the target signals is a first-level clock gating signal.

### Claim 7

A dynamic power consumption method, comprising:
recording a statistical value of each of a plurality of target signals of a to-be-measured target in a unit time, wherein each of the target signals is a clock signal after clock gating and the statistical value is a quantity of times toggling, or wherein each of the target signals is a clock gating signal and the statistical value is a quantity of enable cycles;
calculating dynamic power consumption of the to-be-measured target in the unit time based on the statistical value in the unit time.

### Claim 8 (depends on 7)

The dynamic power consumption method of claim 7, further comprising calculating the dynamic power consumption of the to-be-measured target in the unit time based on the statistical value of each of the target signals in the unit time and a weight coefficient corresponding to each of the target signals.

### Claim 9 (depends on 8)

The dynamic power consumption method of claim 8, further comprising calculating the dynamic power consumption of the to-be-measured target in the unit time according to the following equation:
p
=
∑
i
=
1
n


a
i

k
i
+
ɛ
,
wherein ki represents a statistical value of an ith target signal in the target signals in the unit time, wherein ai represents a weight coefficient corresponding to the ith target signal, wherein ε represents an error term, wherein 1≤i≤n, and wherein i is an integer.

### Claim 10 (depends on 9)

The dynamic power consumption method of claim 9, further comprising:
obtaining a plurality of test power consumption segments, wherein each of the test power consumption segments comprises a statistical value of each of the target signals of the to-be-measured target in the unit time and the dynamic power consumption of the to-be-measured target in the unit time;
fitting the statistical value of each of the target signals of the to-be-measured target and the unit time and the dynamic power consumption of the to-be-measured target in the unit time in the test power consumption segments through linear regression; and
determining the dynamic power consumption according to a fitting result.

### Claim 11 (depends on 10)

The dynamic power consumption method of claim 10, further comprising:
constructing an electronic design automation (EDA) simulation environment comprising a first register transfer level (RTL) of the to-be-measured target and a second RTL of an intelligent temperature scheduling (ITS) system, wherein the first RTL simulates a first function of the to-be-measured target except a second function of the ITS system, wherein the second RTL simulates the second function of the ITS system, and wherein the ITS system implements dynamic power consumption estimation; and
executing a plurality of test cases in the EDA simulation environment to obtain the test power consumption segments.

### Claim 12 (depends on 7)

The dynamic power consumption method of claim 7, further comprising:
inputting the target signals to a plurality of counters; and
counting statistical values of the target signals in the unit time using the counters.

### Claim 13 (depends on 7)

The dynamic power consumption method of claim 7, wherein the to-be-measured target has a multi-level clock gating, and wherein the target signal is a clock signal after first-level clock gating.

### Claim 14 (depends on 7)

The dynamic power consumption method of claim 7, wherein the to-be-measured target has a multi-level clock gating, and wherein each of the target signals is a first-level clock gating signal.

### Claim 15

A dynamic power consumption estimation system, comprising:
a processor; and a memory coupled to the processor and storing instructions that, when executed by the processor, cause the dynamic power consumption estimation system to be configured to:
record a statistical value of each of a plurality of target signals of a to-be-measured target in a unit time, wherein each of the target signals is a clock signal after clock gating and the statistical value is a quantity of times toggling or wherein each of the target signals is a clock gating signal and the statistical value is a quantity of enable cycles; and
calculate dynamic power consumption of the to-be-measured target in the unit time based on the statistical value in the unit time.

### Claim 16 (depends on 15)

The dynamic power consumption system of claim 15, wherein the instructions further cause the dynamic power consumption estimation system to be configured to calculate the dynamic power consumption of the to-be-measured target in the unit time based on the statistical value of each of the target signals in the unit time and a weight coefficient corresponding to each of the target signals.

### Claim 17 (depends on 16)

The dynamic power consumption system of claim 16, wherein the instructions further cause the dynamic power consumption estimation system to be configured to calculate the dynamic power consumption of the to-be-measured target in the unit time according to the following equation:
p
=
∑
i
=
1
n


a
i

k
i
+
ɛ
,
wherein ki represents a statistical value of an ith target signal in the target signals in the unit time, wherein αi represents a weight coefficient corresponding to the ith target signal, wherein ε represents an error term, wherein 1≤i≤n, and wherein i is an integer.

### Claim 18 (depends on 17)

The dynamic power consumption system of claim 17, wherein the instructions further cause the dynamic power consumption estimation system to be configured to:
obtain a plurality of test power consumption segments, wherein each of the test power consumption segments comprises a statistical value of each of the target signals of the to-be-measured target in the unit time and the dynamic power consumption of the to-be-measured target in the unit time;
fit the statistical value of each of the target signals of the to-be-measured target and the unit time and the dynamic power consumption of the to-be-measured target in the unit time in the test power consumption segments through linear regression; and
determine the dynamic power consumption according to a fitting result.

### Claim 19 (depends on 18)

The dynamic power consumption system of claim 18, further comprising:
construct an electronic design automation (EDA) simulation environment comprising a first register transfer level (RTL) of the to-be-measured target and a second RTL of an intelligent temperature scheduling (ITS) system, wherein the first RTL simulates a first function of the to-be-measured target except a second function of the ITS system, wherein the second RTL simulates the second function of the ITS system, and wherein the ITS system implements dynamic power consumption estimation; and
execute a plurality of test cases in the EDA simulation environment to obtain the test power consumption segments.

### Claim 20 (depends on 15)

The dynamic power consumption system of claim 15, further comprising:
input the target signals to a plurality of counters; and
count statistical values of the target signals in the unit time using the counters.
