Digital logic power management and methods and integrated circuits for implementing same

By quickly adjusting the digital power supply and body bias voltage in the integrated circuit, the problem of high power consumption of digital logic in battery-driven devices is solved, and the efficiency and power management effect when the clock configuration is changed are improved.

CN118632168APending Publication Date: 2024-09-10SEMICON COMPONENTS IND LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311235821.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-20
Filing Date
2023-09-25
Publication Date
2024-09-10

Smart Images

  • Figure CN118632168A_ABST
    Figure CN118632168A_ABST
Patent Text Reader

Abstract

Digital logic power management and methods and integrated circuits for implementing the same are provided. One exemplary embodiment is a method for operating a portable audio device. The method includes adjusting a clock signal generated by a clock circuit from a first frequency to a second frequency. The method further includes regulating a digital supply voltage generated by the digital supply voltage converter to a predetermined maximum of the second frequency. The method further includes adjusting a bulk bias voltage generated by the bulk voltage converter to a predetermined value of the second frequency. The method further includes determining, by the controller, a speed margin based on the logical speed measurements from the logical gate delay lines. The method further includes reducing the digital supply voltage until the speed margin is less than a predetermined threshold margin. The clock circuit, the digital supply voltage converter, the body voltage converter, the controller, and the logic gate delay line are implemented on a semiconductor substrate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power management technology, and in particular to power management of digital logic in integrated circuits. Background Art

[0002] Low power consumption plays a key role in battery-driven devices such as hearing aids. Hearing aids include integrated circuits that perform a lot of digital processing. The power consumption of digital logic in such battery-driven devices can be significant and often accounts for the largest portion of the total power consumption. Summary of the invention

[0003] The power consumption of digital logic in a battery-driven device can be reduced by reducing the digital power supply voltage to the lowest possible value required to run the digital logic at the operating frequency used, silicon process variation, and temperature. In addition, a forward body bias can be applied to increase the speed of the digital logic and further reduce the digital power supply voltage. Clock throttling can also be used to reduce power consumption in a battery-driven device by ensuring that the fastest clock frequency is used only when there is a high processing load. However, when the system clock frequency changes, it may take a relatively long time to adjust the digital power supply and body bias voltage to the lowest possible value that still provides sufficient speed margin for the new clock configuration. Therefore, the present disclosure provides an integrated circuit, an integrated circuit package, and a method, which performs fast clock throttling, in particular by using the last known best body bias voltage for a newly selected clock configuration to quickly adjust to the lowest possible digital power supply voltage. The present disclosure also provides an integrated circuit, an integrated circuit package, and a method, which performs fast clock throttling, in particular by measuring the speed margin of the digital logic component at short time intervals to quickly adjust the digital power supply voltage to the lowest possible value close to the newly implemented clock configuration.

[0004] The present disclosure provides a method for operating an integrated circuit on a semiconductor substrate. The method includes: adjusting a clock signal generated by a clock circuit from a first frequency to a second frequency. The method also includes: adjusting a digital power supply voltage generated by a digital power supply voltage converter to a predetermined maximum value of the second frequency. The method also includes: adjusting a body bias voltage generated by a body voltage converter to a predetermined value of the second frequency. The method also includes: determining a speed margin by a controller based on a logic speed measurement value from a logic gate delay line. The method also includes: reducing the digital power supply voltage until the speed margin is less than a predetermined threshold margin. The clock circuit, the digital power supply voltage converter, the body voltage converter, the controller, and the logic gate delay line are implemented on a semiconductor substrate.

[0005] The present disclosure also provides an integrated circuit on a semiconductor substrate. In a specific implementation, the integrated circuit includes a processing core, a logic gate delay line, a clock circuit, a digital power supply voltage converter, a main body voltage converter and a controller. The logic gate delay line is embedded in the processing core. The clock circuit is configured to generate a clock signal. The digital power supply voltage converter is configured to generate a digital power supply voltage. The main body voltage converter is configured to generate a main body bias voltage. The controller is configured to adjust the clock signal from a first frequency to a second frequency. The controller is also configured to adjust the digital power supply voltage to a predetermined maximum value of the second frequency. The controller is further configured to adjust the main body bias voltage to a predetermined value of the second frequency. The controller is also configured to determine a speed margin based on a logic speed measurement value from the logic gate delay line. The controller is further configured to reduce the digital power supply voltage until the speed margin is less than a predetermined threshold margin.

[0006] The present disclosure also provides an integrated circuit on a semiconductor substrate. In a specific implementation, the integrated circuit includes a processing core, a system memory, a communication bus, a wireless communication circuit, and a controller. The system memory is coupled to the processing core. The communication bus is coupled to the processing core. The wireless communication circuit is coupled to the communication bus. The wireless communication circuit is configured to wirelessly communicate with a device outside the integrated circuit. The controller is configured to adjust the clock signal from a first frequency to a second frequency. The controller is also configured to adjust the digital power supply voltage to a predetermined maximum value of the second frequency. The controller is further configured to adjust the body bias voltage to a predetermined value of the second frequency. The controller is also configured to determine a speed margin based on a logic speed measurement value from the processing core. The controller is further configured to reduce the digital power supply voltage until the speed margin is less than a predetermined threshold margin. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] To describe in detail exemplary embodiments, reference will now be made to the accompanying drawings, in which:

[0008] Figure 1 is a block diagram of an example of a hearing aid having an integrated circuit according to some specific implementations;

[0009] Figure 2 is included in some specific implementations Figure 1 A block diagram of an example of a management module and a processing core in an integrated circuit of FIG.

[0010] Figure 3 is a flow chart of an example of a method for operating an integrated circuit when switching from a slow clock configuration to a fast clock configuration according to some implementations;

[0011] Figure 4A and Figure 4Bis a flow chart of an example of a method for operating an integrated circuit when switching from a fast clock configuration to a slow clock configuration according to some implementations;

[0012] Figure 5 is a timing diagram of exemplary operation of an integrated circuit switching from a slow clock configuration to a fast clock configuration and then switching back to a slow clock configuration according to some implementations; and

[0013] Figure 6 is a flow chart of an example of a method for operating an integrated circuit according to some implementations.

[0014] definition

[0015] Various terms are used to refer to specific system components. Different companies may refer to a component by different names - this document is not intended to distinguish between components that differ in name but function the same. In the following discussion and in the claims, the terms "include" and "comprising" are used in an open-ended manner, and therefore, these terms should be interpreted to mean "including but not limited to...". In addition, the terms "couple" or "coupled" are intended to mean either an indirect connection or a direct connection. Thus, if a first device is coupled to a second device, that connection may be made through a direct connection or through an indirect connection via other devices and connections.

[0016] In reference to electrical devices, whether stand-alone or as part of an integrated circuit, the terms "input" and "output" refer to electrical connections to the electrical device and should not be construed as verbs requiring operation. For example, a differential amplifier such as an operational amplifier may have a first differential input and a second differential input, and these "inputs" define electrical connections to the operational amplifier and should not be construed as requiring signal inputs to the operational amplifier.

[0017] "Asserting" shall mean changing the state of a Boolean signal. A Boolean signal may be asserted high or have a higher voltage, and a Boolean signal may be asserted low or have a lower voltage, at the discretion of the circuit designer. Similarly, "deasserting" shall mean changing the state of a Boolean signal to a voltage level opposite to the asserted state.

[0018] “Controller” shall mean, alone or in combination, an individual circuit component, an application specific integrated circuit (ASIC), one or more microcontrollers with control software, a reduced instruction set computer (RISC) with control software, a digital signal processor (DSP), one or more processors with control software, a programmable logic device (PLD), a field programmable gate array (FPGA), or a programmable system on a chip (PSOC) configured to read inputs and drive outputs in response to those inputs. DETAILED DESCRIPTION

[0019] This application claims priority to and the benefit of U.S. Utility Patent Application Serial No. 18 / 338,288, filed on June 20, 2023, entitled “ADAPTIVE VOLTAGE SCALING WITH BODY BIASING,” which claims priority to and the benefit of U.S. Provisional Application Serial No. 63 / 489,037, filed on March 8, 2023, entitled “ADAPTIVE VOLTAGE SCALING WITH BODY BIASING,” the entire disclosure of which is hereby incorporated by reference into this document for all purposes.

[0020] The following discussion relates to various embodiments of the present invention. Although one or more of these embodiments may be preferred, the disclosed embodiments should not be interpreted or otherwise used to limit the scope of the present disclosure, including the claims. In addition, it should be understood by those skilled in the art that the following description has a wide range of applications, and the discussion of any embodiment is only intended to be an example of that embodiment, and is not intended to indicate that the scope of the present disclosure, including the claims, is limited to that embodiment.

[0021] Various examples relate to methods and systems for power management with adaptive voltage scaling and body biasing that allow for rapid clock throttling. More specifically, various examples relate to voltage converters and associated controllers that rapidly adjust to the lowest possible digital supply voltage for a newly implemented clock configuration using a last known best body bias voltage when a clock configuration changes. Still more specifically, various examples relate to voltage converters and associated controllers that measure speed margins of digital logic components at short time intervals when a clock configuration changes to rapidly adjust a digital supply voltage to a value close to the lowest possible value. The specification now turns to an exemplary system for the reader's guidance.

[0022] Figure 1 is a block diagram of an example of a hearing aid 100 according to some implementations of the present disclosure. Figure 1The hearing aid 100 shown includes a microphone 102, a speaker 104, a battery 106, an integrated circuit 108, a wireless communication circuit 110, and a non-volatile memory 112. The microphone 102, the speaker 104, and the battery 106 are electrically coupled to the integrated circuit 108. During operation, the hearing aid 100 receives sound through the microphone 102, converts the sound waves into electrical signals, and forwards the electrical signals to be processed by the integrated circuit 108. The processed signals are converted into sound waves by the speaker 104 and sent to the ear. As will be described in more detail below, the integrated circuit 108 includes a mechanism for regulating power consumption by adaptively scaling the voltages provided to the various logic circuits of the integrated circuit 108. For example, when taking into account silicon process and temperature variations, the voltage provided to the logic circuits of the integrated circuit 108 can be reduced to a level that enables the integrated circuit to operate at a specified operating frequency.

[0023] Figure 1 The power of the hearing aid 100 shown is provided by a battery 106. In some implementations, a single battery is sufficient. In alternative implementations, multiple batteries (e.g., in series or in parallel) can be used. Depending on the type of hearing aid 100, multiple types of batteries can be used in the hearing aid 100. In some implementations, the battery 106 provides a supply voltage of less than 2 volts. In some implementations, the battery 106 is rechargeable. In alternative implementations, the battery 106 is disposable.

[0024] Figure 1 The integrated circuit 108 shown includes a management module 114, a processing core 116 having a logic gate delay line 118 embedded therein, a communication bus 120, a system memory 122, and a system interface 124. Figure 1 Although not shown, management module 114 is coupled to all circuits on integrated circuit 108 and provides operating power. Figure 1 1, the processing core 116, the system memory 122, and the system interface 124 are coupled to the communication bus 120. In some implementations, the communication bus 120 can be part of the system interface 124. The system interface 124 is configured to couple to additional external devices, such as an electrically erasable programmable read-only memory (EEPROM), a volume control circuit, a mating connector, a push button switch, and a sensor. In some implementations, the wireless communication circuit 110 and the non-volatile memory 112 are electrically coupled to the integrated circuit 108 via the communication bus 120, such as Figure 1 In an alternative implementation, the wireless communication circuit 110 and the non-volatile memory 112 are electrically coupled to the integrated circuit 108 via separate communication buses (not specifically shown).

[0025] The system interface 124 may take any suitable form, such as a serial peripheral interface (SPI), a dual SPI (DSPI), a quad SPI (QSPI), an I2C interface, an I3C interface, a pulse code modulation (PCM) signal interface, a universal asynchronous receiver / transmitter (UART) circuit, a general purpose input / output (GPIO) pin, an embedded multimedia card (eMMC), and a low-speed A / D (LSAD) converter. SPI, DSPI, and QSPI are synchronous and full-duplex serial primary-secondary based communication interfaces, and may be based on three or four wires. On the other hand, I2C and I3C are serial protocols based on a two-wire interface, configured to support multi-master features. An exemplary PCM interface may be used to stream audio signal data into and out of the integrated circuit 108. An exemplary UART may include logic circuitry to transmit and receive asynchronous serial communications, which include data having a configurable format and a configurable speed. An exemplary GPIO is a digital signal pin whose function (particularly input or output) may be determined during runtime. In some implementations, the GPIO pins may be connected to external digital inputs (such as buttons) or digital outputs (such as controllers or triggers of external companion chips). An exemplary eMMC may include an interface, flash memory, and a flash memory controller to provide an embedded non-volatile memory system. An exemplary LSAD may provide analog-to-digital conversion of electrical signals for data processing purposes, and may include internal power inputs and ground inputs.

[0026] The processing core 116 performs signal processing functions, including various digital signal processing (DSP) algorithms and various types for wireless communication protocols. In some specific implementations, the processing core 116 includes at least one low-power DSP core and a reduced instruction set computer (RISC). The processing core 116 may also include a filter engine and a plurality of configurable hardware accelerators. In some specific implementations, the processing core 116 may include a neural network hardware accelerator to implement a neural network function, which includes obtaining a plurality of weights from a weight memory and performing a plurality of multiply-accumulate (MAC) operations operating in parallel. The MAC operation may repeatedly multiply an input value and a weight selected from a plurality of weights to accumulate the result of the multiplication to a sum of products representing the values ​​corresponding to neurons in the neural network.

[0027] The management module 114 includes circuitry configured to implement adaptive voltage scaling to modify the voltage provided to the logic circuitry, thereby reducing the power consumed by the hearing aid 100. The management module 114 also includes circuitry configured to implement body biasing. The management module 114 is communicatively coupled to a logic gate delay line 118 embedded within the processing core 116 and can read measurements generated by the logic gate delay line 118. The logic gate delay line 118 and measurements therefrom are discussed in more detail below. However, once read, the measurements are further processed by the management module 114 and used to control one or more power converters (e.g., a switch mode power converter and a charge pump) within the management module 114.

[0028] Still see Figure 1 , the integrated circuit 108 communicates with the wireless communication circuit 110 via the communication bus 120. In some specific implementations, the wireless communication circuit 110 includes a multi-protocol system on chip (SoC) to implement various wireless communication related schemes. For example, the wireless communication circuit 110 may include an SoC to implement Bluetooth low energy (BLE) and / or multiple 2.4GHz ultra-low power wireless applications. In addition, Figure 1 Non-volatile memory 112 is shown coupled to integrated circuit 108 via communication bus 120. Non-volatile memory 112 may include any suitable non-volatile components, such as EEPROM, flash memory, mass storage devices, or combinations thereof. The description now turns to a more detailed description of management module 114 and processing core 116.

[0029] Figure 2 is an example of a block diagram of a management module 114 and a processing core 116 according to some implementations of the present disclosure. Figure 2 The management module 114 is shown to include a clock circuit 202 , a digital supply voltage converter 204 , a mains voltage converter 206 , and a controller 208 .

[0030] The clock circuit 202 is configured to generate a clock signal. Figure 2 The clock circuit 202 shown includes a clock control input 210 and a clock signal output 212. The clock signal output 212 is coupled to all logic circuits of the integrated circuit 108 and provides a clock signal thereto. The clock circuit 202 may include any suitable device configured to generate a clock signal. For example, the clock circuit 202 may include a clock configuration register, a system clock source selector, a system clock divider / multiplier, an oscillator, a resistor, a capacitor, an amplifier, or a combination thereof.

[0031] The digital supply voltage converter 204 is configured to generate a digital supply voltage. Figure 2The digital power supply voltage converter 204 shown includes a digital control input 214, a digital power input 216, and a digital power supply voltage output 218. The digital power input 216 is coupled to the battery 106 to receive the power supply voltage therefrom. The digital power supply voltage output 218 is coupled to the logic circuit of the integrated circuit 108 and provides operating power thereto. The digital power supply voltage converter 204 may include any suitable device configured to generate a digital power supply voltage based on the power supply voltage from the battery 106. For example, the digital power supply voltage converter 204 may include a charge pump configured to generate an output voltage that may be a predetermined ratio of the power supply voltage. The ratio may be programmed to any suitable value. Suitable values ​​may include ratios such as "1 / 1" (LDO mode, charge pump disabled), "4 / 5", "3 / 4", "2 / 3", "1 / 2", and "1 / 3". Therefore, the digital power supply voltage may be selectively controlled by changing the ratio and / or the operating frequency. In some specific implementations, the digital power supply voltage converter 204 may include a switch mode power converter configured to generate a modified output voltage by changing the duty cycle of the switching device. Alternatively or in addition, the digital supply voltage converter 204 may include a linear regulator including a buck converter configured to modify the digital supply voltage. Alternatively or in addition, the linear regulator may be combined with another device (e.g., a charge pump, a switch mode power converter) to supply and regulate the output voltage.

[0032] The body voltage converter 206 is configured to generate one or more body bias voltages. Figure 2 The main voltage converter 206 shown includes a main control input 220, a main power supply input 222, and a main voltage output 224. The main power supply input 222 is coupled to the digital power supply voltage output 218. The main voltage output 224 is coupled to a plurality of main connections of transistors within the processing core 116 (not specifically shown). For example, the main voltage output 224 can be configured to provide a main bias voltage for an N-type metal oxide semiconductor (NMOS) transistor and a main bias voltage for a P-type metal oxide semiconductor (PMOS) transistor. Figure 2 As generally shown, the bulk voltage output 224 is coupled to the bulk connections of a plurality of transistors 226A, 226B, and 226C of the processing core 116. Figure 2Only three transistors are shown in order not to overcomplicate the figure, but the body voltage output 224 can be coupled to any suitable number of transistors, including all transistors of the processing core 116. The body voltage converter 206 can be configured to modify the body bias voltage associated with or applied to the plurality of transistors 226A, 226B, and 226C. For example, modifying the body bias voltage can enable the threshold voltage associated with the plurality of transistors 226A, 226B, and 226C to be changed to modify the transistor speed, thereby modifying the associated leakage current. For example, the body voltage converter 206 can be configured to apply the body bias voltage to change the threshold voltage, thereby changing the transistor speed.

[0033] The controller 208 is configured to determine the speed of the digital logic and to use the lowest possible body bias voltage to determine the lowest possible digital supply voltage, as will be described in more detail below. Figure 2 The illustrated controller 208 includes a clock control output 228 coupled to the clock control input 210 of the clock circuit 202. The clock circuit 202 is configured to adjust the frequency of the clock signal in response to one or more signals driven onto the clock control input 210 by the controller 208. Figure 2 The illustrated controller 208 also includes a digital power control output 230 coupled to the digital control input 214 of the digital power supply voltage converter 204. The digital power supply voltage converter 204 is configured to regulate the digital supply voltage in response to one or more signals driven onto the digital control input 214 by the controller 208. Figure 2 The illustrated controller 208 also includes a body control output 232 coupled to the body control input 220 of the body voltage converter 206. The body voltage converter 206 is configured to adjust the body bias voltage in response to one or more signals driven onto the body control input 220 by the controller 208. Figure 2 The controller 208 shown also includes a plurality of gate inputs 234A, 234B, and 234C. Additional input and output connections will be present (eg, power connections, reference voltage connections, and ground connections), but those are not shown to avoid overcomplicating the drawing.

[0034] The controller 208 is configured to use the logic gate delay line 118 embedded within the processing core 116 to determine the speed of the digital logic. Figure 2 The illustrated logic gate delay line 118 includes a plurality of logic gate outputs 236A, 236B, and 236C coupled to a plurality of gate inputs 234A, 234B, and 234C of the controller 208. Figure 2Only three logic gate outputs (and therefore only three gate inputs) are shown in FIG. 1 , but the logic gate delay line 118 may include any suitable number of logic gate outputs. In some implementations, the number of logic gate outputs depends on the number of bits specified for the result. For example, seven logic gate outputs may be suitable for a three-bit result. For another example, fifteen logic gate outputs may be suitable for a four-bit result. Figure 2 The illustrated logic gate delay line 118 also includes a plurality of delay elements 238A, 238B, and 238C coupled to a plurality of logic gate outputs 236A, 236B, and 236C. Figure 2 Only three delay elements are shown in FIG, but the logic gate delay line 118 may include any suitable number of delay elements. The plurality of delay elements 238A, 238B, and 238C may include a plurality of serially aligned buffers. Each of the plurality of logic gate outputs 236A, 236B, and 236C may include a logic output of a trigger. In some implementations, each of the plurality of logic gate outputs 236A, 236B, and 236C may include a trigger further associated with a recapture logic (not shown). For example, the recapture logic component may include a multiplexer configured to reduce metastability by first feeding the captured signal into the multiplexer and then into the logic gate output. In some implementations, in the next clock cycle, the signal may be fed back into the multiplexer input and then into the logic gate output to achieve resynchronization. The delay line of the logic gate delay line 118 may be placed along the longest physical digital logic processing path within the processing core 116 and run next to the longest physical digital logic processing path. Integrated circuit 108 can include more than one logic gate delay line. In some implementations, integrated circuit 108 can include multiple logic gate delay lines configured to reduce the impact of on-chip process variations.

[0035] The logic gate delay line 118 is configured to generate a logic speed measurement value or measurement result read by the controller 208. Specifically, when the logic gate delay line 118 is in operation, a transition is driven onto the logic gate delay line 118. For example, the transition may include a failure state that is transformed into a valid state, or a valid state that is transformed into a failure state. The transition propagates through various delay elements along the logic gate delay line 118. A plurality of logic gate outputs 236A, 236B, and 236C capture the result at a predetermined measurement point. For example, a plurality of logic gate outputs 236A, 236B, and 236C may capture the result at a predetermined time period after the transition is driven onto the logic gate delay line 118 or at the transition of the next clock cycle. When the signal indicating the transition has propagated along the logic gate delay line 118 and reaches a specific logic gate output, the logic gate output storing the initial "0" value captures a "1" value. Thus, which of the plurality of logic gate outputs 236A, 236B, and 236C captures a "1" value in response to a transition indicates a propagation distance along the logic gate delay line 118 within a predetermined period, based on which the controller 208 determines a logic speed measurement.

[0036] The logic gate delay line 118 may include a synthetic logic block having a plurality of standard cells (e.g., a buffer and a logic AND gate). A verification scheme for the logic gate delay line 118 may include a static timing analysis (STA) based on a plurality of standard cells under operating conditions, which may include process-voltage-temperature (PVT) and / or clock frequency. Since the logic gate delay line 118 is located next to a path (e.g., the longest path) through the processing core 116, the logic gate delay line 118 may include a comparison result with a computational path through the integrated circuit 108. Therefore, the result of the logic gate delay line 118 (e.g., how far the valid or invalid state propagates along the logic gate delay line 118 within a predetermined time period) may indicate the speed margin of the processing core 116.

[0037] The controller 208 is configured to read a plurality of logic gate outputs 236A, 236B, and 236C from the logic gate delay line 118 and determine a logic speed measurement value based on the readings. More specifically, the controller 208 reads a plurality of logic gate outputs 236A, 236B, and 236C, which indicate the distance that a transition (e.g., an effective state) propagates along the logic gate delay line 118 within a predetermined time period. For example, assume that the logic gate delay line 118 includes ten logic gates, and therefore includes ten logic gate outputs. It is also assumed that the logic gates are reset or disabled before starting the test. In an exemplary case, the effective state is applied to the first logic gate on the first edge of the clock signal, and then the state of each logic gate output in the plurality of logic gate outputs 236A, 236B, and 236C is read on the next edge of the clock signal. If the effective state propagates halfway along the logic gate delay line 118, the reading may take the form of 1111100000 for a particular combination of clock frequency and applied voltage. If the clock frequency increases (all other conditions remaining equal), the next logic speed measurement line may be 1100000000 because the valid state has less time to propagate. Conversely, if the clock frequency decreases (all other conditions remaining equal), another logic speed measurement line may be 1111111100 because the valid state has more time to propagate.

[0038] The controller 208 is further configured to determine a speed margin based on the logic speed measurement. The speed margin represents the difference between the logic speed measurement and the target speed value. The target speed value can be determined using STA and / or during the characterization period after the integrated circuit 108 is manufactured. Therefore, the target speed can take into account the changes caused by manufacturing differences (e.g., slight doping differences, line width changes, oxide thickness changes, etc.) and clock jitter. The higher the number corresponding to the total value captured by the plurality of logic gate outputs 236A, 236B, and 236C (i.e., the farther the transition propagates along the logic gate delay line 118), the higher the speed margin. On the contrary, the lower the number corresponding to the total value captured by the plurality of logic gate outputs 236A, 236B, and 236C, the lower the speed margin. For example, assuming that the target speed value directly or indirectly indicates that in a specific implementation with ten gates in the logic gate delay line 118, the target speed value is reached when the valid state propagates through five of the ten gates (e.g., the target reading can be 1111100000). If the logic speed measurement produces a reading of, for example, 1111110000, the controller 208 determines the speed margin to be an incremental distance of one logic gate after the target point. Additionally, if the logic speed measurement produces a reading of, for example, 1111111100, the controller 208 determines the speed margin to be an incremental distance of three logic gates after the target point. The controller 208 may not need to directly process the exemplary results of the position encoding shown above. For example, the controller 208 may encode the distance result as a magnitude with fewer bits (e.g., seven gates for a three-bit result of a logic gate delay line, or fifteen gates for a four-bit result of a logic gate delay line).

[0039] The target margin is the minimum speed margin at which the digital logic is fast enough to complete all timing paths (with a safety margin). The target margin is particularly specific to the clock frequency. Therefore, a target margin can be determined for each clock configuration implemented in the integrated circuit 108. For example, a first target margin can be determined for a clock configuration with a clock frequency of 16 MHz, and a second target margin can be determined for a separate clock configuration with a clock frequency of 48 MHz. The target margin can be determined using STA and / or during characterization after the integrated circuit 108 is manufactured.

[0040] The controller 208 is configured to adjust the digital power supply and the body bias voltage to the lowest possible value, at which the speed margin of the integrated circuit 108 is in a steady state close to the target margin. As described above, the target margin varies for different clock configurations. Therefore, for different clock configurations, the lowest possible digital power supply and body bias voltage at which the speed margin of the integrated circuit 108 is in a steady state close to the target margin may be different. In addition, due to changes in operating conditions (such as temperature) over time, the lowest possible digital power supply and body bias voltage at which the speed margin of the integrated circuit 108 is in a steady state close to the target margin of the current clock configuration may change over time. Therefore, whenever the clock configuration changes, the controller 208 dynamically adjusts the digital power supply and the body bias voltage to the lowest possible value, at which the speed margin of the integrated circuit 108 is in a steady state close to the target margin of the newly implemented clock configuration. The longer the time it takes for the controller 208 to adjust the digital power supply and the body bias voltage, the more power is consumed. Therefore, to speed up the process, when the clock configuration changes, the controller 208 is configured to quickly adjust to the lowest possible digital supply voltage using the last known best body bias voltage for the newly implemented clock configuration, as will be described in more detail below. In some specific implementations, to further speed up the process, the controller 208 is configured to measure the speed margin of the digital logic components at short time intervals when the clock configuration changes to quickly adjust the digital supply voltage to a value close to the lowest possible value, as will also be described in more detail below.

[0041] Figure 3 3 is a flow chart of an example of a method 300 for operating an integrated circuit 108 when switching from a slow clock configuration to a fast clock configuration according to some implementations. At block 302, a clock setting of a clock circuit 202 is changed from a slow clock configuration to a fast clock configuration. For example, the controller 208 may send one or more control signals to the clock circuit 202, which causes the clock circuit 202 to adjust the frequency of the clock signal from 16 MHz to 48 MHz. In some implementations, to switch from the slow clock configuration to the fast clock configuration, the controller 208 may write to a clock configuration register included in the clock circuit 202. The fast clock configuration is not activated immediately after the clock setting is changed.

[0042] At block 304, the digital supply voltage is increased to a maximum value for the fast clock configuration. For example, the controller 208 may send one or more control signals to the digital supply voltage converter 204, which causes the digital supply voltage converter 204 to increase the digital supply voltage to a maximum value for the fast clock configuration. The maximum value for the fast clock configuration is the maximum digital supply voltage at which the digital logic is fast enough to complete all timing paths in the worst case for the fast clock configuration. The maximum value for the fast clock configuration may be determined via STA analysis. For example, when the fast clock configuration has a 48 MHz clock, the maximum value for the digital supply voltage may be approximately 0.72 volts. The maximum value for the fast clock configuration is an example of a "predetermined maximum value for the first frequency" and a "predetermined maximum value for the second frequency".

[0043] At block 306, the body bias voltage is increased to an optimal value for the fast clock configuration. For example, the controller 208 may send one or more control signals to the body voltage converter 206, which causes the body voltage converter 206 to increase the body bias voltage to the optimal value for the fast clock configuration. The optimal value for the fast clock configuration may be the last known body bias voltage when the integrated circuit 108 last switched out of the fast clock configuration. In some implementations, the optimal value for the fast clock configuration is stored in a register of the controller 208 and updated when the integrated circuit 108 switches out of the fast clock configuration. The optimal value for the fast clock configuration is an example of a "predetermined optimal value for the first frequency" and a "predetermined optimal value for the second frequency".

[0044] At box 308, the fast clock configuration is activated. At box 310, the controller 208 determines the speed margin after a short time interval. For example, the controller 208 may wait two microseconds before determining the speed margin. The controller 208 may use any of the techniques described herein to determine the speed margin. At box 312, the controller 208 determines whether the speed margin is greater than or equal to the threshold margin of the fast clock configuration. The threshold margin of the fast clock configuration is slightly greater than the minimum speed margin, at which the digital logic is fast enough to complete all timing paths (with a safety margin) under the fast clock configuration. The threshold margin of the fast clock configuration is an example of a "predetermined threshold margin for a first frequency" and a "predetermined threshold margin for a second frequency". When the speed margin is greater than the threshold margin of the fast clock configuration, the digital supply voltage is reduced at box 314. For example, the digital supply voltage converter 204 may reduce the digital supply voltage by 2.5 millivolts. In some specific implementations, if the digital supply voltage is less than or equal to a predetermined minimum value, the body bias voltage is reduced according to the digital supply voltage instead. For example, when the digital supply voltage is less than or equal to 0.45 volts, the body bias voltage may be reduced.The method 300 then returns to block 310 and the controller 208 determines the speed margin again after a short time interval.

[0045] Returning to block 312, when the speed margin is less than the threshold margin of the fast clock configuration, the controller 208 determines the speed margin after a long time interval at block 316. For example, the controller 208 may wait thirty-two microseconds before determining the speed margin again. Next, at block 318, the controller 208 determines whether the speed margin is greater than or equal to the target margin of the fast clock configuration. The target margin of the fast clock configuration is the minimum speed margin at which the digital logic is fast enough to complete all timing paths (with a safety margin) under the fast clock configuration. The target margin of the fast clock configuration can be determined via STA analysis. The target margin of the fast clock configuration is an example of a "predetermined target margin for the first frequency" and a "predetermined target margin for the first frequency". In some specific implementations, the target margin of the fast clock configuration is less than the threshold margin of the fast clock configuration. In an alternative specific implementation, the target margin of the fast clock configuration is equal to the threshold margin of the fast clock configuration. When the speed margin is greater than the target margin of the fast clock configuration, the digital power supply voltage is reduced again at block 320. Next, the method 300 returns to block 316 and the controller 208 determines the speed margin again after a long time interval.

[0046] Returning to block 318, when the speed margin is less than the target margin for the fast clock configuration, the body bias voltage is increased at block 322. For example, the body bias voltage may be increased by 6.25 millivolts. In some implementations, when the speed margin is less than the target margin for the fast clock configuration, the digital power supply voltage may be increased instead. For example, when the body bias voltage is equal to a predetermined maximum value, the digital power supply voltage may be increased. In this way, the speed margin is increased quickly to ensure that the next measured value of the speed margin is slightly higher than the target margin for the fast clock configuration.

[0047] Figure 4A and Figure 4B 4 is a flow chart of an example of a method 400 for operating an integrated circuit 108 when switching from a fast clock configuration to a slow clock configuration according to some implementations. At block 402, a clock setting of a clock circuit 202 is changed from a fast clock configuration to a slow clock configuration. For example, the controller 208 may send one or more control signals to the clock circuit 202, which causes the clock circuit 202 to adjust the frequency of the clock signal from 48 MHz to 16 MHz. In some implementations, the controller 208 may write to a clock configuration register included in the clock circuit 202 to switch from a fast clock configuration to a slow clock configuration. At block 404, the slow clock configuration is activated.

[0048] At block 406, the digital supply voltage is increased to a maximum value for the slow clock configuration. For example, the controller 208 may send one or more control signals to the digital supply voltage converter 204, which causes the digital supply voltage converter 204 to increase the digital supply voltage to a maximum value for the slow clock configuration. The maximum value for the slow clock configuration may be determined via STA analysis. For example, when the fast clock configuration has a 16 MHz clock, the maximum value of the digital supply voltage may be approximately 0.45 volts. The maximum value for the slow clock configuration is an example of a "predetermined maximum value for the first frequency" and a "predetermined maximum value for the second frequency".

[0049] The optimal value for the slow clock configuration may be the last known body bias voltage when the integrated circuit 108 was last switched out of the slow clock configuration. When changing from a fast clock configuration to a slow clock configuration, the optimal value for the slow clock configuration is typically lower than the steady-state value of the body bias voltage in the fast clock configuration. In some implementations, the body voltage converter 206 reduces the body bias voltage much more slowly than the digital supply voltage converter 204. Therefore, at block 408, the body bias is disabled by coupling the output of the body voltage converter 206 to a reference terminal. For example, the body voltage output 224 may be coupled to a ground terminal to quickly reduce the body bias voltage.

[0050] At box 410, the controller 208 determines the speed margin after a short time interval. For example, the controller 208 may wait two microseconds before determining the speed margin. The controller 208 may use any of the techniques described herein to determine the speed margin. At box 412, the controller 208 determines whether the speed margin is greater than or equal to the threshold margin of the slow clock configuration. The threshold margin of the slow clock configuration is slightly greater than the minimum speed margin, at which the digital logic is fast enough to complete all timing paths (with a safety margin) under the slow clock configuration. The threshold margin of the slow clock configuration is an example of a "predetermined threshold margin of the first frequency" and a "predetermined threshold margin of the second frequency". In some specific implementations, the threshold margins of the slow clock configuration and the fast clock configuration are the same. In an alternative specific implementation, the threshold margins of the slow clock configuration and the fast clock configuration are different based on the amount of the applied body bias voltage. When the speed margin is greater than or equal to the threshold margin of the slow clock configuration, the digital supply voltage is reduced at box 414. For example, the digital supply voltage converter 204 may reduce the digital supply voltage by 2.5 millivolts.The method 400 then returns to block 410 and the controller 208 determines the speed margin again after a short time interval.

[0051] Returning to block 412, when the speed margin is less than the threshold margin, Figure 4BAt block 416 in the controller 208, the body bias voltage is increased to an optimal value for the slow clock configuration. For example, the controller 208 may send one or more control signals to the body voltage converter 206, which causes the body voltage converter 206 to increase the body bias voltage to the optimal value for the slow clock configuration. As described above, the optimal value for the slow clock configuration may be the last known body bias voltage when the integrated circuit 108 was last switched out of the slow clock configuration. In some implementations, the optimal value for the slow clock configuration is stored in a register of the controller 208 and is updated when the integrated circuit 108 is switched out of the slow clock configuration. The optimal value for the slow clock configuration is an example of a “predetermined optimal value for the first frequency” and a “predetermined optimal value for the second frequency”.

[0052] Next, at block 418, the controller 208 determines the speed margin after a short time interval. For example, the controller 208 may wait two microseconds before re-determining the speed margin. In some implementations, the controller 208 waits for a longer time interval after the body bias voltage is increased to allow the body bias voltage to stabilize. For example, the controller 208 may wait eight to sixteen microseconds after the body bias voltage is increased and before re-determining the speed margin. At block 420, the controller 208 determines whether the speed margin is greater than or equal to the threshold margin of the slow clock configuration. When the speed margin is greater than or equal to the threshold margin of the slow clock configuration, the digital power supply voltage is reduced at block 422. Next, the method 400 returns to block 418, and the controller 208 determines the speed margin again after a short time interval. Alternatively, when the speed margin is less than the threshold margin of the slow clock configuration, the controller 208 determines the speed margin after a long time interval at block 424. For example, the controller 208 may wait thirty-two microseconds before re-determining the speed margin. Next, at box 426, the controller 208 determines whether the speed margin is greater than or equal to the target margin of the slow clock configuration. The target margin of the slow clock configuration is the minimum speed margin at which the digital logic is fast enough to complete all timing paths (with a safety margin) under the slow clock configuration. The target margin of the slow clock configuration can be determined via STA analysis. The target margin of the slow clock configuration is an example of a "predetermined target margin for a first frequency" and a "predetermined target margin for a first frequency". In some specific implementations, the target margin of the slow clock configuration is less than the threshold margin of the slow clock configuration. In an alternative specific implementation, the target margin of the slow clock configuration is equal to the threshold margin of the slow clock configuration. When the speed margin is greater than or equal to the target margin of the slow clock configuration, the digital supply voltage is reduced again at box 428. Then, the method 400 returns to box 424, and the controller 208 determines the speed margin again after a short time interval.

[0053] Returning to block 426, when the speed margin is less than the target margin for the slow clock configuration, the body bias voltage is increased at block 430. For example, the body bias voltage may be increased by 6.25 millivolts. In some implementations, when the speed margin is less than the target margin for the slow clock configuration, the digital power supply voltage is increased instead. For example, when the body bias voltage is equal to a predetermined maximum value, the digital power supply voltage may be increased.

[0054] Figure 5 3 is a timing diagram of an exemplary operation of the integrated circuit 108 switching from a slow clock configuration to a fast clock configuration. At time t1, the digital supply voltage increases to the maximum value of the fast clock configuration (similar to block 304). At time t2, the body bias voltage increases to the optimal value of the fast clock configuration (similar to block 306). At time t3, the controller 208 begins to determine the speed margin at short time intervals (similar to block 310). In addition, at time t3, the digital supply voltage decreases until the speed margin is less than the threshold margin of the fast clock configuration. When the speed margin is less than the threshold margin of the fast clock configuration at time t4, the controller 208 changes to determine the speed margin at long time intervals (similar to block 316).

[0055] Figure 5 The timing diagram of also includes an exemplary operation of the integrated circuit 108 switching from the fast clock configuration back to the slow clock configuration. At time t5, the digital supply voltage increases to the maximum value of the slow clock configuration (similar to box 406). At time t6, the body bias is disabled (similar to box 408) and the body bias voltage is reduced to the reference value. In addition, at time t6, the controller 208 begins to determine the speed margin at short time intervals (similar to box 410). In addition, at time t6, the digital supply voltage is reduced until the speed margin is less than the threshold margin of the slow clock configuration. When the speed margin is less than the threshold margin of the slow clock configuration at time t7, the body bias is enabled and the body bias voltage is increased to the optimal value of the slow clock configuration (similar to box 416). After the body bias voltage is increased to the optimal value of the slow clock, at time t8, the controller 208 waits for a long time interval to stabilize the body bias voltage (e.g., between eight microseconds and sixteen microseconds). After the long time interval, at time t9, the controller 208 begins to determine the speed margin at short time intervals (similar to box 418). In addition, at time t9, the digital power supply voltage decreases until the speed margin is less than the threshold margin of the slow clock configuration. When the speed margin is less than the threshold margin of the slow clock configuration at time t10, the controller 208 changes to determine the speed margin at long time intervals.

[0056] Figure 66 is a flow chart of an example of a method 600 for operating an integrated circuit 108 according to some specific implementations. At block 602, a clock signal generated by a clock circuit 202 is adjusted from a first frequency to a second frequency. For example, a controller 208 may send one or more control signals to the clock circuit 202, which causes the clock circuit 202 to adjust the frequency of the clock signal from the first frequency to the second frequency. In some specific implementations, the controller 208 may write to a clock configuration register included in the clock circuit 202 to switch from the first frequency to the second frequency. At block 604, a digital supply voltage generated by a digital supply voltage converter 204 is adjusted to a predetermined maximum value of the second frequency. At block 606, a body bias voltage generated by a body voltage converter 206 is adjusted to a predetermined optimal value of the second frequency. At block 608, a speed margin is determined by the controller 208 based on a logic speed measurement from the logic gate delay line 118. At block 610, the digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin.

[0057] In light of the foregoing disclosure, the examples of systems and methods listed in the following clauses are specifically contemplated and are intended as a non-limiting set of examples.

[0058] Clause 1. A method for operating an integrated circuit on a semiconductor substrate, the method comprising:

[0059] adjusting a clock signal generated by a clock circuit from a first frequency to a second frequency;

[0060] regulating a digital supply voltage generated by a digital supply voltage converter to a predetermined maximum value of the second frequency;

[0061] adjusting a body bias voltage generated by a body voltage converter to a predetermined value of the second frequency;

[0062] determining, by the controller, a speed margin based on logic speed measurements from a logic gate delay line; and

[0063] reducing the digital power supply voltage until the speed margin is less than a predetermined threshold margin,

[0064] The clock circuit, the digital power supply voltage converter, the main voltage converter, the controller and the logic gate delay line are implemented on the semiconductor substrate.

[0065] Clause 2. The method of clause 1, wherein determining, by the controller, the speed margin based on the logic speed measurement from the logic gate delay line further comprises:

[0066] determining, by the controller, the speed margin based on the logic speed measurement from the logic gate delay line after a first time interval when the speed margin is greater than or equal to the predetermined threshold margin, and

[0067] determining, by the controller after a second time interval, the speed margin based on the logic speed measurement from the logic gate delay line when the speed margin is less than the predetermined threshold margin,

[0068] The second time interval is longer than the first time interval.

[0069] Clause 3. The method according to clause 1, further comprising:

[0070] reducing the digital power supply voltage until the speed margin is less than a predetermined target margin; and

[0071] When the speed margin is less than the predetermined target margin, increasing the body bias voltage,

[0072] The predetermined target margin is smaller than the predetermined threshold margin.

[0073] Clause 4. The method of clause 1, further comprising reducing the body bias voltage when the digital supply voltage is less than or equal to a predetermined minimum value.

[0074] Clause 5. The method of clause 1, wherein the predetermined threshold margin is for the second frequency, wherein the method further comprises:

[0075] adjusting the clock signal from the second frequency to the first frequency;

[0076] adjusting the digital power supply voltage to a predetermined maximum value of the first frequency;

[0077] adjusting the body bias voltage to a predetermined value for the first frequency; and

[0078] The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin of the first frequency.

[0079] Clause 6. The method of clause 1, wherein adjusting the body bias voltage to the predetermined value of the second frequency further comprises:

[0080] coupling the output of the body voltage converter to a reference terminal to reduce the body bias voltage to the predetermined value below the second frequency, and then

[0081] The body bias voltage is increased to the predetermined value for the second frequency.

[0082] Clause 7. The method of clause 1, wherein the clock signal is adjusted from the first frequency to the second frequency after the digital supply voltage is adjusted to the predetermined maximum value of the second frequency and after the body bias voltage is adjusted to the predetermined value of the second frequency.

[0083] Clause 8. The method of clause 1, wherein the predetermined value of the second frequency is a last known value of the body bias voltage when the clock signal was last adjusted away from the second frequency.

[0084] Clause 9. An integrated circuit on a semiconductor substrate, the integrated circuit comprising:

[0085] Processing kernel;

[0086] a logic gate delay line, the logic gate delay line being embedded within the processing core;

[0087] a clock circuit configured to generate a clock signal;

[0088] a digital supply voltage converter configured to generate a digital supply voltage;

[0089] a body voltage converter configured to generate a body bias voltage; and

[0090] A controller, the controller being configured to:

[0091] adjusting the clock signal from a first frequency to a second frequency,

[0092] adjusting the digital power supply voltage to a predetermined maximum value of the second frequency,

[0093] adjusting the body bias voltage to a predetermined value of the second frequency,

[0094] determining a speed margin based on logic speed measurements from the logic gate delay line, and

[0095] The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin.

[0096] Clause 10. The integrated circuit of clause 9, wherein to determine the speed margin based on the logic speed measurement from the logic gate delay line, the controller is further configured to:

[0097] determining the speed margin at a first measurement frequency based on the logic speed measurement from the logic gate delay line when the speed margin is greater than or equal to the predetermined threshold margin, and

[0098] determining the speed margin at a second measurement frequency based on the logic speed measurement value from the logic gate delay line when the speed margin is less than the predetermined threshold margin,

[0099] The second measurement frequency is smaller than the first measurement frequency.

[0100] Clause 11. The integrated circuit of clause 9, wherein the controller is further configured to:

[0101] reducing the digital power supply voltage until the speed margin is less than a predetermined target margin, and

[0102] When the speed margin is less than the predetermined target margin, increasing the body bias voltage,

[0103] The predetermined target margin is smaller than the predetermined threshold margin.

[0104] Clause 12. The integrated circuit of Clause 11, wherein the controller is further configured to increase the digital supply voltage when the speed margin is less than the predetermined target margin and the body bias voltage is equal to a predetermined maximum value.

[0105] Clause 13. The integrated circuit of clause 9, wherein the predetermined threshold margin is for the second frequency, wherein the controller is further configured to:

[0106] adjusting the clock signal from the second frequency to the first frequency,

[0107] adjusting the digital supply voltage to a predetermined maximum value of the first frequency,

[0108] adjusting the body bias voltage to a predetermined value for the first frequency, and

[0109] The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin of the first frequency.

[0110] Clause 14. The integrated circuit of clause 9, wherein, to adjust the body bias voltage to the predetermined value of the second frequency, the controller is further configured to:

[0111] coupling the output of the body voltage converter to a reference terminal to reduce the body bias voltage to the predetermined value below the second frequency, and then

[0112] The body bias voltage is increased to the predetermined value for the second frequency.

[0113] Item 15. An integrated circuit as described in Item 9, wherein the controller is further configured to adjust the clock signal from the first frequency to the second frequency after adjusting the digital supply voltage to the predetermined maximum value of the second frequency and after adjusting the body bias voltage to the predetermined value of the second frequency.

[0114] Clause 16. An integrated circuit on a semiconductor substrate, the integrated circuit comprising:

[0115] Processing kernel;

[0116] a system memory coupled to the processing core;

[0117] a communications bus coupled to the processing core;

[0118] wireless communication circuitry coupled to the communication bus and configured to wirelessly communicate with a device external to the integrated circuit; and

[0119] A controller, the controller being configured to:

[0120] adjusting the clock signal from a first frequency to a second frequency,

[0121] adjusting the digital supply voltage to a predetermined maximum value of the second frequency,

[0122] Adjust the body bias voltage to a predetermined value,

[0123] determining a speed margin based on logic speed measurements from the processing core, and

[0124] The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin.

[0125] Clause 17. The integrated circuit of clause 16, wherein, to determine the speed margin based on the logic speed measurement from the processing core, the controller is further configured to:

[0126] determining the speed margin based on the logic speed measurement from the processing core after a first time interval when the speed margin is greater than or equal to the predetermined threshold margin, and

[0127] determining the speed margin based on the logic speed measurement from the processing core after a second time interval when the speed margin is less than the predetermined threshold margin,

[0128] The second time interval is longer than the first time interval.

[0129] Clause 18. The integrated circuit of clause 16, wherein the controller is further configured to:

[0130] reducing the digital power supply voltage until the speed margin is less than a predetermined target margin, and

[0131] When the speed margin is less than the predetermined target margin, increasing the body bias voltage,

[0132] The predetermined target margin is smaller than the predetermined threshold margin.

[0133] Clause 19. The integrated circuit of clause 16, wherein the predetermined value and the predetermined threshold margin are for the second frequency, wherein the controller is further configured to:

[0134] adjusting the clock signal from the second frequency to the first frequency,

[0135] adjusting the digital supply voltage to a predetermined maximum value of the first frequency,

[0136] adjusting the body bias voltage to a predetermined value for the first frequency, and

[0137] The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin of the first frequency.

[0138] Clause 20. An integrated circuit as described in Clause 16, wherein the controller is further configured to adjust the clock signal from the first frequency to the second frequency after adjusting the digital supply voltage to the predetermined maximum value of the second frequency and after adjusting the body bias voltage to the predetermined value.

[0139] Many electrical connections in the drawings are shown as directly coupled without intervening devices, but are not explicitly described as such in the above description. However, for electrical connections shown in the drawings without intervening devices, this paragraph should serve as an antecedent basis for the claims for referring to any electrical connection as "directly coupled."

[0140] The above discussion is intended to illustrate the principles and various embodiments of the present invention. Once the above disclosure is fully understood, many variations and modifications will become apparent to those skilled in the art. The following claims are interpreted as being intended to include all such variations and modifications.

[0141] List

[0142] 100 Hearing Aids

[0143] 102 Microphone

[0144] 104 Speakers

[0145] 106 Batteries

[0146] 108 Circuit

[0147] 110 Wireless communication circuit

[0148] 112 Non-volatile memory

[0149] 114 Management Module

[0150] 116 Processing Kernel

[0151] 118 Logic Gate Delay Line

[0152] 120 Communication bus

[0153] 122 System Memory

[0154] 124 System Interface

[0155] 202 Clock Circuit

[0156] 204 Digital Supply Voltage Converter

[0157] 206 Main Voltage Converter

[0158] 208 Controller

[0159] 210 Clock control input

[0160] 212 Clock signal output

[0161] 214 Digital control inputs

[0162] 216 Digital power input

[0163] 218 Digital supply voltage output

[0164] 220 Main control input

[0165] 222 Main power input

[0166] 224 Main voltage output

[0167] 226A Transistor

[0168] 226B transistor

[0169] 226C Transistor

[0170] 228 Clock control output

[0171] 230 Digital power control output

[0172] 232 Main control output

[0173] 234A Gate Input

[0174] 234B Gate Input

[0175] 234C Gate Input

[0176] 236A Logic Gate Output

[0177] 236B logic gate output

[0178] 236C Logic Gate Output

[0179] 238A Delay Element

[0180] 238B Delay Element

[0181] 238C Delay Element

Claims

1. A method for operating an integrated circuit on a semiconductor substrate, the method comprising: adjusting a clock signal generated by a clock circuit from a first frequency to a second frequency; regulating a digital supply voltage generated by a digital supply voltage converter to a predetermined maximum value for the second frequency; adjusting a body bias voltage generated by a body voltage converter to a predetermined value for the second frequency; determining, by the controller, a speed margin based on logic speed measurements from a logic gate delay line; as well as reducing the digital power supply voltage until the speed margin is less than a predetermined threshold margin, The clock circuit, the digital power supply voltage converter, the main voltage converter, the controller and the logic gate delay line are implemented on the semiconductor substrate.

2. The method of claim 1 , wherein determining, by the controller, the speed margin based on the logic speed measurement from the logic gate delay line further comprises: determining, by the controller, the speed margin based on the logic speed measurement from the logic gate delay line after a first time interval when the speed margin is greater than or equal to the predetermined threshold margin, and determining, by the controller after a second time interval, the speed margin based on the logic speed measurement from the logic gate delay line when the speed margin is less than the predetermined threshold margin, The second time interval is longer than the first time interval.

3. The method according to claim 1, further comprising: The body bias voltage is reduced when the digital supply voltage is less than or equal to a predetermined minimum value.

4. The method of claim 1 , wherein the predetermined threshold margin is for the second frequency, wherein the method further comprises: adjusting the clock signal from the second frequency to the first frequency; regulating the digital supply voltage to a predetermined maximum value for the first frequency; adjusting the body bias voltage to a predetermined value for the first frequency; as well as The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin for the first frequency.

5. The method of claim 1 , wherein the clock signal is adjusted from the first frequency to the second frequency after the digital supply voltage is adjusted to the predetermined maximum value for the second frequency and after the body bias voltage is adjusted to the predetermined value for the second frequency.

6. An integrated circuit on a semiconductor substrate, the integrated circuit comprising: Processing kernel; a logic gate delay line, the logic gate delay line being embedded within the processing core; a clock circuit configured to generate a clock signal; a digital supply voltage converter configured to generate a digital supply voltage; a body voltage converter configured to generate a body bias voltage; and A controller, the controller being configured to: adjusting the clock signal from a first frequency to a second frequency, regulating the digital supply voltage to a predetermined maximum value for the second frequency, adjusting the body bias voltage to a predetermined value for the second frequency, determining a speed margin based on logic speed measurements from the logic gate delay line, and The digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin.

7. The integrated circuit of claim 6, wherein the controller is further configured to: reducing the digital power supply voltage until the speed margin is less than a predetermined target margin, and When the speed margin is less than the predetermined target margin, increasing the body bias voltage, The predetermined target margin is smaller than the predetermined threshold margin.

8. The integrated circuit of claim 6, wherein the predetermined threshold margin is for the second frequency, wherein the controller is further configured to: The clock signal is adjusted from the second frequency to the first frequency, the digital supply voltage is adjusted to a predetermined maximum value for the first frequency, the body bias voltage is adjusted to a predetermined value for the first frequency, and the digital supply voltage is reduced until the speed margin is less than a predetermined threshold margin for the first frequency.

9. The integrated circuit according to claim 6, wherein: To adjust the body bias voltage to the predetermined value for the second frequency, the controller is further configured to: coupling the output of the body voltage converter to a reference terminal to reduce the body bias voltage to below the predetermined value for the second frequency, and then The body bias voltage is increased to the predetermined value for the second frequency.

10. The integrated circuit of claim 6, wherein the controller is further configured to adjust the clock signal from the first frequency to the second frequency after adjusting the digital supply voltage to the predetermined maximum value for the second frequency and after adjusting the body bias voltage to the predetermined value for the second frequency.