Voltage drop protection device and method
By shielding part of the clock cycle in the clock signal of the chip core, the voltage drop problem caused by power supply noise is solved, power consumption is reduced, VF efficiency is improved, and the stable operation of the chip is ensured at the moment of load switching.
Patent Information
- Application Number
- CN202410875777.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-27
AI Technical Summary
When the chip workload switches from light load to heavy load, the voltage drop caused by power supply noise may interfere with chip stability and cause timing problems. Existing technologies solve this problem by increasing the voltage setting value, but this will result in high power consumption.
By shielding part of the clock cycle in the clock signal of the chip core, the difference between the clock reference signal and the delay level signal is used to generate a clock shielding signal, which reduces the operating current of the chip core, thereby reducing the amplitude of the voltage drop.
On the basis of sacrificing a smaller clock cycle, the voltage drop is reduced, the system power consumption is reduced, the VF efficiency is improved, and the stable operation of the chip is ensured at the moment of switching from light load to heavy load.
Smart Images

Figure CN118708045A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of integrated circuits, and in particular to a voltage drop protection device and method. Background Art
[0002] At the moment when the chip's workload switches from a relatively light light load to a relatively heavy heavy load, a large current surge will be generated, causing the DIDT (di / dt, current change rate) problem of power supply noise. When the chip's workload changes, the sudden change in current will cause reflection, coupling and other effects in the inductor, capacitor and other components in the power system, resulting in noise on the power line. This noise may interfere with the chip itself and other circuits connected to it, affecting the chip's stability and performance and may even cause system failure. Therefore, this problem has always plagued chip products with a high degree of integration and strong computing power. When the chip's workload switches from a light load to a heavy load, causing the DIDT problem, the power supply voltage will be instantly pulled down to produce a voltage drop. During this period, it is easy to cause insufficient clock setup time for the timing path due to insufficient voltage, thereby causing a timing issue. Summary of the invention
[0003] In view of this, the present disclosure provides a voltage drop protection device and method. When a clock signal delay occurs at the moment when the workload of the chip core switches from light load to heavy load, part of the clock cycle of the clock signal of the chip core is shielded to achieve a greater VF benefit for the chip core at the expense of a smaller clock cycle.
[0004] The technical solution of the present disclosure is achieved as follows:
[0005] According to one aspect of an embodiment of the present disclosure, there is provided a voltage drop protection device, comprising:
[0006] A first level signal generating circuit, configured to receive a clock reference signal and obtain a first level signal according to the clock reference signal;
[0007] A timing delay circuit, used for receiving the first level signal and delaying the first level signal to obtain a second level signal;
[0008] A clock shielding circuit is used to generate a clock shielding signal based on the difference between the number of cycles of the clock reference signal and the number of cycles of the second level signal within the same unit time length, wherein the clock shielding signal is used to shield the clock signal within a part of the clock cycle of the chip core, and the clock reference signal is one of the first level signal and the clock reference signal.
[0009] In one possible implementation, the clock shielding circuit includes:
[0010] A first counter, used for counting a change period of the clock reference signal to obtain a first count value;
[0011] A second counter, the second counter is electrically connected to the timing delay circuit, and is used to receive the second level signal and count the change period of the second level signal to obtain a second count value;
[0012] a counting comparison circuit, configured to compare the first counting value and the second counting value within the same time window; and
[0013] The shielding signal generating circuit is used to generate and send the clock shielding signal when the difference obtained by comparing the first count value and the second count value within the same time window reaches a preset trigger threshold.
[0014] In one possible implementation, the first level signal generating circuit includes:
[0015] a first register, wherein a clock input terminal of the first register receives the clock reference signal;
[0016] A NOT gate, wherein the input end of the NOT gate is connected to the output end of the first register, and the output end of the NOT gate is connected to the input end of the first register.
[0017] In a possible implementation manner, the voltage drop protection device further includes:
[0018] A delay calibration circuit is used to obtain a signal delay calibration result associated with the timing delay circuit based on the first level signal and the second level signal, and the signal delay calibration result is used to configure the timing delay circuit to set the delay of the second level signal when no voltage drop occurs.
[0019] In one possible implementation, the delay calibration circuit at least includes:
[0020] A first calibration comparison circuit, configured to obtain a first comparison result according to the first level signal and the second level signal;
[0021] a second calibration comparison circuit, configured to delay the second level signal for a preset time period, and obtain a second comparison result according to the first level signal and the second level signal after being delayed for the preset time period;
[0022] The first comparison result and the second comparison result constitute the signal delay calibration result.
[0023] In one possible implementation, the first calibration comparison circuit includes:
[0024] A second register, wherein an input end of the second register is connected to the timing delay circuit to receive the second level signal, and a clock input end of the second register receives the clock reference signal;
[0025] A first XOR gate, wherein two input terminals of the first XOR gate receive the first level signal and an output signal of an output terminal of the second register respectively, and an output terminal of the first XOR gate generates the first comparison result.
[0026] In one possible implementation, the second calibration comparison circuit includes:
[0027] A delay module, the delay module is connected to the timing delay circuit to receive the second level signal, and delays the second level signal by the preset time length to obtain a third level signal;
[0028] A third register, wherein an input end of the third register is connected to the delay module to receive the third level signal, and a clock input end of the third register receives the clock reference signal;
[0029] A second XOR gate, wherein two input terminals of the second XOR gate respectively receive the first level signal and an output signal of an output terminal of the third register, and an output terminal of the second XOR gate generates the second comparison result.
[0030] In one possible implementation, the timing delay circuit includes a multi-stage delay control circuit that is powered by a power supply voltage and is connected in series on a clock signal path.
[0031] According to another aspect of an embodiment of the present disclosure, a voltage drop protection method is provided, including:
[0032] Receiving a clock reference signal and obtaining a first level signal according to the clock reference signal;
[0033] Delaying the first level signal to obtain a second level signal, wherein the delay of the second level signal increases with an increase in the voltage drop;
[0034] Based on the difference between the number of cycles of the clock reference signal and the number of cycles of the second level signal within the same unit time length, a clock shielding signal is generated and sent to the clock and reset generator CRG, wherein the clock shielding signal is used to shield the clock signal within a part of the clock cycles of the clock signal emitted by the CRG, so as to reduce the current change rate of the chip core of the clock signal emitted by the CRG and shielded by the clock shielding signal, and the clock reference signal is one of the first level signal and the clock reference signal.
[0035] In a possible implementation manner, the voltage drop protection method further includes:
[0036] When no voltage drop occurs, obtaining a signal delay calibration result according to the first level signal and the second level signal;
[0037] The delay of the first level signal is set according to the signal delay calibration result.
[0038] It can be seen from the above scheme that in the voltage drop protection device and method of the embodiment of the present disclosure, at the moment when the chip switches from light load to heavy load, the voltage drop caused by the instantaneous reduction of the power supply voltage will cause the clock reference signal to decrease, and then the difference between the first level signal obtained according to the clock reference signal and the second level signal obtained by delaying the first level signal will be enlarged, and this enlarged difference will be reflected in the difference between the number of cycles of the clock reference signal (or the first level signal) and the number of cycles of the second level signal in the same unit time. Based on this, according to the difference between the number of cycles of the clock reference signal (clock reference signal or the first level signal) and the number of cycles of the second level signal in the same unit time, part of the clock cycle of the clock signal of the chip core is shielded in real time, which can timely reduce the working current of the chip core, and then indirectly reduce the voltage drop, which is helpful to reduce the voltage setting value, and helps the chip core to obtain a greater VF benefit on the basis of sacrificing a smaller clock cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a schematic structural diagram of a voltage drop protection device according to an exemplary embodiment;
[0040] Figure 2 is a circuit principle schematic diagram of a timing delay circuit according to an exemplary embodiment;
[0041] Figure 3 is a schematic structural diagram of a clock shielding circuit according to an exemplary embodiment;
[0042] Figure 4 is a structural schematic diagram of a first level signal generating circuit according to an exemplary embodiment;
[0043] Figure 5 is a schematic structural diagram of a delay calibration circuit according to an exemplary embodiment;
[0044] Figure 6 is a circuit structure diagram of a first calibration comparison circuit according to an exemplary embodiment;
[0045] Figure 7 is a circuit structure diagram of a second calibration comparison circuit according to an exemplary embodiment;
[0046] Figure 8 is a circuit structure diagram of a specific embodiment of a voltage drop protection device according to an exemplary embodiment;
[0047] Fig. 9 is a schematic diagram showing a comparison between voltage drop and clock frequency according to an exemplary embodiment;
[0048] Fig.10 is a schematic diagram showing a comparison between voltage drop and clock frequency according to an exemplary embodiment;
[0049] Fig.11 is a timing diagram of an unshielded clock signal and a shielded clock signal according to an exemplary embodiment;
[0050] Fig.12 The figure is a flow chart showing a voltage drop protection method according to an exemplary embodiment. DETAILED DESCRIPTION
[0051] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and examples.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0053] When the chip switches from light load to heavy load, the power supply voltage is pulled down and a voltage drop is generated due to the sudden increase in current, which will cause timing problems due to insufficient voltage.
[0054] In the related art, in order to alleviate or even avoid such timing problems, a common practice is to increase the voltage setting value (V set ) to ensure that the power supply voltage does not drop (V drop ) after the voltage reaches the chip core is able to support the currently set clock frequency. However, the cost of solving the timing problem caused by voltage drop by increasing the voltage setting value is higher power consumption. For example, the lowest operating voltage that can support the normal working clock frequency of the chip core is 0.8V. In order to alleviate or even avoid this timing problem, the voltage setting value needs to be set to 0.95V. Then, when the current suddenly increases and the power supply voltage is pulled down to produce a voltage drop, the operating voltage of the chip core will not be lower than 0.8V. Compared with the minimum operating voltage of the chip core of 0.8V, the voltage setting value is increased by 0.15V. According to the relationship that power consumption is proportional to the square of voltage, the power consumption of the chip will increase by 41%. It can be seen that in the related art, the method of solving the timing problem caused by voltage drop by increasing the voltage setting value outside the chip will bring about additional power consumption increase.
[0055] In view of this, the embodiments of the present disclosure provide a voltage drop protection device and method. Starting from the inside of the chip, when the voltage drop occurs at the moment the chip switches from light load to heavy load, causing the clock frequency to change, the operating current of the chip core is reduced in time by shielding part of the clock cycle of the clock signal of the chip core, thereby indirectly reducing the voltage drop, thereby helping to reduce the voltage setting value and helping the chip core to obtain a greater VF benefit at the expense of a smaller clock cycle.
[0056] Figure 1 FIG. 1 is a schematic diagram showing a structure of a voltage drop protection device according to an exemplary embodiment. Figure 1As shown, the voltage drop protection device includes a first level signal generating circuit 1, a timing delay circuit 2 and a clock shielding circuit 3. The first level signal generating circuit 1 is used to receive a clock reference signal and obtain a first level signal according to the clock reference signal. The timing delay circuit 2 is electrically connected to the first level signal generating circuit 1, and is used to receive a first level signal and delay the first level signal to obtain a second level signal, wherein the second level signal is obtained after the first level signal is delayed by the timing delay circuit 2. In an illustrative embodiment, the delay of the clock reference signal, the first level signal and the second level signal increases with the increase of the voltage drop, and the delay increase amplitude of the second level signal is greater than the delay increase amplitude of the first level signal. The clock shielding circuit 3 is used to generate a clock shielding signal according to the difference between the number of cycles of the clock reference signal and the number of cycles of the second level signal in the same unit time length, wherein the clock shielding signal is used to shield the clock signal in part of the clock cycle of the chip core, and the clock reference signal is one of the first level signal and the clock reference signal. In an optional embodiment, the second level signal is used to characterize the clock signal of the chip core. In an illustrative embodiment, the clock signal of the chip core is generated by a clock and reset generator (CRG) in a clock controller (Clock Controller) of the chip core. On this basis, a clock shielding circuit 3 is coupled to the clock and reset generator in the clock controller of the chip core to send a clock shielding signal to the clock and reset generator in the clock controller of the chip core, thereby shielding the clock signal within a partial clock cycle of the chip core.
[0057] In the voltage drop protection device of the disclosed embodiment, at the moment when the chip switches from light load to heavy load, the voltage drop caused by the instantaneous drop of the power supply voltage will cause the clock reference signal to decrease, and then the difference between the first level signal obtained according to the clock reference signal and the second level signal obtained by delaying the first level signal will be enlarged. This enlarged difference will be reflected in the difference between the number of cycles of the clock reference signal (or the first level signal) and the number of cycles of the second level signal within the same unit time. Based on this, according to the difference between the number of cycles of the clock reference signal (clock reference signal or the first level signal) and the number of cycles of the second level signal within the same unit time, part of the clock cycle of the clock signal of the chip core is shielded in real time, which can timely reduce the working current of the chip core, and then indirectly reduce the voltage drop, which is helpful to reduce the voltage setting value, and helps the chip core to obtain a larger VF benefit on the basis of sacrificing a smaller clock cycle. VF benefit, that is, V min -F max Benefit, V min is the minimum voltage, F max Refers to Vmin The maximum operating frequency that the circuit or processor can achieve, so V min -F max It refers to the highest clock frequency that the system can safely operate under the given minimum supply voltage condition. The higher the VF efficiency, the higher the highest clock frequency that the system can safely operate under the given minimum supply voltage condition, which also means better system performance.
[0058] In the exemplary embodiment, the timing delay circuit 2 is associated with a chip core that needs to shield the clock signal within a partial clock cycle, that is, the timing delay circuit 2 needs to be set for the specified chip core, so as to ensure the shielding of the partial clock signal of the specified chip core. Among them, the timing delay circuit 2 is a delay chain (delay chain) used to simulate the timing delay of the chip core. Corresponding to different chip cores, the delay chain of the timing delay circuit 2 may be different. Therefore, in the exemplary embodiment, the timing delay circuit 2 is configurable, and then the length of the delay chain can be changed by configuring the timing delay circuit 2, thereby changing the delay of the second level signal, so that the timing delay circuit 2 can be adapted to the chip core that needs to shield the clock signal within a partial clock cycle as needed.
[0059] Figure 2 FIG. 1 is a schematic diagram showing a circuit principle of a timing delay circuit according to an exemplary embodiment. Figure 2 , and combined Figure 1 As shown, in the exemplary embodiment, the timing delay circuit 2 includes a multi-stage delay control circuit 20 connected in series on the clock signal path and powered by a power supply voltage Vdd. Among the multi-stage delay control circuit 20, the first stage delay control circuit 20 (e.g. Figure 2 The input end of the delay control circuit 20 on the left side of the figure receives the first level signal. Between two adjacent delay control circuits 20, the input end of the subsequent delay control circuit 20 is electrically connected to the output end of the previous delay control circuit 20. The final delay control circuit 20 (for example Figure 2 The output terminal of the rightmost delay control circuit 20) shown in the figure generates a second level signal.
[0060] Each level of delay control circuit 20 includes a standard cell 201 and a multiplexer 202. The input end of the standard cell 201 and one input end of the multiplexer 202 serve as the input end of the delay control circuit 20, the output end of the standard cell 201 is coupled to the other input end of the multiplexer 202, and the output end of the multiplexer 202 serves as the output end of the delay control circuit 20. The standard cell 201 is powered by a power supply voltage Vdd. In the exemplary embodiment, the selective connection between the two input ends and the output end of the multiplexer 202 is configurable, and the configuration of the timing delay circuit 2 is the configuration of the multiplexer 202 in each level of delay control circuit 20.
[0061] Since the standard cell 201 works under the power supply voltage Vdd, when the power supply voltage Vdd generates a voltage drop, the standard cell 201 will have a timing delay. Therefore, by configuring the multiplexer 202 in each level of the delay control circuit 20, the number of connected standard cells 201 can be configured in the timing delay circuit 2, and then when the power supply voltage Vdd generates a voltage drop, different clock delay effects can be achieved based on the different numbers of connected standard cells 201, that is, the delay of the second level signal is changed. Figure 2 As shown, the delay chain in the embodiment of the present disclosure may refer to a standard cell chain composed of various standard cells 201 on a clock signal path.
[0062] Figure 3 FIG. 1 is a schematic diagram of a clock shielding circuit according to an exemplary embodiment. Figure 3 As shown, in the exemplary embodiment, the clock shielding circuit 3 includes a first counter 31, a second counter 32, a counting comparison circuit 33 and a shielding signal generating circuit 34. The first counter 31 is electrically connected to the first level signal generating circuit 1 and one of the signal lines of the clock reference signal, and is used to count the change period of the received clock reference signal to obtain a first count value, wherein the clock reference signal is one of the first level signal and the clock reference signal. The second counter 32 is electrically connected to the timing delay circuit 2, and is used to receive the second level signal and count the change period of the second level signal to obtain a second count value. The counting comparison circuit 33 is electrically connected to the first counter 31 and the second counter 32, and is used to compare the first count value and the second count value in the same time window. The shielding signal generating circuit 34 is electrically connected to the counting comparison circuit 33, and is used to generate and send a clock shielding signal when the difference obtained by comparing the first count value and the second count value in the same time window reaches a preset trigger threshold.
[0063] In the exemplary embodiment, the trigger threshold can be set as needed.
[0064] Figure 4 FIG. 1 is a schematic diagram showing a structure of a first level signal generating circuit according to an exemplary embodiment. Figure 4 As shown, the first level signal generating circuit 1 includes a first register 11 and a NOT gate 12. The clock input terminal Clk of the first register 11 is electrically connected to the signal line of the clock reference signal to receive the clock reference signal. The input terminal of the NOT gate 12 is connected to the output terminal of the first register 11, and the output terminal of the NOT gate 12 is connected to the input terminal of the first register 11.
[0065] In the exemplary embodiment, the first register 11 is a flip-flop (Flip-Flop, FF), the output end of the first register 11 is the Q end of the flip-flop, and the input end of the first register 11 is the D end of the flip-flop.
[0066] Referring to the above description, the timing delay circuit 2 needs to be set for a specific chip core to ensure the shielding of part of the clock signal of the correct chip core. Based on this, in the illustrative embodiment, the voltage drop protection device also includes a delay calibration circuit 4. The delay calibration circuit 4 is electrically connected to the first level signal generating circuit 1 and the timing delay circuit 2, and is used to obtain a signal delay calibration result associated with the timing delay circuit 2 according to the first level signal and the second level signal, wherein the signal delay calibration result is used to configure the timing delay circuit 2 to set the delay of the second level signal when no voltage drop occurs. Because the timing delay circuit 2 needs to be adapted to the chip core, and the second level signal is used to characterize the clock signal of the chip core, the delay amount of the second level signal relative to the first level signal determines the maximum timing delay for the chip core to work normally. Furthermore, the timing delay circuit 2 is configured according to the signal delay calibration result obtained by the delay calibration circuit 4, and a timing delay circuit 2 is obtained that can generate a second-level signal corresponding to the maximum timing delay that allows the chip core to work normally, so that the clock signal of the chip core represented by the second-level signal obtained by the configured timing delay circuit 2 when no voltage drop occurs can enable the chip core to work normally under the current voltage and temperature, and the clock signal of the chip core represented by the second-level signal obtained by the configured timing delay circuit 2 when a voltage drop occurs cannot enable the chip core to work normally. Based on this, when using the configured timing delay circuit 2, when the voltage drop generated at the moment of switching from light load to heavy load of the chip has not yet reached the maximum amplitude, the delay generated by the clock signal of the chip core can be predicted by the delay change of the second level signal, and before the clock signal delay of the chip core causes the chip core to be unable to work normally, the clock shielding signal is generated in real time by the clock shielding circuit 3 to shield the clock signal within part of the clock cycle of the chip core, so as to timely reduce the working current of the chip core, thereby indirectly reducing the voltage drop, ensuring that the chip core can still work normally at the moment of switching from light load to heavy load, which helps the chip core to obtain a greater VF benefit at the expense of a smaller clock cycle.
[0067] Among them, the delay variation of the second level signal can be characterized by the difference between the number of cycles of the clock reference signal (first level signal or clock reference signal) and the number of cycles of the second level signal in the same unit time in the clock shielding circuit 3. In this way, a clock shielding signal can be generated by a preset trigger threshold value when the difference obtained by comparing the first count value with the second count value in the same time window reaches the preset trigger threshold value, so as to timely shield the clock signal in part of the clock cycle of the chip core. It can be seen that the voltage drop protection device of the embodiment of the present disclosure uses the monitoring of the delay of the second level signal to achieve indirect monitoring of the delay of the chip core clock signal.
[0068] The reason why the delay of the chip core clock signal is not directly monitored is, on the one hand, because the chip core circuit is complex and it is difficult to accurately obtain the delay of the chip core clock signal; on the other hand, it is not easy to continue to accurately grasp the delay of the chip core clock signal after real-time shielding of part of the chip core clock signal's clock cycle.
[0069] Figure 5 FIG. 1 is a schematic diagram of a delay calibration circuit according to an exemplary embodiment. Figure 5 As shown, in the exemplary embodiment, the delay calibration circuit 4 at least includes a first calibration comparison circuit 41 and a second calibration comparison circuit 42. The first calibration comparison circuit 41 is used to obtain a first comparison result according to the first level signal and the second level signal. The second calibration comparison circuit 42 is used to delay the second level signal by a preset time length, and obtain a second comparison result according to the first level signal and the second level signal after the delay by the preset time length. The first comparison result and the second comparison result constitute the signal delay calibration result.
[0070] In an illustrative embodiment, the first comparison result and the second comparison result can be represented by a level signal of "0" or "1". According to the composition of the logic devices in the specific circuits of the first calibration comparison circuit 41 and the second calibration comparison circuit 42, "0" can be used to represent consistent signals, and "1" can be used to represent opposite signals. For example, when the first comparison result is "0", it means that the second level signal is consistent with the first level signal, and when the first comparison result is "1", it means that the second level signal is opposite to the first level signal (the second level signal is delayed too much compared to the first level signal), and when the second comparison result is "0", it means that the second level signal is consistent with the first level signal after a preset delay, and when the second comparison result is "1", it means that the second level signal is opposite to the first level signal after a preset delay.
[0071] Figure 6 FIG. 1 is a schematic diagram of a circuit structure of a first calibration comparison circuit according to an exemplary embodiment. Figure 6As shown, the first calibration comparison circuit 41 includes a second register 411 and a first XOR gate 412. The input end of the second register 411 is connected to the timing delay circuit 2 to receive the second level signal, and the clock input end Clk of the second register 411 receives the clock reference signal. The two input ends of the first XOR gate 412 receive the first level signal and the output signal of the output end of the second register 411 respectively, and the output end of the first XOR gate 412 generates a first comparison result. In the exemplary embodiment, the second register 411 is a trigger, the output end of the second register 411 is the Q end of the trigger, and the input end of the second register 411 is the D end of the trigger.
[0072] Figure 7 FIG. 1 is a schematic diagram of a circuit structure of a second calibration comparison circuit according to an exemplary embodiment. Figure 7 As shown, in the exemplary embodiment, the second calibration comparison circuit 42 includes a delay module 421, a third register 422 and a second XOR gate 423. Among them, the delay module 421 is connected to the timing delay circuit 2 to receive the second level signal, and delays the second level signal by a preset time length to obtain a third level signal. The input end of the third register 422 is connected to the delay module 421 to receive the third level signal, and the clock input end Clk of the third register 422 receives the clock reference signal. The two input ends of the second XOR gate 423 receive the first level signal and the output signal of the output end of the third register 422 respectively, and the output end of the second XOR gate 423 generates a second comparison result. In the exemplary embodiment, the third register 422 is a trigger, the output end of the third register 422 is the Q end of the trigger, and the input end of the third register 422 is the D end of the trigger.
[0073] In the illustrative embodiment, in addition to the first calibration comparison circuit 41 and the second calibration comparison circuit 42, the delay calibration circuit 4 may also include more calibration comparison circuits. The second calibration comparison circuit 42 is composed of the first calibration comparison circuit 41 by adding a delay module 421 before the register. Based on this, if another calibration comparison circuit is added, the calibration comparison circuit can be composed of the second calibration comparison circuit 42 by adding a delay module before the register, and so on.
[0074] In an exemplary embodiment, the preset delay duration can be set as needed. Preferably, the preset delay duration is 1% to 20% of a cycle of the chip core clock signal. For example, for a 1.2 GHz to 1.3 GHz clock signal, the preset delay duration can be set to 30 ps (picoseconds).
[0075] Figure 8 FIG. 1 is a circuit structure diagram of a specific embodiment of a voltage drop protection device according to an exemplary embodiment. Figure 8 As shown, the specific embodiment mainly includes a first register 11, a NOT gate 12, a timing delay circuit 2, a first counter 31, a second counter 32, a counting comparison circuit 33, a shielding signal generating circuit 34, a second register 411, a first XOR gate 412, a delay module 421, a third register 422, a second XOR gate 423, a second delay module 431, a fourth register 432, and a third XOR gate 433.
[0076] The first register 11 is a trigger, and the clock input terminal Clk of the first register 11 is electrically connected to the signal line of the clock reference signal to receive the clock reference signal. The input terminal of the NOT gate 12 is connected to the output terminal of the first register 11, and the output terminal of the NOT gate 12 is connected to the input terminal of the first register 11. The first register 11 outputs a first level signal at its output terminal according to the clock reference signal received at its clock input terminal Clk.
[0077] The timing delay circuit 2 is electrically connected to the output end of the first register 11 , and is used to receive a first level signal and delay the first level signal to obtain a second level signal, wherein the second level signal is obtained after the first level signal is delayed by the timing delay circuit 2 .
[0078] The first counter 31 is electrically connected to the signal line of the clock reference signal and is used to count the change cycle of the clock reference signal to obtain a first count value. Figure 8 In the illustrated embodiment, the clock reference signal is used as the clock reference signal. The second counter 32 is electrically connected to the timing delay circuit 2, and is used to receive the second level signal and count the change period of the second level signal to obtain a second count value. The counting comparison circuit 33 is electrically connected to the first counter 31 and the second counter 32, and is used to compare the first count value and the second count value in the same time window. The shielding signal generating circuit 34 is electrically connected to the counting comparison circuit 33, and is used to generate and send a clock shielding signal when the difference obtained by comparing the first count value and the second count value in the same time window reaches a preset trigger threshold.
[0079] The second register 411 is a trigger. The input end of the second register 411 is electrically connected to the timing delay circuit 2 to receive the second level signal. The clock input end Clk of the second register 411 is electrically connected to the signal line of the clock reference signal to receive the clock reference signal. The two input ends of the first XOR gate 412 are electrically connected to the output end of the first register 11 and the output end of the second register 411, respectively. The first XOR gate 412 receives the first level signal and the output signal of the output end of the second register 411. According to the first level signal and the output signal of the output end of the second register 411, a first comparison result is generated at the output end of the first XOR gate 412.
[0080] The delay module 421 is connected to the timing delay circuit 2 to receive the second level signal, and delays the second level signal by a preset time length to obtain a third level signal. The third register 422 is a trigger, and the input end of the third register 422 is connected to the delay module 421 to receive the third level signal, and the clock input end Clk of the third register 422 receives the clock reference signal. The two input ends of the second XOR gate 423 are electrically connected to the output end of the first register 11 and the output end of the third register 422, respectively. The second XOR gate 423 receives the first level signal and the output signal of the output end of the third register 422, and generates a second comparison result at the output end of the second XOR gate 423 according to the first level signal and the output signal of the output end of the third register 422.
[0081] The second delay module 431 is connected to the delay module 421, receives the third level signal, and delays the third level signal again by a preset time length to obtain a fourth level signal. The fourth register 432 is a trigger, and the input end of the fourth register 432 is connected to the second delay module 431 to receive the fourth level signal, and the clock input end Clk of the fourth register 432 receives the clock reference signal. The two input ends of the third XOR gate 433 are respectively electrically connected to the output end of the first register 11 and the output end of the fourth register 432. The third XOR gate 433 receives the first level signal and the output signal of the output end of the fourth register 432, and generates a third comparison result at the output end of the third XOR gate 433 according to the first level signal and the output signal of the output end of the fourth register 432. In the exemplary embodiment, the delay time configured by the delay module 421 and the second delay module 431 is 30ps.
[0082] In adopting Figure 8When the voltage drop protection device of the embodiment shown is used, the clock reference signal is firstly introduced into the signal line of the clock reference signal, based on which, the first comparison result, the second comparison result and the third comparison result are generated, and the first comparison result, the second comparison result and the third comparison result are in the form of high and low levels of "1" and "0". The first comparison result, the second comparison result and the third comparison result are combined to form a three-bit signal delay calibration result. The representation form of the signal delay calibration result is, for example, "111", where the first "1" represents the first comparison result output by the first XOR gate 412, the second "1" represents the second comparison result output by the second XOR gate 423, and the third "1" represents the third comparison result output by the third XOR gate 433. The timing delay circuit 2 is configured with reference to the signal delay calibration result, and the configuration of the timing delay circuit 2 is completed when the signal delay calibration result appears "011", so that the timing delay circuit 2 is adapted to the chip core that needs to be shielded by the clock signal, wherein the first comparison result output by the first XOR gate 412 is "0", which means that under the current voltage, temperature, and clock reference signal, the delay of the second level signal relative to the first level signal is smaller, and the clock signal of the chip core can make the chip core work normally under the current voltage and temperature, wherein the second comparison result output by the second XOR gate 423 is "1", which means that under the current voltage, temperature, and clock reference signal, if the second level signal is delayed for a preset period of time, it will be inverted with the first level signal. It can be seen from the first comparison result of "0" and the second comparison result of "1" that when the preset delay period is known, the maximum delay that the second level signal can tolerate is the preset period. At the same time, since the second level signal represents the clock signal of the chip core, the maximum delay that the second level signal can tolerate also corresponds to the maximum delay that the clock signal of the chip core can tolerate.
[0083] A suitable trigger threshold is preset for the count comparison circuit 33. When the chip is powered on, the first counter 31 and the second counter 32 respectively count the change period of the clock reference signal and the change period of the second level signal in real time, and the count comparison circuit 33 compares the first count value and the second count value in the same time window in real time. When the chip does not switch from light load to heavy load, the difference between the first count value and the second count value in the same time window does not reach the trigger threshold, which means that the clock signal of the chip core represented by the delay of the second level signal does not reach the maximum delay that it can tolerate, which means that the chip core can operate normally under the current voltage and temperature. At this time, the shielding signal generating circuit 34 does not generate a clock shielding signal.
[0084] When the chip switches from light load to heavy load, the delay caused by the voltage drop to the second level signal may cause the difference between the first count value and the second count value in the same time window to reach the trigger threshold, which means that the clock signal of the chip core represented by the delay of the second level signal may reach its maximum tolerable delay, which means that the chip core may not be able to operate normally at the current temperature as the voltage drop further increases. At this time, the shielding signal generating circuit 34 generates a clock shielding signal and sends it to the clock and reset generator in the clock controller of the chip core, so that the clock and reset generator shields the clock signal in part of the clock cycle of the chip core under the action of the clock shielding signal, so as to reduce the working current of the chip core in real time, thereby indirectly reducing the voltage drop. Since it can bring the benefit of reducing the voltage drop, the voltage setting value of the system can be appropriately reduced. Although shielding the clock signal in part of the clock cycle of the chip core will sacrifice a small part of the clock cycle in the chip core when the voltage drop occurs, it will still obtain a larger VF benefit overall. Therefore, compared with the solution of the related art of increasing the voltage setting value from the outside of the chip, the voltage drop protection device of the embodiment of the present disclosure helps to save system power consumption and improve VF efficiency.
[0085] Fig. 9 It is a circuit structure diagram of another specific embodiment of a voltage drop protection device according to an exemplary embodiment. Fig. 9 The embodiment shown and Figure 8 Compared with the embodiment shown, the circuit structure is different only in that: Figure 8 In the embodiment shown, the first counter 31 is electrically connected to the signal line of the clock reference signal, and Fig. 9 The first counter 31 in the illustrated embodiment is electrically connected to the output terminal of the first register 11. Figure 8 The first counter 31 in the illustrated embodiment counts the change cycle of the clock reference signal in real time. Fig. 9 The first counter 31 in the illustrated embodiment counts the change period of the first level signal in real time. Fig. 9 In the embodiment shown, the first level signal is used as the clock reference signal. It is not difficult to see that the change period of the first level signal and the clock reference signal is 2 times, and every two change periods of the clock reference signal are equivalent to one change period of the first level signal. Therefore, the first level signal and the clock reference signal are substantially equivalent. In addition, Fig. 9 The embodiment shown and Figure 8 Compared with the embodiment shown, the trigger threshold involved in the shielding signal generating circuit 34 is different due to the difference between the first level signal and the clock reference signal.
[0086] Based on the voltage drop protection device of the embodiment of the present invention, there is no need to modify the clock and reset generator. It is only necessary to perform an AND operation on the original input signal of the clock and reset generator (for example, from an external clock source) and the clock shielding signal generated by the voltage drop protection device and then input them into the clock and reset generator. That is to say, an AND gate can be added to the input end of the clock and reset generator, and the original input signal of the clock and reset generator and the clock shielding signal generated by the voltage drop protection device of the embodiment of the present invention are respectively connected to the input end of the AND gate. When the clock shielding signal is "1", the clock and reset generator generates a clock signal of the chip core under the control of its original input signal. When the clock shielding signal is "0", the clock and reset generator is No clock signal is generated, and when the voltage drop caused by the instantaneous reduction of the power supply voltage causes a delay in the second level signal generated by the timing delay circuit, the difference between the first count value and the second count value in the same time window reaches the preset trigger threshold, and a clock shielding signal of "0" is generated, thereby shielding the clock signal of the clock and reset generator when the trigger threshold is "0". Because the clock signal is shielded when the trigger threshold is "0", the operating current of the chip core is correspondingly reduced, thereby indirectly reducing the voltage drop. Therefore, the chip core can still work normally at the moment of switching from light load to heavy load, which helps the chip core to obtain a larger VF benefit at the expense of a smaller clock cycle.
[0087] Fig.10 : is a schematic diagram of the comparison of voltage drop and clock frequency according to an exemplary embodiment. Among them, the non-linear dotted line represents the voltage drop change line when the voltage drop protection device of the embodiment of the present disclosure is adopted, and the solid line represents the voltage drop change line when the embodiment of the present disclosure is not adopted. Since the DIDT problem always exists, although it cannot be completely avoided, corresponding measures (such as the embodiment of the present disclosure) can be taken. When a voltage drop is detected, the current can be reduced in time by controlling the chip core clock signal so that the voltage drop no longer drops to the original minimum value, such as Fig.10As shown, for example, when the chip is overloaded instantly, the voltage should drop from 0.95V (the power supply voltage Vdd position, 0.95V is only an example, not an actual voltage value) to 0.8V (the bottom of the red line, 0.8V is only an example, not an actual voltage value). When the real-time voltage drop protection device of the present disclosure is used, it is detected when the voltage drops to 0.92V (only an example, not an actual voltage value) (that is, when the voltage drops to 0.92V, the number of cycles of the clock reference signal in the same unit time length is the same as that of the second voltage). The difference in the number of cycles of the flat signal reaches a preset trigger threshold), and the clock signal is immediately shielded (the clock signal in part of the clock cycle of the chip core is shielded by the clock shielding signal) so that the voltage finally drops to only 0.87V (for example only, not representing the actual voltage value), then the voltage setting value does not need to be set to 0.95V but can be set to a voltage lower than 0.95V, for example, it can be set to 0.87V (for example only, not representing the actual voltage value), etc., and the power consumption can be reduced by about 20% compared with the related art. Therefore, the technical solution disclosed in the present invention achieves a greater VF benefit on the basis of sacrificing a smaller clock cycle (the clock signal is shielded by a small percentage, which can be controlled within 10%).
[0088] Fig.11 FIG. 1 is a timing diagram of an unshielded clock signal and a shielded clock signal according to an exemplary embodiment. Fig.11 As shown, the unshielded clock signal is a continuous clock signal, but it will be delayed due to the voltage drop (the delay effect is not shown), and after the delay reaches a certain extent, the chip core may not work normally; the shielded clock signal will shield a part of the clock cycle in the continuous clock signal under the control of the clock shielding signal. From a smaller local range, the clock signal has certain omissions, but on the whole, this will not cause the chip core to shut down, and when the clock is shielded, the chip core reduces its working current due to a brief working stagnation, thereby indirectly reducing the voltage drop.
[0089] The present disclosure also provides a voltage drop protection method. Fig.12 As shown, the voltage drop protection method mainly includes the following steps 1201 to 1203.
[0090] Step 1201, receiving a clock reference signal and obtaining a first level signal according to the clock reference signal;
[0091] Step 1202: delay the first level signal to obtain a second level signal, wherein the delay of the second level signal increases with the increase of the voltage drop;
[0092] Step 1203, based on the difference between the number of cycles of the clock reference signal and the number of cycles of the second level signal within the same unit time length, a clock shielding signal is generated and sent to the CRG, wherein the clock shielding signal is used to shield the clock signal within a part of the clock cycles of the clock signal emitted by the CRG, so as to reduce the current change rate of the chip core of the clock signal emitted by the CRG after being shielded by the clock shielding signal, and the clock reference signal is one of the first level signal and the clock reference signal.
[0093] In an exemplary embodiment, the voltage drop protection method further includes:
[0094] When no voltage drop occurs, a signal delay calibration result is obtained according to the first level signal and the second level signal; and a delay of the first level signal is set according to the signal delay calibration result.
[0095] The specific operation methods of each step in the voltage drop protection method of the above embodiment can refer to the corresponding description of the voltage drop protection device of the above embodiment, which will not be repeated here.
[0096] The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A voltage drop protection device, characterized in that: include: A first level signal generating circuit, configured to receive a clock reference signal and obtain a first level signal according to the clock reference signal; A timing delay circuit, used for receiving the first level signal and delaying the first level signal to obtain a second level signal; A clock shielding circuit is used to generate a clock shielding signal based on the difference between the number of cycles of the clock reference signal and the number of cycles of the second level signal within the same unit time length, wherein the clock shielding signal is used to shield the clock signal within a part of the clock cycle of the chip core, and the clock reference signal is one of the first level signal and the clock reference signal.
2. The voltage drop protection device according to claim 1, characterized in that: The clock shielding circuit comprises: A first counter, used for counting a change period of the clock reference signal to obtain a first count value; A second counter, the second counter is electrically connected to the timing delay circuit, and is used to receive the second level signal and count the change period of the second level signal to obtain a second count value; a counting comparison circuit, configured to compare the first counting value and the second counting value within the same time window; and The shielding signal generating circuit is used to generate and send the clock shielding signal when the difference obtained by comparing the first count value and the second count value within the same time window reaches a preset trigger threshold.
3. The voltage drop protection device according to claim 1, characterized in that: The first level signal generating circuit comprises: a first register, wherein a clock input terminal of the first register receives the clock reference signal; A NOT gate, wherein the input end of the NOT gate is connected to the output end of the first register, and the output end of the NOT gate is connected to the input end of the first register.
4. The voltage drop protection device according to claim 1, characterized in that: The voltage drop protection device further comprises: A delay calibration circuit is used to obtain a signal delay calibration result associated with the timing delay circuit based on the first level signal and the second level signal, and the signal delay calibration result is used to configure the timing delay circuit to set the delay of the second level signal when no voltage drop occurs.
5. The voltage drop protection device according to claim 4, characterized in that: The delay calibration circuit at least comprises: A first calibration comparison circuit, configured to obtain a first comparison result according to the first level signal and the second level signal; a second calibration comparison circuit, configured to delay the second level signal for a preset time period, and obtain a second comparison result according to the first level signal and the second level signal after being delayed for the preset time period; The first comparison result and the second comparison result constitute the signal delay calibration result.
6. The voltage drop protection device according to claim 5, characterized in that: The first calibration comparison circuit comprises: A second register, wherein an input end of the second register is connected to the timing delay circuit to receive the second level signal, and a clock input end of the second register receives the clock reference signal; A first XOR gate, wherein two input terminals of the first XOR gate receive the first level signal and an output signal of an output terminal of the second register respectively, and an output terminal of the first XOR gate generates the first comparison result.
7. The voltage drop protection device according to claim 5, characterized in that: The second calibration comparison circuit comprises: A delay module, the delay module is connected to the timing delay circuit to receive the second level signal, and delays the second level signal by the preset time length to obtain a third level signal; A third register, wherein an input end of the third register is connected to the delay module to receive the third level signal, and a clock input end of the third register receives the clock reference signal; A second XOR gate, wherein two input terminals of the second XOR gate respectively receive the first level signal and an output signal of an output terminal of the third register, and an output terminal of the second XOR gate generates the second comparison result.
8. The voltage drop protection device according to claim 1, characterized in that: The timing delay circuit includes a plurality of delay control circuits which are connected in series on a clock signal path and are powered by a power supply voltage.
9. A voltage drop protection method, comprising: Receiving a clock reference signal and obtaining a first level signal according to the clock reference signal; Delaying the first level signal to obtain a second level signal, wherein the delay of the second level signal increases with an increase in the voltage drop; Based on the difference between the number of cycles of the clock reference signal and the number of cycles of the second level signal within the same unit time length, a clock shielding signal is generated and sent to the clock and reset generator CRG, wherein the clock shielding signal is used to shield the clock signal within a part of the clock cycles of the clock signal emitted by the CRG, so as to reduce the current change rate of the chip core of the clock signal emitted by the CRG and shielded by the clock shielding signal, and the clock reference signal is one of the first level signal and the clock reference signal.
10. The voltage drop protection method according to claim 9, characterized in that: The voltage drop protection method further includes: When no voltage drop occurs, obtaining a signal delay calibration result according to the first level signal and the second level signal; The delay of the first level signal is set according to the signal delay calibration result.
