Apparatus and method for monitoring power supply voltage of electronic circuit, and electronic circuit

By designing voltage regulators and sensing modules in electronic circuits to monitor and respond to power supply voltage drops, the problem of timing errors caused by power supply fluctuations is solved and the stable operation of electronic circuits is ensured.

WO2024188136A1PCT designated stage expired Publication Date: 2024-09-19BEIJING YOUZHUJU NETWORK TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080407
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-03-06
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

In electronic circuits, excessive current drawn by digital circuits during operation may cause an instant drop in the power supply voltage, leading to problems such as timing errors and digital circuit lock-up. It is difficult to effectively monitor and respond to power supply voltage fluctuations with existing technology.

Method used

A device and method including a voltage regulator, a critical timing generation module, a control signal conditioning module and a power supply drop sensing module are designed to generate a critical timing signal and a drop indication by generating a preset voltage based on an original clock signal and a delay control signal. signal, monitors whether the power supply voltage drops below the preset voltage, and dynamically adjusts the delay control signal to resist power supply fluctuations.

Benefits of technology

It achieves accurate monitoring of power supply voltage drops, avoids timing errors caused by power supply drops, and ensures the stable operation of electronic circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080407_19092024_PF_FP_ABST
    Figure CN2024080407_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide an apparatus and method for monitoring the power supply voltage of an electronic circuit, and an electronic circuit. The apparatus comprises: a voltage stabilizer, configured to process a power supply voltage to generate a preset voltage; a critical timing generation module, powered by means of the preset voltage and configured to generate a critical timing signal on the basis of an original clock signal and a delay control signal, the critical timing signal being alternately in a first level state and a second level state; a control signal adjustment module, configured to adjust the delay control signal on the basis of the critical timing signal, wherein the delay control signal is amplified when the critical timing signal is in the first level state, and the delay control signal is attenuated when the critical timing signal is in the second level state; and a power droop sensing module, powered by means of the power supply voltage and configured to generate a droop indication signal on the basis of the original clock signal and the delay control signal, the droop indication signal indicating whether the power supply voltage droops below the preset voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Device, method and electronic circuit for monitoring power supply voltage of electronic circuit

[0001] This application claims priority to the Chinese invention patent application entitled “Device, method and electronic circuit for monitoring the power supply voltage of an electronic circuit” and filed on March 13, 2023, with application number 202310260003.8, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] Example embodiments of the present disclosure generally relate to the field of electronic circuits, and more particularly, to an apparatus, method, and electronic circuit for monitoring a power supply voltage of an electronic circuit. Background Art

[0003] In the field of electronic circuits, clock signals are used to coordinate the actions of various electronic components, ensuring their synchronous operation. In integrated circuits, such as digital chips, digital circuits draw current from the power supply network during operation, causing power supply fluctuations. Excessive current draw can cause a momentary drop in the power supply voltage. Excessive voltage drops can disrupt the timing requirements of digital circuits, leading to timing errors and operational errors, which can lead to circuit lockup and other conditions.

[0004] Summary of the Invention

[0005] An object of the present disclosure is to provide an apparatus, a method, and an electronic circuit for monitoring the power supply voltage of an electronic circuit, so as to at least partially solve the above problems and other potential problems.

[0006] In a first aspect of the present disclosure, there is provided an apparatus for monitoring the power supply voltage of an electronic circuit, comprising: a voltage regulator configured to process the power supply voltage to generate a preset voltage; a critical timing generation module powered by the preset voltage and configured to generate a critical timing signal based on an original clock signal and a delay control signal, the critical timing signal being alternately in a first level state and a second level state; a control signal adjustment module configured to adjust the delay control signal based on the critical timing signal, wherein when the critical timing signal is in the first level state, the delay control signal is increased, and when the critical timing signal is in the second level state, the delay control signal is decreased; and a power drop sensing module powered by the power supply voltage and configured to generate a drop indication signal based on the original clock signal and the delay control signal, the drop indication signal indicating whether the power supply voltage drops below the preset voltage.

[0007] In a second aspect of the present disclosure, a method for monitoring the power supply voltage of an electronic circuit is provided, comprising: processing the power supply voltage to generate a preset voltage; generating a critical timing signal based on an original clock signal and a delay control signal at the preset voltage, the critical timing signal being alternately in a first level state and a second level state; adjusting the delay control signal based on the critical timing signal, wherein when the critical timing signal is in the first level state, the delay control signal is increased, and when the critical timing signal is in the second level state, the delay control signal is decreased; and generating a drop indication signal based on the original clock signal and the delay control signal at the power supply voltage, the drop indication signal indicating whether the power supply voltage drops below the preset voltage.

[0008] In a third aspect of the present disclosure, an electronic circuit is provided, comprising the apparatus according to the first aspect of the present disclosure.

[0009] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0011] FIG1 shows a block diagram of an apparatus for monitoring a power supply voltage of an electronic circuit according to an embodiment of the present disclosure;

[0012] FIG2 shows a circuit schematic diagram of an apparatus for monitoring the power supply voltage of an electronic circuit according to an embodiment of the present disclosure;

[0013] FIG3 shows curves of a power supply voltage, a preset voltage, a state machine lock signal, a critical timing signal, and a drop indication signal according to an embodiment of the present disclosure;

[0014] FIG4 shows a flow chart of a method for monitoring a power supply voltage of an electronic circuit according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0015] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0016] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below.

[0017] As mentioned above, when the digital circuit is working, it will draw current from the power supply network, causing power supply fluctuations; when the drawn current is too large, it may cause a momentary drop in the power supply voltage; if the amplitude of the power supply voltage drop is too large, the timing requirements of the digital circuit cannot be met, and a timing error occurs. An embodiment of the present disclosure provides a scheme for monitoring the power supply voltage of an electronic circuit, in which the timing of a digital logic circuit is in a critical error state under a stable preset voltage, while another similar digital logic circuit is operated at the power supply voltage to be monitored. When the power supply voltage to be monitored is lower than the preset voltage, the other digital logic circuit will generate an indication signal representing that the power supply voltage has dropped too much. In this way, the drop in the power supply voltage can be accurately monitored so that the electronic circuit can take corresponding countermeasures to avoid timing errors caused by the power supply drop. The principles of the present disclosure will be described in detail below in conjunction with Figures 1 to 4.

[0018] Figure 1 shows a block diagram of an apparatus for monitoring the power supply voltage of an electronic circuit according to one embodiment of the present disclosure, and Figure 2 shows a schematic circuit diagram of an apparatus for monitoring the power supply voltage of an electronic circuit according to one embodiment of the present disclosure. As shown in Figures 1 and 2, the apparatus described herein generally includes a voltage regulator 10, a critical timing generation module 20, a control signal adjustment module 30, and a power sag sensing module 40.

[0019] The voltage regulator 10 is used to process the power supply voltage vdd to generate a preset voltage vdroop. The preset voltage vdroop can be a voltage pre-set according to the design requirements of the electronic circuit, which serves as the limit value for the power supply drop to be monitored. In other words, when the power supply voltage vdd is above the preset voltage vdroop, it means that the timing requirements of the electronic circuit can be basically met; when the power supply voltage vdd drops below the preset voltage vdroop, it means that the timing requirements of the digital circuit cannot be met, and timing errors may occur. Whether the power supply voltage vdd drops below the preset voltage vdroop can be monitored by the critical timing generation module 20, the control signal adjustment module 30, and the power supply drop sensing module 40, which will be described in detail below.

[0020] As an example, when the power supply voltage vdd is 1V, the preset voltage vdroop can be preset to 0.8V. Of course, depending on the design requirements of the electronic circuit, the preset voltage vdroop can also be set higher or lower than 0.8V. It should be noted that the numbers, values, etc. mentioned here and elsewhere in this disclosure are exemplary and are not intended to limit the scope of this disclosure in any way. Any other appropriate numbers and values ​​are possible.

[0021] The voltage regulator 10 can use any appropriate voltage regulation technology to process the power supply voltage VDD. For example, in one embodiment, the voltage regulator 10 can include a low-dropout linear regulator (LDO), as shown in FIG2 . The LDO includes a low-pass filter 101, an amplifier 102, a transistor 103, and a capacitor 104. The low-pass filter 101 is used to perform low-pass filtering on the power supply voltage VDD to remove high-frequency components in the power supply voltage VDD, thereby generating a filtered voltage Vref. The filtered voltage Vref is provided to a first input terminal of the amplifier 102. The transistor 103 and the capacitor 104 are connected in series between the power supply voltage VDD and ground. The transistor 103 can be a metal oxide semiconductor field effect transistor (MOSFET) or other type of switching device, which is not limited in the embodiments of the present disclosure. The control terminal of the transistor 103 is connected to the output terminal of the amplifier 102. The intermediate node between the transistor 103 and the capacitor 104 is connected to the second input terminal of the amplifier 102. The preset voltage Vdroop is provided by the intermediate node between the transistor 103 and the capacitor 104. With this arrangement, the voltage regulator 10 is able to provide a stable preset voltage vdroop that is substantially unaffected by fluctuations in the power supply voltage vdd.

[0022] Figure 3 shows a curve 301 of the power supply voltage VDD and a curve 302 of the preset voltage VDROP, according to one embodiment of the present disclosure. As shown in Figure 3 , the power supply voltage VDD fluctuates, while the preset voltage VDROP remains at a substantially stable level. The power supply voltage VDD curve 301 includes multiple dips 3011, 3012, and 3013 below the preset voltage VDROP. Each of these dips 3011, 3012, and 3013 is monitored by the critical timing generation module 20, the control signal conditioning module 30, and the power supply droop sensing module 40, as described in detail below.

[0023] It should be understood that the above description is merely an example and is not intended to limit the embodiments of the present disclosure in any way. Any voltage regulation technology currently known or developed in the future can be used in combination with the embodiments of the present disclosure to generate the preset voltage vdroop.

[0024] As shown in Figures 1 and 2, the critical timing generation module 20 is connected to the output of the voltage regulator 10 so as to be powered by a preset voltage vdroop. That is, the critical timing generation module 20 operates at the preset voltage vdroop. The critical timing generation module 20 is configured to generate the critical timing signal DIR based on the original clock signal clk and the delay control signal cal_code provided by the control signal adjustment module 30. The original clock signal clk can have any suitable duty cycle, for example, a duty cycle of 50%. Of course, the duty cycle of the original clock signal clk can also be higher or lower than 50%. The delay control signal cal_code is provided by the control signal adjustment module 30 and is used to control the delay of the delay cells in the critical timing generation module 20, such as the delay of the first delay cell 202, as will be described in detail below. A larger delay control signal cal_code increases the delay of the delay cell. Conversely, a smaller delay control signal cal_code decreases the delay of the delay cell.

[0025] Under the preset voltage vdroop, the critical timing signal DIR generated by the critical timing generation module 20 can be controlled by the delay control signal cal_code to alternate between a first level state and a second level state. The first level state and the second level state are relative level states. In one embodiment, the first level state is a high level state, and the second level state is a low level state. In another embodiment, the first level state is a low level state, and the second level state is a high level state. The alternation of the critical timing signal DIR between the first level state and the second level state means that the timing of the critical timing generation module 20 under the preset voltage vdroop is in a critical error state. In other words, the timing of the critical timing generation module 20 under the preset voltage vdroop can meet the requirements, but there is no further adjustment margin. If the operating voltage of the critical timing generation module 20 is lower than the preset voltage vdroop, a timing error will occur in the critical timing generation module 20.

[0026] The principle of the present disclosure is described below by taking the first level state being a high level state and the second level state being a low level state as an example.

[0027] In one embodiment, as shown in FIG. 2 , the critical timing generation module 20 includes a first frequency divider 201 , a first delay unit 202 , and a timing determination unit 203 .

[0028] The first frequency divider 201 is used to divide the original clock signal clk to generate a first divided signal clk_div1. The first frequency divider 201 can have any appropriate division ratio, such as divide-by-two, divide-by-four, etc. The first divided signal clk_div1 generated by the first frequency divider 201 has a duty cycle of 50%.

[0029] The first delay unit 202 is configured to delay the first frequency-divided signal clk_div1 to generate a first delayed signal clk_div_dly1. The delay provided by the first delay unit 202 is controlled by a delay control signal cal_code. Theoretically, when the delay control signal cal_code is 0, the delay provided by the first delay unit 202 is 0. A larger delay control signal cal_code indicates a greater delay provided by the first delay unit 202. Conversely, a smaller delay control signal cal_code indicates a smaller delay provided by the first delay unit 202.

[0030] The timing determination unit 203 is configured to generate a critical timing signal DIR based on the phase relationship between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1. In some embodiments, the timing determination unit 203 may include a first phase detector 2031 and a first inverter 2032. The first phase detector 2031 is configured to identify the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 to generate a first phase detection signal P1 representing the phase difference. The first phase detection signal P1 is inverted by the first inverter 2032 to generate a first inverted signal P1_B. In one embodiment, the first inverted signal P1_B serves as the critical timing signal DIR. When the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 is half a cycle, the first phase detection signal P1 is high, while the first inverted signal P1_B is low. Therefore, the critical timing signal DIR is low, i.e., the second level state. When the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 does not reach half a cycle, the first phase detection signal P1 is in a low state, while the first inverted signal P1_B is in a high state. Therefore, the critical timing signal DIR is in a high state, that is, a first level state.

[0031] In an embodiment of the present disclosure, the first phase-locked signal P1 can also be used as the critical timing signal DIR. In such an embodiment, the first level state will be a low level state, and the second level state will be a high level state. Specifically, when the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 is half a cycle, the first phase-locked signal P1 is in a high level state. Therefore, the critical timing signal DIR is in a high level state, that is, the second level state. When the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 does not reach half a cycle, the first phase-locked signal P1 is in a low level state. Therefore, the critical timing signal DIR is in a low level state, that is, the first level state.

[0032] FIG3 shows a curve 304 of a critical timing signal DIR according to an embodiment of the present disclosure. As shown in FIG3 , the critical timing signal DIR is alternately in a first level state and a second level state, wherein the first level state is one of a high level state and a low level state, and the second level state is the other of the high level state and the low level state.

[0033] The control signal adjustment module 30 is configured to adjust the delay control signal cal_code based on the critical timing signal DIR to dynamically adjust the delay provided by the first delay unit 202. When the critical timing signal DIR is at a first level, the delay control signal cal_code is increased, and when the critical timing signal DIR is at a second level, the delay control signal cal_code is decreased. As described above, the critical timing signal DIR being at the first level means that the phases of the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 do not differ by half a cycle, while the critical timing signal DIR being at the second level means that the phases of the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 do differ by half a cycle. When the phases of the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 do not differ by half a cycle, increasing the delay control signal cal_code will increase the delay provided by the first delay unit 202. When the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 is half a cycle, reducing the delay control signal cal_code will reduce the delay provided by the first delay unit 202. In this way, the critical timing signal DIR can be alternately in a first level state and a second level state. In other words, by dynamically adjusting the delay control signal cal_code based on the critical timing signal DIR, the timing of the critical timing generation module 20 at the preset voltage vdroop can be in a critical error state.

[0034] In some embodiments, the control signal adjustment module 30 includes a digital state machine having a first adjustment state for increasing the delay control signal cal_code and a second adjustment state for decreasing the delay control signal cal_code. When the critical timing signal DIR is in a first level state, the digital state machine will switch to the first adjustment state to increase the delay provided by the first delay unit 202. When the critical timing signal DIR is in a second level state, the digital state machine will switch to the second adjustment state to decrease the delay provided by the first delay unit 202. FIG3 also shows a curve 303 of the state machine lock signal. As shown in FIG3, when the critical timing signal DIR alternates, the state machine lock signal will be enabled, causing the digital state machine to cyclically switch between the first adjustment state and the second adjustment state. In addition, as shown in FIG3, the pulse width of the critical timing signal DIR changes dynamically. This is because by dynamically adjusting the delay control signal cal_code, it is possible to resist process-voltage-temperature (PVT) deviations of the electronic circuit.

[0035] As shown in Figures 1 and 2, the power drop sensing module 40 is powered by the power supply voltage vdd. That is, the power drop sensing module 40 operates at the power supply voltage vdd. The power drop sensing module 40 is connected to the control signal conditioning module 30 to receive the delayed control signal cal_code generated by the control signal conditioning module 30. The power drop sensing module 40 is configured to generate a drop indication signal ERR based on the original clock signal clk and the delayed control signal cal_code. The drop indication signal ERR indicates whether the power supply voltage vdd has dropped below the preset voltage vdroop. As described above, the critical timing generation module 20's timing at the preset voltage vdroop meets the requirements, but there is no further adjustment margin. If the operating voltage of the critical timing generation module 20 is lower than the preset voltage vdroop, a timing error will occur in the critical timing generation module 20. By providing the same delayed control signal cal_code to the power drop sensing module 40 and determining whether the timing error of the control power drop sensing module 40 at the power supply voltage vdd has occurred, it is possible to determine whether the power supply voltage vdd has dropped below the preset voltage vdroop. The power drop indication signal ERR may be used as an alarm signal to instruct the electronic circuit to take corresponding countermeasures to avoid timing errors caused by power drop.

[0036] In one embodiment, the power drop sensing module 40 includes a second frequency divider 401 , a second delay unit 402 , and a power drop determining module 403 .

[0037] The second frequency divider 401 is used to divide the original clock signal clk to generate a second divided signal clk_div2. The second frequency divider 401 can have any suitable division ratio, such as divide-by-two or divide-by-four. The second divided signal clk_div2 generated by the second frequency divider 401 has a duty cycle of 50%. In some embodiments, the second frequency divider 401 and the first frequency divider 201 can have the same division ratio.

[0038] The second delay unit 402 is used to delay the second frequency-divided signal clk_div2 to generate a second delayed signal clk_div_dly2. The delay amount provided by the second delay unit 402 is also controlled by the delay control signal cal_code. Since the same delay control signal cal_code is provided to the first delay unit 202 and the second delay unit 402, the first delay unit 202 and the second delay unit 402 have similar delay characteristics. The larger the delay control signal cal_code, the greater the delay amount provided by the second delay unit 402. Conversely, the smaller the delay control signal cal_code, the smaller the delay amount provided by the second delay unit 402. In some embodiments, the second delay unit 402 and the first delay unit 202 can have the same circuit structure. In some embodiments, the delay amount provided by the second delay unit 402 and the first delay unit 202 can change substantially synchronously with the delay control signal cal_code.

[0039] The delay of a delay cell is also related to its operating voltage. A higher operating voltage reduces the delay provided by the delay cell, while a lower operating voltage increases the delay provided by the delay cell. Therefore, if the power supply voltage VDD is higher than the preset voltage VDROP at a certain moment, the delay provided by the second delay cell 402 will be lower than the delay provided by the first delay cell 202. Conversely, if the power supply voltage VDD is lower than the preset voltage VDROP at a certain moment, the delay provided by the second delay cell 402 will be higher than the delay provided by the first delay cell 202.

[0040] The power sag detection module 403 is configured to generate a power sag indication signal ERR based on the phase relationship between the second frequency-divided signal clk_div2 and the second delayed signal clk_div_dly2. In some embodiments, the power sag detection module 403 may include a second phase detector 4031 and a second inverter 4032. The second phase detector 4031 is configured to identify the phase difference between the second frequency-divided signal clk_div2 and the second delayed signal clk_div_dly2 to generate a second phase detection signal P2 indicating the phase difference. The second phase detection signal P2 is inverted by the second inverter 4032 to generate a second inverted signal P2_B.

[0041] If the phase difference between the second divided signal clk_div2 and the second delayed signal clk_div_dly2 does not reach half a cycle, the second phase detection signal P2 will be in a low state, while the second inverted signal P2_B will be in a high state. For example, if the power supply voltage vdd is higher than the preset voltage vdroop at a certain moment, the delay provided by the second delay unit 402 will be lower than the delay provided by the first delay unit 202, so that the phase difference between the second divided signal clk_div2 and the second delayed signal clk_div_dly2 does not reach half a cycle. As a result, the second phase detection signal P2 will be in a low state, while the second inverted signal P2_B will be in a high state. If the phase difference between the second divided signal clk_div2 and the second delayed signal clk_div_dly2 does reach half a cycle, the second phase detection signal P2 will be in a high state, while the second inverted signal P2_B will be in a low state. For example, if the power supply voltage vdd is lower than the preset voltage vdroop at a certain moment, the delay provided by the second delay unit 402 will be higher than the delay provided by the first delay unit 202, so that the phases of the second divided signal clk_div2 and the second delayed signal clk_div_dly2 will have experienced a phase difference of half a cycle, and thus the second phase detection signal P2 will be in a high level state, and the second inverted signal P2_B will be in a low level state.

[0042] In one embodiment, the second phase detection signal P2 serves as a voltage drop indication signal ERR. In such an embodiment, when the power supply voltage VDD is higher than a preset voltage VDROP, the voltage drop indication signal ERR is low. When the power supply voltage VDD drops below the preset voltage VDROP, the voltage drop indication signal ERR is high. As shown in FIG3 , when the power supply voltage VDD is higher than the preset voltage VDROP, the voltage drop indication signal ERR is low. When the power supply voltage VDD drops below the preset voltage VDROP in multiple portions 3011, 3012, and 3013, the voltage drop indication signal ERR exhibits multiple high abnormality indication portions 3051, 3052, and 3053. This allows accurate monitoring of voltage drop in the power supply voltage VDD, allowing the electronic circuit to take appropriate countermeasures to prevent timing errors caused by power drop.

[0043] In one embodiment, the second inverted signal P2_B functions as the voltage drop indication signal ERR. In such an embodiment, when the power supply voltage vdd is higher than a predetermined voltage vdroop, the voltage drop indication signal ERR is high. When the power supply voltage vdd drops below the predetermined voltage vdroop, the voltage drop indication signal ERR is low. Using such an embodiment, a drop in the power supply voltage vdd can also be accurately monitored.

[0044] The embodiments of the present disclosure further provide a method 400 for monitoring the power supply voltage of an electronic circuit, as shown in Figure 4. The method 400 may be executed by the apparatus for monitoring the power supply voltage of an electronic circuit described above in conjunction with Figures 1 to 3 . As shown in FIG4 , the method 400 includes: in block 410 , processing a power supply voltage vdd to generate a preset voltage vdroop; in block 420 , generating a critical timing signal DIR based on an original clock signal clk and a delay control signal cal_code at the preset voltage vdroop, the critical timing signal DIR being alternately in a first level state and a second level state; in block 430 , adjusting the delay control signal cal_code based on the critical timing signal DIR, wherein when the critical timing signal DIR is in the first level state, the delay control signal cal_code is increased, and when the critical timing signal DIR is in the second level state, the delay control signal cal_code is decreased; and in block 440 , generating a drop indication signal ERR based on the original clock signal clk and the delay control signal cal_code at the power supply voltage vdd, the drop indication signal ERR indicating whether the power supply voltage vdd drops below the preset voltage vdroop.

[0045] In some embodiments, generating the critical timing signal DIR based on the original clock signal clk and the delay control signal cal_code includes: dividing the original clock signal clk to generate a first divided signal clk_div1; delaying the first divided signal clk_div1 to generate a first delayed signal clk_div_dly1, wherein the delay amount of the first divided signal clk_div1 is controlled by the delay control signal cal_code; and generating the critical timing signal DIR based on the phase relationship between the first divided signal clk_div1 and the first delayed signal clk_div_dly1, wherein when the phase difference between the first divided signal clk_div1 and the first delayed signal clk_div_dly1 is half a cycle, the critical timing signal DIR is in a second level state, and when the phase difference between the first divided signal clk_div1 and the first delayed signal clk_div_dly1 does not reach half a cycle, the critical timing signal DIR is in a first level state.

[0046] In some embodiments, generating the critical timing signal DIR based on the phase relationship between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 includes: identifying the phase difference between the first frequency-divided signal clk_div1 and the first delayed signal clk_div_dly1 to generate a first phase-detection signal P1 for representing the phase difference, wherein the first phase-detection signal P1 or an inverted signal of the first phase-detection signal P1 is used as the critical timing signal DIR.

[0047] In some embodiments, generating the drop indication signal ERR based on the original clock signal clk and the delay control signal cal_code includes: dividing the original clock signal clk to generate a second divided signal clk_div2; delaying the second divided signal clk_div2 to generate a second delayed signal clk_div_dly2, wherein the delay amount of the second divided signal clk_div2 is controlled by the delay control signal cal_code; and generating the drop indication signal ERR based on the phase relationship between the second divided signal clk_div2 and the second delayed signal clk_div_dly2.

[0048] In some embodiments, generating the drop indication signal ERR based on the phase relationship between the second frequency-divided signal clk_div2 and the second delayed signal clk_div_dly2 includes: identifying the phase difference between the second frequency-divided signal clk_div2 and the second delayed signal clk_div_dly2 to generate a second phase-detection signal P2 for indicating the phase difference, wherein the second phase-detection signal P2 or an inverted signal of the second phase-detection signal P2 is used as the drop indication signal ERR.

[0049] In some embodiments, the adjustment of the delay control signal cal_code is implemented by a digital state machine, which includes a first adjustment state for increasing the delay control signal cal_code and a second adjustment state for decreasing the delay control signal cal_code, wherein when the critical timing signal DIR is in a first level state, the digital state machine switches to the first adjustment state, and when the critical timing signal DIR is in a second level state, the digital state machine switches to the second adjustment state.

[0050] The embodiments of the present disclosure are also embodied in the following examples.

[0051] Example 1. An apparatus for monitoring a power supply voltage of an electronic circuit, comprising:

[0052] a voltage regulator configured to process the power supply voltage to generate a preset voltage;

[0053] a critical timing generation module, powered by the preset voltage and configured to generate a critical timing signal based on the original clock signal and the delay control signal, wherein the critical timing signal is alternately in a first level state and a second level state;

[0054] a control signal adjustment module configured to adjust the delay control signal based on the critical timing signal, wherein when the critical timing signal is in the first level state, the delay control signal is increased, and when the critical timing signal is in the second level state, the delay control signal is decreased; and

[0055] A power drop sensing module is powered by the power supply voltage and is configured to generate a drop indication signal based on the original clock signal and the delay control signal, wherein the drop indication signal indicates whether the power supply voltage drops below the preset voltage.

[0056] Example 2. The apparatus of Example 1, wherein the critical timing generation module comprises:

[0057] a first frequency divider configured to divide the original clock signal to generate a first frequency-divided signal;

[0058] a first delay unit configured to delay the first frequency-divided signal to generate a first delayed signal, wherein a delay amount provided by the first delay unit is controlled by the delay control signal; and

[0059] a timing determination unit configured to generate the critical timing signal based on a phase relationship between the first frequency-divided signal and the first delayed signal, wherein when the phase difference between the first frequency-divided signal and the first delayed signal is half a cycle, the critical timing signal is in the second level state, and when the phase difference between the first frequency-divided signal and the first delayed signal does not reach half a cycle, the critical timing signal is in the first level state.

[0060] Example 3. The apparatus of Example 2, wherein the timing determination unit comprises:

[0061] A first phase detector is configured to identify a phase difference between the first frequency-divided signal and the first delayed signal to generate a first phase detection signal representing the phase difference, wherein the first phase detection signal or an inverted signal of the first phase detection signal is used as the critical timing signal.

[0062] Example 4. The apparatus of Example 2, wherein the power drop sensing module comprises:

[0063] a second frequency divider configured to divide the original clock signal to generate a second frequency-divided signal;

[0064] a second delay unit configured to delay the second frequency-divided signal to generate a second delayed signal, wherein the delay amount provided by the second delay unit is controlled by the delay control signal; and

[0065] The power drop determination module is configured to generate the power drop indication signal based on a phase relationship between the second frequency-divided signal and the second delayed signal.

[0066] Example 5. The apparatus of Example 4, wherein the power drop determination module comprises:

[0067] The second phase detector is configured to identify the phase difference between the second frequency-divided signal and the second delayed signal to generate a second phase detection signal representing the phase difference, wherein the second phase detection signal or an inverted signal of the second phase detection signal is used as the drop indication signal.

[0068] Example 6. The apparatus of Example 4, wherein the second frequency divider and the first frequency divider have the same division ratio.

[0069] Example 7. The apparatus of Example 4, wherein the second delay unit and the first delay unit have the same circuit structure.

[0070] Example 8. An apparatus according to Example 1, wherein the control signal adjustment module includes a digital state machine having a first adjustment state for increasing the delay control signal and a second adjustment state for decreasing the delay control signal, wherein when the critical timing signal is in the first level state, the digital state machine switches to the first adjustment state, and when the critical timing signal is in the second level state, the digital state machine switches to the second adjustment state.

[0071] Example 9. The apparatus of example 1, wherein the voltage regulator comprises:

[0072] a low-pass filter configured to perform low-pass filtering on the power supply voltage to generate a filtered voltage;

[0073] an amplifier having a first input terminal receiving the filtered voltage; and

[0074] A transistor and a capacitor are connected in series between the power supply voltage and ground, the control end of the transistor is connected to the output end of the amplifier, the intermediate node between the transistor and the capacitor is connected to the second input end of the amplifier, and the intermediate node provides the preset voltage.

[0075] Example 10. A method for monitoring a power supply voltage of an electronic circuit, comprising:

[0076] processing the power supply voltage to generate a preset voltage;

[0077] generating a critical timing signal based on the original clock signal and the delay control signal under the preset voltage, wherein the critical timing signal is alternately in a first level state and a second level state;

[0078] adjusting the delay control signal based on the critical timing signal, wherein the delay control signal is increased if the critical timing signal is in the first level state, and the delay control signal is decreased if the critical timing signal is in the second level state; and

[0079] At the power supply voltage, a drop indication signal is generated based on the original clock signal and the delay control signal, wherein the drop indication signal indicates whether the power supply voltage drops below the preset voltage.

[0080] Example 11. The method of Example 10, wherein generating the critical timing signal based on the original clock signal and the delay control signal comprises:

[0081] Frequency-dividing the original clock signal to generate a first frequency-divided signal;

[0082] delaying the first frequency-divided signal to generate a first delayed signal, wherein the delay amount of the first frequency-divided signal is controlled by the delay control signal; and

[0083] The critical timing signal is generated based on a phase relationship between the first frequency-divided signal and the first delayed signal, wherein when the phase difference between the first frequency-divided signal and the first delayed signal is half a cycle, the critical timing signal is in the second level state, and when the phase difference between the first frequency-divided signal and the first delayed signal does not reach half a cycle, the critical timing signal is in the first level state.

[0084] Example 12. The method of Example 11, wherein generating the critical timing signal based on a phase relationship between the first frequency-divided signal and the first delayed signal comprises:

[0085] A phase difference between the first frequency-divided signal and the first delayed signal is identified to generate a first phase detection signal representing the phase difference, wherein the first phase detection signal or an inverted signal of the first phase detection signal is used as the critical timing signal.

[0086] Example 13. The method of Example 11, wherein generating a sag indication signal based on the original clock signal and the delay control signal comprises:

[0087] dividing the original clock signal to generate a second frequency-divided signal;

[0088] delaying the second frequency-divided signal to generate a second delayed signal, wherein an amount of delay of the second frequency-divided signal is controlled by the delay control signal; and

[0089] The drop indication signal is generated based on a phase relationship between the second frequency-divided signal and the second delayed signal.

[0090] Example 14. The method of Example 13, wherein generating the sag indication signal based on a phase relationship between the second frequency-divided signal and the second delayed signal comprises:

[0091] A phase difference between the second frequency-divided signal and the second delayed signal is identified to generate a second phase detection signal indicating the phase difference, wherein the second phase detection signal or an inverted signal of the second phase detection signal is used as the drop indication signal.

[0092] Example 15. A method according to Example 10, wherein the adjustment of the delay control signal is implemented by a digital state machine, the digital state machine including a first adjustment state for increasing the delay control signal and a second adjustment state for decreasing the delay control signal, wherein when the critical timing signal is in the first level state, the digital state machine switches to the first adjustment state, and when the critical timing signal is in the second level state, the digital state machine switches to the second adjustment state.

[0093] Example 16. An electronic circuit comprising a device according to any one of Examples 1 to 9.

[0094] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A device for monitoring the power supply voltage of an electronic circuit, comprising: A voltage regulator (10) configured to process the power supply voltage to generate a preset voltage; A critical timing generation module (20), powered by the preset voltage, and configured to generate a critical timing signal based on the original clock signal and the delay control signal, wherein the critical timing signal is alternately in a first level state and a second level state; a control signal adjustment module (30) configured to adjust the delay control signal based on the critical timing signal, wherein when the critical timing signal is in the first level state, the delay control signal is increased, and when the critical timing signal is in the second level state, the delay control signal is decreased; as well as A power drop sensing module (40) is powered by the power supply voltage and is configured to generate a drop indication signal based on the original clock signal and the delay control signal, wherein the drop indication signal indicates whether the power supply voltage drops below the preset voltage.

2. The apparatus according to claim 1, wherein the critical timing generation module (20) comprises: A first frequency divider (201) configured to divide the original clock signal to generate a first frequency-divided signal; A first delay unit (202) configured to delay the first frequency-divided signal to generate a first delayed signal, wherein the delay amount provided by the first delay unit (202) is controlled by the delay control signal; as well as The timing determination unit (203) is configured to generate the critical timing signal based on the phase relationship between the first frequency-divided signal and the first delayed signal, wherein when the phase difference between the first frequency-divided signal and the first delayed signal is half a cycle, the critical timing signal is in the second level state, and when the phase difference between the first frequency-divided signal and the first delayed signal does not reach half a cycle, The critical timing signal is in the first level state.

3. The apparatus according to claim 2, wherein the timing determination unit (203) comprises: A first phase detector (2031) is configured to identify a phase difference between the first frequency-divided signal and the first delayed signal to generate a first phase detection signal representing the phase difference, wherein the first phase detection signal or an inverted signal of the first phase detection signal is used as the critical timing signal.

4. The device according to claim 2, wherein the power drop sensing module (40) comprises: A second frequency divider (401) configured to divide the original clock signal to generate a second frequency-divided signal; a second delay unit (402) configured to delay the second frequency-divided signal to generate a second delayed signal, wherein the delay amount provided by the second delay unit (402) is controlled by the delay control signal; and The power drop determination module (403) is configured to generate the power drop indication signal based on the phase relationship between the second frequency-divided signal and the second delayed signal.

5. The device according to claim 4, wherein the power drop determination module (403) comprises: The second phase detector (4031) is configured to identify the phase difference between the second frequency-divided signal and the second delayed signal to generate a second phase detection signal representing the phase difference, wherein the second phase detection signal or an inverted signal of the second phase detection signal is used as the drop indication signal.

6. The apparatus according to claim 4, wherein the second frequency divider (401) and the first frequency divider (201) have the same frequency division ratio.

7. The apparatus according to claim 4, wherein the second delay unit (402) and the first delay unit (202) have the same circuit structure.

8. The device according to claim 1, wherein the control signal adjustment module (30) includes a digital state machine, the digital state machine having a first adjustment state for increasing the delay control signal and a second adjustment state for decreasing the delay control signal, wherein when the critical timing signal is in the first level state, the digital state machine switches to the first adjustment state, and when the critical timing signal is in the second level state, the digital state machine switches to the second adjustment state.

9. The device according to claim 1, wherein the voltage regulator (10) comprises: A low-pass filter (101) configured to perform low-pass filtering on the power supply voltage to generate a filtered voltage; an amplifier (102) having a first input terminal receiving the filtered voltage; and A transistor (103) and a capacitor (104) are connected in series between the power supply voltage and ground, a control terminal of the transistor (103) is connected to the output terminal of the amplifier (102), an intermediate node between the transistor (103) and the capacitor (104) is connected to the second input terminal of the amplifier (102), and the intermediate node provides the preset voltage.

10. A method for monitoring a power supply voltage of an electronic circuit, comprising: Processing the power supply voltage to generate a preset voltage; Under the preset voltage, a critical timing signal is generated based on the original clock signal and the delay control signal, wherein the critical timing signal is alternately in a first level state and a second level state; adjusting the delay control signal based on the critical timing signal, wherein the delay control signal is increased when the critical timing signal is in the first level state, and the delay control signal is decreased when the critical timing signal is in the second level state; as well as Under the power supply voltage, a drop indication signal is generated based on the original clock signal and the delay control signal, wherein the drop indication signal indicates whether the power supply voltage drops below the preset voltage.

11. The method according to claim 10, wherein generating a critical timing signal based on the original clock signal and the delay control signal comprises: Frequency-dividing the original clock signal to generate a first frequency-divided signal; The first frequency-divided signal is delayed to generate a first delayed signal, wherein The delay amount of the first frequency-divided signal is controlled by the delay control signal; and The critical timing signal is generated based on the phase relationship between the first frequency-divided signal and the first delayed signal, wherein when the phases of the first frequency-divided signal and the first delayed signal differ by half a cycle, the critical timing signal is in the second level state, and when the phases of the first frequency-divided signal and the first delayed signal do not differ by half a cycle, the critical timing signal is in the first level state.

12. The method according to claim 11, wherein generating the critical timing signal based on the phase relationship between the first frequency-divided signal and the first delayed signal comprises: A phase difference between the first frequency-divided signal and the first delayed signal is identified to generate a first phase detection signal representing the phase difference, wherein the first phase detection signal or an inverted signal of the first phase detection signal is used as the critical timing signal.

13. The method according to claim 11, wherein generating a droop indication signal based on the original clock signal and the delay control signal comprises: Frequency-dividing the original clock signal to generate a second frequency-divided signal; delaying the second frequency-divided signal to generate a second delayed signal, wherein the delay amount of the second frequency-divided signal is controlled by the delay control signal; and The drop indication signal is generated based on a phase relationship between the second frequency-divided signal and the second delayed signal.

14. The method according to claim 13, wherein generating the drop indication signal based on the phase relationship between the second frequency-divided signal and the second delayed signal comprises: A phase difference between the second frequency-divided signal and the second delayed signal is identified to generate a second phase discrimination signal indicating the phase difference, wherein the second phase discrimination signal or an inverted signal of the second phase discrimination signal is used as the drop indication signal.

15. The method according to claim 10, wherein the adjustment of the delay control signal is implemented by a digital state machine, the digital state machine comprising a first adjustment state for increasing the delay control signal and a second adjustment state for decreasing the delay control signal, wherein when the critical timing signal is in the first level state, the digital state machine switches to the first adjustment state, and when the critical timing signal is in the second level state, the digital state machine switches to the second adjustment state.

16. An electronic circuit comprising a device according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Power supply transient drop recovery test platform and method for micro-control chip

    CN111337847A

  • Voltage detection circuit

    JP1996272491A

  • Semiconductor integrated device, method for detecting voltage drop of integrated circuit, and method for correcting voltage drop

    JP2001332699A

  • Digital circuit device and voltage drop detector circuitry

    US20210376821A1

  • Circuits And Methods For Supply Voltage Detection And Timing Monitoring

    US20220006459A1