# US 11,119,559 B2 · Controlling a processor clock

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

- Number: US 11,119,559 B2
- Document ID: US11119559B2
- Status: Granted
- Kind: B2
- Application number: 16/428,797
- Filed: 2019-05-31
- Published: 2020-06-25
- Granted: 2021-09-14
- Earliest claimed: 2018-12-21
- Assignees: Graphcore Limited
- Applicants: Graphcore Limited
- Inventors: Stephen Felix; Mrudula Gore
- Web page: https://patentgrep.com/patent/US11119559B2

## CPC

- G06F 1/324: by lowering clock frequency
- G06F 1/06: Clock generators producing several clock signals {(G06F1/08 - G06F1/14 take precedence)}
- G06F 1/08: Clock generators with changeable or programmable clock frequency
- G06F 1/3206: Monitoring of events, devices or parameters that trigger a change in power modality
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

There is disclosed a method of controlling the frequency of a clock signal in a processor. The method selects a first clock generator to provide a processor clock signal for executing an application. If a threshold event is detected, a second clock generator is selected. The method reduces the frequency of a clock signal generated by the first clock generator while a processor clock signal is being provided for execution of an application from the second clock generator. The second clock generator generates a clock at a lower speed than the first clock generator. After a predetermined time the first clock generator is reselected to provide the processor clock signal. The threshold detection is repeated until an optimum clock frequency is discovered.

## Claims

### Claim 1

A method of clock signal control in a processor, the method comprising:
selecting a first clock generator, the first clock generator configured to generate a first clock signal, to provide a processor clock signal for executing an application;
detecting a threshold event indicating that the application has exceeded a power budget allocated for its execution;
selecting a second clock generator, the second clock generator configured to generate a second clock signal, to provide the processor clock signal for executing the application, wherein the frequency of the processor clock signal provided by the second clock generator is less than the frequency of the processor clock signal provided by the first clock generator;
reducing the frequency of a the first clock signal generated by the first clock generator while the processor clock signal is being provided from the second clock generator; and
after a predetermined time from selecting the second clock generator, reselecting the first clock generator to provide the processor clock signal, wherein the step of reducing the frequency of the first clock signal includes reducing the frequency by a predetermined amount during the predetermined time, and wherein the predetermined amount is between 1% and 5% of a starting value of the frequency of the first clock signal generated by the first clock generator.

### Claim 2 (depends on 1)

The method as claimed in claim 1 wherein a start value of the frequency of the first clock signal generated by the first clock generator is between 1 GHz and 1.6 GHz.

### Claim 3 (depends on 1)

The method according to claim 1 wherein the frequency of the second clock signal generated by the second clock generator is constant during execution of the application.

### Claim 4 (depends on 1)

The method according to claim 1 wherein the frequency of the second clock signal generated by the second clock generator is a fraction of the frequency of the first clock signal generated by the first clock generator.

### Claim 5 (depends on 1)

The method according to claim 1 wherein selecting the second clock generator comprises detecting that a selection value has been written into a register of the processor.

### Claim 6 (depends on 1)

The method according to claim 1 wherein reducing the frequency of the first clock signal generated by the first clock generator comprises adjusting configuration settings of the first clock generator via an adjustment input.

### Claim 7

A computer system comprising:
a first clock generator configured to generate a first clock signal;
a second clock generator configured to generate a second clock signal which has a frequency lower than that of the first clock signal;
switching circuitry configured to provide either the first clock signal or the second clock signal to a processor;
monitoring circuitry configured to detect a threshold event indicating that an application running on the processor has exceeded a power budget; and
controlling circuitry configured to, responsive to detection of the threshold event, cause the first clock generator to reduce the frequency of the first clock signal and to cause the switching circuitry to provide the second clock signal to the processor while the frequency of the first clock signal is reduced, wherein a start value of the frequency of the first clock signal generated by the first clock generator is between 1 GHz and 1.6 GHz.

### Claim 8 (depends on 7)

The computer system according to claim 7 wherein the first or the second clock generator is implemented as a phase locked loop.

### Claim 9 (depends on 7)

The computer system according to claim 7 wherein the first clock generator has an adjustment input selectable by the controlling circuitry to adjust the frequency of the first clock signal.

### Claim 10 (depends on 7)

The computer system according to claim 7 wherein the frequency of the second clock signal is maintained at a constant value for a period of execution of the application.

### Claim 11 (depends on 7)

The computer system according to claim 7 comprising a logic gate having:
a first input configured to receive from the monitoring circuitry an alert which is asserted to indicate detection of the threshold event, and
a second input configured to receive a value determined by the controlling circuitry, the logic gate being such that the second clock generator is selected if either of the first or second input is asserted.

### Claim 12 (depends on 7)

The computer system according to claim 7 comprising a register into which a value is written by the controlling circuitry.

### Claim 13 (depends on 7)

The computer system according to claim 7 wherein the monitoring circuitry comprises a power management integrated circuit.

### Claim 14 (depends on 7)

The computer system according to claim 7 wherein the monitoring circuitry comprises an ammeter and wherein the threshold event comprises an over current event indicating that the processor is drawing a current in excess of a current threshold when executing the application.

### Claim 15 (depends on 7)

The computer system according to claim 7 wherein the switching circuitry comprises a multiplexor having first and second inputs connected respectively to outputs of the first and second clock generators.

### Claim 16

A non-transitory machine readable medium having stored thereon instructions for performing a method comprising machine executable code which when executed by a processor, causes the processor to:
receive an alert indicating a power budget threshold is exceeded by an application executing at a first operating frequency according to a processor clock received from a first clock generator;
generate a clock adjustment signal to adjust the first clock generator in response to the alert;
select a second clock generator to provide the processor clock during a first time in which the first clock generator is adjusted;
after the first time has elapsed, select the first clock generator to provide the processor clock at a second operating frequency lower than the first operating frequency; and
after a second time has elapsed without the power budget threshold being exceeded, adjust the first clock generator to a third operating frequency, which is between the first operating frequency and the second operating frequency.

### Claim 17 (depends on 16)

The non-transitory machine readable medium as claimed in claim 16, wherein the machine executable code further causes the processor to:
select the second clock generator to provide the processor clock during the second time.

### Claim 18

A method comprising:
receiving an alert indicating a power budget threshold is exceeded by an application executing at a first operating frequency according to a processor clock received from a first clock generator;
generating a clock adjustment signal to adjust the first clock generator in response to the alert;
selecting a second clock generator to provide the processor clock during a first time in which the first clock generator is adjusted;
after the first time has elapsed, selecting the first clock generator to provide the processor clock at a second operating frequency lower than the first operating frequency; and
after a second time has elapsed without the power budget threshold being exceeded, adjusting the first clock generator to a third operating frequency, which is between the first operating frequency and the second operating frequency.

### Claim 19 (depends on 18)

The method of claim 18, further comprising: selecting the second clock generator to provide the processor clock during the second time.

### Claim 20 (depends on 18)

The method of claim 18, wherein the alert is asserted while the application exceeds its power budget threshold and for a fixed delay thereafter.

### Claim 21

A method of clock signal control in a processor, the method comprising:
selecting a first clock generator, the first clock generator configured to generate a first clock signal, to provide a processor clock signal for executing an application;
detecting a threshold event indicating that the application has exceeded a power budget allocated for its execution;
selecting a second clock generator, the second clock generator configured to generate a second clock signal, to provide the processor clock signal for executing the application, wherein the frequency of the processor clock signal provided by the second clock generator is less than the frequency of the processor clock signal provided by the first clock generator;
reducing the frequency of a the first clock signal generated by the first clock generator while the processor clock signal is being provided from the second clock generator; and
after a predetermined time from selecting the second clock generator, reselecting the first clock generator to provide the processor clock signal;
wherein reducing the frequency of the first clock signal generated by the first clock generator includes waiting for the predetermined time for the reduced clock frequency to stabilise.

### Claim 22 (depends on 21)

The method according to claim 21 wherein reducing the frequency of the first clock signal generated by the first clock generator reduces the frequency by a predetermined amount during the predetermined time.

### Claim 23 (depends on 21)

The method according to claim 21, wherein the frequency of the second clock signal generated by the second clock generator is constant during execution of the application.

### Claim 24 (depends on 21)

The method according to claim 21, wherein the frequency of the second clock signal generated by the second clock generator is a fraction of the frequency of the first clock signal generated by the first clock generator.

### Claim 25 (depends on 21)

The method according to claim 21, wherein selecting the second clock generator comprises detecting that a selection value has been written into a register of the processor.

### Claim 26 (depends on 21)

The method according to claim 21, wherein reducing the frequency of the first clock signal generated by the first clock generator comprises adjusting configuration settings of the first clock generator via an adjustment input.

### Claim 27

A method of clock signal control in a processor, the method comprising:
selecting a first clock generator, the first clock generator configured to generate a first clock signal, to provide a processor clock signal for executing an application;
detecting a threshold event indicating that the application has exceeded a power budget allocated for its execution;
selecting a second clock generator, the second clock generator configured to generate a second clock signal, to provide the processor clock signal for executing the application, wherein the frequency of the processor clock signal provided by the second clock generator is less than the frequency of the processor clock signal provided by the first clock generator;
reducing the frequency of the first clock signal generated by the first clock generator while the processor clock signal is being provided from the second clock generator; and
after a predetermined time from selecting the second clock generator, reselecting the first clock generator to provide the processor clock signal, wherein detecting the threshold event includes detecting that a current drawn by the processor in executing the application has exceeded a current threshold set based on the power budget.

### Claim 28 (depends on 27)

The method according to claim 27 wherein reducing the frequency of the first clock signal generated by the first clock generator reduces the frequency by a predetermined amount during the predetermined time.

### Claim 29 (depends on 27)

The method according to claim 27, wherein the frequency of the second clock signal generated by the second clock generator is constant during execution of the application.

### Claim 30 (depends on 27)

The method according to claim 27, wherein the frequency of the second clock signal generated by the second clock generator is a fraction of the frequency of the first clock signal generated by the first clock generator.

### Claim 31 (depends on 27)

The method according to claim 27, wherein selecting the second clock generator comprises detecting that a selection value has been written into a register of the processor.

### Claim 32 (depends on 27)

The method according to claim 27, wherein reducing the frequency of the first clock signal generated by the first clock generator comprises adjusting configuration settings of the first clock generator via an adjustment input.

### Claim 33

A method of clock signal control in a processor, the method comprising:
selecting a first clock generator, the first clock generator configured to generate a first clock signal, to provide a processor clock signal for executing an application;
detecting a threshold event indicating that the application has exceeded a power budget allocated for its execution;
selecting a second clock generator, the second clock generator configured to generate a second clock signal, to provide the processor clock signal for executing the application, wherein the frequency of the processor clock signal provided by the second clock generator is less than the frequency of the processor clock signal provided by the first clock generator;
initiating a reduction of the frequency of the first clock signal generated by the first clock generator while the processor clock signal is being provided from the second clock generator; and
after a predetermined time from selecting the second clock generator, reselecting the first clock generator to provide the processor clock signal, wherein selecting the second clock generator is carried out responsive to detection that an alert signal has been asserted at a detection input of the processor, and
wherein reselecting the first clock generator is carried out before the frequency of the first clock signal generated by the first clock generator is reduced, such that when the first clock generator is reselected the processor clock signal is at the same clock frequency as it was before the second clock generator was selected.

### Claim 34 (depends on 33)

The method according to claim 33 further comprising asserting the alert signal responsive to detecting the threshold event, the alert signal being asserted while the application exceeds its power budget and for a fixed delay thereafter, after which it is de-asserted.

### Claim 35

A method of clock signal control in a processor, the method comprising:
selecting a first clock generator, the first clock generator configured to generate a first clock signal, to provide a processor clock signal for executing an application;
detecting a threshold event indicating that the application has exceeded a power budget allocated for its execution;
selecting a second clock generator, the second clock generator configured to generate a second clock signal, to provide the processor clock signal for executing the application, wherein the frequency of the processor clock signal provided by the second clock generator is less than the frequency of the processor clock signal provided by the first clock generator;
reducing the frequency of the first clock signal generated by the first clock generator while the processor clock signal is being provided from the second clock generator;
after a predetermined time from selecting the second clock generator, reselecting the first clock generator to provide the processor clock signal; and
after a time period at least an order of magnitude greater than the predetermined time, increasing the frequency of the first clock signal generated by the first clock generator to a higher value to determine whether the application can be executed at a higher processor clock frequency.

### Claim 36 (depends on 35)

The method according to claim 35 wherein reducing the frequency of the first clock signal generated by the first clock generator reduces the frequency by a predetermined amount during the predetermined time.

### Claim 37 (depends on 35)

The method according to claim 35, wherein the frequency of the second clock signal generated by the second clock generator is constant during execution of the application.

### Claim 38 (depends on 35)

The method according to claim 35, wherein the frequency of the second clock signal generated by the second clock generator is a fraction of the frequency of the first clock signal generated by the first clock generator.

### Claim 39 (depends on 35)

The method according to claim 35, wherein selecting the second clock generator comprises detecting that a selection value has been written into a register of the processor.

### Claim 40 (depends on 35)

The method according to claim 35, wherein reducing the frequency of the first clock signal generated by the first clock generator comprises adjusting configuration settings of the first clock generator via an adjustment input.

### Claim 41

A method of clock signal control in a processor, the method comprising:
selecting a first clock generator, the first clock generator configured to generate a first clock signal, to provide a processor clock signal for executing an application;
detecting a threshold event indicating that the application has exceeded a power budget allocated for its execution;
selecting a second clock generator, the second clock generator configured to generate a second clock signal, to provide the processor clock signal for executing the application, wherein the frequency of the processor clock signal provided by the second clock generator is less than the frequency of the processor clock signal provided by the first clock generator;
reducing the frequency of a the first clock signal generated by the first clock generator while the processor clock signal is being provided from the second clock generator; and
after a predetermined time from selecting the second clock generator, reselecting the first clock generator to provide the processor clock signal, wherein the frequency of the second clock signal generated by the second clock generator is in the range of 500 MHz to 800 MHz.
