CHIP WITH POWER-GLITCH DETECTION
20230216333 ยท 2023-07-06
Inventors
Cpc classification
Y02B70/30
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G06F1/28
PHYSICS
G06F1/30
PHYSICS
H03K19/20
ELECTRICITY
Y04S20/20
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
G01R19/00
PHYSICS
H03K19/20
ELECTRICITY
Abstract
A chip with power-glitch detection is provided, which includes a power terminal receiving power, an inverter, and a back-up power storage device coupled to the power terminal. The inverter has an input terminal coupled to the power terminal. The back-up power storage device transforms the power to back-up power. The inverter is powered by the back-up power when a power glitch occurs on the power terminal, and the power glitch is reflected at an output terminal of the inverter.
Claims
1. A chip with power-glitch detection, comprising: a power terminal, receiving power; a first inverter having an input terminal coupled to the power terminal; and a back-up power storage device coupled to the power terminal, transforming the power to back-up power, wherein the first inverter is powered by the back-up power when a power glitch occurs on the power terminal, and the power glitch is reflected at an output terminal of the first inverter.
2. The chip with power-glitch detection as claimed in claim 1, wherein: the back-up power storage device comprises a resistor and a capacitor which are connected in series; and a connection terminal between the resistor and the capacitor is coupled to the first inverter to provide the back-up power to power the first inverter when a power glitch occurs.
3. The chip with power-glitch detection as claimed in claim 1, further comprising: a latch for presenting a detection result indicating a power glitch, having a positive output terminal that is at a low level before the power glitch, and a negative output terminal that is at a high level before the glitch; and a switch, closed when the power glitch is reflected at the output terminal of the first inverter, to connect the negative output terminal of the latch to the positive output terminal of the latch; wherein: the latch further has a first capacitor coupling the positive output terminal to the power terminal to pull up a voltage level of the positive output terminal after the power glitch, and the latch further has a second capacitor coupling the negative output terminal to a ground terminal.
4. The chip with power-glitch detection as claimed in claim 3, wherein: a power glitch is detected when the positive output terminal is at the high level and the negative output terminal is at the low level.
5. The chip with power-glitch detection as claimed in claim 1, further comprising a latch for presenting a detection result indicating a power glitch, wherein the latch comprises: a first PMOS, having a source terminal coupled to the power terminal; a first NMOS, having a drain terminal coupled to a drain terminal of the first PMOS as a positive output terminal of the latch, a gate terminal coupled to a gate terminal of the first PMOS, and a source terminal coupled to a ground terminal; a second PMOS, having a source terminal coupled to the power terminal; a second NMOS, having a drain terminal coupled to a drain terminal of the second PMOS as a negative output terminal of the latch, a gate terminal coupled to a gate terminal of the second PMOS, and a source terminal coupled to the ground terminal; wherein: the gate terminals of the first PMOS and the first NMOS are connected to the drain terminals of the second PMOS and the second NMOS; the gate terminals of the second PMOS and the second NMOS are connected to the drain terminals of the first PMOS and the first NMOS, and the negative output terminal of the latch is connected to the positive output terminal of the latch when the power glitch is reflected at the output terminal of the first inverter.
6. The chip with power-glitch detection as claimed in claim 5, further comprising: an NMOS switch, closed according to an output obtained from the output terminal of the first inverter to connect the negative output terminal of the latch to the positive output terminal of the latch.
7. The chip with power-glitch detection as claimed in claim 6, wherein: the positive output terminal is at a low level before the power glitch; the negative output terminal is at a high level before the power glitch; the latch further has a first capacitor coupling the positive output terminal to the power terminal to pull up the voltage level of the positive output terminal after the power glitch, and the latch further has a second capacitor coupling the negative output terminal to the ground terminal.
8. The chip with power-glitch detection as claimed in claim 7, wherein: a power glitch is detected when the positive output terminal is at the high level and the negative output terminal is at the low level.
9. The chip with power-glitch detection as claimed in claim 1, further comprising: a D flip-flop, having a D terminal coupled to the output terminal of the first inverter, a clock terminal coupled to the power terminal, and a Q terminal, wherein a power glitch is detected when the Q terminal of the D-flip-flop is at a high level.
10. The chip with power-glitch detection as claimed in claim 1, further comprising: a second inverter, coupled to the first inverter to form a first latch for latching an output of the first inverter; and a reset circuit, resetting the first latch for detection of the next power glitch.
11. The chip with power-glitch detection as claimed in claim 10, wherein: the reset circuit comprises a first reset transistor and a second reset transistor, wherein the first reset transistor is a PMOS for disconnecting the back-up power from the first inverter when a reset signal is asserted, and the second reset transistor is an NMOS for connecting the output terminal of the first inverter to a ground terminal when the reset signal is asserted.
12. The chip with power-glitch detection as claimed in claim 10, wherein: the first latch further comprises an NMOS that has a gate terminal coupled to an output terminal of the second inverter, a drain terminal coupled to a drain terminal of a PMOS of the first inverter, and a source terminal coupled to a drain terminal of an NMOS of the first inverter; and the output terminal of the first inverter is coupled to an input terminal of the second inverter.
13. The chip with power-glitch detection as claimed in claim 12, further comprising: a second latch for presenting a detection result indicating a power glitch, having a positive output terminal that is at a low level before the power glitch, and a negative output terminal that is at a high level before the power glitch; and a switch, closed when the power glitch is reflected at the output terminal of the first inverter, to connect the negative output terminal of the second latch to the positive output terminal of the second latch; wherein: the second latch further has a first capacitor coupling the positive output terminal to the power terminal to pull up the voltage level of the positive output terminal after the power glitch, and the second latch further has a second capacitor coupling the negative output terminal to the ground terminal.
14. The chip with power-glitch detection as claimed in claim 13, wherein: a power glitch is detected when the positive output terminal is at the high level and the negative output terminal is at the low level.
15. The chip with power-glitch detection as claimed in claim 12, further comprising: a D flip-flop, having a D terminal coupled to the output terminal of the first inverter, a clock terminal coupled to the power terminal, and a Q terminal, wherein a power glitch is detected when the Q terminal of the D-flip-flop is at a high level.
16. The chip with power-glitch detection as claimed in claim 1, wherein: the first inverter and the back-up power storage device are provided within a single glitch detection unit; the chip is a system-on-chip chip; and each of the processors embedded on the system-on-chip chip has multiple power terminals for receiving power, and each power terminal is connected to a corresponding glitch detection unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
DETAILED DESCRIPTION OF THE INVENTION
[0021] The following description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
[0022]
[0023]
[0024] The latch 200 further has reset (controlled by RST signal) and set (controlled by SET) designs, and MOSs tied high as diodes. Before a power glitch occurs on the power terminal VDD, the positive output terminal VM is at a low level, and the negative output terminal VMB is at a high level. The latch 200 further has a first capacitor C1 coupling the positive output terminal VM to the power terminal VDD to pull up the voltage level of the positive output terminal VM after the power glitch, and the latch 200 further has a second capacitor C2 coupling the negative output terminal VMB to the ground terminal VSS. A power glitch is detected when the positive output terminal VM has been switched from the low level to the high level and the negative output terminal VMB has been switched from the high level to the low level.
[0025] With the supply voltage of semiconductor is lower than lower today, the discharging capability of MOSs may be too weak to timely discharge the negative output terminal VMB to the low level during a short glitch duration. The power-glitch detection may fail.
[0026] As shown in
[0027] The back-up power storage device 302 coupled to the power terminal VDD transforms the power VDD to back-up power VR_UV. The inverter 304 has an input terminal coupled to the power terminal VDD. The inverter 304 is powered by the back-up power VR_UV when a power glitch occurs on the power terminal (VDD). The power glitch is reflected at an output terminal UV of the inverter 304 and, accordingly, the NMOS switch 306 is closed, and the negative output terminal VMB of the latch 200 is connected to the positive output terminal VM of the latch 200.
[0028]
[0029] Because of the circuit of
[0030] The latch 200 and the NMOS switch 306 are optional. In some exemplary embodiments, a power glitch can be directly observed from the output (UV) of the inverter 304.
[0031] In
[0032] Modifications may be made on the back-up power storage device 302, the inverter 304, or the NMOS switch 306.
[0033]
[0034] To reset the latch (shown in
[0035] In
[0036]
[0037] The output signal UV generated in the circuit of
[0038] While the invention has been described by way of example and in terms of the preferred embodiments, it should be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.