The invention relates to a power system and a method for monitoring a working environment of a monitored circuit and adjusting a working voltage of the monitored circuit.
Circuits in integrated circuits (ICs) usually have a fixed operating frequency that requires a stable working voltage to operate properly. However, various working environment factors such as process drift, temperature variations, power supply variations or ground variations may cause the working voltage to be unstable. For example, the value of the working voltage may change due to a high temperature of the working environment and may cause the change of the value of the operating frequency. The unstable working voltage causes a change of the value of the operating frequency, and the change of the value of the operating frequency may result in abnormal operation of the circuits.
Therefore, the purpose of the invention is to provide a power system and a method for monitoring a working environment of a circuit and adjusting a working voltage of the circuit, which is capable of monitoring a signal variation caused by the working environment of the circuit, thereby adjusting the working voltage outputted to the circuit to overcome the abnormal operation of the circuits.
According to the purpose of the invention is to provide a power system for monitoring a working environment of a monitored circuit and adjusting a working voltage of the monitored circuit includes: a power circuit, a first voltage-controlled oscillator and a first counter. The power circuit is configured to output the working voltage to the monitored circuit through a first power supply path; the first voltage-controlled oscillator is disposed in or around the monitored circuit, in which the first voltage-controlled oscillator is electrically connected to the first power supply path and a first ground path to which the monitored circuit is electrically connected, and is configured to output an first oscillation frequency in accordance with a first signal variation on the first power supply path and the first ground path; the first counter is electrically connected to the first voltage-controlled oscillator, in which the first counter is configured to receive the first oscillation frequency and to generate a first counting number signal in accordance with the first oscillation frequency and a synchronizing signal, and to output the first counting number signal to the power circuit to adjust the working voltage outputted to the monitored circuit.
In some embodiments, power system further includes a second voltage-controlled oscillator and a second counter. The second voltage-controlled oscillator is disposed in or around the monitored circuit, in which the second voltage-controlled oscillator is electrically connected to a second power supply path and a second ground path to which the monitored circuit is electrically connected, and is configured to output an second oscillation frequency in accordance with a second signal variation on the second power supply path and the second ground path. The second counter is electrically connected to the second voltage-controlled oscillator, in which the second counter is configured to receive the second oscillation frequency and to generate a second counting number signal in accordance with the second oscillation frequency and the synchronizing signal, and to output the second counting number signal to the power circuit to adjust the working voltage outputted to the monitored circuit. The first voltage-controlled oscillator is disposed close to the power circuit, the second voltage-controlled oscillator is disposed away from the power circuit, and the power circuit outputs the working voltage in accordance with the first counting number signal and the second counting number signal.
In some embodiment, power system further includes a third voltage-controlled oscillator and a third counter. The third voltage-controlled oscillator is disposed in or around the monitored circuit, in which the third voltage-controlled oscillator is electrically connected to a third power supply path and a third ground path to which the monitored circuit is electrically connected, and is configured to output an third oscillation frequency in accordance with a third signal variation on the third power supply path and the third ground path. The third counter is electrically connected to the third voltage-controlled oscillator, in which the third counter is configured to receive the third oscillation frequency and to generate a third counting number signal in accordance with the third oscillation frequency and the synchronizing signal, and to output the third counting number signal to the power circuit to adjust the working voltage outputted to the monitored circuit. The third voltage-controlled oscillator is disposed between the first voltage-controlled oscillator and the second voltage-controlled oscillator, and the power circuit outputs the working voltage in accordance with the first counting number signal, the second counting number signal and the third counting number.
In some embodiments, the working voltage outputted by the power circuit is adjusted to enable the first counting number signal, the second counting number and the third counting number signal to be in a predetermined counting number range.
In some embodiments, the working voltage outputted by the power circuit is adjusted to enable the first counting number signal and the second counting number to be in a predetermined counting number range.
In some embodiments, the power system further includes a phase locked loop (PLL) circuit electrically connected between the monitored circuit and an output of the first voltage-controlled oscillator, in which the phase locked loop circuit is configured to receive the first oscillation frequency and to output an operating frequency to the monitored circuit according to the first oscillation frequency.
In some embodiments, the operating frequency and the oscillation frequency have a multiple relationship.
In some embodiments, the power system further includes a low-dropout regulator (LDO) electrically connected between the power circuit and the monitored circuit, in which the low-dropout regulator is configured to stabilize the working voltage supplied by the power circuit to the monitored circuit.
In some embodiments, the working voltage outputted by the power circuit is adjusted to enable the first counting number signal to be equal to a predetermined counting number.
In some embodiments, the monitored circuit is a digital circuit, and the first voltage-controlled oscillator further includes a plurality of capacitors and a plurality of logic gates. The plurality of logic gates are electrically connected to the first power supply path of the monitored circuit. The plurality of logic gates include a NAND gate, a NOR gate and an inverter. The NOR gate is electrically connected to an output of the NAND gate. The inverter is electrically connected to an output of the NOR gate, in which an output of the inverter is connected to an input of the NAND gate. The plurality of logic gates are connected to first ground path through the plurality of capacitors.
In some embodiments, the synchronizing signal is a reference signal with a fixed time signal.
According to the purpose of the invention is to provide a method for monitoring a working environment of a monitored circuit and adjusting a working voltage of a monitored circuit includes: disposing a first voltage-controlled oscillator in or around the monitored circuit, in which the first voltage-controlled oscillator is electrically connected to a first power supply path and a first ground path to which the monitored circuit is electrically connected; outputting a first oscillation frequency in accordance with a first signal variation on a first power supply path and a first ground path by using the first voltage-controlled oscillator; generating a first counting number signal in accordance with the first oscillation frequency and a synchronizing signal by using a first counter; and adjusting the working voltage outputted to the first power supply path in accordance with the first counting number signal by using a power circuit.
In some embodiments, the method further includes disposing a second voltage-controlled oscillator in or around the monitored circuit and close to the power circuit, wherein the second voltage-controlled oscillator is electrically connected to a second power supply path and a second ground path to which the monitored circuit is electrically connected; outputting an second oscillation frequency in accordance with a second signal variation on the second power supply path and the second ground path by using the second voltage-controlled oscillator; generating a second counting number signal in accordance with the second oscillation frequency and the synchronizing signal by using the second counter; and adjusting the working voltage outputted to the second power supply path in accordance with the first counting number signal and the second counting number signal by using the power circuit. The first voltage-controlled oscillator is disposed close to the power circuit, and the second voltage-controlled oscillator is disposed away from the power circuit.
In some embodiments, the method further includes disposing a third voltage-controlled oscillator in or around the monitored circuit, in which the third voltage-controlled oscillator is disposed between the first voltage-controlled oscillator and the second voltage-controlled oscillator, and wherein the third voltage-controlled oscillator is electrically connected to a third power supply path and a third ground path to which the monitored circuit is electrically connected; outputting an second oscillation frequency in accordance with a second signal variation on the second power supply path and the second ground path by using the second voltage-controlled oscillator; generating a second counting number signal in accordance with the second oscillation frequency and the synchronizing signal by using the second counter; and adjusting the working voltage outputted to the second power supply path in accordance with the first counting number signal and the second counting number signal by using the power circuit. The first voltage-controlled oscillator is disposed close to the power circuit, and the second voltage-controlled oscillator is disposed away from the power circuit.
In some embodiments, adjusting the working voltage outputted to the third power supply path in accordance with the first counting number signal, the second counting number signal and the third counting number signal by using the power circuit includes: adjusting the working voltage to enable the first counting number signal, the second counting number signal and the third counting number signal to be in a predetermined counting number range.
In some embodiments, adjusting the working voltage outputted to the second power supply path in accordance with the first counting number signal and the second counting number signal by using the power circuit includes: adjusting the working voltage to enable the first counting number signal and the second counting number signal to be in a predetermined counting number range.
In some embodiments, the method further includes receiving the working voltage from the power circuit and stabilizing the working voltage outputted to the monitored circuit by using a low-dropout regulator.
In some embodiments, the method further includes receiving the first oscillation frequency and outputting an operating frequency to the monitored circuit in accordance with the first oscillation frequency by using a phase locked loop circuit, in which the operating frequency and the first oscillation frequency have a multiple relationship.
In some embodiments, adjusting the working voltage outputted to the first power supply path in accordance with the first counting number signal by using the power circuit includes: adjusting the working voltage to enable the first counting number signal to be equal to a predetermined counting number.
Referring to
After the power circuit 210 receives the counting number signal, the working voltage outputted by the power circuit 210 is adjusted to enable the counting number signal to be equal to a predetermined counting number. In this embodiment, it is assumed that the frequency of the oscillation frequency fo of the voltage-controlled oscillator 220 is desired to be 30 MHz and the fixed clock frequency of the VSYNC/HSYNC signal is 3 us, a desired value of the counting number signal of the counter 230 is 100. When the working voltage has an undesired voltage value 1.1V affected by the signal variation, the oscillation frequency fo of the voltage-controlled oscillator 220 is changed accordingly, and then the counter 230 outputs a counting number signal having an affected value, for example 80. The counting number signal having the affected value 80 is thereafter outputted to the power circuit 210 to perform a voltage adjusting step to adjust the working voltage. Specifically, in the power circuit 210, the affected value 80 is compared to the desired value 100. Since the affected value 80 is smaller than the desired value 100, the power circuit 210 increases the value of the working voltage to, for example 1.2 V to reduce the affection of the signal variation, thereby achieving the purpose of environment monitoring and working voltage adjustment.
Further, in some embodiments, the voltage adjusting step can be repeated until the value of the counting number signal of the counter 230 is equal to a predetermined counting number, for example 100. Specifically, in the above case that the power circuit 210 increases the value of the working voltage to, for example 1.2 V to reduce the affection of the signal variation, the working voltage of 1.2 V may be not high enough to allow the counter 230 to output the counting number signal having a value of 100. Therefore, the voltage adjusting step is repeated to increase the value of the working voltage to, for example 1.3V to allow the counter 230 to output the counting number signal having the value of 100.
Further, if the working voltage of 1.3V is too high, the counter 230 accordingly outputs the counting number signal having a value, for example 110. In this case, the power circuit 210 decreases the value of the working voltage to, for example 1.25 V to allow the counter 230 to output the counting number signal having the value of 100.
In some embodiments, a predetermined counting number range can used to replace the above predetermined counting number. For example, the predetermined counting number range of 100±5 can be used. In other words, the above voltage adjusting step can be repeated until the counter 130 outputs the counting number signal having a value in the predetermined counting number range of 100±5.
Therefore, as shown in
In some embodiments, plural voltage-controlled oscillators and plural counters are used in the power system for monitoring more power paths and ground paths of the power circuit 210. For example, as shown in
The plural counters (not shown), including a first counter, a second counter and a third counter, are electrically connected to the first voltage-controlled oscillator 221, the second voltage-controlled oscillator 222 and the third voltage-controlled oscillator 223, respectively.
The first voltage-controlled oscillator 221 is configured to output a first oscillation frequency fo1 capable of changing in accordance with a first signal variation on the first power supply path P1/first ground path G1 of the monitored circuit 100. The first counter is electrically connected to an output of the first voltage-controlled oscillator 221. The first counter is configured to receive the first oscillation frequency fo1 and to generate a first counting number signal in accordance with the first oscillation frequency fo1 and the synchronizing signal.
The first counting number signal is then transmitted to the power circuit 210 to adjust the working voltage outputted to the monitored circuit 100.
The second voltage-controlled oscillator 222 is configured to output a second oscillation frequency fo2 capable of changing in accordance with a second signal variation on the second power supply path P2/second ground path G2 of the monitored circuit 100. The second counter is electrically connected to an output of the second voltage-controlled oscillator 222. The second counter is configured to receive the second oscillation frequency fo2 and to generate a second counting number signal in accordance with the second oscillation frequency fo2 and the synchronizing signal. The second counting number signal is then transmitted to the power circuit 210 to adjust the working voltage outputted to the monitored circuit 100.
The third voltage-controlled oscillator 223 is configured to output a third oscillation frequency fo3 capable of changing in accordance with a third signal variation on the third power supply path P3/third ground path G3 of the monitored circuit 100. The third counter is electrically connected to an output of the third voltage-controlled oscillator 223. The third counter is configured to receive the third oscillation frequency fo3 and to generate a third counting number signal in accordance with the third oscillation frequency fo3 and the synchronizing signal. The third counting number signal is then transmitted to the power circuit 210 to adjust the working voltage outputted to the monitored circuit 100.
After the power circuit 210 receives the first counting number signal, the second counting number signal and the third counting number signal, the working voltage outputted by the power circuit 210 is adjusted to enable the first counting number signal, the second counting number signal and the third counting number signal to be in a predetermined counting number range. For example, a predetermined counting number range of 1005 can be used. In other words, the working voltage can be adjusted until the first counting number signal, the second counting number signal and the third counting number signal having values within the predetermined counting number range of 100±5. For example, the first counting number signal having the value of 95, the second counting number signal having the value of 102 and the second counting number signal having the value of 105, which is within the predetermined counting number range of 100±5, so the working voltage outputted to the monitored circuit 100 is allowed. In another example, the first counting number signal having the value of 95, the second counting number signal having the value of 102 and the third counting number signal having the value of 110, which is out of the predetermined counting number range of 100±5. Therefore, the power circuit 210 decreases the value of the working voltage to allow the third counter to output the counting number signal having the value in the range of 100±5. The voltage adjusting step is repeated until the first counting number signal of the first counter, the second counting number signal of the second counter and the third counting number signal of the third counter having the values in the range of 100±5. However, in the embodiments of the present invention, the predetermined counting number range is not limit thereto.
Referring to
As shown in
Referring to
Referring to
Referring to
After step 301 is performed, step 302 is performed to output an oscillation frequency fo in accordance with a signal variation on a power supply path and a ground path. The oscillation frequency fo outputted from the voltage-controlled oscillator 220 capable of changing in accordance with the signal variation on the power supply path/ground path of the monitored circuit 100.
After step 302 is performed, step 303 is performed to generate a counting number signal in accordance with the oscillation frequency fo and a synchronizing signal by using a counter 230.
In step 304, step 304 is performed to adjust the working voltage outputted to the power supply path in accordance with the counting number signal by using a power circuit 210. The power circuit 210 receives the counting number signal and the working voltage outputted by the power circuit 210 is adjusted to enable the counting number signal to be equal to a predetermined counting number. Further, the working voltage can be adjusted until the value of the counting number signal of the counter 230 is equal to the predetermined counting number. In some embodiments, a predetermined counting number range can used to replace the predetermined counting number, thereby adjusting the working voltage until the value of the counting number signal of the counter 230 is within the predetermined counting number range.
In some embodiments, plural voltage-controlled oscillators and plural counters are used in the power system for monitoring more power paths and ground paths of the power circuit 210. In this case, the method 300 further includes more steps for monitoring more power/ground paths. For example, the method 300 is performed to dispose plural voltage-controlled oscillators (such as the above voltage-controlled oscillators 221-223) to monitor more power/ground paths. Since the steps for disposing the voltage-controlled oscillators 221-223 and monitoring corresponding power/ground paths are similar to the steps 301-304, details are not repeated herein.
However, the descriptions are only preferred embodiments of the invention as mentioned above, and should not limit the scope of implementation of the invention. That is, any simple equivalent changes and modifications made according to the scope of the claim and the contents of the description of the invention are still within the scope of the claim of the invention.