Hackers may inject power glitches to a chip to interrupt it operation, so as to implant malware to get control of the chip. In order to prevent the chip from being damaged by the above fault injections such as the power glitch, one or more glitch detectors are designed within the chip to detect if the chip suffers the power glitch, and if the power glitch is detected, the chip can take appropriate action to avoid being implanted with malware. However, the conventional glitch detector such as a latch-type glitch detector cannot accurately detect short glitches, and may not always output a warning signal when a power glitch occurs.
It is therefore an objective of the present invention to provide a glitch detector, which is capable of detecting shorter glitches and/or not missing any meaningful power glitch, to solve the above-mentioned problems.
According to one embodiment of the present invention, a glitch detector comprising a first inverter, a second inverter, a first capacitor and a second capacitor is disclosed. The first inverter is connected between a supply voltage and a ground voltage, and is configured to receive a first signal at a first node to generate a second signal to a second node. The second inverter is connected between the supply voltage and the ground voltage, and is configured to receive the second signal at the second node to generate the first signal to the first node. A first electrode of the first capacitor is coupled to the supply voltage, and a second electrode of the first capacitor is coupled to the first node. A first electrode of the second capacitor is coupled to the ground voltage, and a second electrode of the second capacitor is coupled to the second node.
According to one embodiment of the present invention, a glitch detector comprising a first inverter, a second inverter, at least one first discharging path and at least one second discharging path is disclosed. The first inverter is connected between a supply voltage and a ground voltage, and is configured to receive a first signal at a first node to generate a second signal to a second node. The second inverter is connected between the supply voltage and the ground voltage, and is configured to receive the second signal at the second node to generate the first signal to the first node. The at least one first discharging path is coupled to the first node, and is configured to discharge charges of the first node. The at least one second discharging path is coupled to the first node, and is configured to discharge charges of the second node.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the following description and claims to refer to particular system components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . ”. The terms “couple” and “couples” are intended to mean either an indirect or a direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The glitch detector 100 is used to detect under-voltage glitches according to a voltage level of the signal Vm or the signal Vmb. Specifically, the signal Vm is controlled to have a low voltage level (i.e., logical value “0”) while the signal Vmb is controlled to have a high voltage level (i.e., logical value “1”) when the supply voltage VDD has a normal voltage level. Then, when the glitch detector 100 suffers the under-voltage glitch, the voltage level of the signal Vmb will drop. Finally, when the supply voltage VDD returns to the original voltage level, the signal Vm has a certain probability (e.g., 50%) to have the high voltage level. Therefore, once the signal Vm has the high voltage level, the glitch detector 100 can determine that the chip suffers the under-voltage glitch and trigger a warning signal generator 130 to notify a processing circuit that the supply voltage VDD suffers the under-voltage glitch, for the processing circuit to take some appropriate actions. After the warning signal generator 130 notifies the processing circuit, a reset circuit (not shown) can control the signals Vm and Vmb to have the low voltage level and the high voltage level, respectively, for determining a next under-voltage glitch.
In another embodiment, the warning signal generator 130 can be connected to the node N2, and after the signal Vmb becomes the logical value “0”, the warning signal generator 130 is triggered to output the warning signal. This alternative design shall fall within the scope of the present invention.
As described in the background of the invention, the conventional glitch detector cannot detect short glitches. To solve this problem, the P-type transistors MP1, MP2, and the N-type transistors MN1 and MN2 are used in the glitch detector 100 to reduce the reset time in response to the under-voltage glitch, so that the glitch detector 100 can detect short glitches. Specifically, referring to
The glitch detector 300 is used to detect under-voltage glitch according to a voltage level of the signal Vm or the signal Vmb. Specifically, the signal Vm is controlled to have a low voltage level (i.e., logical value “0”) while the signal Vmb is controlled to have a high voltage level (i.e., logical value “1”) when the supply voltage VDD has a normal voltage level. Then, when the glitch detector 300 suffers the under-voltage glitch, the signal Vmb will drop to a voltage level close to the supply voltage VDD. Finally, when the supply voltage VDD returns to the original voltage level, the signal Vm will have the high voltage level while the signal Vmb has the low voltage level. Therefore, once the signal Vm has the high voltage level, the glitch detector 300 can determine that the chip suffers the under-voltage glitch and trigger a warning signal generator 330 to notify a processing circuit that the supply voltage VDD suffers the under-voltage glitch. After the warning signal generator 330 notifies the processing circuit, a reset circuit (not shown) can control the signals Vm and Vmb to have the low voltage level and the high voltage level, respectively, for determining a next under-voltage glitch.
In another embodiment, the warning signal generator 330 can be connected to the node N2, and after the signal Vmb becomes the logical value “0”, the warning signal generator 330 is triggered to output the warning signal. This alternative design shall fall within the scope of the present invention.
As described in the background of the invention, the conventional glitch detector may not always output a warning signal when a power glitch occurs, that is the signal Vm may still have the low-voltage level after the under-voltage glitch. To solve this problem, the capacitors C1 and C2 are used to make sure that the signal Vm always has the high voltage level after the under-voltage glitch, as long as the under-voltage glitch crosses a threshold voltage of the inverter 310/320 (i.e., the under-voltage glitch can change the logical value outputted by the inverter). Specifically, referring to
In light of the embodiment shown in
In an alternative embodiment, the glitch detector 100 shown in
In this embodiment, the P-type transistors MP1, MP2, and N-type transistors MN1 and MN2 are used to discharge charges of the nodes N1 and N2 when the under-voltage glitch occurs, and the capacitors C1 and C2 are used to pull high the signal Vm and pull down the signal Vmb when the under-voltage glitch disappears. Therefore, the glitch detector 500 can detect short glitches and does not miss any meaningful under-voltage glitch.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application claims the benefit of U.S. Provisional Application No. 63/299,424, filed on Jan. 14, 2022. The content of the application is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
63299424 | Jan 2022 | US |