Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
APPARATUS AND METHOD FOR SENSING DISTRIBUTED LOAD CURRENTS PROVIDED BY POWER GATING CIRCUIT
Document Type and Number:
WIPO Patent Application WO/2018/097938
Kind Code:
A1
Abstract:
Apparatus for sensing distributed load currents provided by power gating circuit. The apparatus includes a power gating circuit including a set of bulk transistors coupled in series with a set of circuits between first and second voltage rails. The apparatus includes a current sensor with a first ring oscillator, a first frequency-to-code (FTC) converter, a second ring oscillator, a second FTC converter, and a subtractor. The first ring oscillator includes a first set of one or more inverters configured to receive a first voltage at a node between the power gating circuit and the first circuit, and a second set of one or more inverters configured to receive a second voltage at a second node between the power gating circuit and the second circuit. The first ring oscillator is configured to generate a signal including a frequency related to the voltage drops across the first and second sets of transistors.

Inventors:
ZHONG GUOAN (US)
ZHANG JUNMOU (US)
CHEN NAN (US)
Application Number:
PCT/US2017/059532
Publication Date:
May 31, 2018
Filing Date:
November 01, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
QUALCOMM INC (US)
International Classes:
G01R19/25; G01R19/252; G06F1/32
Foreign References:
US20160069939A12016-03-10
US20050289367A12005-12-29
US20160116924A12016-04-28
Other References:
None
Attorney, Agent or Firm:
FOUNTAIN, George (US)
Download PDF:
Claims:
CLAIMS

1. An apparatus, comprising:

a first circuit;

a second circuit;

a power gating circuit configured to generate a first load current through the first circuit and a second load current through the second circuit; and

a current sensor configured to generate a first signal related to the first load current and the second load current, wherein the current sensor includes a first ring oscillator comprising:

a first set of one or more inverters coupled to a first node between the power gating circuit and the first circuit, and

a second set of one or more inverters coupled to a second node between the power gating circuit and the second circuit.

2. The apparatus of claim 1, wherein the first ring oscillator is configured to generate a second signal with a first frequency related to a first voltage difference between a first rail voltage at a first voltage rail and a first voltage at the first node, and a second voltage difference between the first rail voltage and a second voltage at the second node, wherein the first signal is based on the second signal.

3. The apparatus of claim 2, wherein the power gating circuit comprises: a first set of one or more transistors coupled between the first voltage rail and the first node, wherein the first set of one or more transistors is configured to generate the first load current through the first circuit based on a control signal; and

a second set of one or more transistors coupled between the first voltage rail and the second node, wherein the second set of one or more transistors is configured to generate a second load current through the second circuit based on the control signal.

4. The apparatus of claim 3, wherein the first and second sets of transistors each comprise a p-channel metal oxide semiconductor (PMOS) field effect transistor (FET).

5. The apparatus of claim 3, wherein the first and second sets of transistors each comprise an n-channel metal oxide semiconductor (PMOS) field effect transistor (FET).

6. The apparatus of claim 2, wherein the current sensor comprises a second ring oscillator configured to generate a third signal with a second frequency related to a third voltage difference between the first rail voltage and a second rail voltage, wherein the first signal is based on the third signal.

7. The apparatus of claim 6, wherein the current sensor further comprises: a first frequency-to-code (FTC) converter configured to generate a first digital signal related to the first frequency;

a second frequency-to-code (FTC) converter configured to generate a second digital signal related to the second frequency; and

a subtractor configured to generate the first signal based on a difference between the first digital signal and the second digital signal.

8. The apparatus of claim 2, wherein the current sensor further comprises a frequency -to-code (FTC) converter configured to generate a first digital signal related to the first frequency.

9. The apparatus of claim 8, wherein the frequency-to-code (FTC) converter comprises:

an n-bit counter coupled to an input of one of the inverters;

a set of 1-bit counters coupled to inputs of the remaining inverters, respectively; an n-bit flip-flop configured to latch an output of the n-bit counter based on a clock signal; and

a set of 1 -bit flip-flops configured to latch outputs of the 1-bit counters based on the clock signal, respectively.

10. The apparatus of claim 9, wherein the frequency-to-code (FTC) converter further comprises: a multiplier configured to generate a coarse digital value related to the first frequency by multiplying by an integer number to the latched output of the n-bit flip- flip;

a set of exclusive-OR gates to collectively generate a fine digital value of the first frequency, the set of exclusive-OR gates including respective first inputs coupled to a least significant bit of the n-bit flip-flop and respective second inputs configured to receive the latched outputs of the 1-bit flip-flop, respectively; and

an adder to add the coarse digital value to the fine digital value to generate the second signal.

11. A method, comprising:

generating a first load current through a first circuit and a power gating circuit; generating a second load current through a second circuit and the power gating circuit; and

generating a first signal related to the first load current and the second load current, wherein generating the first signal comprises:

applying a first voltage at a first node between the first circuit and the power gating circuit to a first set of one or more inverters of a first ring oscillator; and applying a second voltage at a second node between the second circuit and the power gating circuit to a second set of one or more inverters of the first ring oscillator.

12. The method of claim 1 1, wherein generating the first signal comprises the first ring oscillator generating a second signal with a first frequency related to a first voltage difference between a first rail voltage at a first voltage rail and the first voltage, and a second voltage difference between the first rail voltage and the second voltage.

13. The method of claim 12, wherein generating the first load current comprises:

turning on a first set of one or more transistors coupled between the first voltage rail and the first node based on a control signal; and

turning on a second set of one or more transistors coupled between the first voltage rail and the second node based on the control signal.

14. The method of claim 13, wherein the first and second sets of transistors each comprise a p-channel metal oxide semiconductor (PMOS) field effect transistor (FET).

15. The method of claim 13, wherein the first and second sets of transistors each comprise an n-channel metal oxide semiconductor (PMOS) field effect transistor (FET).

16. The method of claim 12, wherein generating the first signal comprises a second ring oscillator generating a third signal with a second frequency related to a third voltage difference between the first rail voltage and a second rail voltage.

17. The method of claim 16, wherein generating the first signal further comprises:

generating a first digital signal related to the first frequency;

generating a second digital signal related to the second frequency; and generating a difference between the first digital signal and the second digital signal, wherein the first signal is based on the difference.

18. The method of claim 12, wherein generating the first signal comprises generating a first digital signal related to the first frequency.

19. An apparatus, comprising:

means for generating a first load current through a first circuit;

means for generating a second load current through a second circuit; and means for generating a first signal related to the first load current and the second load current, wherein the means for generating the first signal comprises:

means for applying a first voltage at a first node between the first circuit and the means for generating the first load current to a first set of one or more inverters of a means for generating a second signal; and means for applying a second voltage at a second node between the second circuit and the means for generating the second load current to a second set of one or more inverters of the means for generating the second signal.

20. The apparatus of claim 19, wherein the means for generating the second signal comprises means for generating the second signal with a first frequency related to a first voltage difference between a first rail voltage at a first voltage rail and the first voltage, and a second voltage difference between the first rail voltage and the second voltage.

21. The apparatus of claim 20, wherein the means for generating the first load current comprises:

means for turning on a first set of one or more transistors coupled between the first voltage rail and the first node based on a control signal; and

means for turning on a second set of one or more transistors coupled between the first voltage rail and the second node based on the control signal.

22. The method of claim 21, wherein the first and second sets of transistors each comprise a p-channel metal oxide semiconductor (PMOS) field effect transistor (FET).

23. The method of claim 21, wherein the first and second sets of transistors each comprise an n-channel metal oxide semiconductor (PMOS) field effect transistor (FET).

24. The method of claim 20, wherein the means for generating the first signal comprises means for generating a third signal with a second frequency related to a third voltage difference between the first rail voltage and a second rail voltage.

25. The apparatus of claim 24, wherein the means for generating the first signal further comprises:

means for generating a first digital signal related to the first frequency; means for generating a second digital signal related to the second frequency; and means for generating a difference between the first digital signal and the second digital signal, wherein the first signal is based on the difference.

26. The apparatus of claim 20, wherein the means for generating the first signal comprises means for generating a first digital signal related to the first frequency.

Description:
APPARATUS AND METHOD FOR SENSING DISTRIBUTED LOAD

CURRENTS PROVIDED BY POWER GATING CIRCUIT

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application claims priority to and the benefit of Non-Provisional Application No.

15/358,494 filed in the U.S. Patent and Trademark Office on November 22, 2016, the entire content of which is incorporated herein by reference.

Field

[0002] Aspects of the present disclosure relate generally to load current sensing, and in particular, to an apparatus and method for sensing distributed load currents provided a by power gating circuit.

Background

[0003] An integrated circuit (IC) typically includes a power gating circuit for selectively applying power to one or more cores of the IC. Often these cores, such as a central processing unit (CPU) core, a graphics processing unit (GPU) core, modem core, and others, require substantial power to operate. In some cases, such power consumption may get out of control, e.g., becomes too large that may cause damage to the IC or may cause the IC to malfunction.

[0004] To prevent damage to the IC or IC malfunction, ICs typically include a current sensing circuit to sense a load current supplied to one or more cores, and a controller to perform one or more defined operations when the sensed load current exceeds a threshold, the temperature of the IC exceeds a threshold, and/or based on other conditions. For example, such one or more defined operations may include reducing the clock frequency so that less current is supplied to the one or more cores.

SUMMARY

[0005] The following presents a simplified summary of one or more embodiments in order to provide a basic understanding of such embodiments. This summary is not an extensive overview of all contemplated embodiments, and is intended to neither identify key or critical elements of all embodiments nor delineate the scope of any or all embodiments. Its sole purpose is to present some concepts of one or more embodiments in a simplified form as a prelude to the more detailed description that is presented later.

[0006] An aspect of the disclosure relates to an apparatus including a first circuit; a second circuit; a power gating circuit configured to generate a first load current through the first circuit and a second load current through the second circuit; a current sensor configured to generate a first signal related to the first load current and the second load current, wherein the current sensor includes a first ring oscillator including: a first set of one or more inverters coupled to a first node between the power gating circuit and the first circuit, and a second set of one or more inverters coupled to a second node between the power gating circuit and the second circuit.

[0007] Another aspect of the disclosure relates to a method including generating a first load current through a first circuit and a power gating circuit; generating a second load current through a second circuit and the power gating circuit; generating a first signal related to the first load current and the second load current, wherein generating the first signal comprises: applying a first voltage at a first node between the first circuit and the power gating circuit to a first set of one or more inverters of a first ring oscillator; and applying a second voltage at a second node between the second circuit and the power gating circuit to a second set of one or more inverters of the first ring oscillator.

[0008] Another aspect of the disclosure relates to apparatus including means for generating a first load current through a first circuit; means for generating a second load current through a second circuit; means for generating a first signal related to the first load current and the second load current, wherein generating the first signal includes means for applying a first voltage at a first node between the first circuit and the means for generating the first load current to a first set of one or more inverters of a means for generating a second signal; and means for applying a second voltage at a second node between the second circuit and the means for generating the second load current to a second set of one or more inverters of the means for generating the second signal.

[0009] To the accomplishment of the foregoing and related ends, the one or more embodiments include the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative aspects of the one or more embodiments. These aspects are indicative, however, of but a few of the various ways in which the principles of various embodiments may be employed and the description embodiments are intended to include all such aspects and their equivalents.

BRIEF DESCRIPTION OF THE DRAWINGS

[0010] FIG. 1 illustrates a block diagram of an exemplary apparatus for sensing and controlling distributed load currents provided by a power gating circuit in accordance with an aspect of the disclosure.

[0011] FIG. 2 illustrates a block diagram of another exemplary apparatus for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure.

[0012] FIG. 3 illustrates a block diagram of another exemplary apparatus for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure.

[0013] FIG. 4 illustrates a block diagram of another exemplary apparatus for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure.

[0014] FIG. 5 illustrates a block diagram of another exemplary apparatus for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure.

[0015] FIG. 6 illustrates a block diagram of another exemplary apparatus for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure.

[0016] FIG. 7 illustrates a block diagram of an exemplary current sensor in accordance with another aspect of the disclosure.

[0017] FIG. 8 illustrates a flow diagram of an exemplary method for sensing distributed load currents in accordance with another aspect of the disclosure.

DETAILED DESCRIPTION

[0018] The detailed description set forth below, in connection with the appended drawings, is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.

[0019] FIG. 1 illustrates a block diagram of an exemplary apparatus 100 for sensing and controlling one or more load currents provided by one or more respective power gating circuits in accordance with an aspect of the disclosure. The apparatus 100 may be employed in an integrated circuit (IC) for sensing one or more load currents supplied to one or more cores.

[0020] In particular, the apparatus 100 includes N number of power gating circuits 1 10-1 to 1 10-N, where N may be one (1) or more. The power gating circuits 1 10-1 to 1 10-N may be coupled in series with cores (generally circuits) 120-1 to 120-N between upper voltage rails VDDi to VDD N and a lower voltage rail VSS (e.g., ground), respectively. The power gating circuits 1 10-1 to 1 10-N are configured to receive control signals CSi to CSN for controlling the load currents ILI to ILN supplied to the cores 120-1 to 120-N, respectively.

[0021] The apparatus 100 further includes current sensors 130-1 to 130-N coupled to power gating circuits 1 10-1 to 1 10-N, respectively. The current sensors 130-1 to 130-N are configured to generate digital signals Di to D N indicative of the load currents ILI to ILN supplied to the cores 120-1 to 120-N, respectively. The current sensors 130-1 to 130-N are configured to generate the digital signals Di to D N based on voltage differences AYi to AVN generated by the power gating circuits 1 10-1 to 1 10-N, respectively. Accordingly, the voltage differences AY i to AVN are related to the load currents ILI to ILN supplied to the cores 120-1 to 120-N, respectively.

[0022] The apparatus 100 further includes a controller 140 for controlling the operations of the power gating circuits 1 10-1 to 1 10-N. For example, the controller 140 may be configured to control any one of the power gating circuits 1 10-1 to 1 10-N to reduce or substantially eliminate any corresponding load currents ILI to ILN supplied to any corresponding cores 120-1 to 120-N.

[0023] More specifically, the controller 140 is configured to receive the digital signals Di to D N from the current sensors 130-1 to 130-N. The controller 140 is further configured to generate control signals CSi to CSN for the power gating circuits 1 10-1 to 1 10-N, respectively. Optionally, the controller 140 may be configured to receive one or more conditions, such as one or more signals indicative of one or more sensed temperatures associated with the apparatus 100 and/or other one or more signals to which the controller 140 may respond in controlling the operation of the power gating circuits 110-1 to 110-N.

[0024] In operation, if the controller 140 senses that any one or more of the digital signals Di to DN exceeds any one or more current thresholds, which may result in any one or more harmful load currents ILI to ILN supplied to the corresponding cores 120-1 to 120-N, the controller 140 generates the control signals CSi to CSN to reduce or substantially eliminate the corresponding any or more harmful load currents ILI to ILN- Alternatively, or in addition to, if the controller 140 senses that any one or more conditions would result in damage to or malfunction of the apparatus 100 if any of the load currents ILI to ILN are maintained, the controller 140 generates the control signals CSi to CSN to reduce or substantially eliminate the corresponding one or more of the load currents ILI to ILN that would otherwise produce the damage to or malfunction of the apparatus 100.

[0025] FIG. 2 illustrates a block diagram of another exemplary apparatus 200 for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure. The apparatus 200 may be an exemplary more detailed implementation of a portion of the apparatus 100 previously discussed. For example, the apparatus 200 may include the Jth power gating circuit, the Jth current sensor, and the Jth core of the apparatus 100, where J can be any integer between 1 and N.

[0026] More specifically, the apparatus 200 includes a power gating circuit 210-J, a current sensor 230-J, and a core 220- J. The core 220-J, in turn, includes sub-cores (generally circuits) 222-J1 to 220- JM, where M may be two (2) or more. The power gating circuit 210-J is coupled in series with the respective sub-cores 222-J1 to 222- JM between an upper voltage rail VDDj and a lower voltage rail VSS. The power gating circuit 210-J is configured to control load currents ILJI to ILJM distributed to the sub-cores 222 -Jl to 222 -JM in response to a control signal CSj, respectively.

[0027] The current sensor 230-J is configured to generate a digital signal Dj indicative of a combination (e.g., average or sum) of the load currents ILJI to ILJM distributed to the sub- cores 222-J1 to 222-JM, respectively. The current sensor 230-J is configured to generate the digital signal Dj based on a set of voltage differences AVji to AVji generated by the power gating circuit 210-J. Accordingly, the voltage differences AVji to AVJI are related to the load currents ILJI to ILJM supplied to the sub-cores 222 -J 1 to 222 -JM, respectively. Thus, the digital signal Dj is related to a combination of the load currents I L JI to I L JM.

[0028] As in apparatus 100, the digital signal Dj may be provided to a controller for generating the control signal CSj for controlling the load currents ILJI to ILJM supplied to the sub- cores 222 -J 1 to 222- JM, respectively. As discussed, the controller may generate the control signal CSj to prevent damage to or malfunction of the sub-cores 222-J1 and 222- JM. As an example, the controller may generate the control signal CSj to collectively reduce or substantially eliminate the load currents ILJI to ILJM supplied to the sub-cores 222-J1 to 222- JM.

[0029] FIG. 3 illustrates a block diagram of another exemplary apparatus 300 for sensing distributed load currents by a power gating circuit in accordance with another aspect of the disclosure. The apparatus 300 may be an exemplary detailed implementation of the apparatus 200 previously discussed. In particular, the apparatus 300 includes a power gating circuit 310-J, a current sensor including voltage sensors 332-J and 334-J and subtractor 336- J, and a core 322-J including a set of sub-cores 322-J1, 322- J2 to 322- JM.

[0030] The power gating circuit 310-J includes a first set of one or more bulk head transistors Mjn to MJIP coupled in parallel with each other. The first set of one or more bulk head transistors Mjn to MJIP are coupled in series with sub-core 322-J1 between an upper voltage rail VDDj and a lower voltage rail VSS. Each of the bulk head transistors Mjn to MJIP may be configured as a p-channel metal oxide semiconductor (PMOS) field effect transistor (FET). The control terminals (e.g., gates) of the bulk head transistors Mjn to MJIP are configured to receive control voltage Vj (an example of control signal

[0031] Similarly, the power gating circuit 310-J further includes a second set of one or more bulk head transistors M J2 i to M J2 Q coupled in parallel with each other. The second set of one or more bulk head transistors Mj2i to Mj2Q are coupled in series with sub-core 322-J2 between the upper voltage rail VDDj and the lower voltage rail VSS. Each of the bulk head transistors M J2 i to MJ 2 Q may be configured as a PMOS FET. The control terminals (e.g., gates) of the bulk head transistors M J2 i to M J2 Q are configured to receive control voltage Vj. The number Q of bulk head transistors M J2 i to M J2 Q in the second set may be the same or different than the number P of transistors Mjn to Mji P in the first set.

[0032] In a like manner, the power gating circuit 310- J further includes an Mth set of one or more bulk head transistors MJMI to MJMR coupled in parallel with each other. The Mth set of one or more bulk head transistors MJMI to MJMR are coupled in series with sub- core 322 -JM between the upper voltage rail VDDj and the lower voltage rail VSS. Each of the bulk head transistors MJMI to MJMR may be configured as a PMOS FET. The control terminals (e.g., gates) of the bulk head transistors MJMI to MJMR are configured to receive control voltage Vj. The number R of bulk head transistors MJMI to MJMR in the Mth set may be the same or different than the number P of transistors Mjn to Mji P in the first set and/or the number Q of transistors M J2 i to MJ 2 Q in the second set.

[0033] As discussed, the current sensor includes voltage sensors 332-J and 334-J, and subtracter 336-J. The voltage sensor 332-J, in turn, includes a ring oscillator 333-J with a cascaded set of odd number of inverters Ijn to IJIM. The output of the last inverter IJIM is coupled to the input of the first inverter Ijn via a feedback path. The inverters Ijn to IJIM are each coupled between the upper voltage rail VDDj and the lower voltage VSS.

[0034] The voltage sensor 332-J further includes a first frequency -to-code converter FTC-1 configured to generate a first digital signal CODE l related to the frequency of the signal generated by the ring oscillator 333-J. The frequency of the signal generated by the ring oscillator 333-J is a function of the voltage difference between the rail voltages VDDj and VSS. Accordingly, the first digital signal CODE l is indicative of the voltage difference (VDDj-VSS). In this example, the first frequency-to-code converter FTC-1 is coupled to the feedback path of the ring oscillator 333-J; but as exemplified further herein, may be coupled to multiple nodes of the ring oscillator 333-J.

[0035] Similarly, the voltage sensor 334-J includes a ring oscillator 335-J with a cascaded set of odd number of inverters Ij 2 i to IJ 2 M- The output of the last inverter I J2M is coupled to the input of the first inverter l m via a feedback path. The inverters Ij 2 i to IJIM are coupled between the lower terminals (e.g., drains) of the first set of transistors Mjn to MJIP to the Mth sets of transistors MJMI to MJMR and the lower voltage rail, respectively.

[0036] The voltage sensor 334-J further includes a second frequency-to-code converter FTC-2 configured to generate a second digital signal CODE 2 indicative of the frequency of the signal generated by the ring oscillator 335-J. The frequency of the signal generated by the ring oscillator 335-J is a function of a combination (e.g., average) of the voltage differences between the lower terminal (e.g., drain) voltages VDi and VD M of the first to the Mth sets of bulk head transistors and the lower rail voltage VSS. Accordingly, the second digital signal CODE_2 is indicative of the combination (e.g., average) of the voltage differences (VDi-VSS) to (VD M -VSS). In this example, the second frequency- to-code converter FTC-2 is coupled to the feedback path of the ring oscillator 335-J; but as exemplified further herein, may be coupled to multiple nodes of the ring oscillator

335- J.

[0037] As discussed, the current sensor further includes the subtractor 336-J. The subtractor

336- J is configured to generate a digital signal Dj related to a difference between the first and second digital signals CODE 1 and CODE 2 (e.g., Dj ~ CODE 1 - CODE 2). The digital signal Dj may be related to the combination (e.g., average or sum) of the load currents ILJI to ILJM distributed to the sub-cores 322-J1 to 322-JM by the power gating circuit 310- J, respectively.

[0038] As an example, the first digital signal CODE l is related to a (VDDj - VSS). The second digital signal CODE_2 is related to the average{VDi to VD M } - VSS. The digital signal Dj is related to CODE l - CODE 2. Thus, the digital signal Dj is related to (VDDj - VSS) - (average{VDi to VD M } - VSS). Accordingly, the digital signal Dj is related to VDDj - average {VDi to VD M } . As the term VDDj - average {VDi to VD M } is the average voltage drop across the first to Mth sets of bulk head transistors, this term is related to the average of the load currents ILJI to ILJM supplied to the sub-cores 322-J1 to 322-JM, respectively.

[0039] Thus, a controller may use the digital signal Dj to control the load currents ILJI to ILJM supplied to the sub-cores 322-J1 to 322-JM

[0040] FIG. 4 illustrates a block diagram of another exemplary apparatus 400 for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure. The apparatus 400 may be an exemplary more detailed implementation of the apparatus 300 previously discussed. In particular, the apparatus 400 includes a power gating circuit 410- J, a current sensor including voltage sensors 432-J and 434-J and subtractor 436- J, and a core 422-J including a set of sub-cores 422- Jl, 422-J2 to 422-JM. [0041] In this example, the power gating circuit 410-J includes a set of bulk head transistors Mji to MjM- The first bulk head transistor Mji is coupled in series with sub-core 422-J1 between an upper voltage rail VDDj and a lower voltage rail VSS. The second bulk head transistor M J2 is coupled in series with sub-core 422- J2 between the upper voltage rail VDDj and the lower voltage rail VSS. Similarly, the Mth bulk head transistor MJM is coupled in series with sub-core 422 -JM between the upper voltage rail VDDj and the lower voltage rail VSS. Each of the bulk head transistors MJI to MJM may be configured as a PMOS FET. The control terminals (e.g., gates) of the bulk head transistors MJI to MJI M are configured to receive control voltage Vj (an example of control signal CSj).

[0042] As discussed, the current sensor includes voltage sensors 432-J and 434-J, and subtractor 436-J. The voltage sensor 432-J, in turn, includes a ring oscillator 433-J with a cascaded set of odd number of inverters Ijn to IJIM- Each of the inverter includes a PMOS FET coupled in series with an n-channel metal oxide semiconductor (NMOS) FET between the upper voltage rail VDDj and the lower voltage rail VSS. The gates of the PMOS and NMOS FETs are coupled together to form an input of the corresponding inverter. The drains of the PMOS and NMOS FETs are coupled together to form an output of the corresponding inverter.

[0043] For instance, inverter I jn includes PMOS M P11 and NMOS M N n; inverter I J12 includes PMOS Mpi2 and NMOS M Ni2 ; and inverter I J1M includes PMOS M P i M and NMOS MNIM- The output (drains of PMOS M P i M and NMOS M N IM) of the last inverter I J1M is coupled to the input (gates of PMOS M P n and NMOS M N n) of the first inverter Ijn via a feedback path.

[0044] The voltage sensor 432-J further includes a first frequency -to-code converter FTC-1 configured to generate a first digital signal CODE l indicative the frequency of the signal generated by the ring oscillator 433-J. The frequency of the signal generated by the ring oscillator 433-J is a function of the voltage difference between the rail voltages VDDj and VSS. Accordingly, the first digital signal CODE l is indicative of the voltage difference (VDDj-VSS). In this example, the first frequency-to-code converter FTC-1 is coupled to the feedback path of the ring oscillator 433-J; but as exemplified further herein, may be coupled to multiple nodes of the ring oscillator 433-J. [0045] Similarly, the voltage sensor 434-J includes a ring oscillator 435-J including a cascaded set of odd number of inverters Ij 21 to IJ 2 M- Each of the inverter includes a PMOS FET coupled in series with an NMOS FET between the respective lower terminals (e.g., drains) of bulk head transistors Mji to MJM and the lower voltage rail VSS. The gates of the PMOS and NMOS FETs are coupled together to form an input of the corresponding inverter. The drains of the PMOS and NMOS FETs are coupled together to form an output of the corresponding inverter.

[0046] For instance, inverter I J21 includes PMOS M P2 i and NMOS M N 2i; inverter I J22 includes PMOS Mp22 and NMOS M N22 ; and inverter I J2M includes PMOS M P2M and NMOS M N2 M- The output (drains of PMOS M P2M and NMOS M N2 M) of the last inverter Ij 2M is coupled to the input (gates of PMOS M P2i and NMOS M N2i ) of the first inverter I jn via a feedback path.

[0047] The voltage sensor 434-J further includes a second frequency-to-code converter FTC-2 configured to generate a second digital signal CODE 2 indicative of the frequency of the signal generated by the ring oscillator 435-J. The frequency of the signal generated by the ring oscillator 435-J is a function of a combination (e.g., average) of the voltage differences between the lower terminal (e.g., drain) voltages VDi and VD M of the respective bulk head transistors MJI to MJM and the lower rail voltage VSS. Accordingly, the second digital signal CODE_2 is indicative of the combination (e.g., average) of the voltage differences (VDi-VSS) to (VD M -VSS). In this example, the second frequency-to-code converter FTC-2 is coupled to the feedback path of the ring oscillator 435-J; but as exemplified further herein, may be coupled to multiple nodes of the ring oscillator 435-J.

[0048] As discussed, the current sensor further includes the subtractor 436-J. The subtractor 436-J is configured to generate a digital signal Dj related to a difference between the first and second digital signals CODE 1 and CODE 2 (e.g., Dj ~ CODE 1 - CODE 2). The digital signal Dj may be related to the combination (e.g., average or sum) of the load currents ILJI to ILJM distributed to the sub-cores 422-J1 to 422-JM by the power gating circuit 410- J, respectively.

[0049] As an example, the first digital signal CODE l is related to (VDDj - VSS). The second digital signal CODE_2 is related to the average{VDi to VD M } - VSS. The digital signal Dj is related to CODE l - CODE 2. Thus, the digital signal Dj is related to (VDDj - VSS) - (average{VDi to VD M } - VSS). Accordingly, the digital signal Dj is related to VDDj - average {VDi to VD M } . As the term VDDj - average {VDi to VD M } is the average voltage drop across the bulk head transistors Mji to MJM, this term is related to the average or sum of the load currents ILJI to ILJM supplied to the sub-cores 422 -J 1 to 422 -JM, respectively.

[0050] Thus, a controller may use the digital signal Dj to control the load currents ILJI to ILJM supplied to the sub-cores 422-J1 to 422- JM.

[0051] FIG. 5 illustrates a block diagram of another exemplary apparatus 500 for sensing distributed load currents by a power gating circuit in accordance with another aspect of the disclosure. The apparatus 500 is a variation of apparatus 200 previously discussed. In particular, the apparatus 500 includes a power gating circuit between a core and a lower voltage rail VSS, instead of between an upper voltage rail and a core as in apparatus 200.

[0052] More specifically, the apparatus 500 includes a power gating circuit 510-J, a current sensor 530-J, and a core 520- J. The core 520-J, in turn, includes sub-cores (generally circuits) 522 -Jl to 520-JM, where M may be two (2) or more. The sub-cores 522-J1 to 522 -JM are respectively coupled in series with the power gating circuit 510-J between an upper voltage rail VDDj and a lower voltage rail VSS. The power gating circuit 510- J is configured to control load currents ILJI to ILJM through to the sub-cores 522-J1 to 522 -JM in response to a control signal CSj, respectively.

[0053] The current sensor 530-J is configured to generate a digital signal Dj indicative of a combination (e.g., average or sum) of the load currents ILJI to ILJM through to the sub- cores 522-J1 to 522-JM, respectively. The current sensor 530-J is configured to generate the digital signal Dj based on a set of voltage difference AVji to AVJM generated by the power gating circuit 510-J. Accordingly, the voltage differences AVJI to AVJM are related to the load currents ILJI to ILJM through to the sub-cores 522-J1 to 522-JM, respectively. Thus, the digital signal Dj is related to a combination of the load currents I L JI to I L JM.

[0054]

[0055] FIG. 6 illustrates a block diagram of another exemplary apparatus 600 for sensing distributed load currents provided by a power gating circuit in accordance with another aspect of the disclosure. The apparatus 600 may be an exemplary detailed implementation of the apparatus 500 previously discussed. In particular, the apparatus 600 includes a power gating circuit 610-J, a current sensor including voltage sensors 632-J and 634-J and subtractor 636- J, and a core 622-J including a set of sub-cores 622- Jl, 622-J2 to 622-JM.

[0056] The power gating circuit 610-J includes a first set of one or more bulk footer transistors Mjn to MJIP coupled in parallel with each other. The sub-core 622-J1 is coupled in series with the first set of one or more bulk footer transistors Mjn to MJIP with between an upper voltage rail VDDj and a lower voltage rail VSS. . Each of the bulk footer transistors Mjn to MJIP may be configured as an NMOS FET. The control terminals (e.g., gates) of the bulk footer transistors Mjn to MJIP are configured to receive control voltage Vj (an example of control signal CSj).

[0057] Similarly, the power gating circuit 610-J further includes a second set of one or more bulk footer transistors M J2 i to MJ 2 Q coupled in parallel with each other. The sub-core 622 -J2 is coupled in series with the second set of one or more bulk footer transistors Mj2i to Mj2Q between the upper voltage rail VDDj and the lower voltage rail VSS. Each of the bulk footer transistors M J2 i to MJ 2 Q may be configured as an NMOS FET. The control terminals (e.g., gates) of the bulk footer transistors M J2 i to MJ 2 Q are configured to receive control voltage Vj. The number Q of bulk footer transistors M J2 i to MJ 2 Q in the second set may be the same or different than the number P of transistors Mjn to MJIP in the first set.

[0058] In a like manner, the power gating circuit 610-J further includes an Mth set of one or more bulk footer transistors MJMI to MJMR coupled in parallel with each other. The sub- core 622-JM is coupled in series with the Mth set of one or more bulk footer transistors MJMI to MJMR between the upper voltage rail VDDj and the lower voltage rail VSS. Each of the bulk footer transistors MJMI to MJMR may be configured as an NMOS FET. The control terminals (e.g., gates) of the bulk footer transistors MJMI to MJMR are configured to receive control voltage Vj. The number R of bulk footer transistors MJMI to MJMR in the Mth set may be the same or different than the number P of transistors Mjn to MJIP in the first set and/or the number Q of transistors Mj 2 i to MJ 2 Q in the second set.

[0059] As discussed, the current sensor incudes voltage sensors 632-J and 634-J, and subtractor 636-J. The voltage sensor 632-J includes a ring oscillator 633-J with a cascaded set of odd number of inverters Ijn to IJIM- The output of the last inverter IJI M is coupled to the input of the first inverter Ijn via a feedback path. The inverters Ijn to IJIM are coupled between the upper voltage rail VDDj and the upper terminals (e.g., drains) of the first set of transistors Mjn to Mji P to the Mth set of transistors MJMI to MJMR, respectively.

[0060] The voltage sensor 632-J further includes a first frequency -to-code converter FTC-1 configured to generate a first digital signal CODE l indicative of the frequency of the signal generated by the ring oscillator 633-J. The frequency of the signal generated by the ring oscillator 633-J is a function of a combination (e.g., average) of the voltage differences between the upper rail voltage VDDj and the upper terminal (e.g., drain) voltages VDi and VD M of the first to Mth sets of bulk footer transistors. Accordingly, the first digital signal CODE l is indicative of the combination (e.g., average) of the voltage differences (VDDj-VDi) to (VDDj-VD M ). In this example, the first frequency- to-code converter FTC-1 is coupled to the feedback path of the ring oscillator 633-J; but as exemplified further herein, may be coupled to multiple nodes of the ring oscillator 633-J.

[0061] The voltage sensor 634-J includes a ring oscillator 635-J with a cascaded set of odd number of inverters Ij2i to Ij2M- The output of the last inverter I J2 M is coupled to the input of the first inverter I J2 i via a feedback path. The inverters Ij2i to Ij2M are each coupled between the upper voltage rail VDDj and the lower voltage VSS.

[0062] The voltage sensor 634-J further includes a second frequency-to-code converter FTC-2 configured to generate a second digital signal CODE 2 indicative the frequency of the signal generated by the ring oscillator 635-J. The frequency of the signal generated by the ring oscillator 635-J is a function of the voltage difference between the rail voltages VDDj and VSS. Accordingly, the second digital signal CODE_2 is indicative of the voltage difference (VDDj-VSS). In this example, the second frequency-to-code converter FTC-2 is coupled to the feedback path of the ring oscillator 635-J; but as exemplified further herein, may be coupled to multiple nodes of the ring oscillator 635- J.

[0063] As discussed, the current sensor further includes the subtractor 636-J. The subtractor 636-J is configured to generate a digital signal Dj related to a difference between the first and second digital signals CODE l and CODE 2 (e.g., Dj ~ CODE l - CODE 2). The digital signal Dj may be related to the combination (e.g., average or sum) of the load currents I U1 to I L JM through to the sub-cores 622-J1 to 622-JM provided by the power gating circuit 610- J, respectively.

[0064] As an example, the first digital signal CODE l is related to the VDDj - average{VDi to VD M } . The second digital signal CODE_2 is related to (VDDj - VSS). The digital signal Dj is related to CODE l - CODE 2. Thus, the digital signal Dj is related to VDDj - average{VDi to VD M } - (VDDj - VSS) . Accordingly, the digital signal Dj is related to {VDi to VD M } - VSS. As the term average{VDi to VD M } - VSS is the average voltage drop across the first to Mth sets of bulk footer transistors, this term is related to the average or sum of the load currents ILJI to ILJM through to the sub-cores 622-J1 to 622-JM, respectively.

[0065] Thus, a controller may use the digital signal Dj to control the load currents ILJI to ILJM through to the sub-cores 622-J1 to 622-JM.

[0066] FIG. 7 illustrates a block diagram of an exemplary current sensor 700 in accordance with another aspect of the disclosure. The current sensor 700 may be an exemplary detailed implementation of any current sensor previously discussed. In this example, the current sensor 700 is particularly configured for sensing a voltage drop across one or more bulk head transistors. However, it shall be understood that the current sensor 700 may be reconfigured for sensing a voltage drop across one or more bulk footer transistors, as discussed in more detail below.

[0067] The current sensor 700 includes a first voltage sensor configured to generate a first digital signal CODE_l indicative or related to a voltage difference between voltages at first and second voltage rails VDD and VSS (e.g., CODE l ~ VDD-VSS). The first voltage sensor includes a ring oscillator 710, N-bit counter 712, 1 -bit counters 714-1 to 714-(M-1), N-bit flip-flop 716, 1-bit flip-flops 718-1 to 718-(M-1), multiplier 720, exclusive-OR gates 722-1 to 722-(M-l), adder 724, and a flip-flop 726.

[0068] The ring oscillator 710 is configured to generate a signal with a frequency that varies as a function of the voltage difference VDD - VSS. The ring oscillator 710 includes a set of cascaded inverters In to IIM- The output of the last inverter I 1M is coupled to the input of the first inverter In via a feedback path. The inverters are coupled between the first voltage rail VDD and the second voltage rail VSS.

[0069] The N-bit counter 712 includes an input coupled to the input of the first inverter In.

The 1-bit counters 714-1 to 714-(M-1) include inputs coupled to the inputs of inverters I 22 to Ii M , respectively. The N-bit flip-flop 716 includes a data input coupled to an output of the N-bit counter 712. The 1-bit flip-flops 718-1 to 718-(M-1) include data inputs coupled to outputs of 1-bit counters 714-1 to 714-(M-1), respectively. The N-bit bit flip-flop 716 and the 1-bit flip-flops 718-1 to 718-(M-1) include clock inputs configured to receive clock signal CLK.

[0070] The multiplier 720 includes a first input coupled to an output of the N-bit flip-flop 716.

The multiplier 720 includes a second input configured to receive an integer number M (e.g., the same as the number of inverters in the ring oscillator 710). The exclusive OR- gates 722-1 to 722-(M-l) include respective first inputs coupled to the least significant bit (LSB) of the output of the N-bit flip-flop 716. The exclusive OR-gates 722-1 to 722-(M-l) include respective second inputs coupled to the outputs of the 1-bit flip-flops 718-1 to 718-(M-1), respectively.

[0071] The multiplier 720 and the exclusive-OR gates 722-1 to 722-(M-l) include outputs coupled to inputs of the adder 724, respectively. The flip-flop 726 includes a data input coupled to an output of the adder 724, and a clock input configured to receive the clock signal CLK. The flip-flop 726 includes an output configured to generate the digital signal CODE_l related to the voltage difference between the voltages at the first and second voltage rails VDD and VSS.

[0072] The current sensor 700 includes a second voltage sensor configured to generate a second digital value CODE_2 indicative or related to a voltage difference between a voltage VDD-VDS at a source of one or more bulk head transistors and a voltage at the second voltage rail VSS (e.g., CODE_l ~ (VDD-VDS) - VSS). The second voltage sensor includes a ring oscillator 730, N-bit counter 732, 1-bit counters 734-1 to 734-(M-l), N- bit flip-flop 736, 1-bit flip-flops 738-1 to 738-(M-l), multiplier 740, exclusive-OR gates 742-1 to 742-(M-l), adder 744, and flip-flop 746.

[0073] The ring oscillator 730 is configured to generate a signal with a frequency that varies as a function of the voltage difference (VDD-VDS) - VSS). The ring oscillator 730 includes a set of cascaded inverters I 21 to I 2 M. The output of the last inverter I 2M is coupled to the input of the first inverter I 21 via a feedback path. The inverters I 21 to I 2 M are coupled between the sources of the one or more bulk head transistors (e.g., at VDD- VDS) and the second voltage rail VSS. [0074] The N-bit counter 732 includes an input coupled to the input of the first inverter I 21 . The 1-bit counters 734-1 to 734-(M-l) include inputs coupled to the inputs of inverters I22 to I2M, respectively. The N-bit flip-flop 736 includes a data input coupled to an output of the N-bit counter 732. The 1-bit flip-flops 738-1 to 738-(M-l) include data inputs coupled to outputs of 1-bit counters 734-1 to 734-(M-l), respectively. The N-bit bit flip-flop 736 and the 1-bit flip-flops 738-1 to 738-(M-l) include clock inputs configured to receive clock signal CLK.

[0075] The multiplier 740 includes a first input coupled to an output of the N-bit flip-flop 736.

The multiplier 740 includes a second input configured to receive an integer number M (e.g., the same as the number of inverters in the ring oscillator 730). The exclusive OR- gates 742-1 to 742-(M-l) include respective first inputs coupled to the LSB of the output of the N-bit flip-flop 736. The exclusive OR-gates 742-1 to 742-(M-l) include respective second inputs coupled to the outputs of the 1-bit flip-flops 738-1 to 738-(M- 1), respectively.

[0076] The multiplier 740 and the exclusive-OR gates 742-1 to 742-(M-l) include outputs coupled to inputs of the adder 744, respectively. The flip-flop 746 includes a data input coupled to an output of the adder 744, and a clock input configured to receive the clock signal CLK. The flip-flop 746 includes an output configured to generate the digital signal CODE_2 related to the voltage difference (VDD-V DS ) - VSS).

[0077] The current sensor 700 further includes a subtractor 750 configured to generate a digital value D related to a difference between digital values CODE l and CODE 2 (e.g., D ~ CODE 1 - CODE 2). Since digital value CODE l is related to the voltage VDD and CODE_2 is related to the voltage VDD-V DS , the digital value D is to V D s (e.g., D ~ V DD - (VDD-VDS) = VDS)- AS VDS may be across one or more bulk head transistors, the voltage VDS and, in turn, the digital value D is related to the load current through the bulk head transistors.

[0078] As discussed, the current sensor 700 may be reconfigured to sense load current across one or more bulk footer transistors. In this regard, the inverters I 21 to I2 M of the inverter 730 may be coupled between VDD and VDS, where VDS is the drain-to-source voltage of the one or more bulk footer transistors.

[0079] The current sensor 700 operates as follows: the ring oscillator 710 generates a signal having a frequency related to the voltage VDD. The N-bit counter 712 (e.g., 4-bit) is a coarse counter. The 1-bit counters 714-1 to 714-(M-1) are for fine counting. Based on the clock signal CLK, the N-bit flip-flop 716 and the 1-bit flip-flops 718-1 to 718-(M-1) latch the values at the outputs of the N-bit counter 712 and 714-1 to 714-(M-1), respectively. The multiplier 720 multiplies the output of the N-bit flip-flop 716 by the value M (e.g., 17). The exclusive OR-gates 722-1 to 722-(M-l) ensure that the fractional value is added to the output of the multiplier 720 by the adder 724. The flip- flop 726 latches the value at the output of the adder 724 based on the clock signal CLK to generate the digital signal CODE l.

[0080] Similarly, the ring oscillator 730 generates a signal having a frequency related to the voltage VDD - VDS- The N-bit counter 732 (e.g., 4-bit) is a coarse counter. The 1-bit counters 734-1 to 734-(M-l) are for fine counting. Based on the clock signal CLK, the N-bit flip-flop 736 and the 1-bit flip-flops 738-1 to 738-(M-l) latch the values at the outputs of the N-bit counter 712 and 714-1 to 714-(M-1), respectively. The multiplier 740 multiplies the output of the flip-flop 746 by the value M (e.g., 17). The exclusive OR-gates 742-1 to 742-(M-l) ensure that the fractional value is added to the output of the multiplier 740 by the adder 744. The flip-flop 746 latches the value at the output of the adder 744 based on the clock signal CLK to generate the digital signal CODE_2.

[0081] The subtractor 750 generates the difference between CODE l and CODE 2 to generate the digital value D related to the load current supplied to a core or circuit.

[0082] FIG. 8 illustrates a flow diagram of an exemplary method 800 for sensing distributed load currents by a power gating circuit in accordance with another aspect of the disclosure.

[0083] The method 800 includes generating a first load current through a first circuit and a power gating circuit (block 810). Examples of means for generating a first load current through a first circuit includes any of the power gating circuits described herein.

[0084] The method 800 further includes generating a second load current through a second circuit and the power gating circuit (block 820). Examples of means for generating a second load current through a second circuit includes any of the power gating circuits described herein.

[0085] Additionally, the method 800 includes generating a first signal related to the first load current and the second load current (block 832). Examples of means for generating a first signal related to the first load current and the second load current include any of the current sensors described herein.

[0086] The generating the first signal in block 830 of the method 800 includes applying a first voltage at a first node between the first circuit and the power gating circuit to a first set of one or more inverters of a first ring oscillator (block 832). Examples of means for applying a first voltage at a first node between the first circuit and the means for generating the first load current to a first set of one or more inverters of a first ring oscillator include any connection between a power gating circuit and one or more inverters of the ring oscillators described herein.

[0087] Similarly, the generating the first signal in block 830 of the method 800 also includes applying a second voltage at a second node between the second circuit and the power gating circuit to a second set of one or more inverters of the first ring oscillator (block 834). Examples of means for applying a second voltage at a first node between the first circuit and the means for generating the second load current to a first set of one or more inverters of a first ring oscillator include any connection between a power gating circuit and one or more inverters of the ring oscillators described herein.

[0088] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.