This application is based upon and claims the benefit of priority from Japanese patent application No. 2009-120747, filed on May 19, 2009, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to a power supply voltage control circuit, and more particularly, to a power supply voltage control circuit that controls power supply voltage in high speed.
2. Description of Related Art
A Dynamic Voltage and Frequency Scaling (DVFS) that controls power supply voltage according to operation frequency requested from outside (hereinafter referred to as request frequency) is effective as a method of reducing power consumption in a semiconductor integrated circuit using a CMOS logical gate. When there is a change in the request frequency, power supply voltage needs to be controlled to the optimal voltage value in high speed in order to reduce energy consumed in the semiconductor integrated circuit or to shorten a period in which the power supply voltage is insufficient.
Even when the request frequency is the same, the optimal voltage of the power supply voltage varies depending on the environment such as temperature. Thus, the power supply voltage needs to be controlled while comparing the relation between the request frequency with the operation frequency of the actual circuit using a delay monitor or the like. There exist two principal methods to control the power supply voltage when the request frequency is increased from speed 1 to speed 2 (speed 1<speed 2), for example. The first method is to check whether the operation frequency of the circuit satisfies the request frequency while monotonically increasing the power supply voltage. However, in this method, when the difference between an optimal voltage value 1 corresponding to the speed 1 and an optimal voltage value 2 corresponding to the speed 2 is large, it takes time for the power supply voltage to reach the optimal voltage value 2. In short, the period in which the circuit cannot operate in stable condition is increased.
The second method is a method of controlling the power supply voltage as disclosed in Japanese Unexamined Patent Application Publication No. 2001-244421. As shown in
Japanese Unexamined Patent Application Publication No. 2004-248475 discloses a charge pump circuit that boosts the power supply voltage. This charge pump circuit includes a plurality of charge pump units and a control circuit that controls them. The control circuit increases the number of charge pump units that are activated when the charge pump voltage generated by the charge pump unit becomes lower than a first target voltage. On the other hand, when the charge pump voltage is changed to be higher than a second target voltage that is lower than the first target voltage, the control circuit decreases the number of charge pump units that are activated. In this way, the amplitude of the charge pump voltage is suppressed to be low.
The present inventors have found a problem in the power supply voltage control circuit according to related arts that, as described above, it is impossible to control the power supply voltage in high speed.
A first exemplary aspect of the present invention is a power supply voltage control circuit that controls power supply voltage supplied to a target circuit, the target circuit performing certain signal processing, the power supply voltage control circuit including a control signal generation circuit that selectively generates first and second control signals when the power supply voltage supplied to the target circuit is increased from a first power supply voltage to a second power supply voltage, the second power supply voltage being higher than the first power supply voltage, and a power supply circuit that increases the power supply voltage toward a voltage level of the second power supply voltage based on the first control signal, or increases the power supply voltage to a voltage level higher than the second power supply voltage first and subsequently decreases the power supply voltage to the second power supply voltage based on the second control signal.
According to the circuit structure as above, it is possible to control the power supply voltage in high speed.
According to the present invention, it is possible to provide the power supply voltage control circuit that makes it possible to control the power supply voltage in high speed.
The above and other exemplary aspects, advantages and features will be more apparent from the following description of certain exemplary embodiments taken in conjunction with the accompanying drawings, in which:
Hereinafter, specific exemplary embodiments to which the present invention is applied will be described in detail with reference to the drawings. Throughout the drawings, the same components are denoted by the same reference symbols, and overlapping description will be omitted as appropriate for the sake of clarity.
The first exemplary embodiment of the present invention will be described in detail with reference to the drawings.
A clock signal fCLK of an operation frequency (request frequency f2) requested from outside to the target circuit 6 is input to one input terminal of the speed monitoring circuit 4, and a first input terminal of the selection circuit 5. The power supply voltage VDD output from the power supply circuit 2 is input to the other input terminal of the speed monitoring circuit 4, an input terminal of the target circuit 6, and a first input terminal of the control circuit 3. An output signal (monitor result) of the speed monitoring circuit 4 is input to a second input terminal of the control circuit 3. A clock signal fPRE of an operation frequency (request frequency f1) set for the target circuit 6 in advance is input to a second input terminal of the selection circuit 5. Further, a clock signal of a maximum operation frequency fmax is input to a third input terminal of the selection circuit 5. An output signal (switching control signal MAX) of the selection circuit 5 is input to a third input terminal of the control circuit 3. An output signal (control signal) of the control circuit 3 is input to an input terminal of the power supply circuit 2.
The speed monitoring circuit 4 outputs to the control circuit 3 the result obtained by comparing the operation frequency (f2) requested from outside with an operation frequency (fop) of the target circuit 6. For example, when the operation frequency requested for the target circuit 6 is increased from the request frequency f1 to the request frequency f2 (f1<f2), the control circuit 3 outputs the control signal to increase the power supply voltage VDD until when the operation frequency of the target circuit 6 satisfies the request frequency f2. The power supply circuit 2 generates the power supply voltage VDD based on the control signal, and outputs the generated voltage to the target circuit 6.
There are two methods as a method of controlling the power supply voltage VDD when the operation frequency requested for the target circuit 6 is increased from the request frequency f1 to the request frequency f2, for example. The first one is to monotonically increase the power supply voltage VDD to the optimal voltage so that the operation frequency of the target circuit 6 satisfies the request frequency. The second one is to increase the power supply voltage VDD to the maximum voltage VMAX first, and subsequently decrease VDD to the optimal voltage. The power supply voltage control circuit shown in
More specifically, the selection circuit 5 compares a ratio of the request frequency f1 before change to the request frequency f2 after change with a ratio of the request frequency f2 to the maximum operation frequency fmax of the target circuit 6. When fmax/f2 is larger than f2/f1, the power supply voltage VDD is monotonically increased until when the operation frequency (fop) of the target circuit 6 becomes equal to or slightly larger than the request frequency f2. The operation frequency fop of the target circuit 6 is detected from the speed monitoring circuit 4. On the other hand, when fmax/f2 is smaller than f2/f1, the power supply voltage VDD is firstly increased to the maximum voltage VMAX, and subsequently VDD is decreased to the optimal voltage. The optimal voltage is controlled so that the operation frequency fop of the target circuit 6 becomes equal to or slightly larger than the request frequency f2.
When the power supply voltage VDD is controlled by the output signal (monitor result) from the speed monitoring circuit 4, the power supply voltage VDD is controlled by step-by-step means so that the change ratio of the operation frequency fop per one step of the voltage change becomes constant. When employing the method of firstly increasing the power supply voltage VDD to the maximum voltage VMAX, there is no need to monitor the operation frequency fop of the target circuit 6 by the speed monitoring circuit 4. In summary, the power supply voltage VDD that satisfies the request frequency f2 is supplied without monitoring the operation frequency fop. Hence, the time required to control the power supply voltage VDD is extremely short. In this way, by selecting one of the control methods, it is possible to suppress increase of power consumption and to shorten the time required to control the power supply voltage. In summary, the optimal power supply voltage VDD can be controlled no matter which values the request frequencies f1, f2 may have.
The threshold voltage VTH generated by the threshold voltage generation circuit 31 is input to one input terminal of the difference voltage generation circuit 32. The power supply voltage VDD generated by the power supply circuit 2 is input to the other input terminal of the difference voltage generation circuit 32, and one input terminal of the comparator 34. Further, the maximum voltage VMAX is input to the other input terminal of the comparator 34. The difference voltage (VDD−VTH) generated by the difference voltage generation circuit 32 is input to an input terminal of the A/D converter 33. An output signal of the A/D converter 33 is input to the switch control circuit 35. To the switch control circuit 35, the comparison result of the comparator 34, the switching control signal MAX of the selection circuit 5, and the monitor result of the speed monitoring circuit 4 are further input.
The operation frequency f of the circuit can be typically expressed by the following approximation using the power supply voltage VDD and the threshold voltage VTH.
f=A(VDD−VTH) (1)
From the expression (1), the change rate of the operation frequency f when the power supply voltage VDD is changed can be expressed as the following expression (2).
Accordingly, if the control speed of the power supply voltage VDD is expressed by the following expression (3), the change rate of the operation frequency f per hour will be expressed by the expression (4).
k is a constant number.
If the voltage change amount per one step of the voltage change is controlled to be proportional to VDD−VTH, the power supply voltage can be changed while constantly keeping the change rate of the operation frequency fop per one step of the voltage change constant.
As drain currents flowing in the N channel MOS transistors 321, 322 are equal to each other, the gate-source voltage of each transistor is equal to each other. Therefore, the gate-source voltage of the transistor 321 is denoted by VTH. The gate-source voltage of the transistor 322 is also denoted by VTH. Thus, the source potential of the transistor 322 is denoted by VDD−VTH.
In
When the output signal from the FF 43 does not reach FF44-1 in one clock cycle of the clock signal fCLK, the operation frequency of the target circuit 6 does not satisfy the request frequency f1. Hence, the speed monitoring circuit 4 outputs the UP signal. On the other hand, when the output signal from the FF 43 reaches the FF 44-2 in one clock cycle of the clock signal fCLK, the operation frequency fop of the target circuit 6 is much faster than the request frequency f2. Thus, the speed monitoring circuit 4 outputs the DOWN signal. Otherwise, the HOLD signal is output to keep the power supply voltage VDD to the value that is currently set.
More specifically, when the request frequency to the target circuit 6 is changed from f1 to f2 (f2>f1), the selection circuit 5 is operated so that the clock signal fCLK of the frequency f2 is input to the counter 52A. Further, the frequency divider 51A divides the frequency of the clock signal fPRE of the frequency f1 by n (n is a natural number) and outputs the signal. The output signal of the frequency divider 51A is input to the counter 52A as a reset signal and input to the FF 53A as a clock input signal. The counter 52A counts the clock signal fCLK of the frequency f2. The FF 53A receives the count value while the reset signal of the counter 52A is turned on.
By such operation, in the counter 52A, the number of pulses of the frequency f2 at the period of 0.5 n/f1 is measured. Hence, the value of N1=0.5 n*f2/f1 is obtained as the output result N1 of the FF 53A.
In the same way, the value of N2=0.5 n*fmax/f2 is obtained as the output result N2 of the FF 53B. Note that fmax is the maximum operation frequency that can be input to the target circuit 6 when the target circuit 6 is supplied with the power supply voltage VMAX. When N1 >N2, or f2/f1>fmax/f2, the comparison circuit 54 outputs “1” as the control signal MAX, and otherwise outputs “0”.
To realize the above circuit operation, the clock signal fPRE before switching the request frequency (request frequency f1), the clock signal fCLK after switching the request frequency (request frequency f2), and the clock signal of the maximum operation frequency fmax are input to the selection circuit 5. The frequency of the clock signal fPRE is request frequency f1 and the frequency of the clock signal fCLK is request frequency f2 immediately after the request frequency is switched. The frequency of the clock signal fPRE is request frequency f2 after the HOLD signal is output from the speed monitoring circuit 4 (after the completion of the power supply control).
When the power supply voltage is controlled so that the change ratio of the operation frequency per one step of the voltage change becomes constant, the number of steps N required to control the voltage is expressed as follows. When the power supply voltage VDD is monotonically increased, N=loga (f2/f1) is established. On the other hand, when the power supply voltage VDD is increased to the maximum voltage VMAX first and subsequently decreased to the optimal voltage, N=loga (fmax/f2)+A is established. In this expression, A indicates the number of steps corresponding to the time required to increase the power supply voltage VDD to VMAX. The time required to increase the power supply voltage VDD to a certain target voltage (maximum voltage VMAX) is extremely short compared with a case of controlling the power supply voltage VDD based on the monitor result of the speed monitoring circuit 4. In short, loga (fmax/f2)>>A is established. When fmax/f2>f2/f1, the power supply voltage VDD is monotonically increased. On the other hand, when fmax/f2<f2/f1, the power supply voltage VDD is increased to the maximum voltage VMAX first, and subsequently monotonically decreased to the optimal voltage. Hence, the number of steps required to control the power supply can be reduced. In this example, one of two control methods is selected based on the control signal MAX output from the selection circuit 5. In the first exemplary embodiment, the request frequency f2 when fmax/f2=f2/f1 is established is called reference frequency.
As described above, by employing the power supply voltage control circuit according to the first exemplary embodiment of the present invention, it is possible to select the optimal power supply voltage control method according to the change of the request frequency. Hence, the time required to control the power supply can be minimized. Further, the increase of the power consumption can be suppressed. More specifically, for example, when the voltage V2 corresponding to the request frequency f2 is larger than a certain voltage value (reference voltage), as shown in
In the first exemplary embodiment, when the switching control signal MAX=“1” is input to the control circuit 3, the switch control circuit 35 provided in the control circuit 3 transmits the control signal to indicate VREF=VMAX to the reference voltage generation circuit 21 provided in the power supply circuit 2. However, it is not limited to this example. For example, the switch control circuit 35 may transmit the control signal to indicate a certain target voltage to show VREF>VMAX to the reference voltage generation circuit 21. Accordingly, it is possible to shorten the time required for the power supply voltage VDD to reach the maximum voltage VMAX.
Furthermore, in the first exemplary embodiment, the reference voltage generation circuit 21 outputs any one of the potentials generated by the resistance voltage division as the output voltage VREF. However, the circuit structure is not limited to this. The circuit may have any structure as long as the output voltage can be controlled according to the input control signal. For example, as shown in
In the first exemplary embodiment, the control circuit 3 as shown in
The power supply voltage VDD that is equal to that supplied to the target circuit 6 is supplied to the delay elements 37-1 to 37-N. In short, the delay elements 37-1 to 37-N are driven by the power supply voltage VDD as is similar to the target circuit 6. Note that each delay time by each delay element is equal with each other. The clock signal having the same frequency as the maximum operation frequency fmax requested for the target circuit 6 is input to clock input terminals of the FF 38-0 to FF 38-N. The FF38-0 to FF38-N are operated in synchronization with the clock signal.
In the delay ratio monitor 37, the pulse signal is output from the FF 38-0 in synchronization with the rising of the clock signal. The voltage level of each node is output from the FF 38-1 to FF 38-N in synchronization with the rising of the next clock signal. In summary, the delay ratio monitor 37 outputs the number K of nodes where the output signal from the FF 38-0 reaches in one clock cycle. For example, it is assumed that, when the FF 38-0 detect high level, the FF38-1 to FF38-3 detect high level and the other FF38-4 to FF38-N detect low level in synchronization with the rising of the next clock signal. In this case, the delay ratio monitor 37 outputs the information of K=3. The switch control circuit 35 executes control so that the output result K of the delay ratio monitor 37 is proportional to the voltage change amount per one step. By employing such a circuit structure, the current source, the A/D converter, and the like are not needed. Thus, the effect of the present invention can be obtained with smaller area.
Next, a power supply voltage control circuit according to the second exemplary embodiment of the present invention will be described. In the power supply voltage control circuit according to the second exemplary embodiment of the present invention, the circuit structures of the control circuit 3 and the selection circuit 5 are different from those shown in
The power supply voltage control circuit according to the second exemplary embodiment of the present invention includes a selection circuit 5b shown in
When fmax−f2 is larger than f2−f1, the power supply voltage VDD is monotonically increased until when the operation frequency fop of the target circuit 6 becomes equal to or slightly larger than the request frequency f2. The operation frequency fop of the target circuit 6 is detected from the speed monitoring circuit 4. On the other hand, when fmax−f2 is smaller than f2−f1, the power supply voltage VDD is increased to the maximum voltage VMAX first and subsequently decrease it to the optimal voltage. The optimal voltage is controlled so that the operation frequency fop of the target circuit 6 is equal to or slightly larger than the request frequency f2.
The comparator 34 compares the power supply voltage VDD with the maximum voltage VMAX, and outputs the comparison result. The comparator 34 outputs the signal to the switch control circuit 35 so as to cancel the switching control signal MAX at a time when the power supply voltage VDD reaches the maximum voltage VMAX. In short, the switch control circuit 35 outputs the control signal (second control signal) to set the power supply voltage VDD to maximum voltage VMAX while the switching control signal MAX is activated. On the other hand, the switch control circuit 35 outputs the control signal to control the power supply voltage VDD in accordance with the UP/DOWN/HOLD signal when the switching control signal MAX is canceled (non-activated). In summary, when the UP signal is output, the switch control circuit 35 outputs the control signal (first control signal) to monotonically increase the power supply voltage VDD to the optimal voltage value. When the DOWN signal is output, the switch control circuit 35 outputs the control signal (third control signal) to monotonically decrease the power supply voltage VDD to the optimal voltage. When the HOLD signal is output, the switch control circuit 35 outputs the control signal (fourth control signal) to keep the power supply voltage VDD. The voltage change amount per one step at this time has constantly a certain value ΔV.
The maximum operation frequency when the request frequency is changed from f1 to f2 (f2>f1) is set as fmax. The minimum voltages that the target circuit 6 can operate with f1, f2, fmax will be denoted by V1, V2, and VMAX, respectively. In general, the operation frequency f can approximately be expressed as f=k (VDD−VTH). Hence, f2−f1 and fmax−f2 are proportional to V2−V1 and VMAX−V2, respectively.
When the power supply voltage VDD is controlled with keeping the voltage change amount per one step constant value ΔV, the following will be obtained. The comparison between the number of control steps required to monotonically increase the power supply voltage VDD and the number of control steps required to monotonically decrease the power supply voltage VDD to the optimal voltage after increasing it to the maximum voltage VMAX is equal to the comparison between f2−f1 and fmax−f2. Hence, the selection circuit 5b according to the second exemplary embodiment outputs the control signal MAX based on the result of comparing f2−f1 with fmax−f2.
An output signal of the counter circuit 52C is input to an input terminal of the FF 53C. An output signal of the FF 53C is input to one input terminal of the subtractor 55A. An output signal of the counter circuit 52D is input to an input terminal of the FF 53D. An output signal of the FF 53D is input to the other input terminal of the subtractor 55A and one input terminal of the subtractor 55B. An output signal of the counter circuit 52E is input to an input terminal of the FF 53E. An output signal of the FF 53E is input to the other input terminal of the subtractor 55B. Further, a clock signal CLK of any frequency is input to each clock input terminal of the FF 53C, FF 53D, FF 53E. The selection circuit 5b shown in
The counter 52C starts count of the clock signal of the frequency fmax after the reset signal is changed to “0”, for example. The FF 53C receives the count number N0 of the counter 52C in synchronization with the clock signal CLK. The counter 52D starts count of the clock signal fCLK of the frequency f2 after the reset signal is changed to “0”, for example. The FF 53D receives the count number N2 of the counter 52D in synchronization with the clock signal CLK. The counter 52E starts count of the clock signal fPRE of the frequency f1 after the reset signal is changed to “0”, for example. Then, the FF 53E receives the count number N1 of the counter 52E in synchronization with the clock signal.
In the subtractor 55A, the calculation result of N0−N2 is output. In the subtractor 55B, the calculation result of N2−N1 is output. The magnitude relation of the calculation result in each subtractor is compared by the comparison circuit 54. When N2−N1 >N0−N2, or f2−f1>fmax−f2, “1” is output as the control signal MAX, and otherwise “0” is output. In the second exemplary embodiment, the request frequency f2 when fmax−f2=f2−f1 is called reference frequency.
As described above, by employing the power supply voltage control circuit according to the second exemplary embodiment of the present invention, the optimal power supply voltage control method can be selected according to the change of the request frequency. Hence, the time required to control the power supply can be minimized. Further, the increase of the power consumption can be suppressed. Further, in the second exemplary embodiment, the control circuit does not include the threshold voltage generation circuit, the difference voltage generation circuit, the A/D converter and the like, whereby the circuit can be implemented with smaller size.
A power supply voltage control circuit according to the third exemplary embodiment of the present invention will now be described. In the power supply voltage control circuit according to the third exemplary embodiment of the present invention, the circuit structure of the control circuit 3 is different from that of the circuit shown in
The power supply voltage control circuit according to the third exemplary embodiment of the present invention includes a control circuit 3c shown in
The switch control circuit 35 according to the third exemplary embodiment outputs the control signal to the power supply circuit 2 to control the power supply voltage VDD based on the monitor result (UP/DOWN/HOLD signal) from the speed monitoring circuit 4, the switching control signal MAX from the selection circuit 5, the comparison result from the comparator 34, and the output signal from the A/D converter 33.
The voltage change amount per one step that is determined based on the output of the A/D converter 33 is called VSTEP. When the UP signal is output from the speed monitoring circuit 4, the switch control circuit 35 outputs the control signal to increase the voltage change amount of the reference voltage VREF generated by the reference voltage generation circuit 21 as VSTEP+ΔV. After that, the comparator 36 detects that the power supply voltage VDD has reached VREF−ΔV. At this time, the switch control circuit 35 outputs the control signal to control the voltage change amount of the reference voltage VREF by reducing it by ΔV (which means the voltage change amount is set to VSTEP). ΔV is any positive voltage value.
On the other hand, when the DOWN signal is output from the speed monitoring circuit 4, the switch control circuit 35 outputs the control signal to decrease the voltage change amount of the reference voltage VREF as VSTEP+ΔV. After that, the comparator 36 detects that the power supply voltage VDD has reached VREF+ΔV. At this time, the switch control circuit 35 outputs the control signal to control the voltage change amount of the reference voltage VREF by reducing it by ΔV (which means that the voltage change amount is set to VSTEP).
In general, when the reference voltage is changed in the power supply voltage control circuit that controls the output voltage according to the reference voltage, the change rate of the output voltage increases as the change amount of the reference voltage is large. Hence, it is possible to shorten the convergence time of the power supply voltage VDD by temporarily increasing the change amount of the reference voltage as in the third exemplary embodiment. Further, the detection intervals in the speed monitoring circuit 4 can be shortened.
As described above, by employing the power supply voltage control circuit according to the third exemplary embodiment of the present invention, the optimal power supply voltage control method can be selected according to the change of the request frequency. Hence, the time required to control the power supply can be minimized. Further, the increase of the power consumption can be suppressed. Further, in the third exemplary embodiment, the detection intervals in the speed monitoring circuit 4 can be shortened. In summary, by increasing the change amount of the power supply voltage VDD per one step of the voltage control, the time required to control the power supply of the speed monitoring circuit 4 can further be reduced.
The present invention is not limited to the above exemplary embodiments but can be changed as appropriate without departing from the spirit of the present invention. For example, although ΔV is assumed to be any positive constant in the third exemplary embodiment, ΔV may be changed to be proportional to VSTEP. By performing such a control, the occurrence of ringing in the power supply voltage VDD can be suppressed when VSTEP is small.
Further, when VSTEP is small, the circuit may have the structure that controls ΔV to be 0. When the UP signal is input to the switch control circuit 35, the control signal is output to increase the reference voltage VREF by VSTEP. On the other hand, when the DOWN signal is input to the switch control circuit 35, the control signal is output to decrease the reference voltage VREF by VSTEP. In summary, the function of the comparator 36 can be made invalid. By performing such a control, malfunction of the comparator 36 by the input offset voltage can be prevented. Alternatively, the control circuit according to the third exemplary embodiment may have the circuit structure having a comparator 36 added to the control circuit shown in
In the voltage control of the charge pump circuit disclosed in Japanese Unexamined Patent Application Publication No. 2004-248475, when the target voltage is constant, the difference between the minimum voltage and the maximum value of the voltage fluctuation is minimized. On the other hand, in the power supply voltage control circuit according to the above exemplary embodiments of the present invention, when the target voltage value itself is changed, the voltage is converged into the target voltage value after change as soon as possible. Thus, in the power supply voltage control circuit according to the above exemplary embodiments, the object and the effect are different from those in Japanese Unexamined Patent Application Publication No. 2004-248475.
Further, the power supply voltage control circuit according to the above exemplary embodiments include a control method not only to converge the power supply voltage VDD to the target voltage but to rapidly increase the power supply voltage VDD to the target voltage or higher than the target voltage. In short, according to this control method, the power supply voltage VDD is rapidly increased to the voltage at which the target circuit can normally operate. Thus, the control method of the power supply voltage is also different from the one disclosed in Japanese Unexamined Patent Application Publication No. 2004-248475.
The first to third exemplary embodiments can be combined as desirable by one of ordinary skill in the art.
While the invention has been described in terms of several exemplary embodiments, those skilled in the art will recognize that the invention can be practiced with various modifications within the spirit and scope of the appended claims and the invention is not limited to the examples described above.
Further, the scope of the claims is not limited by the exemplary embodiments described above.
Furthermore, it is noted that, Applicant's intent is to encompass equivalents of all claim elements, even if amended later during prosecution.
Number | Date | Country | Kind |
---|---|---|---|
2009-120747 | May 2009 | JP | national |