This application claims the benefit of CN application No. 201810243276.0, filed on Mar. 23, 2018, and incorporated herein by reference.
The present invention relates to electrical circuit, more particularly but not exclusively relates to a slew rate controlled power supply and associated method.
In computer systems, working voltage for a processor (e.g. CPU or GPU) is decided by a VID code (Voltage Identification Code), wherein the VID code is produced based on requirements of the processor. Different working modes of the processor corresponds to different VID codes, i.e. corresponds to different working voltages, and sometimes it needs a specified slew rate for the working voltage when the working voltage varies. Therefore, it is necessary to design a voltage regulator able to control an output voltage to vary with any specified slew rate till the output voltage equals to a voltage corresponding to the VID code, wherein the output voltage is the working voltage for the processor.
It is one of the objects of the present invention to provide a slew rate controlled power supply and associated control method.
One embodiment of the present invention discloses power supply, configured to provide an output voltage to a processor, wherein the processor is configured to provide a VID code and a slew rate command, the power supply comprising: a reference regulation circuit, configured to receive the VID code and the slew rate command from the processor, and configured to regulate a reference voltage based on the VID code and the slew rate command; and a voltage regulator, coupled to the reference regulation circuit to receive the reference voltage, and configured to convert an input voltage to the output voltage based on the reference voltage; wherein the reference regulation circuit comprises: a first divider unit, configured to generate a target count signal by dividing a voltage regulation step by the slew rate command; and a Σ-Δ modulation unit, configured to generate a count duration signal based on the target count signal, wherein both the target count signal and the count duration signal are digital signals, the target count signal represents a real number having an integer part and a decimal part, the count duration signal represents an integer number, and the reference regulation circuit is further configured to regulate the reference voltage based on the count duration signal and the VID code.
Another embodiment of the present invention discloses control method for a power supply, wherein the power supply comprises a voltage regulator configured to convert an input voltage to an output voltage provided to a processor, and the processor is configured to provide a VID code and a slew rate command, the control method comprising: receiving the VID code and the slew rate command from the processor; generating a target count signal by dividing a voltage regulation step by the slew rate command; generating a count duration signal based on the target count signal, wherein both the target count signal and the count duration signal are digital signals, the target count signal represents a real number having an integer part and a decimal part, the count duration signal represents an integer number; and regulating the reference voltage based on the count duration signal and the VID code.
Yet another embodiment of the present invention discloses a power supply, configured to provide an output voltage to a processor, and the processor is configured to provide a VID code and a slew rate command, the power supply comprising: a reference regulation circuit, configured to receive the VID code and the slew rate command from the processor, configured to regulate a reference voltage based on the VID code and the slew rate command, and configured to generate a target count signal by dividing a voltage regulation step by the slew rate command; and a voltage regulator, coupled to the reference regulation circuit to receive the reference voltage, and configured to convert an input voltage to the output voltage based on the reference voltage; wherein the reference regulation circuit comprises: a Σ-Δ modulation unit, configured to generate a count duration signal based on the target count signal, wherein both the target count signal and the count duration signal are digital signals, the target count signal represents a real number having an integer part and a decimal part, and the count duration signal represents an integer number; a reference regulation unit, configured to provide a digital reference signal based on the VID code, the count duration signal and the voltage regulation step; and a DAC unit, configured to receive the digital reference signal and generate the reference voltage by converting the digital reference signal to an analog reference signal.
According to the embodiments of the present invention, the power supply is able to control the reference voltage varying with an arbitrary rate, and expensive high frequency clock is unnecessary.
Non-limiting and non-exhaustive embodiments are described with reference to the following drawings.
The use of the same reference label in different drawings indicates the same or like components.
In the present application, numerous specific details are provided, such as examples of circuits, components, and methods, to provide a thorough understanding of embodiments of the invention. These embodiments are exemplary, not to confine the scope of the invention. Persons of ordinary skills in the art will recognize, however, that the invention can be practiced without one or more of the specific details. In other instances, well-known details are not shown or described to avoid obscuring aspects of the invention. Some phrases are used in some exemplary embodiments. However, the usage of these phrases is not confined to these embodiments.
The embodiments of the present invention disclose a power supply and associated control method. The power supply comprises a reference regulation circuit and a voltage regulator. The reference regulation circuit is configured to receive a VID code and a slew rate command, and configured to regulate a reference voltage based on the VID code and the slew rate command, wherein the slew rate command is produced by the processor and represents a specified rate the output voltage varies with. The voltage regulator is configured to convert an input voltage to the output voltage based on the reference voltage. The reference regulation circuit comprises a first divider unit and a Σ-Δ modulation unit, wherein the first divider unit is configured to generate a target count signal by dividing a voltage regulation step by the slew rate command, and the Σ-Δ modulation unit is configured to generate a count duration signal based on the target count signal, wherein both the target count signal and the count duration signal are digital signals, the target count signal represents a real number having an integer part and a decimal part, the count duration signal represents an integer number, and the reference regulation circuit is further configured to regulate the reference voltage based on the count duration signal and the VID code. According to the embodiments of the present invention, digital mode is used to regulate the reference voltage varying with an arbitrary rate based on the VID code and the slew rate command, so that expensive high frequency clock is unnecessary.
In one embodiment, the reference regulation circuit 10 comprises a first divider unit 13 and a Σ-Δ modulation unit 14. The first divider unit 13 has a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is configured to receive a voltage regulation step, the second input terminal is configured to receive the slew rate Sr, the first divider unit 13 is configured to generate a target count signal Lcnt by dividing the voltage regulation step Step by the slew rate Sr. The Σ-Δ modulation unit 14 has an input terminal and an output terminal, wherein the input terminal is configured to receive the target count signal Lcnt, the output terminal is configured to output a count duration signal Lint based on the target count signal Lcnt, wherein the target count signal Lcnt and the count duration signal Lint are digital signals, the target count signal Lcnt represents a real number having an integer part and a decimal part, the count duration signal Lint represents an integer number. The reference regulation circuit 10 is further configured to regulate the reference voltage Vref based on the count duration signal Lint and the VID code. In one embodiment, the reference regulation circuit 10 is configured to generate a regulation period based on the count duration signal Lint, and configured to increase or decrease the reference voltage Vref based on the voltage regulation step Step during each regulation period. In one embodiment, the Σ-Δ modulation unit 14 is configured to update the count duration signal Lint under the control of a count indication signal Cnt_pulse, e.g. the Σ-Δ modulation unit 14 is triggered when the count indication signal Cnt_pulse changes to high level, then the Σ-Δ modulation unit starts to update the count duration signal Lint.
In one embodiment, the reference regulation circuit 10 further comprises a count unit 15. The count unit 15 is configured to receive the count duration signal Lint and generate the count indication signal Cnt_pulse based on the count duration signal Lint. In one embodiment, the count unit 15 is configured to be reset when a count length of the count unit 15 is equal to a duration corresponding to the count duration signal Lint, meanwhile, the count indication signal Cnt_pulse outputs a pulse signal.
In one embedment, the reference regulation circuit 10 further comprises a reference regulation unit 16. The reference regulation unit 16 is configured to receive the VID code, the voltage regulation step Step and the count indication signal Cnt_pulse, and is configured to provide a digital reference signal Dref. The reference regulation unit 16 is configured to generate the regulation period based on the count duration signal Lint, wherein during each regulation period, when the reference regulation circuit 10 is configured to increase the digital reference signal Dref, the digital reference signal Dref is configured to be increased by one voltage regulation step Step if the digital reference signal Dref is smaller than the VID code, and when the reference regulation circuit 10 is configured to decrease the digital reference signal Dref, the digital reference signal Dref is configured to decrease one voltage regulation step Step if the digital reference signal Dref is larger than the VID code. In one embodiment, the regulation period equals to the count length of the count unit 15 when the count length reaches the duration corresponding to the count duration signal Lint. In one embodiment, when the count indication signal Cnt_pulse changes to a first state, e.g. changes to high level, the reference regulation unit 16 is configured to regulate the digital reference signal Dref based on the VID code and the voltage regulation step Step.
In one embodiment, the reference regulation circuit 10 further comprises a DAC (Digital-to-Analogue Conversion) unit 17. The DAC unit 17 is configured to receive the digital reference signal Dref and convert the digital reference signal Dref to the reference signal Vref.
At step S40, initializing the count length Cnt equal to the count duration signal Lint.
At step S41, judging whether the VID code is larger than the digital reference signal Dref. Wherein when increasing the digital reference signal Dref, if the VID code is larger than the digital reference signal Dref, enter into step S42, or else, enter into step S45, accomplish the regulation.
At step S42, judging whether the count length Cnt is zero. If the count length Cnt is zero, enter into step S43, if the count length Con is not zero, enter into step S44, the count length subtracts 1, i.e. Cnt=Cnt−1, then enter into the step S42 again.
At step S43, the count indication signal Cnt_pulse is configured to output a pulse signal, the Σ-Δ modulation unit 14 is configured to update the count duration signal Lint under the control of the count indication signal Cnt_pulse, the digital reference signal Dref is configured to be increased by a voltage regulation step Step, i.e. the digital reference signal Dref is equal to Dref+Step, the count length Cnt is configured to be reset equal to the updated count duration signal Lint, then enters into step S41.
Note that in the flow chart described above, the box functions may also be implemented with different order as shown in
At step S50, initializing the count length Cnt equal to zero.
At step S51, judging whether the VID code is larger than the digital reference signal Dref. Wherein when increasing the digital reference signal, if the VID code is larger than the digital reference signal Dref, enter into step S52, or else, enter into step S55, accomplish the regulation.
At step S52, judging whether the count length Cnt is equal to the count duration signal Lint. If the count length Cnt is equal to the count duration signal Lint, enter into step S53, if the count length Cnt is not equal to the count duration signal Lint, enter into step S54, the count length Cnt pluses 1, i.e. Cnt=Cnt+1, then enter into step S52 again.
At step S53, the count indication signal Cnt_pulse is configured to output a pulse signal, the Σ-Δ modulation unit 14 is configured to update the count duration signal Lint under the control of the count indication signal Cnt_pulse, the digital reference signal Dref is configured to be increased by a voltage regulation step Step, i.e. the digital reference signal Dref is equal to Dref+Step, the count length Cnt is configured to be reset to zero, then enters into step S51.
Note that in the flow chart described above, the box functions may also be implemented with different order as shown in
At step S60, initializing the count length Cnt equal to the count duration signal Lint.
At step S61, judging whether the VID code is smaller than the digital reference signal Dref. Wherein when decreasing the digital reference signal Dref, if the VID code is smaller than the digital reference signal Dref, enter into step S62, or else, enters into step S65, accomplish the regulation.
At step S62, judging whether the count length Cnt is zero, if the count length Cnt is zero, enter into step S63, if the count length Cnt is not zero, enter into step S64, the count length Cnt subtracts 1, i.e. Cnt=Cnt−1, then enter into step S62 again.
At step S63, the count indication signal Cnt_pulse is configured to output a pulse signal, the -A modulation unit 14 is configured to update the count duration signal Lint under the control of the count indication signal Cnt_pulse, the digital reference signal Dref is configured to be decreased by a voltage regulation step Step, i.e. the digital reference signal Dref is equal to Dref−Step, the count length Cnt is configured to be reset equal to the count duration signal Lint, then enters into step S61.
Note that in the flow chart described above, the box functions may also be implemented with different order as shown in
At step S70, initializing the count length Cnt equal to zero.
At step S71, judging whether the VID code is smaller than the digital reference signal Dref. Wherein when decreasing the digital reference signal, if the VID code is smaller than the digital reference signal Dref, enter into step S72, or else, enter into step S75, accomplish the regulation.
At step S72, judging whether the count length Cnt is equal to the count duration signal Lint. If the count length Cnt is equal to the count duration signal Lint, enter into step S73, if the count length Cnt is not equal to the count duration signal Lint, enter into step S74, the count length Cnt pluses 1, i.e. Cnt=Cnt+1, then enter into step S72 again.
At step S73, the count indication signal Cnt_pulse is configured to output a pulse signal, the Σ-Δ modulation unit 14 is configured to update the count duration signal Lint under the control of the count indication signal Cnt_pulse, the digital reference signal Dref is configured to be decreased by a voltage regulation step Step, i.e. the digital reference signal Dref is equal to Dref−Step, the count length Cnt is configured to be reset to zero, then enters into step S71.
Note that in the flow chart described above, the box functions may also be implemented with different order as shown in
At step S81, receiving the VID code and the slew rate command from the processor.
At step S82, generating the target count signal by dividing the voltage regulation step by the slew rate command.
At step S83, generating the count duration signal based on the target count signal, wherein both the target count signal and the count duration signal are digital signals, the target count signal represents a real number having an integer part and a decimal part, and the count duration signal represents an integer number.
At step S84, regulating the reference voltage based on the count duration signal and the VID code, e.g. generating a regulation period based on the count duration signal, and increasing or decreasing the reference voltage based on the voltage regulation step during each regulation period until the reference voltage is equal to the voltage value corresponding to the VID code.
While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of a preferred embodiment should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201810243276.0 | Mar 2018 | CN | national |