VOLTAGE REGULATOR WITH TIME-AWARE CURRENT REPORTING
20180364285 ยท 2018-12-20
Inventors
Cpc classification
H02M1/0009
ELECTRICITY
H02M3/158
ELECTRICITY
H02M1/32
ELECTRICITY
International classification
Abstract
Systems and methods for providing an indication of an output current of a voltage regulator applied to a load at an indicated time to a processor. An indication of the output current of a voltage regulator is determined in response to a clock signal received from a clock source and a frame number of a frame is determined from the clock source. The indication of the current output and the frame number of the associated frame are provided to the processor.
Claims
1. A method of providing voltage regulator time aware output current indications to a host processor, comprising: determining an indication of voltage regulator output current; determining a period of time during which the indication of voltage regulator output current was determined; storing in memory of the voltage regulator the indication of voltage regulator output current in association with an indication of the period of time during which the indication of voltage regulator output current was determined; and providing to the host processor the indication of voltage regulator output current and the indication of the period of time during which the indication of voltage regulator output current was determined.
2. The method of claim 1, wherein the indication of the period of time comprises a frame number.
3. The method of claim 2, wherein the frame number changes periodically at a first rate, and determining the indication of voltage regulator output current occurs at a second rate, the second rate faster than the first rate.
4. The method of claim 3, further comprising storing the frame number in memory of the voltage regulator.
5. The method of claim 4, wherein determining the period of time during which the indication of voltage regulator output current was determined comprises: reading the frame number stored in the memory before determining the indication of voltage regulator output current; reading the frame number stored in the memory after determining the indication of voltage regulator output current; and determining if the frame number read before determining the indication of voltage regulator output current is the same as the frame number read after determining the indication of voltage regulator output current.
6. The method of claim 1, wherein the indication of voltage regulator output current comprises an indication of a moving average of voltage regulator output current.
7. The method of claim 1, further comprising receiving an indication of temperature and storing the indication of temperature in association with the indication of the period of time during which the indication of voltage regulator output current was determined.
8. The method of claim 1, further comprising receiving a control signal from the host processor and storing an indication of the control signal from the host processor in association with the indication of the period of time during which the indication of voltage regulator output current was determined.
9. The method of claim 1, wherein the period of time has a duration of a predetermined number of clock cycles of a clock signal for the voltage regulator.
10. A system for providing to a host processor an indication of an output current of a voltage regulator supplied to a load, the system comprising: a current meter configured to determine an indication of the output current of the voltage regulator supplied to a load; a current register configured to store the indication of the output current, the current register readable by the host processor; a counter to count a number of cycles of a clock signal of a voltage regulator at which a frame number for the voltage regulator should be incremented; and a frame number register configured to store the frame number of a frame associated with the indication of the output current, the frame number register readable by the host processor.
11. The system of claim 10 further comprising: interrupt logic configured to generate an interrupt signal upon a change in frame number.
12. The system of claim 10 wherein the indication of the output current is an average of the output current applied to the load over a predetermined period of time.
13. The system of claim 10 wherein the indication of the output current applied to the load is a measurement of the output current at a specific time.
Description
BRIEF DESCRIPTION OF THE FIGURES
[0021]
[0022]
[0023]
[0024]
DETAILED DESCRIPTION
[0025]
[0026] A current meter 113 determines an indication of current provided to the load. In some embodiments the current meter may include a resistor, preferably small, in-line with the load, with circuitry, for example an analog-to-digital circuit (ADC) determining a voltage drop across the resistor. In other embodiments other circuitry, for example circuitry that does not include an in-line resistor, may be used. In some embodiments the current meter obtains an indication of current provided to the load on an essentially instantaneous, or single point in time (during a single clock period, or within just a few clock cycles) basis. In other embodiments, and as illustrated in
[0027] In the embodiment of
[0028] A time counter 115 also receives the clock signal. The time counter counts from an initial value up to a terminal count value, and then restarts counting from the initial value. In some embodiments the terminal count value is programmable. Upon reaching the terminal count value, the time counter produces a frame boundary signal, indicating a time boundary of a frame.
[0029] The frame boundary signal is provide to a frame counting frame number register 117 and a current level register 119. The frame counting register increments a frame count value on receipt of the frame boundary signal. In some embodiments the current level register stores the indication of current from the current meter on receipt of the frame boundary signal. In some embodiments the current level register stores the indication of current on a periodic basis, at a rate greater than a rate of occurrence of the frame boundary signal. In some embodiments the current level stores such indications of current in a subset of registers of the current level register, transitioning to use of a different subset of registers on occurrence of the frame boundary signal.
[0030] The frame boundary signal is also provide to interrupt logic 121, in the embodiment illustrated in
[0031]
[0032] In block 211 the process reads a frame number from a frame number register. The frame number is indicative of a time. The frame number register is a register, or other memory or storage element(s) storing the frame number. The frame number stored in the frame number register, for example, may be modified over time, for example to indicate a passage of time. In some embodiments the frame number and/or the frame number register are as discussed with respect to
[0033] In block 213 the process reads an indication of current provided to a load from a current metering register. The current metering register, similar to the frame number register, is a register, or other memory or storage element(s) storing the indication of current provided to the load. The indication of current stored in the current metering register may be modified over time, for example to reflect changes in current provided to the load. In some embodiment the indication of current provided to the load and/or the current metering register are as discussed with respect to
[0034] In block 215 the process again reads a frame number from the frame number register. If the frame number in the frame number register has not changed since the frame number was read in block 211, then the frame number read in block 215 will be the same as the frame number read in block 211. If the frame number stored in the frame number register has changed however, then the two frame numbers read, in block 211 and in block 215, will be different. In some embodiments the process performs the operation of block 215 (and block 217) in order to avoid potential errors in associating frame numbers and indications of current due to interruptions to execution of the process of
[0035] In block 217 the process determines if the frame number read in block 215 is the same as the frame number read in block 211. If not, the process proceeds back to operations of block 211. If so, however, the process continues to block 219.
[0036] In block 219 the process associates the indication of current provided to the load, read in block 213, with the frame number read in blocks 211 and 215, and stores such information. In various embodiments the process may stores the indication of current and frame number in a table, for example, or in some other data structure.
[0037] In block 221 the process delays for a period of time. In some embodiments the process delays for a period of time less than an expected frame period. In some embodiments the process delays for a period of time equal to an expected frame period. In some embodiments the process delays for some other period of time.
[0038] After delaying for the period of time, the process returns to operations of block 211.
[0039]
[0040] In block 311 the process waits for receipt of an interrupt request signal. In some embodiments the interrupt request signal indicates an expiry of a frame time period, for example that a frame number change has occurred. In some embodiments the interrupt request signal is provided by interrupt logic, for example the interrupt logic of the circuitry of
[0041] In block 313 the process reads an indication of current provided to a load. In some embodiments the indication of current provide to the load is read from a current metering register. The current metering register, in some embodiments, is a register, or other memory or storage element(s) storing the indication of current provided to the load. The indication of current stored in the current metering register may be modified over time, for example to reflect changes in current provided to the load. In some embodiment the indication of current provided to the load and/or the current metering register are as discussed with respect to
[0042] In block 315 the process reads a frame number. In some embodiments the frame number is read from a frame number register. The frame number is indicative of a time. The frame number register is a register, or other memory or storage element(s) storing the frame number. The frame number stored in the frame number register, for example, may be modified over time, for example to indicate a passage of time. In some embodiments the frame number and the frame number register are as discussed with respect to
[0043] In optional block 317 (used in some embodiments) the process compares the frame number read in block 315 with the frame number read in block 313. If they differ, the process proceeds back to block 313 (and may skip optional block 317), otherwise the process continues to block 319.
[0044] In block 319 the process associates the indication of current provided to the load, read in block 213, with the frame number read in block 315, and stores such information. In various embodiments the process may stores the indication of current and frame number in a table, for example, or in some other data structure.
[0045] In optional block 321, the process clears the interrupt request signal, and thereafter returns to block 311.
[0046] In some embodiments the frame boundary is determined within 10 ns accuracy by a clock which is typically 100 MHz or higher.
[0047] In some embodiments the voltage regulator block can also capture temperature sensor measurements corresponding to a same frame number as current measurements. This may provide a very accurate delay of a temperature profile compared to a current profile. Even if a CPU, for example a host processor samples this data at varying time intervals every few milliseconds the current-temperature data pair would be synchronized within 10 ns with respect to each other in time.
[0048] In embodiments in which the voltage regulator is on the same silicon as the load, there can be multiple temperature sensors measurements captured as a data set corresponding to the same frame number representing the temperature profile of the silicon. If the voltage regulator is on a separate silicon within the same package as the load, for example a processor of a system-on-chip (SoC) this would represent the temperature profile of a SiP (system-in-package).
[0049] In some embodiments the frame based data set is expanded to include one, some, or all of the following: voltage monitor comparator signals (for example used by a voltage regulator, or as used by transient control circuitry, or otherwise), control signals from host processor, for example such as dynamic voltage control (DVC) signals, and/or Alarm and/or interrupt signals. Such information within the data set would, in many embodiments, be synchronized very accurately based on the frame boundary, and can be sampled at varying time intervals by a host processor without losing the accuracy of the profile.
[0050] In some embodiments each data set for a frame represents 1 us intervals with 10 ns accuracy. When a significant event occurs such as receiving a DVC instruction from an SoC, a data set including the DVC instruction may be stored within in register in or associated with the voltage regulator block along with the frame number. The next time the SoC requests information (polling or interrupt) the stored frame number(s) and data set(s) are available together with the current frame number and dataset. The frame numbers provide a very accurate time delay information between the current data set and when the significant event occurred. Accordingly, the host processor, which may be the SoC, can collect multiple samples at varying time intervals and still obtain very accurate time delays between the current data set and all the significant events since the last sample. Statistical information from multiple samples may therefore be analyzed with respect to the significant event of interest very accurately in time.
[0051] For completeness,
[0052] As illustrated in
[0053] The voltage regulator of
[0054] Outputs of each of the comparators are also provided to the first digital average block 441a and the second digital average block 441b, respectively. The digital averages are provided to the first digital function block 443a and the second digital function block 443b, respectively, which determine an indication of load current. In some embodiments, the indication of load current may be provided to a current metering register, for example the current metering register of
[0055] Referring to
[0056] The output inductor 415 has one end coupled to a node between the high side switch 413a and the low side switch 413b, and also to a first end of the bypass switch 420. Another end of the output inductor is coupled to the output capacitor 417, a second end of the bypass switch 420, and the load 419, with the load current I.sub.Load passing through the load. A node coupling the other end of the output inductor, the output capacitor, and the load generally may be considered the output of the voltage regulator. For illustrative purposes, the other end of the output inductor 415 also shows a resistance (R.sub.DCR) provided by the output inductor and associated circuit paths, e.g., a parasitic effect.
[0057] The first comparator 423, the second comparator 424, and the third comparator 422 generally have a first input coupled to the output node, their second inputs coupled to reference voltages, and the comparators configured to determine which input is greater. With respect to the first comparator 423, the reference voltage, for example, may be a desired output voltage of the voltage regulator minus a tolerance voltage. The first comparator therefore determines whether the output voltage of the voltage regulator is less than or greater than a desired output voltage minus a tolerance voltage. With respect to the second comparator 424, the reference voltage may be the desired output voltage of the voltage regulator plus a tolerance voltage. The second comparator therefore determines whether the output voltage of the voltage regulator is greater than or less than the desired output voltage plus the tolerance voltage. With respect to the third comparator 422, the reference voltage may be a minimum operational voltage for the voltage regulator. The third comparator therefore determines whether the output voltage of the voltage regulator drops below the minimum operational voltage. Operations below the minimum operational voltage generally indicates a short circuit, and an output of the third comparator is may be provided to a short-circuit alarm to prevent a device from operating under conditions indicating a short circuit situation.
[0058] The logic circuitry 421 may receive the output signals from the first and second comparators to control states of the high side, low side, and bypass switches. The logic circuitry 421 generally controls the states of the high side, low side, and bypass switches by way of producing control signals for controlling those switches.
[0059] As shown in
[0060] As further shown in
[0061] Similarly, the second digital average block 441b receives the output (CMP.sub.ADJ) of the first comparator 423. In various embodiments, the second digital average block monitors the output CMP.sub.ADJ by way of recording the output CMP.sub.ADJ over a period of time, and generates a digital average (which may be referred to as <CMP.sub.ADJ>) of the output CMP.sub.ADJ based on recorded values of the output CMP.sub.ADJ. The second digital logic block 443b, in various embodiments, receives the digital average <CMP.sub.ADJ> from the second digital average block, and determines and outputs a second digital load current based on the digital average <CMP.sub.ADJ>. The digital average <CMP.sub.ADJ> may be considered a function of the second digital load current, the bias voltage, the voltage offset, and a parasitic resistance (for example of the switches and output inductor) of the voltage regulator.
[0062] Although the invention has been discussed with respect to various embodiments, it should be recognized that the invention comprises the novel and non-obvious claims supported by this disclosure.