Multi-clock control
By employing multiple clock generators with adjustable frequency settings and a switching mechanism, the method addresses the complexity of selecting optimal clock frequencies for processing units, optimizing performance and power usage in AI/machine learning applications.
Patent Information
- Application Number
- JP2023502894
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-07-17
- Filing Date
- 2020-12-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-12-22
AI Technical Summary
The challenge of selecting an optimal clock frequency for a processing unit is complicated by interdependent factors such as voltage, current, and temperature, leading to power wastage and performance inefficiencies, particularly in AI/machine learning applications, where power requirements vary throughout execution.
A method involving multiple clock generators with adjustable frequency settings, allowing seamless transitions between different clock frequencies to maintain performance within power budget constraints, using a switching mechanism to adjust frequencies based on detected conditions.
This approach optimizes processing unit performance by maintaining average clock frequencies near the power budget threshold, balancing speed and power consumption, reducing voltage drops and transients, and ensuring consistent operation across varying computational loads.
Smart Images

Figure 0007571278000002 
Figure 0007571278000003 
Figure 0007571278000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a method and apparatus for controlling two clock generators for providing clock signals to a processing unit. [Background technology]
[0002] When running an application on a processing unit, there are many different variables that affect the performance of the processing unit when running that application. These variables include the voltage at which the processing unit is running, the current drawn by the processing unit, the temperature of the processing unit, and the clock frequency controlled by the processing unit clock signal. There are many situations in which these factors become interdependent. This can make selecting an optimal frequency for the processing unit clock signal very challenging.
[0003] When selecting a processing unit clock frequency, there are two potentially conflicting considerations. On the one hand, there is a general desire to eliminate "waste power." The faster the clock runs, the more power is consumed by applications running on the processing unit. On the other hand, more and more processing units are being built with the ability to run "hot" (i.e., with a high power budget). The faster a processing unit's clock runs, the more efficient it is at running a particular application and delivering its output. This is especially true for processing units that act as accelerators to handle demanding workloads in artificial intelligence / machine learning applications.
[0004] One factor that adds to the difficulty in trying to select an optimal clock frequency is that the power requirements of any given application running on a processing unit may vary throughout its execution. For example, as the application enters a computationally intensive phase, the number of switching elements of the processing unit that are switched on per clock cycle increases. Such an increase in the amount of switching in the processing unit leads to an increase in the amount of power that must be drawn by the processing unit to prevent a breakdown in the operation of the processing unit.
[0005] Because the power requirements of a processing unit vary throughout the execution of an application, there is a risk that the power drawn by the processing unit at some time may exceed the processing unit's power budget. In these situations, it is desirable to lower the clock frequency to avoid exceeding the power budget. On the other hand, if the processing unit runs less computationally intensive code with lower power usage, the clock frequency can be increased to allow the application to run more quickly.
[0006] One way in which the clock signal supplied to a processing unit can be modified is by providing multiple clock generators and switching between them. For example, when an application is executing computationally intensive code, the processing unit can be supplied with a clock signal from a low frequency clock generator to avoid exceeding a power budget. On the other hand, when the application is executing code that is less computationally intensive, the processing unit can be supplied with a clock signal from a high frequency clock generator to increase the speed at which the application runs. Summary of the Invention [Problem to be solved by the invention]
[0007] In some cases, when switching between clock generators as discussed, the frequency gap between the two clock generators where the switching occurs may be quite large in order to cover the appropriate frequency range of the processing unit. When switching between a very slow clock signal and a very fast clock, voltage drops and transients may occur. To reduce these effects, it has been proposed to constrain the size of the gap between the fast and slow clocks to a certain maximum size. However, on the other hand, there is a problem that the dynamic frequency range of the clock signal provided to the processing unit is reduced. [Means for solving the problem]
[0008] According to an embodiment of the present application, there is provided a method of controlling a frequency of a clock signal of a processing unit, the method comprising: selectively switching between a first clock generator for providing a processing unit clock signal for executing an application and a second clock generator for providing a processing unit clock signal having a frequency lower than that of the processing unit clock signal provided by the first clock generator; accessing in a memory a plurality of settings, each setting including a maximum frequency of the first clock generator and a minimum frequency of the second clock generator; changing from a current setting of the settings to a higher setting in response to at least one detected condition indicating a request to increase the frequency of the clock signal; and changing from the higher setting to a lower setting in response to at least one detected condition indicating a request to decrease the frequency of the clock signal. In the method, the higher setting has a maximum frequency of the first clock generator higher than the current setting and a minimum frequency of the second clock generator higher than the current setting. The higher setting also has a maximum frequency of the first clock generator higher than the lower setting and a minimum frequency of the second clock generator higher than the lower setting.
[0009] Thus, in a system where two clocks are provided, the clocks are adjusted between different settings, each setting having a minimum frequency for the slower of the clocks and a maximum frequency for the faster of the clocks, making it possible to clock a processing unit at a new frequency that may be outside the range previously provided by the clocks, without being constrained by an increase in the gap between the clocks, which would lead to larger transients.
[0010] In some embodiments, for each of the settings, the frequency of the clock signal provided by the second clock generator is fixed to the minimum frequency of the second clock generator of the corresponding setting.
[0011] In some embodiments, the detected at least one condition indicating a desire to increase the frequency of the clock signal includes a determination that the first clock generator has been selected to provide the processing unit clock signal for more than a predetermined amount of time.
[0012] In some embodiments, the detected at least one condition indicating a request to increase the frequency of the clock signal further includes a determination that the frequency of the first clock generator is set to a maximum frequency of the first clock generator at the current settings.
[0013] In some embodiments, the detected at least one condition indicating a desire to decrease the frequency of the clock signal includes a determination that the second clock generator has been selected for more than a predefined amount of time.
[0014] In some embodiments, the detected at least one condition indicating a desire to decrease the frequency of the clock signal includes a determination that the frequency of the first clock generator is set to less than or equal to the frequency of the second clock generator.
[0015] In some embodiments, the current setting has a higher maximum frequency of the first clock generator than the lower setting and a higher minimum frequency of the second clock generator than the lower setting.
[0016] In some embodiments, the lower setting and the current setting are the same.
[0017] In some embodiments, the method includes measuring, in a comparator, a current drawn by the processing unit to determine whether the processing unit is exceeding a power budget; using an output signal from the comparator to control selection of a first clock generator and a second clock generator; receiving the output signal in a controller device; and performing, in the controller device, the steps of using the output signal from the comparator to detect at least one condition indicative of a request to increase a frequency of the clock signal; and detecting at least one condition indicative of a request to decrease the frequency of the clock signal.
[0018] In some embodiments, the method includes changing to a lowest one of the settings in response to a detected overcurrent event, the lowest setting having lower minimum and maximum frequency values than any of the multiple settings.
[0019] In some embodiments, the comparator for determining whether the power budget has been exceeded is a first comparator, and detecting the overcurrent event is performed by a second comparator, the first comparator and the second comparator being different and the second comparator having a higher threshold than the first comparator.
[0020] In some embodiments, for the lowest one of the settings, the minimum frequency of the second clock generator and the maximum frequency of the first clock generator are the same frequency, and the step of changing to the lowest one of the settings includes selecting the second clock generator to provide the processing unit clock signal, then setting the frequency of the clock signal provided by the first clock generator to the same frequency, then selecting the first clock generator to provide the processing unit clock signal, then setting the frequency of the clock signal provided by the second clock generator to the same frequency.
[0021] In some embodiments, the gap between the minimum frequency of the second clock generator and the maximum frequency of the first clock generator is larger for higher ones of the settings than at the current setting, and the gap between the minimum frequency of the second clock generator and the maximum frequency of the first clock generator is larger for higher ones of the settings than at the lower ones of the settings.
[0022] In some embodiments, the switching includes selecting a first clock generator to provide a processing unit clock signal for executing the application, detecting a threshold event indicating that the application is exceeding a power budget allocated to its execution, selecting a second clock generator to provide the processing unit clock signal for executing the application, reducing a frequency of a clock signal generated by the first clock generator while the processing unit clock signal is provided by the second clock generator, and reselecting the first clock generator to provide the processing unit clock signal a predetermined time after selecting the second clock generator.
[0023] In some embodiments, the switching includes cycling between a first clock generator for providing a processing unit clock signal for executing an application during a first portion of a cycle and a second clock generator for providing a processing unit clock signal for executing an application during a second portion of the cycle, increasing an average clock frequency of the processing unit by increasing a ratio between a duration of the first portion of the cycle and a duration of the second portion of the cycle, and decreasing an average clock frequency of the processing unit by decreasing a ratio between a duration of the first portion of the cycle and a duration of the second portion of the cycle.
[0024] In some embodiments, the step of changing from the higher setting to the lower setting includes selecting a second clock generator to provide the processing unit clock signal, then setting a frequency of the clock signal provided by the first clock generator to a frequency lower than the maximum frequency of the first clock generator defined by the lower setting, then selecting the first clock generator to provide the processing unit clock signal, then setting the frequency of the clock signal provided by the second clock generator to the minimum frequency of the second clock generator defined by the lower setting, and then selecting the second clock generator to provide the processing unit clock signal.
[0025] In some embodiments, the frequency that is lower than the maximum frequency of the first clock generator is the minimum frequency of the second clock generator defined by a lower setting.
[0026] In some embodiments, the method includes then setting the frequency of the clock signal provided by the first clock generator to a maximum frequency of the first clock generator defined by the lower setting.
[0027] In some embodiments, the processing unit includes a plurality of processors, and the method includes distributing a processor clock signal along wires of a clock tree of the processing unit to each of the plurality of processors.
[0028] In some embodiments, the wire is a copper wire having a thickness greater than 0.2 micrometers.
[0029] According to a second aspect, a clock generator is provided comprising: a first clock generator for providing a processing unit clock signal for executing an application; a second clock generator for providing a processing unit clock signal for executing the application, wherein a frequency of the clock signal provided by the second clock generator is lower than a frequency of the clock signal provided by the first clock generator; a switching circuit configured to selectively switch between the first clock generator for providing the processing unit clock signal and the second clock generator for providing the processing unit clock signal; at least one memory configured to store a plurality of settings, each setting including a maximum frequency of the first clock generator and a minimum frequency of the second clock generator; and at least one memory configured to store a plurality of settings including a maximum frequency of the first clock generator and a minimum frequency of the second clock generator. A system is provided having a processor configured to: modify frequencies of a first clock generator and a second clock generator to change from a current one of the settings to a higher setting in response to at least one detected condition indicating a request to increase a frequency of a clock signal; and modify frequencies of the first clock generator and the second clock generator to change from the higher one of the settings to a lower setting in response to at least one detected condition indicating a request to decrease a frequency of the clock signal, the higher setting having a maximum frequency of the first clock generator higher than the current setting and a minimum frequency of the second clock generator higher than the current setting.
[0030] According to a third aspect, a computer program for execution by at least one processor of a system including: a first clock generator for providing a processing unit clock signal for executing an application; a second clock generator for providing a processing unit clock signal for executing the application, the frequency of the clock signal provided by the second clock generator being lower than a frequency of the clock signal provided by the first clock generator; and a switching circuit configured to selectively switch between the first clock generator for providing the processing unit clock signal and the second clock generator for providing the processing unit clock signal, the computer program, when executed by the at least one processor, includes in a memory a first clock generator for providing a processing unit clock signal for executing an application; and a minimum frequency of the first clock generator; in response to at least one detected condition indicating a request to increase the frequency of the clock signal, modifying the frequencies of the first and second clock generators to change from a current one of the settings to a higher setting; and in response to at least one detected condition indicating a request to decrease the frequency of the clock signal, modifying the frequencies of the first and second clock generators to change from the higher setting to a lower setting, the higher setting having a maximum frequency of the first clock generator higher than the current setting and a minimum frequency of the second clock generator higher than that of the current setting.
[0031] According to a fourth aspect, there is provided a non-transitory computer readable medium storing a computer program according to the third aspect.
[0032] For a better understanding of the present invention and to show how it may be carried into effect, reference will now be made, by way of example, to the accompanying drawings in which: [Brief description of the drawings]
[0033] [Figure 1] FIG. 2 is a schematic block diagram of a processing unit with a clock control system. [Diagram 2] FIG. 2 is a schematic block diagram of a clock generator module. [Diagram 3] FIG. 2 is a schematic block diagram of a clock control device. [Figure 4] 13 shows an example of how the frequency of a clock signal provided to a processing unit may vary over time when a clock dithering method is employed. [Diagram 5] According to the proposal, an example is given of how the frequency of the clock signal provided to the processing unit can vary over time. [Figure 6] A further example is given showing how the frequency of the clock signal provided to the processing unit may vary over time according to the proposal. [Figure 7] 1 shows an example of how the frequency of the clock signals provided to the processing units may vary over time if a multi-clock control scheme for shifting between gears is provided. [Figure 8] A further example is shown of how the frequency of the clock signals provided to the processing units may vary over time when a multi-clock control scheme for shifting between gears is provided. [Figure 9] 1 shows an example of a gear set that can be used for two clock generators in a system. [Figure 10A] 1 illustrates the process of shifting down a gear in the frequency of a clock generator. [Figure 10B] 1 illustrates the process of shifting up a gear in the frequency of a clock generator. [Figure 11]1 shows an example timeline illustrating how the frequency of a clock signal changes over time when a gearbox scheme is used. [Figure 12] 1 illustrates an example of a power management controller in more detail. [Figure 13] An example is given showing how the frequency of a clock signal supplied to a processor changes over time when the gearbox concept and the dithering concept are combined. [Figure 14] FIG. 1 is a schematic block diagram of a processor chip including multiple tiles. [Figure 15] 1 is a schematic diagram of a bulk synchronous parallel (BSP) computing model. [Figure 16] FIG. 2 is another schematic diagram of the BSP model. [Figure 17] 1 is a schematic showing the distribution of clock signals along wires to tiles arranged in a clock tree structure. [Figure 18] 1 is a method according to an embodiment of the first invention. [Figure 19] 2 is a method according to an embodiment of the second invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0034] In the following, both an embodiment of the first invention and an embodiment of the second invention will be described with reference to the accompanying drawings. These two inventions can function independently or in combination with each other. First, with reference to Figures 1 and 2, a system in which the first and / or second invention can be implemented will be described.
[0035] 1 is a schematic block diagram of a computer system including a processing unit 2. The computer system may be, for example, a single chip processing unit including multiple processors (tiles) 3. The processing unit 2 is clocked by a clock 4 which provides a reference clock ref_clk to the processing unit 2 at a base frequency. The processing unit 2 is connected to a management and control unit (MCU) module 6 which may be implemented on or off-chip. The MCU 6 manages multiple services of the processing unit 2 and in this regard controls the frequency of the clock signals which govern the operation of the tiles 3 on the processing unit 2. A power management integrated circuit (PMIC) 7 provides a power supply for the V DD The processing unit 2 provides power to the processing unit 2 through a supply rail labeled , and is connected to the MCU 6 through a bidirectional serial bus 30 and an interrupt pin (physical wire) 32. The processing unit 2 may be an accelerator used to process a workload assigned to the processing unit 2 by a host 8. The host 8 may provide workload data to the processing unit 2 through an interface 10. There may be a single processing unit 2 or multiple instances of processing units 2 connected on one card and on multiple cards in a rack. The processing unit 2 may be of the type known as an intelligent processor unit (IPU), designed to handle workloads in the field of artificial intelligence or machine learning. A description of IPUs is provided in U.S. Patent Application Publication No. 15 / 886,065, which is incorporated by reference.
[0036] The clock 4 may serve one processing unit 2 or several processing units 2. The clock supplies a reference clock ref_clk to an on-chip clock generator module 12 via a card connector. The on-chip clock generator module 12 generates an IPU clock signal Φ, which is supplied to the tiles 3 on the processing units 2. In FIG. 1, the physical clock lines supplying each tile 3 are not shown to avoid overcomplicating the figure. It should be noted that other parts of the processing units 2 (e.g. exchange 5 controlling inter-tile communication) may be clocked by the clock signal Φ or the reference clock (or some other clock).
[0037] As an alternative to clock 4 being supplied via a card connector or the like, there may be an on-board clock source, i.e. clock 4 may be implemented within processing unit 2. The clock signal from clock source 4 is the reference clock ref_clk from which the clock signal Φ for operating the processing unit is derived. The system clock for some aspects of the chip logic may also be derived from ref_clk.
[0038] According to an embodiment of the present invention, clock generator module 12 receives the ref_clk signal and generates the IPU clock signal Φ as described herein.
[0039] The on-chip clock generator module 12 receives input from the IPU clock select pad 22 which is connected to an interrupt pin 32 of the PMIC 7. The on-chip clock generator module 12 also receives a frequency control signal from the MCU 6 via the JTAG interface 38.
[0040] The clock generator module 12 includes two phase-locked loops (PLLs) 14, 16 shown in FIG. 2. While the clock generator module 12 is described as including various circuits, it will be understood that these circuits (PLLs, OR gates, MUX, registers) are not necessarily located in specific blocks and can be distributed around the chip. Thus, the clock controller 12 is described as a convenient way of explaining how an embodiment of the invention operates to control the generation of the IPU clock Φ. It should also be noted that while the clock signal generators 14, 16 are referred to as PLLs 14, 16, these components can more generally be any type of clock signal generator.
[0041] The PLLs 14, 16 receive a reference clock ref_clk. The first PLL 14 generates a so-called fast clock from ref_clk, and the second PLL 16 generates a so-called slow clock from ref_clk. A glitch-free multiplexer 18 receives the outputs from the PLLs 14, 16 and can switch between the fast and slow clocks to provide the IPU clock Φ. The multiplexer 18 is controlled by a MUX control signal 34. It is described herein that the MUX control signal 34 is asserted high to control the multiplexer 18 to select the output of the slow PLL 16, and is not asserted (asserted low) in the opposite condition. Of course, the opposite protocol can be used, with the MUX control signal 34 asserted low to select the output of the slow PLL 16, and asserted high in the opposite condition.
[0042] There are two mechanisms by which the MUX control signal 34 can be asserted, and thus the selection of the fast PLL 14 or the slow PLL 16 can be made. According to the first mechanism, the warning from the PMIC 7 (asserted on the interrupt pin 32 and sent to the MCU 6) is also fed to the input pad 22, which feeds one input of the OR gate 36. This provides an immediate "throttling" if the current is detected to exceed the current threshold. In FIG. 2, this signal received at the input pad 22 is shown as IPUCKSEL. The second mechanism involves the MCU 6 writing a "1" to the register 23, such that the multiplexer 18 is controlled to execute the application from the slow PLL 16 (even if the IPUCKSEL signal on the input pad 22 is not asserted).
[0043] The frequency at which the PLLs 14, 16 operate can be set based on signals received from the MCU 6 on wires 14a, 16a. Wires 14a, 16a may include two wires for carrying two different adaptation signals for adjusting the PLLs 14, 16. These signals are provided by the MCU 6 to the clock generator module 12 via a JTAG interface 38 as shown. In Fig. 2, reference numeral 14a denotes an adaptation signal for the high-speed PLL 14, and reference numeral 16a denotes an adaptation signal for the low-speed PLL 16. The high-speed and low-speed PLLs may be of the same or different types.
[0044] Referring to Figure 3, Figure 3 illustrates the MCU 6 in more detail. The MCU 6 includes a processing circuit 310 and at least one memory 320 for performing its functions as described herein. Preferably, the processing circuit 310 is a processor (such as a CPU) configured to execute instructions stored in the memory 320 to perform its functions as described. Additionally or alternatively, the processing circuit 310 may include a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC) configured to perform the functions as described.
[0045] Here, an embodiment of the first invention will be described.
[0046] In the first embodiment of the invention, the cycle between the fast PLL 14 and the slow PLL 16 is repeated. In other words, the switching between the fast PLL 14 and the slow PLL 16 is repeated. As a result, the processing unit 2 is clocked at an average clock frequency having a value between the clock frequency of the fast PLL 14 and the clock frequency of the slow PLL 16. The average clock frequency depends on the proportion of time of the cycle in which the signal of the fast PLL 14 is provided to the processing unit 2 compared to the proportion of time of the cycle in which the signal of the slow PLL 16 is provided to the processing unit 2. The proportion of time of the fast PLL 14 to the slow PLL 16 depends on the control signal received at the clock generation circuit 12. Thus, the average clock frequency increases in response to an increase in the proportion of time spent in the fast PLL 14 in the control signal. Similarly, the average clock frequency decreases in response to a decrease in the proportion of time spent in the fast PLL 14 to the slow PLL 16 in the control signal.
[0047] Each control signal received at the clock generation circuit 12 indicates whether the processing unit 2 is exceeding a set power budget. The power budget is set for a particular application or workload executed by the processing unit 2. The power budget is usually set by the host 8 and communicated to the MCU 6 (through the processing unit 2 or directly), but other possibilities exist. For example, the MCU 6 may be aware of previous similar applications executed on the chip and set the power budget based on storing such past data. In any case, the MCU 6 understands the power budget. If there are multiple chips on the card, the MCU 6 decides for each chip what the power budget for that chip can be. When executing applications in the field of machine learning and artificial intelligence, the demands placed on the processing requirements imply that the power budget should be reached but not exceeded. That is, the objective is to operate the chip as "hot" as possible within the constraints of the power budget. Based on the power budget, the MCU 6 decides the current thresholds managed by the PMIC 7. The MCU 6 communicates with the PMIC 7 over bus 30 to provide an indication of the power budget, which allows the PMIC 7 to determine the current thresholds to be applied. In some embodiments, the PMIC 7 provides a constant supply voltage VDD (e.g., 0.8 volts) to the supply rails of the processing unit 2, so that the current thresholds can be derived by dividing the power budget by the supply voltage VDD. In other situations, there are some complex calculations required to determine the current thresholds used by the PMIC 7. The PMIC 7 includes appropriate circuitry for calculating the current thresholds.
[0048] The PMIC 7 includes an ammeter 11 or other type of sensor capable of detecting when the current drawn by the processing unit 2 exceeds a current threshold. The PMIC 7 is suitably connected to the processing unit 2 to measure the current, although these connections are not shown in Figure 1. The current is the current being drawn by the processing unit 2 to run an application or workload.
[0049] The PMIC 7 also includes a comparator 15 and a filtering circuit 13. The comparator 15 is configured to receive an indication of a current threshold. The comparator 15 is configured to compare an indication of the current provided to the processing unit 2 with the current threshold to determine when the threshold has been exceeded. The indication of the current provided to the processing unit 2, input to the comparator 15, is received from the filtering circuit 13. The filtering circuit 13 is configured to receive a measurement of the current from the ammeter 11. The filtering circuit 13 filters the current measurement to provide a running average of the current. The filtering circuit 13 may filter the current to a time constant of 60 microseconds.
[0050] The comparator 15 itself is associated with a certain delay. The size of the delay depends on the time required for the comparator 15 capacitor to charge / discharge. The delay is such that if the comparator's received current indication is above the current threshold, the comparator 15 will not assert an output signal indicating so until the received current indication is above the threshold for more than a certain time. Similarly, if the comparator's received current indication is below the current threshold, the comparator 15 will not assert an output signal indicating so until the received current indication is below the threshold for more than a certain time. The amount of time before the comparator is triggered after the current falls below the threshold depends on the time required for the comparator 15 capacitor to discharge. The amount of time before the comparator is triggered after the current rises above the threshold depends on the time required for the comparator 15 capacitor to charge.
[0051] Comparator 15 receives an indication of the current and compares it to a current threshold. If the current threshold is exceeded, comparator 15 asserts a signal (IPUCKSEL) on wire 32. This signal is received at clock input select pad 22 and provided therefrom to clock generator module 12. Referring to Figure 2, the IPUCKSEL signal is received at multiplexer 18 and used to select slow PLL 16, so that the output of slow PLL 16 is provided as the clock signal to processing unit 2. Thus, PMIC 7 causes slow PLL 16 to be selected in the instance where an overcurrent event is detected.
[0052] On the other hand, if comparator 15 determines that the indication of the current provided to processing unit 2 is below the current threshold, then the output of comparator 15 is such that the IPUCLSEL signal is not asserted on wire 32. As a result, multiplexer 18 does not receive the IPUCLSEL signal, and thus high speed PLL 14 is selected. The output of high speed PLL 14 is provided to processing unit 2 as a clock signal to processing unit 2. Thus, PMIC 7 causes high speed PLL 14 to be selected in instances where an overcurrent event is not detected.
[0053] The filtering provided by filtering circuit 13 and the delay of comparator 15 increases the amount of time required to repeatedly switch the output of the comparator between high and low in response to changes in current measured by ammeter 11, thus appropriately reducing the switching rate between fast PLL 14 and slow PLL 16.
[0054] The frequencies of the fast PLL 14 and the slow PLL 16 are set such that during operation of the processing unit 2, the threshold clock frequency above which an overcurrent event occurs is located between the frequencies of the fast PLL 14 and the slow PLL 16. Thus, the fast PLL 14 and the slow PLL 16 can cover the dynamic range of the application. For example, the output frequency of the fast PLL may be 1.6 GHz and the output frequency of the slow PLL may be 800 MHz. However, during a particular phase of execution of an application running on the processing unit 2, the threshold frequency above which an overcurrent event occurs may be, for example, 1.2 GHz. If the processing unit 2 is clocked above this frequency, the processing unit 2 will exceed the set power budget. If the processing unit 2 is clocked below this frequency, the processing unit 2 will not exceed the set power budget.
[0055] It will be appreciated that the threshold frequency is not a constant amount throughout the operation of the processing unit 2, but may vary depending on the phase of the application executed by the processing unit 2. Specifically, when the application is in a computationally intensive phase, the threshold frequency is lower. When the application is in a less computationally intensive phase, the threshold frequency is higher.
[0056] The clock signal Φ cycles between the output of the slow PLL 16 and the output of the fast PLL 14, such that the average clock frequency approaches the threshold frequency. The resulting average clock frequency is just below the threshold frequency, and the average power consumed by the processing unit 2 is kept below the power budget by a small amount.
[0057] Consider the case where the fast PLL 14 is selected first. In this case, the frequency of the clock signal Φ is above the threshold frequency, so the ammeter 11 outputs an indication of a current above the threshold current. The comparator 15 determines from the filtered version of the current indication that the threshold has been exceeded, and in response outputs a signal on line 32 that causes the slow PLL 16 to be selected. At the time the slow PLL 16 is selected, the frequency of the clock signal Φ is below the threshold frequency, so the ammeter 11 outputs an indication of a current below the threshold current. The comparator 15 determines from the filtered version of the current indication that the threshold has not been exceeded, and in response deasserts the signal on line 32 such that the fast PLL 14 is again selected. In this manner, there is a dithering (i.e., cycling) of the selection between the fast PLL 14 and the slow PLL 16.
[0058] Multiplexer 18 dithers between selecting the fast PLL 14 output and the slow PLL 16 output so that the average current to processing unit 2 approaches a threshold value to provide good performance while avoiding power consumption that exceeds the power budget if the power consumption is averaged over a long enough period of time.
[0059] An example of a dithering process that may take place during the execution of an application on processing unit 2 is shown in Figure 4. Graph 400 shows how the frequency of clock signal Φ varies over the execution time of the application. Line 420 shows the average frequency of clock signal Φ starting at t=0. In this example, the current threshold is set to 125 amps. Exceeding this current threshold would result in the power budget being exceeded.
[0060] The example application of FIG. 4 exhibits an activity time interval of 1 ms. Within each time interval, the application has phases of high and low computational intensity. The pattern of high and low computational intensity phases repeats every 1 ms time interval. This type of pattern may occur when executing an application that involves repeatedly performing the same set of operations in a cycle. One example of such an application is an application for training a neural network, where multiple training iterations are performed, each training iteration involving repeating the same process using different data. When an application repeatedly performs the same set of operations, a repeating pattern appears in the activity level of the application. In the example shown in FIG. 4, the activity pattern has a time interval of 1 ms. An example of a time interval of an activity pattern is illustrated by time interval 430. FIG. 4 illustrates a high computational intensity phase 440 and a low computational intensity phase 450 as part of time interval 430. As shown, each phase of high computational intensity and each phase of low computational intensity repeats every 1 ms.
[0061] In the example of FIG. 4, each time interval of the application includes one phase of high computational intensity and one phase of low computational intensity, but other applications may exhibit different activity patterns and each time interval may have more distinct phases.
[0062] As shown in graph 400, initially at t=0, the frequency of clock signal Φ is set to the frequency of fast PLL 14. Before the start of the application, the current through processing unit 2 is zero and the current measured by comparator 15 is a filtered current, which has a delay associated with it, so that even when running an application in a high intensity phase, comparator 15 does not detect that the current has exceeded the threshold until some time into running the application. This is reflected in FIG. 4, which shows that the frequency remains at the frequency of fast PLL 14 for a period of time until comparator 15 asserts a signal indicating that the current threshold has been exceeded.
[0063] At the point where the comparator 15 detects that the filtered current exceeds the threshold, the comparator 15 asserts a signal to select the slow PLL 16. This is shown at the first falling edge of the frequency in Figure 4. At the point where the frequency decreases, the comparator 15 detects that the filtered current has fallen below the threshold and in response deasserts the signal to select the slow PLL 16, so that the fast PLL 14 is again selected and the clock signal Φ is provided to the processing unit 2. After the fast PLL 14 has been selected for a certain duration, the comparator 15 again detects that the filtered current has exceeded the threshold and in response asserts a signal to switch to the slow PLL 16.
[0064] Phase 440 of the application's activity is a relatively high activity phase during which processing unit 2 executes computationally intensive code. This is evidenced by the relatively small percentage of time spent on the fast clock compared to the other phases 450 of the application shown in FIG. 4 . After phase 440, the application enters phase 450, a less computationally intensive phase. As shown, the percentage of time spent on the fast clock in phase 450 is greater than the percentage of time spent on the fast clock in phase 440. Thus, the average clock frequency at which processing unit 2 operates during phase 450 is higher than the average clock frequency at which processing unit 2 operates during phase 440. This provides a performance advantage, which is desirable because processing unit 2 can be clocked faster during the low intensity phases of the application without exceeding the power budget of the application.
[0065] As shown in Fig. 4, the average frequency 420 of the clock signal Φ converges over time towards a particular value. In this example, that value is 1190 MHz. For the running application, this average clock frequency corresponds to an average current of 112.5 amps. This average current is below the current threshold of 125 amps set for processing unit 2 in the example of Fig. 4. Thus, the first invention achieves a good trade-off between performance of processing unit 2 and not exceeding the power budget of processing unit 2.
[0066] In some instances, the activity level of an application may change over very short time scales, such that if the duration of the time intervals of high activity level is very short, there is no need to switch from the fast PLL 14 to the slow PLL 16. This is made possible by the delay of the comparator 15, which switches its output only if there is a change in current above a threshold for more than a certain amount of time. For example, assume that the application enters a very computationally intensive phase for a short duration. In response to this change, the current drawn by the processing unit 2 exceeds a set threshold, such that after a certain amount of time, the filtered version of the current provided by the filtering circuit 13 also exceeds the threshold. The comparator 15 receives a filtered representation of the current, and if the filtered current indicates that the above-threshold condition does not continue for more than the set time constant of the comparator 15, the comparator 15 does not assert a signal to select the slow PLL 16. Thus, the delay associated with the comparator 15 allows the application to enter a computationally intensive phase for a short duration without a switch to the slow PLL 16 occurring.
[0067] The present invention has been described as using a current comparator to select the slow clock by asserting a signal once a current exceeding a threshold is detected. However, other implementations are possible. For example, the comparator 15 may assert a signal to select the fast clock once the current is determined to be below a threshold and deassert the signal when the indication rises above the threshold. In other examples, another device other than the comparator 15 (e.g., another input current monitor or a thermistor) may be used to indicate whether the power budget is exceeded and thus control the switching between the fast PLL 14 and the slow PLL 16. In other examples, the MCU 6 may be programmed to control the cycling between the fast PLL 14 and the slow PLL 16 according to a predefined schedule programmed into the MCU 6 software or firmware.
[0068] A second embodiment of the invention will now be described. The second embodiment of the invention is implemented in a system having a high-speed and a low-speed clock generator (such as the high-speed PLL 14 and the low-speed PLL 16 shown in FIG. 2). As described, the high-speed PLL 14 and the low-speed PLL 16 can be used to maximize the performance of the processing unit 2 while not exceeding the power budget. The example described here uses a dithering mechanism to cycle between the selection of the two PLLs 14, 16. However, other schemes utilizing the two PLLs 14, 16 can also be implemented. For example, such a scheme may provide that one of the PLLs 14, 16 is assigned to provide the processor clock Φ for most of the normal workload processing operations of the processing unit 2. However, if that PLL needs to be adjusted to a new frequency, the system switches to the other PLL while the main PLL is adjusted. Once the adjustment is complete, the system switches back to the main PLL. Such a scheme is referred to herein as a "step change" scheme and is described in detail in U.S. Patent Application Publication No. 16 / 428,797, which is incorporated by reference. Thus, the second invention can be implemented in any system that switches between a high speed clock generator and a low speed clock generator to clock a processing unit.
[0069] In the following description, the second invention embodiment will be described as being implemented in the system shown in FIG.
[0070] One potential problem with using two PLLs 14, 16 to clock the processing unit 2 is that if the frequency gap between the fast and slow clock frequencies is too large, switching from the slow clock PLL 16 to the fast PLL 14 can result in an unnecessarily large voltage drop. Such a voltage drop is caused by an impedance drop across the processing unit 2. The impedance Z across the processing unit 2 is a function of the frequency f and the switching capacitance C according to the following relationship:S Depends on.
number
[0071] From equation 1 it can be seen that the sudden increase in the frequency of the clock signal Φ when the high-speed PLL 14 is selected leads to a sudden drop in the impedance across the processing unit 2. This sudden drop in impedance results in a voltage drop across the processing unit 2 without giving the PMIC 7 any chance to react. The voltage drop is particularly severe in cases where the application enters a high activity phase at the moment the frequency of the clock signal Φ increases. When the application enters a high activity phase, the switching capacitance C S As can be seen from equation 1, a sudden increase in both the clock frequency and the switched capacitance leads to a large drop in the impedance of the processing unit 2 and therefore a large voltage drop.
[0072] To address this issue, a maximum gap between the faster and slower clock frequencies can be implemented. If the gap between these frequencies is constrained, the voltage drop resulting from switching between the two frequencies can be limited to a more manageable level. However, constraining the gap in this manner can create problems when trying to select an appropriate frequency to operate the processing unit 2 at. This problem is illustrated in Figures 5 and 6.
[0073] Referring to FIG. 5, FIG. 5 shows an example graph 500 illustrating how the frequency of processing unit 2 may change over time. Graph 500 shows the threshold frequency of processing unit 2 during the time interval shown, above which an overcurrent event occurs. As discussed, it is desirable to operate close to the threshold frequency (for performance reasons) without exceeding the threshold frequency (so as not to exceed the power budget). As can be seen in FIG. 5, the fast clock frequency and the slow clock frequency are both set to a level far below the threshold frequency, and the performance of processing unit 2 is suboptimal. Such a situation may occur when an application running on processing unit 2 enters a low activity phase. To improve the performance of processing unit 2 during this phase, one possible solution would be to increase the frequency of high-speed PLL 14 to a new higher frequency, as shown in FIG. 5. However, the maximum gap constraint imposed to limit voltage droop prevents the adjustment of high-speed PLL 14 to a high frequency level that would optimize performance.
[0074] Referring to FIG. 6, FIG. 6 shows a further exemplary graph 600 illustrating how the frequency of processing unit 2 may change over time. Graph 600 shows the threshold frequency of processing unit 2 during the time interval shown. As discussed, it is desirable to operate processing unit 2 at a high speed for performance reasons, but there is a set power budget that must not be exceeded. As shown by graph 600, the high speed clock frequency and the low speed clock frequency are both set at a level far above the threshold frequency, which means that the power budget is exceeded. This may occur when an application running on processing unit 2 enters a high activity phase. To improve the performance of processing unit 2, the frequency of the low speed PLL 16 can be updated to a new lower frequency, as shown in FIG. 6. However, the maximum gap constraint imposed to reduce voltage droop prevents the reduction of the low speed clock below the threshold frequency. Thus, even after updating the frequency of the low speed PLL 16, the power consumption of processing unit 2 still exceeds the power budget.
[0075] According to a second invention embodiment, multiple frequency settings are defined, each of which represents a maximum frequency of the fast PLL 14 and a minimum frequency of the slow PLL 16, so that the gap between the two frequencies is kept at a manageable level. Each of the settings is referred to in this description as a "gear." The system switches between the gears as needed. In response to a decision to increase the frequency of the clock signal Φ, a higher gear is selected, for which the maximum and minimum frequencies defined are higher than the previously selected gear. Similarly, in response to a decision to decrease the frequency of the clock signal Φ, a lower gear is selected, for which the maximum and minimum frequencies defined are higher than the previous gear.
[0076] As described above with reference to Figures 1 and 2, the MCU 6 is configured to provide control signals to the clock generator circuit 12 via the JTAG interface 38 to adjust the frequencies of the fast PLL 14 and the slow PLL 16. These control signals are shown provided on wires 14a, 16a to the fast PLL 14 and the slow PLL 16. In a second invention embodiment, when the MCU 6 determines to change to a higher gear in response to receiving the information, the MCU 6 adjusts the frequencies of both PLLs 14, 16 to the level of the new gear by issuing signals on wires 14a, 16a. When changing to a new gear, the MCU 6 may set the frequency of the fast PLL 14 to the maximum frequency of the fast PLL 14 defined for that gear and set the frequency of the slow PLL 16 to the minimum frequency of the slow PLL 16 defined for the new gear.
[0077] Referring to FIG. 7, FIG. 7 shows how the fast and slow clock frequencies can be adjusted from a lower gear to a higher gear in response to control signals received from the MCU 6. As shown in FIG. 7, the initial slow and fast clock frequencies are well below the threshold frequency. The initial slow and fast clock frequencies are set to the minimum slow and maximum fast clock frequencies for the lower gear, respectively. Following receipt of control signals at the fast PLL 14 and the slow PLL 16, the frequencies of those PLLs 14, 16 are updated as shown. These control signals set the slow and fast clock frequencies to the minimum slow and maximum fast clock frequencies for the higher gear, respectively. The slow PLL 16 is updated to have a frequency higher than its initial frequency, but lower than that of the initial fast clock frequency. The fast PLL 14 is updated to have a frequency higher than its initial frequency.
[0078] As shown in Fig. 7, the update frequency of the fast PLL 14 may be higher than the threshold frequency. In this case, the frequency of the fast PLL 14 may be gradually reduced until it is below the threshold frequency. Alternatively, dithering between the fast PLL 14 and the slow PLL 16 described for the first invention may be performed to provide an average clock frequency of the clock signal Φ that is lower than the frequency of the fast PLL and lower than the threshold frequency, but higher than the frequency of the slow PLL.
[0079] Referring to FIG. 8, FIG. 8 illustrates how the fast and slow clock frequencies can be adjusted from a higher gear to a lower gear in response to control signals received from the MCU 6. As shown in FIG. 8, the initial slow and fast clocks are well below the threshold frequency. In this example, the initial slow and fast clock frequencies are set to the minimum slow and maximum fast clock frequencies for the higher gear, respectively. Following receipt of control signals at the fast PLL 14 and the slow PLL 16, the frequencies of those PLLs 14, 16 are updated as shown. These control signals set the slow and fast clock frequencies to the minimum slow and maximum fast clock frequencies for the lower gear, respectively. The slow PLL 16 is updated to have a frequency lower than its initial frequency. The fast PLL 14 is updated to have a frequency lower than its initial frequency, but higher than the frequency of the initial slow clock frequency.
[0080] As shown in Fig. 8, the updated high-speed clock frequency may be higher than the threshold frequency. In this case, the frequency of the high-speed PLL 14 may be gradually reduced until it is below the threshold frequency. Alternatively, dithering as described for the first invention may be performed to provide an average clock frequency of the clock signal Φ that is lower than the threshold frequency.
[0081] The process of moving from a lower gear to a higher gear (where the higher gear has higher values for maximum fast clock frequency and minimum flow clock frequency than the lower gear) is referred to herein as "shifting up a gear," "up a gear," or the like. Similarly, the process of moving from a higher gear to a lower gear (where the higher gear has higher values for maximum fast clock frequency and minimum flow clock frequency than the lower gear) is referred to as "shifting down a gear," "down a gear," or the like. The shifting up or down of gears may be performed in response to detection of certain conditions by the MCU 6.
[0082] 7 and 8, adjacent gears overlap, so that when the frequencies of the fast PLL 14 and the slow PLL 16 are geared up, the frequency of the updated slow PLL 16 is lower than the frequency of the previous fast PLL 14 in a lower gear. Similarly, when the frequencies of the fast PLL 14 and the slow PLL 16 are geared down, the frequency of the updated fast PLL 14 is higher than the frequency of the previous slow PLL 16 in a higher gear. This overlap allows the gears to cover the full dynamic range of the application and can accommodate any frequency of the clock signal Φ (lower than the possible maximum that can be achieved by the fast PLL 14).
[0083] As shown in Figures 7 and 8, the maximum gap between the initial high-speed and low-speed clock frequencies is enforced by the MCU 6 by defining maximum and minimum frequencies for each gear. It should be noted that during the gear changing process, as can be seen from Figure 10, the maximum frequency gap between the two PLLs 14, 16 can be exceeded. However, during this gear changing process, no switching from the low-speed PLL 16 to the high-speed PLL 14 occurs, and thus no degradation problems associated with a large frequency gap are encountered. Once the gear changing process is completed, the new frequency value of the PLLs 14, 16 will not exceed the maximum value defined for the new gear.
[0084] In some embodiments, the gap between the maximum and minimum frequencies may be constant (i.e., the frequency gap defined for each gear is the same). In other embodiments, the gap may vary depending on the gear. In this case, a lower gear has a smaller gap between the maximum fast PLL 14 frequency and the minimum slow PLL 16 frequency than a higher gear. This is acceptable because at low frequencies, a change in processor clock frequency results in a larger change in impedance (as can be seen from Equation 1) and therefore a larger voltage drop effect.
[0085] As described, the MCU 6 stores settings that define each of the gears. Each of these gears is defined by a maximum frequency of the fast PLL 14 and a minimum frequency of the slow PLL 16. In some embodiments, when in a particular gear, the MCU 6 can set the frequency of the fast PLL 14 to a frequency lower than its maximum frequency set for that gear. On the other hand, the frequency of the slow PLL 16 can be fixed (i.e., the MCU 6 does not adjust the frequency of the slow PLL 16 above the minimum value defined for that gear). In other embodiments, the MCU 6 can vary the frequency of the slow PLL 16 while fixing the frequency of the fast PLL 14 when in a gear. In some embodiments, the frequencies of both PLLs can remain fixed when in a particular gear.
[0086] Thus, although the frequencies defined for a gear are referred to as "maximum" and "minimum" frequencies, in some embodiments, the frequencies of the fast PLL 14 and the slow PLL 16 do not deviate from these frequencies when in a particular gear. In other words, the "maximum" and "minimum" frequencies may be the only frequencies for that gear. This is the case when a dithering scheme is applied when in a gear. In other embodiments, the frequency of the fast PLL 14 may be reduced below the maximum frequency defined for the gear. This is the case when a step change scheme is applied when in a gear.
[0087] Referring to Figure 9, Figure 9 shows an example of different gears that can be applied by the MCU 6 when adjusting the frequencies of the fast PLL 14 and the slow PLL 16. The figure shows four different gears, each gear having a different maximum frequency for the fast PLL 14 and a different minimum frequency for the slow PLL 16. As shown, for multiple gears, the gap between the minimum and maximum frequencies increases monotonically with increasing magnitude of the minimum and maximum frequencies.
[0088] We now describe how the gear MCU 6 decides to change gears and how the change update can be implemented in different embodiments. Briefly summarized, the MCU 6 decides to shift up one gear in response to determining that the high-speed PLL 14 has been selected for more than a predefined duration. There are two ways in which the MCU 6 can decide to shift down one or more gears. In one embodiment, the MCU 6 decides to shift down a gear in response to determining that the low-speed PLL 16 has been selected for more than a predefined amount of time. This technique is used when the second invention is implemented using a dithering scheme. In another embodiment, the MCU 6 decides to shift down two gears in response to determining that the frequency of the high-speed PLL 14 is equal to or less than the frequency of the low-speed PLL 16. This technique is used when the second invention is implemented using a step change scheme.
[0089] The determination that the fast PLL 14 or the slow PLL 16 has been selected for more than a predefined amount of time is determined by the MCU 6 in the following manner: As described above with respect to FIG. 1, the comparator 15 receives an indication of the current measured by the ammeter 11. This indication is a filtered measurement of the current received from the filtering circuit 13. In response to determining that the current threshold has been exceeded, the comparator 15 causes the clock generator circuit 12 and the MCU 6 to provide a signal on wire 32 which, when received at the clock generator circuit 12, causes the slow PLL 16 to be selected. When the signal is deasserted, the fast PLL 14 is again selected.
[0090] Because the MCU 6 receives the same signal on wire 32 that controls the clock selection, the MCU 6 can determine when to select the fast PLL 14 and when to select the slow PLL 16. The MCU 6 uses this information to determine when a frequency gear shift is required. The MCU 6 determines that a gear shift should be performed when one of the PLLs 14, 16 has been selected for more than a predefined amount of time. For example, the MCU 6 can determine that the frequency of the PLLs 14, 16 should be shifted up when the fast PLL 14 has been selected for more than a predefined amount of time (e.g., 200 microseconds). Similarly, the MCU 6 can determine that the frequency of the PLLs 14, 16 should be shifted down when the selection of the slow PLL 16 does not last more than a predefined amount of time (e.g., 200 microseconds).
[0091] Referring to FIG. 10A, FIG. 10A illustrates an example of a process for shifting down a gear in response to determining that the slow PLL 16 has been selected for more than a predefined amount of time. This mechanism can be applied when a clock is dithering between the fast PLL 14 and the slow PLL 16. In FIG. 10A, the fast PLL frequency is shown in dashed lines and the slow PLL frequency is shown in solid lines. Initially, the MCU 6 selects the slow PLL 16 by writing to the register 23. In step (1) shown in FIG. 10A, the MCU 6 sends a signal on the wire 14a to adjust the frequency of the fast PLL 14 downward to the new frequency of the slow PLL 16. Following this, the MCU 6 deselects the slow PLL 16 by clearing the register 23, so that the fast PLL 14 is selected. Then, in step (2) shown in FIG. 10A, the MCU 6 sends a signal on wire 16a to adjust the slow PLL 16 down to the new frequency of the slow PLL 16. Following step (2), the MCU 6 writes to the register 23 again to select the slow PLL 16. Then, in step (3), the MCU sends a signal on wire 14a to adjust the fast PLL 14 up to the new frequency of the fast PLL 14. The process of moving down the gear is then completed. This technique for changing down the gear ensures that the gap between the fast and slow clock frequencies does not exceed a maximum value, and the clock signal Φ is provided by one of the two PLLs 14, 16 at the lowest frequency during the gear transition process.
[0092] Although the example of FIG. 10A shows the frequency of the fast PLL 14 being reduced to the updated slow PLL frequency (in step (1)), in other embodiments, the frequency of the fast PLL 14 can be reduced to a different frequency that is lower than the updated fast PLL 14 frequency but still reduces the gap between the frequencies of the fast PLL 14 and the slow PLL 16 during the transition process.
[0093] Throughout the description, high speed PLL 14 will be referred to as the "high speed clock," but it should be noted that during the portion of the transition process shown in Figure 10A, the clock signal generated by high speed PLL 14 is of a lower frequency than the signal generated by slow speed PLL 16. Thus, it is not necessary for high speed PLL 14 to always output a higher frequency signal than the signal of slow speed PLL 16, even when not shifting down a gear.
[0094] Referring to FIG. 10B, FIG. 10B shows an example of a process for shifting up a gear in response to determining that the fast PLL 14 has been selected for more than a predefined amount of time. This mechanism can be applied both when the clock dithers between the fast PLL 14 and the slow PLL 16 and when a step change scheme in the frequency of the fast PLL 14 is applied. In FIG. 10B, the fast PLL frequency is shown in dashed lines and the slow PLL frequency is shown in solid lines. Initially, the MCU 6 selects the fast PLL 14. In step (1) shown in FIG. 10B, the MCU 6 sends a signal on wire 16a to tune the slow PLL 16 to a new slow frequency. The MCU 6 then selects the slow PLL 16 by writing to register 23. In step (2), the MCU 6 then sends a signal on wire 14a to tune the fast PLL 14 to a new fast frequency. The process of moving the gear upwards is then completed.
[0095] In some cases, after the gear shift occurs, the condition that caused the gear shift is removed. For example, when a gear change occurs to move to a higher gear (the higher gear may be such that the threshold frequency falls between the updated high speed and low speed frequencies), the output of the high speed PLL 14 is selected for more than a predefined amount of time (e.g., 200 microseconds). In this case, the clock signal Φ no longer remains at the high speed PLL 14, and the system may dither between the high speed PLL 14 and the low speed PLL 16, or reduce the frequency of the high speed PLL 14 according to a step change scheme so that the frequency of the clock signal Φ can be properly managed. However, if the condition is not removed and the clock signal Φ remains at the output of the high speed PLL 14 for another example of a predefined amount of time (e.g., 200 microseconds), the MCU 6 may issue a signal to cause a further gear change to a higher gear. The MCU 6 continues the gear change until the condition is removed or the highest gear is reached (e.g., the high speed PLL 14 outputs its highest possible frequency).
[0096] Above, with respect to Fig. 10A, the process used to move down a gear when a dithering scheme is used has been described. Now referring to Fig. 11, Fig. 11 shows an alternative process for shifting down a gear. In this example, the shift to a lower gear is performed in response to the frequency of the fast PLL 14 being set substantially below the frequency of the slow PLL 16. This mechanism can be applied when the fast PLL 14 is adjusted stepwise to provide an appropriate frequency. In Fig. 11, the fast PLL frequency is shown in dashed lines and the slow PLL frequency is shown in solid lines.
[0097] In the example shown in Figure 11, each gear shift involves shifting down two gears, however, in other embodiments, each gear shift may involve shifting down a different number of gears.
[0098] Initially, the PLLs 14, 16 are set to a gear called gear 5. Upon detection of an overcurrent event by the comparator 15, the slow PLL 16 is selected and the MCU 6 adjusts the frequency of the fast PLL 14 down by 25 MHz. The fast PLL 14 is then selected again. If the overcurrent event persists, the process of reducing the frequency of the fast PLL 14 by 25 MHz is carried out again.
[0099] It can be seen that after this process is repeated many times without removing the overcurrent event, the frequency of the fast PLL 14 can be reduced to the frequency of the slow PLL 16. This is marked at point (1) in FIG. 11. Upon determining that the frequency of the fast PLL 14 is the same as the frequency of the slow PLL 16, the MCU 6 performs a gear change to a lower gear. To achieve this, the fast PLL 14 is selected while the frequency of the slow PLL 16 is reduced to the frequency of the slow PLL 16 defined for gear 3. Then, the slow PLL 16 is selected while the MCU 6 increases the frequency of the fast PLL 14 to the maximum fast PLL 14 frequency for gear 3. Then, the fast PLL 14 is selected.
[0100] Following the gear change, an over-current event is triggered again and the frequency of the fast PLL 14 is again stepped down. At point (2) shown in Figure 11, after stepping down the frequency of the fast PLL 14, when the fast PLL 14 is selected, an over-current event no longer occurs. As a result, the fast PLL 14 can remain selected without triggering an over-current event.
[0101] After a certain amount of time has passed, the application behavior may move to a more computationally intensive phase, which again causes the frequency of the fast PLL 14 to be stepped down, as shown at point (3) in Figure 11. At the point where the frequency of the fast PLL 14 again equals the frequency of the slow PLL 16, the MCU 6 decides to perform a gear change to Gear 1, as shown. The frequency of the fast PLL 14 is increased to the maximum frequency of Gear 1, and then stepped down until the overcurrent event is removed when the fast PLL 14 is selected.
[0102] In some embodiments, in addition to the comparator 15, whose output controls shifting gears up and down, the PMIC 7 may include further comparators (not shown in FIG. 1). Referring to FIG. 12, FIG. 12 shows an example of a PMIC 7 according to a second invention embodiment. The PMIC 7 includes an ammeter 11, a filtering circuit 13 and a comparator 15, which are shown in FIG. 1 and discussed above. In addition, the PMIC 7 includes a further comparator 17 that receives an indication of the current measured by the ammeter 11. This indication of the current received by the comparator 17 is the same as the filtered output of the filtering circuit 13 as received by the comparator 15.
[0103] Comparator 17 has a higher threshold than comparator 15. It also has a slightly higher time constant than comparator 15. Comparator 17 can be thought of as an emergency comparator 17 that is triggered in response to a larger overcurrent event.
[0104] When comparator 17 is triggered, a signal so indicated is provided to MCU 6. This signal may be provided on bus 30 or a different connection not shown in Figure 1. In response to receiving the signal, MCU 6 reduces the frequency of fast and slow PLLs 14, 16 to the lowest gear state of the possible gear sets stored by MCU 6.
[0105] In some embodiments, in addition to or as an alternative to the comparators 15, 17, other devices may provide signals that cause the MCU 6 to reduce the clock frequency to the lowest gear. Such signals may be provided, for example, by input current monitors (not shown in FIG. 1 ) for different components of the system (such as the processing unit 2) or other components that are part of the same integrated circuit as the processing unit 2. If one of these input current monitors detects a current above a threshold, it issues a signal to the MCU 6 that causes the MCU 6 to reduce the frequency of the fast PLL 14 and the slow PLL 16 to the lowest possible gear.
[0106] The signal to cause a shift to the lowest gear may be provided by a thermistor (not shown in FIG. 1) attached to or part of the processing unit 2. The thermistor determines if the temperature of the processing unit 2 rises above a certain level (an overheating condition). In response to detecting such a condition, the thermistor issues a signal to the MCU 6 causing the MCU 6 to reduce the frequency of the fast PLL 14 and the slow PLL 16 to the lowest possible gear.
[0107] In some embodiments, the frequency of the largest fast PLL 14 and the frequency of the smallest slow PLL 16 in the lowest gear can be the same. In this case, when in the lowest gear, the fast PLL 14 and the slow PLL 16 are both fixed at the same frequency (e.g., 200 MHz). This provides a higher level of safety than if the fast PLL 14 had a lower gear that could be set to a higher frequency and risk exceeding a threshold. The process for switching to the lowest gear is similar to the process for switching to a lower gear shown in FIG. 10A, but removes step (3) from the process. Specifically, initially the slow PLL 16 is selected, and then the MCU 6 reduces the frequency of the fast PLL 14 to the frequency of the lowest gear (e.g., 200 MHz). Then the MCU 6 has the fast PLL 14 selected, and then reduces the frequency of the slow PLL 16 to the same frequency as the fast PLL 14 (e.g., 200 MHz). Then, when in this lowest gear, either the fast PLL 14 or the slow PLL 16 can be selected since they are both set to the same frequency.
[0108] Above, the description of the first and second inventions is provided. In some embodiments, the first and second inventions can be combined together. Referring to Fig. 13, Fig. 13 shows an example of the use of the combination of the described dithering technique and gearbox technique.
[0109] 13 shows the threshold frequency (dashed line) and the frequency of the clock signal Φ (solid line) changing with changes in the application's behavior. The output of the fast PLL 14 is the maximum fast clock frequency for the current gear. The output of the slow PLL 16 is the minimum slow clock frequency for the current gear. The graph 1300 is shown divided into three different time intervals 1310, 1320, 1330 to show how the PLLs 14, 16 switch between gears in response to changes in the application's behavior as indicated by changes in clock frequency.
[0110] During most of the first time interval 1310, the clock signal Φ switches between the output of the fast PLL 14 and the output of the slow PLL 16 to generate the appropriate average frequency of the clock signal Φ. As shown, after a certain amount of time, in response to a change in the application's behavior, the threshold frequency drops to a reduced level below that of the frequency of the slow PLL. As a result, the comparator 15 asserts its signal to indicate an overcurrent event, which is not removed by remaining in the slow PLL 16. The MCU 6 detects that the slow PLL 16 has been selected for more than a predefined amount of time, and in response decides to change from the currently selected gear to a lower gear. The MCU 6 performs the gear change process described above.
[0111] In FIG. 13, when the gear changing process is completed, the clock generation circuit 12 changes between the output of the slow PLL 16 and the output of the fast PLL 14 when providing the clock signal Φ. This is shown during time interval 1320. After a certain amount of time, the threshold frequency increases above the frequency of the fast PLL 14 in the selected gear. As a result, the comparator 15 does not detect an overcurrent event and the fast PLL 14 remains selected. In response to determining that the fast PLL 14 has been selected for more than a predefined amount of time, the MCU 6 decides to gear up to a higher gear. The MCU 6 does so as described above with respect to FIG. 10B. This higher gear selected during time interval 1330 is the same gear selected in time interval 1310. However, as shown, during most of time interval 1330, the threshold frequency is low, so that the percentage of time spent in slow PLL 16 compared to the percentage of time spent in fast PLL 14 is greater during time interval 1330 than during time interval 1310.
[0112] The power management techniques described above may be implemented to manage power of the multi-tile processing unit 2. An exemplary multi-tile processing unit 2 will now be described in more detail with reference to Figures 14-17.
[0113] Referring to FIG. 14, FIG. 14 illustrates an exemplary multi-tile processing unit 2. The processing unit 2 includes an array 46 of multiple processor tiles 3 and an interconnect 44 connecting the tiles 3. The processing unit 2 may be implemented as one of multiple dies packaged in the same IC package. The interconnect 44 may also be referred to herein as a "switching fabric" 44, since it allows the tiles 3 to exchange data. Each tile 3 includes respective instances of a processor and memory. For example, by way of illustration, the processing unit 2 may include hundreds of tiles 3 or even more than a thousand tiles 3. For completeness, it should also be noted that the "array" referred to herein does not necessarily imply a particular dimensionality or physical layout of tiles 3.
[0114] In an embodiment, each processing unit 2 also includes one or more external links 48, allowing the processing unit 2 to be connected to one or more other processing units (e.g., one or more other instances of the same processing unit 2). These external links 48 may include one or more processor-to-host links for connecting the processing unit 2 to a host processor and / or one or more inter-processor links for connecting together with one or more other instances of the processing unit 2 on the same IC package or card or on different cards. In one exemplary arrangement, the processing unit 2 receives work from a host processor (not shown) connected to the processing unit through one of the processor-to-host links in the form of input data that the processing unit 2 processes. Multiple instances of the processing unit 2 may be connected together to a card by inter-processor links. Thus, the host accesses the computer designed as a multi-tile system-on-chip depending on the workload required by the host application.
[0115] The interconnect 44 is configured to allow different tiles 3 of the array 46 to communicate with each other. However, just as there can potentially be dependencies between threads on the same tile 3, there can also be dependencies between portions of programs executing on different tiles 3 of the array 46. Thus, techniques are needed to prevent dependent data of a previously executing piece of code on one tile 3 from being made available to another piece of code on another tile 3.
[0116] Each tile 3 is itself a processor capable of executing instructions (code) from a local instruction memory and manipulating data in a local data memory. The tiles 3 may include respective instances of barrel-thread processors and memory. For example, by way of example, a processing unit 2 may include hundreds of tiles 3 or even more than a thousand tiles 3. For completeness, it should also be noted that an "array" as referred to herein does not necessarily imply a particular dimensionality or physical layout of tiles 3.
[0117] Communication between tiles 3 on a processing unit 2 occurs in a time-deterministic manner. However, other forms of inter-tile exchange are possible. Dependencies may exist between portions of programs executing on different tiles 3 of the array 46. That is, processing data on one tile may depend on results from another tile (e.g., may provide results on which another tile is dependent). Thus, techniques are needed to prevent dependent data of a previously executing piece of code on one tile 3 from being made available to another piece of code on another tile 3.
[0118] Parallel programming models in AI and data science typically follow a three-phase iterative execution model: compute, barrier, and exchange. The implication is that data transfers to and from processing units typically have barrier dependencies to provide data consistency between processing units and between each processing unit and the host. Typically used data consistency models are bulk synchronous parallel (BSP), stale synchronous parallel (SSP), and asynchronous. The embodiments described herein use the BSP model, but it will be apparent that other synchronous models can be used as alternatives.
[0119] 15 and 16, which show an implementation of a BSP swap scheme, where each tile 3 performs a computation phase 43 and a swap phase 42 on alternating cycles, the computation phase 43 and the swap phase 42 being separated from each other between tiles by a barrier synchronization 40. In the case shown by Figures 15 and 16, a barrier synchronization is placed between each computation phase 43 and the following swap phase 42.
[0120] During the computation phase 43, each tile 3 executes one or more computation tasks locally on the tile, but does not communicate the results of these computations with any other tiles 3. In the exchange phase 42, each tile 3 may exchange one or more results of a computation from the previous computation phase with one or more other tiles, but does not execute a new computation until it has received data from the other tiles 3 on which that task has a dependency, nor does it send data to other tiles other than those computed in the previous computation phase. It is not excluded that other operations, such as internal control related operations, may be performed in the exchange phase 42. Communication with the outside of the tile group may optionally make use of the BSP mechanism, but may alternatively not make use of the BSP and instead use some other synchronization mechanism of its own.
[0121] According to the BSP principle, the barrier synchronization 40 is placed at the junction of the transition from the computation phase 43 to the exchange phase 42, or from the exchange phase 42 to the computation phase 43, or both. That is, either (a) all tiles 3 of the group must complete their respective computation phase 43 before any tile of the group can proceed to the next exchange phase 42, or (b) all tiles 3 of the group must complete their respective exchange phase 42 before any tile of the group can proceed to the next computation phase 43, or (c) both of these conditions are implemented. In all three variants, it is the individual tiles that alternate between phases and the whole assembly that is synchronized. The sequence of exchange and computation phases can then be repeated for multiple iterations. In BSP terminology, each iteration of the exchange phase and the computation phase is sometimes referred to as a "superstep" (although it should be noted that the terminology is not always used consistently in the literature; i.e., each individual exchange phase and computation phase is sometimes referred to individually as a superstep, whereas the exchange phase and computation phase together are sometimes referred to as a superstep, as is the terminology adopted in this specification).
[0122] It should also be noted that each of multiple different independent groups of tiles 3 on the same processing unit 2 or different processing units may form a separate respective BSP group that operates asynchronously with respect to one another, and that the BSP cycles of calculation, synchronization and exchange are imposed only within each given group, but each group is not precluded from doing so independently of other groups. That is, the multi-tile array 46 may include multiple internal synchronization groups, each operating independently and asynchronously from other such groups (discussed in more detail below). In some embodiments, there is a hierarchical classification of synchronization and exchange, as discussed in more detail below.
[0123] Figure 16 shows (a) the BSP principle as implemented between some or all groups 3i, 3ii, 3iii of tiles of an array 46, in the case where a barrier synchronization (see above) is imposed from the computation phase 43 to the exchange phase 42. Note that in this arrangement, some tiles 3 can start computation 43 while some other tiles are still performing exchanges.
[0124] FIG. 17 shows how a clock signal Φ can be distributed from the clock generator circuit 12 to the tiles 3 of the processing unit 2. In the example, the tiles 3 are shown arranged in a column. Each of the tiles 3 is connected to a copper wire 112, which provides a clock signal to each of the tiles 3. The copper wire 112 provides the clock tree of the processing unit 2. The thickness of the copper wire 112 is selected between 0.2 micrometers and 2 micrometers. The copper wire 112 may have, for example, a thickness of 1 micrometer and a width of 0.5 micrometers. The large thickness of the copper wire 112 reduces the insertion delay of the clock signal and allows the clock signal to propagate very quickly to each of the tiles 3.
[0125] Referring to Figure 18, Figure 18 shows a method 1800 according to an embodiment of the first invention. Although the steps of the method 1800 are shown sequentially, it will be understood that there is some time overlap between the steps. In particular, step S1810 may be performed throughout the method 1800 and overlaps with steps S1820 and S1830.
[0126] In S1810, the switching circuit cycles between a first clock generator for clocking the processing unit and a second clock generator for clocking the processing unit. The first clock generator is selected during a first portion of a cycle, while the second clock generator is selected during a second portion of the cycle. A frequency of the clock signal provided by the first clock generator is higher than a frequency of the clock signal provided by the second clock generator.
[0127] In S1820, the switching circuit increases the average clock frequency of the processing unit by increasing the ratio between the duration of the first portion of the cycle and the duration of the second portion of the cycle.
[0128] In S1830, the switching circuit increases the reduction in the average clock frequency of the processing unit by decreasing the ratio between the duration of the first portion of the cycle and the duration of the second portion of the cycle.
[0129] Referring to Figure 19, Figure 19 shows a method 1900 according to a second embodiment of the invention. It will be understood that the steps of method 1900 need not be performed in the order shown and that performance of the steps may overlap in time. In particular, steps S1910 and S1920 may be performed repeatedly at different times throughout method 1900.
[0130] At S1910, the switching circuit is configured to selectively switch between the first clock generator for providing the processor clock signal and the second clock generator for providing the processor clock signal.
[0131] At S1920, the at least one processor accesses a plurality of settings in a memory of the system, each setting including a maximum frequency for a first clock generator and a minimum frequency for a second clock generator.
[0132] In S1930, the at least one processor detects at least one condition indicating a desire to increase the frequency of the clock signal.
[0133] In S1940, in response to S1930, the at least one processor changes from the currently selected setting to a higher one of the settings, the higher setting having a higher maximum frequency of the first clock generator than the currently selected setting and a higher minimum frequency of the second clock generator than the currently selected setting.
[0134] In S1950, the at least one processor detects at least one condition indicating a desire to decrease the frequency of the clock signal.
[0135] In S1960, the at least one processor changes from the higher setting selected in S1940 to a lower setting. The higher setting has a higher maximum frequency of the first clock generator than the lower setting and a higher minimum frequency of the second clock generator than the lower setting.
[0136] It will be understood that the above-described embodiments have been described by way of example only.
Claims
1. 1. A method for controlling the frequency of a clock signal of a processing unit by a management control unit module, comprising: selectively switching between a first clock generator for providing a processing unit clock signal for executing an application and a second clock generator for providing a processing unit clock signal having a frequency lower than a frequency of the processing unit clock signal provided by the first clock generator for executing the application; accessing, in a memory, a plurality of settings, each setting including a maximum frequency for the first clock generator and a minimum frequency for the second clock generator; changing from a current setting to a higher setting in response to at least one detected condition indicating a desire to increase the frequency of the clock signal; changing from the higher setting to a lower setting in response to at least one detected condition indicating a desire to decrease the frequency of the clock signal; the higher setting comprises a maximum frequency of the first clock generator that is higher than the current setting and a minimum frequency of the second clock generator that is higher than the current setting; the higher setting having a maximum frequency of the first clock generator that is higher than the lower setting and a minimum frequency of the second clock generator that is higher than the lower setting; Adjacent settings of the plurality of settings have frequency overlap. method.
2. 2. The method of claim 1, wherein for each of the settings, a frequency of the clock signal provided by the second clock generator is fixed to the minimum frequency of the second clock generator for a corresponding setting.
3. 3. The method of claim 1, wherein the detected at least one condition indicative of a desire to increase the frequency of the clock signal comprises a determination that the first clock generator has been selected to provide the processing unit clock signal for more than a predefined amount of time.
4. 4. The method of claim 3, wherein the detected at least one condition indicating a desire to increase the frequency of the clock signal further comprises a determination that the frequency of the first clock generator is set to the maximum frequency of the first clock generator at the current settings.
5. 5. The method of claim 1, wherein the detected at least one condition indicating a desire to reduce the frequency of the clock signal comprises a determination that the second clock generator has been selected for more than a predefined amount of time.
6. 5. The method of claim 1, wherein the detected at least one condition indicating a requirement to reduce the frequency of the clock signal comprises a determination that the frequency of the first clock generator is set to be less than or equal to the frequency of the second clock generator.
7. 7. The method of claim 6, wherein the current setting has a maximum frequency of the first clock generator that is higher than the lower setting and a minimum frequency of the second clock generator that is higher than the lower setting.
8. The method of any one of claims 1 to 6, wherein the lower setting and the current setting are the same.
9. measuring in a comparator the current drawn by the processing unit to determine whether the processing unit is exceeding a power budget; using an output signal from the comparator to control selection of the first clock generator and the second clock generator; receiving the output signal at a controller device; detecting, in the controller device, at least one condition indicative of a desire to increase the frequency of the clock signal using the output signal from the comparator; detecting at least one condition indicative of a desire to decrease the frequency of the clock signal; The method according to any one of claims 1 to 8, comprising:
10. 10. The method of claim 1, comprising changing to a lowest one of said settings in response to a detected overcurrent event, said lowest one of said settings having a lower minimum and maximum frequency than any of said plurality of settings.
11. 11. The method of claim 10 when dependent on claim 9, wherein the comparator for determining whether the power budget has been exceeded is a first comparator and the detecting of the overcurrent event is performed by a second comparator, the first comparator and the second comparator being different and the second comparator having a higher threshold than the first comparator.
12. for the lowest one of the settings, a minimum frequency of the second clock generator and a maximum frequency of the first clock generator are the same frequency; Changing the setting to the lowest setting may selecting the second clock generator to provide the processing unit clock signal; thereafter, setting the frequency of the clock signal provided by the first clock generator to the same frequency; thereafter, selecting the first clock generator to provide the processing unit clock signal; thereafter, setting the frequency of the clock signal provided by the second clock generator to the same frequency; The method of claim 10 or 11, comprising:
13. a gap between a minimum frequency of the second clock generator and a maximum frequency of the first clock generator is greater for the higher one of the settings than for the current setting; The method according to any one of claims 1 to 12, wherein the gap between the minimum frequency of the second clock generator and the maximum frequency of the first clock generator is larger for the higher setting than for the lower setting.
14. The switching step comprises: selecting the first clock generator to provide a processing unit clock signal for executing the application; detecting a threshold event indicating that the application is exceeding a power budget allocated to its execution; selecting the second clock generator to provide the processing unit clock signal for executing the application; reducing a frequency of the clock signal generated by the first clock generator while the processing unit clock signal is provided by the second clock generator; reselecting the first clock generator to provide the processing unit clock signal a predetermined time after selecting the second clock generator; The method according to any one of claims 1 to 13, comprising:
15. The switching step comprises: a first clock generator for providing a processing unit clock signal for executing an application during a first portion of a cycle; a second clock generator for providing the processing unit clock signal for executing the application during a second portion of the cycle; Cycle through and select increasing the average clock frequency of the processing unit by increasing the ratio between the duration of the first portion of the cycle and the duration of the second portion of the cycle; decreasing the average clock frequency of the processing unit by decreasing the ratio between the duration of the first portion of the cycle and the duration of the second portion of the cycle; The method according to any one of claims 1 to 13, comprising:
16. Changing from the higher setting to the lower one of the settings selecting the second clock generator to provide the processing unit clock signal; thereafter, setting a frequency of the clock signal provided by the first clock generator to a frequency that is lower than a maximum frequency of the first clock generator defined by the lower setting; thereafter, selecting the first clock generator to provide the processing unit clock signal; thereafter, setting the frequency of the clock signal provided by the second clock generator to a minimum frequency of the second clock generator defined by the lower setting; thereafter, selecting the second clock generator to provide the processing unit clock signal; The method according to any one of claims 1 to 15, comprising:
17. 17. The method of claim 16, wherein the frequency lower than the maximum frequency of the first clock generator is the minimum frequency of the second clock generator defined by the lower setting.
18. 18. The method of claim 16 or 17, comprising thereafter setting a frequency of the clock signal provided by the first clock generator to a maximum frequency of the first clock generator defined by the lower setting.
19. 19. The method of claim 1, wherein the processing unit includes a plurality of processors, the method comprising distributing a processor clock signal along wires of a clock tree of the processing unit to each of the plurality of processors.
20. 20. The method of claim 19, wherein the wire is a copper wire having a thickness greater than 0.2 micrometers.
21. a first clock generator for providing a processing unit clock signal for executing an application; a second clock generator for providing the processing unit clock signal for executing the application, the frequency of the clock signal provided by the second clock generator being lower than the frequency of the clock signal provided by the first clock generator; a switching circuit configured to selectively switch between the first clock generator for providing the processing unit clock signal and the second clock generator for providing the processing unit clock signal; At least one memory configured to store a plurality of configurations, each configuration comprising: at least one memory containing a maximum frequency of the first clock generator and a minimum frequency of the second clock generator; At least one processor, modifying the frequencies of the first clock generator and the second clock generator from a current one of the settings to a higher setting in response to at least one detected condition indicating a desire to increase a frequency of the clock signal; in response to at least one detected condition indicating a desire to decrease the frequency of the clock signal, modifying the frequencies of the first clock generator and the second clock generator to change from the higher setting to a lower setting; the higher setting comprises a maximum frequency of the first clock generator that is higher than the current setting and a minimum frequency of the second clock generator that is higher than the current setting; the higher setting having a higher maximum frequency of the first clock generator than the lower setting and a higher minimum frequency of the second clock generator than the lower setting; At least one processor; Including, Adjacent settings of the plurality of settings have frequency overlap. system.
22. A computer program for execution by at least one processor of a system, said system comprising: a first clock generator for providing a processing unit clock signal for executing an application; a second clock generator for providing the processing unit clock signal for executing the application, the frequency of the clock signal provided by the second clock generator being lower than the frequency of the clock signal provided by the first clock generator; a switching circuit configured to selectively switch between the first clock generator for providing the processing unit clock signal and the second clock generator for providing the processing unit clock signal; Including, The computer program, when executed by the at least one processor, accessing, in a memory, a plurality of settings, each setting including a maximum frequency for the first clock generator and a minimum frequency for the second clock generator; modifying the frequencies of the first clock generator and the second clock generator from a current one of the settings to a higher setting in response to at least one detected condition indicating a desire to increase the frequency of the clock signal; modifying the frequencies of the first clock generator and the second clock generator from the higher setting to a lower setting in response to at least one detected condition indicating a desire to decrease the frequency of the clock signal; the higher setting having a maximum frequency of the first clock generator that is higher than the current setting and a minimum frequency of the second clock generator that is higher than the current setting; the higher setting having a maximum frequency of the first clock generator that is higher than the lower setting and a minimum frequency of the second clock generator that is higher than the lower setting; Adjacent settings of the plurality of settings have frequency overlap. Computer program.
Citation Information
Patent Citations
Automatic clock switching
US6194940B1
Semiconductor integrated circuit
WO2008114414A1
