CN116449245A - Burr detector - Google Patents
Burr detector Download PDFInfo
- Publication number
- CN116449245A CN116449245A CN202211601470.4A CN202211601470A CN116449245A CN 116449245 A CN116449245 A CN 116449245A CN 202211601470 A CN202211601470 A CN 202211601470A CN 116449245 A CN116449245 A CN 116449245A
- Authority
- CN
- China
- Prior art keywords
- node
- glitch
- signal
- type transistor
- supply voltage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000003990 capacitor Substances 0.000 claims abstract description 45
- 238000007599 discharging Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 abstract description 7
- 230000003071 parasitic effect Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 230000007423 decrease Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/40—Testing power supplies
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
本发明提出一种毛刺检测器,包括第一逻辑电路、第二逻辑电路、第一电容器以及第二电容器。第一逻辑电路连接在电源电压和接地电压之间,并用于在第一节点处接收第一信号以生成第二信号至第二节点。第二逻辑电路连接在电源电压和接地电压之间,并用于在第二节点处接收第二信号以产生第一信号至第一节点。第一电容器的第一极耦接到电源电压,以及,第一电容器的第二极耦接到第一节点。第二电容器的第一极耦接到接地电压,以及,第二电容器的第二电极耦接到第二节点。本发明能够提高毛刺检测的准确度。
The present invention provides a glitch detector, which includes a first logic circuit, a second logic circuit, a first capacitor and a second capacitor. A first logic circuit 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 logic circuit is connected between the supply voltage and the ground voltage, and is used to receive the second signal at the second node to generate the first signal to the first node. A first pole of the first capacitor is coupled to the supply voltage, and a second pole 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. The invention can improve the accuracy of burr detection.
Description
技术领域technical field
本发明实施例通常涉及检测技术,以及更特别地,涉及具有高可靠性(highreliability)的毛刺检测器。Embodiments of the invention generally relate to detection techniques, and more particularly, to glitch detectors with high reliability.
背景技术Background technique
黑客向芯片(chip)注入电源毛刺(power glitches)以中断其运行,从而植入恶意软件以获得对芯片的控制。为了防止芯片不因电源毛刺等故障注入而遭到损坏,在芯片内部设计了一个或多个毛刺检测器来检测芯片是否出现电源毛刺,如果检测到电源毛刺,则芯片可以采取适当的行动来避免被植入恶意软件。然而,传统的毛刺检测器不能够准确地检测到毛刺(glitches)。Hackers inject power glitches into a chip to disrupt its operation, thereby implanting malware to gain control of the chip. In order to prevent the chip from being damaged due to fault injection such as power glitches, one or more glitch detectors are designed inside the chip to detect whether the chip has power glitches. If a power glitch is detected, the chip can take appropriate actions to avoid implanted with malware. However, conventional glitch detectors cannot accurately detect glitches.
发明内容Contents of the invention
有鉴于此,以下发明内容仅是说明性的,而无意于以任何方式进行限制。即,提供以下概述来介绍本文描述的新颖和非显而易见的技术的概念,重点,益处和优点。选择的实施方式在下面的详细描述中进一步描述。因此,以下发明内容既不旨在标识所要求保护的主题的必要特征,也不旨在用于确定所要求保护的主题的范围。In view of this, the following summary is illustrative only and not intended to be limiting in any way. That is, the following overview is provided to introduce the concepts, highlights, benefits and advantages of the novel and non-obvious technologies described herein. Selected embodiments are further described in the detailed description below. Accordingly, the following Summary is not intended to identify essential features of the claimed subject matter, nor is it intended to be used in determining the scope of the claimed subject matter.
本发明的目的在于提供一种毛刺检测器,其能够提高检测毛刺的准确性。The object of the present invention is to provide a glitch detector, which can improve the accuracy of glitch detection.
第一方面,本发明提供了一种毛刺检测器,包括:第一逻辑电路,耦接在电源电压和接地电压之间,用于在第一节点处接收第一信号以产生第二信号至第二节点;第二逻辑电路,耦接在该电源电压和该接地电压之间,用于在该第二节点处接收该第二信号以产生该第一信号至该第一节点;第一电容器,该第一电容器的第一极耦接该电源电压,该第一电容器的第二极耦接该第一节点;以及,第二电容器,该第二电容器的第一极耦接该接地电压,该第二电容器的第二极耦接该第二节点。In a first aspect, the present invention provides a glitch detector, comprising: a first logic circuit, coupled between a power supply voltage and a ground voltage, for receiving a first signal at a first node to generate a second signal to a first Two nodes; a second logic circuit, coupled between the power supply voltage and the ground voltage, for receiving the second signal at the second node to generate the first signal to the first node; a first capacitor, The first pole of the first capacitor is coupled to the power supply voltage, the second pole of the first capacitor is coupled to the first node; and, the second capacitor, the first pole of the second capacitor is coupled to the ground voltage, the The second pole of the second capacitor is coupled to the second node.
在一些实施例中,该毛刺检测器还包括:警示信号产生器,耦接该第一节点或该第二节点,用于根据该第一信号的电压电平或该第二信号的电压电平确定该电源电压是否发生欠压毛刺,以决定是否输出警示信号。In some embodiments, the glitch detector further includes: a warning signal generator, coupled to the first node or the second node, for according to the voltage level of the first signal or the voltage level of the second signal Determine whether an undervoltage glitch occurs on the power supply voltage to determine whether to output a warning signal.
在一些实施例中,当该电源电压未发生欠压毛刺时,该第一信号具有第一逻辑值,该第二信号具有不同于该第一逻辑值的第二逻辑值;以及,在该电源电压发生欠压毛刺过后,该警示信号产生器通过检测该第一信号是否改变为该第二逻辑值或检测该第二信号是否改变为该第一逻辑值来确定该电源电压是否发生过欠压毛刺。In some embodiments, when no undervoltage glitch occurs on the power supply voltage, the first signal has a first logic value, and the second signal has a second logic value different from the first logic value; and, in the power supply After the voltage undervoltage spike passes, the warning signal generator determines whether the power supply voltage has overvoltage or undervoltage by detecting whether the first signal changes to the second logic value or whether the second signal changes to the first logic value glitch.
在一些实施例中,该毛刺检测器还包括:至少一个第一放电路径,耦接该第一节点,用于选择性地对该第一节点的电荷进行充/放电;以及,至少一个第二放电路径,耦接该第二节点,用于选择性地对该第二节点的电荷进行充/放电。In some embodiments, the glitch detector further includes: at least one first discharge path, coupled to the first node, for selectively charging/discharging the charge of the first node; and, at least one second The discharge path, coupled to the second node, is used for selectively charging/discharging the charges of the second node.
在一些实施例中,当该电源电压发生欠压毛刺时,该至少一个第一放电路径对该第一节点的电荷进行充/放电,以及,该至少一个第二放电路径对该第二节点的电荷进行充/放电。In some embodiments, when an undervoltage spike occurs on the power supply voltage, the at least one first discharge path charges/discharges the charge on the first node, and the at least one second discharge path charges/discharges the charge on the second node. The charge is charged/discharged.
在一些实施例中,该至少一个第一放电路径包括第一P型晶体管和第一N型晶体管,该第一P型晶体管用于在该电源电压和该第一节点之间选择性地提供电流路径,以及,该第一N型晶体管用于在该接地电压和该第一节点之间选择性地提供电流路径。In some embodiments, the at least one first discharge path includes a first P-type transistor and a first N-type transistor, the first P-type transistor is used to selectively provide current between the supply voltage and the first node path, and the first N-type transistor is used to selectively provide a current path between the ground voltage and the first node.
在一些实施例中,该至少一个第二放电路径包括第二P型晶体管和第二N型晶体管,该第二P型晶体管用于在该电源电压和该第二节点之间选择性地提供电流路径,以及,该第二N型晶体管用于在该接地电压和该第二节点之间选择性地提供电流路径。In some embodiments, the at least one second discharge path includes a second P-type transistor and a second N-type transistor, the second P-type transistor is used to selectively provide current between the supply voltage and the second node path, and the second N-type transistor is used to selectively provide a current path between the ground voltage and the second node.
在一些实施例中,该第一P型晶体管、该第一N型晶体管、该第二P型晶体管和该第二N型晶体管中的每一个是二极管式连接的晶体管。In some embodiments, each of the first P-type transistor, the first N-type transistor, the second P-type transistor, and the second N-type transistor is a diode-connected transistor.
在一些实施例中,该第一逻辑电路和该第二逻辑电路包括反相器、与非门,和/或,或非门。In some embodiments, the first logic circuit and the second logic circuit include inverters, NAND gates, and/or, NOR gates.
第二方面,本发明提供了一种毛刺检测器,包括:第一逻辑电路,耦接在电源电压和接地电压之间,用于在第一节点处接收第一信号以产生第二信号至第二节点;第二逻辑电路,耦接在该电源电压和该接地电压之间,用于在该第二节点处接收该第二信号以产生该第一信号至该第一节点;至少一个第一放电路径,耦接该第一节点,用于选择性地对该第一节点的电荷进行充/放电;以及,至少一个第二放电路径,耦接至该第二节点,用于选择性地对该第二节点的电荷进行充/放电。In a second aspect, the present invention provides a glitch detector, comprising: a first logic circuit, coupled between a power supply voltage and a ground voltage, for receiving a first signal at a first node to generate a second signal to the first Two nodes; a second logic circuit, coupled between the power supply voltage and the ground voltage, for receiving the second signal at the second node to generate the first signal to the first node; at least one first a discharge path, coupled to the first node, for selectively charging/discharging the charge of the first node; and at least one second discharge path, coupled to the second node, for selectively charging The charge of the second node is charged/discharged.
在一些实施例中,该毛刺检测器还包括:警示信号产生器,耦接该第一节点或该第二节点,用于根据该第一信号的电压电平或该第二信号的电压电平确定该电源电压是否发生欠压毛刺,以决定是否输出警示信号。In some embodiments, the glitch detector further includes: a warning signal generator, coupled to the first node or the second node, for according to the voltage level of the first signal or the voltage level of the second signal Determine whether an undervoltage glitch occurs on the power supply voltage to determine whether to output a warning signal.
在一些实施例中,当该电源电压未发生欠压毛刺时,该第一信号具有第一逻辑值,该第二信号具有不同于该第一逻辑值的第二逻辑值;以及,在该电源电压发生欠压毛刺过后,该警示信号产生器通过检测该第一信号是否改变为该第二逻辑值或检测该第二信号是否改变为该第一逻辑值来确定该电源电压是否发生过欠压毛刺。In some embodiments, when no undervoltage glitch occurs on the power supply voltage, the first signal has a first logic value, and the second signal has a second logic value different from the first logic value; and, in the power supply After the voltage undervoltage spike passes, the warning signal generator determines whether the power supply voltage has overvoltage or undervoltage by detecting whether the first signal changes to the second logic value or whether the second signal changes to the first logic value glitch.
在一些实施例中,当该电源电压发生欠压毛刺时,该至少一个第一放电路径对该第一节点的电荷进行充/放电,以及,该至少一个第二放电路径对该第二节点的电荷进行充/放电。In some embodiments, when an undervoltage spike occurs on the power supply voltage, the at least one first discharge path charges/discharges the charge on the first node, and the at least one second discharge path charges/discharges the charge on the second node. The charge is charged/discharged.
在一些实施例中,该至少一个第一放电路径包括第一P型晶体管和第一N型晶体管,该第一P型晶体管用于在该电源电压和该第一节点之间选择性地提供电流路径,以及,该第一N型晶体管用于在该接地电压和该第一节点之间选择性地提供电流路径。In some embodiments, the at least one first discharge path includes a first P-type transistor and a first N-type transistor, the first P-type transistor is used to selectively provide current between the supply voltage and the first node path, and the first N-type transistor is used to selectively provide a current path between the ground voltage and the first node.
在一些实施例中,该至少一个第二放电路径包括第二P型晶体管和第二N型晶体管,该第二P型晶体管用于在该电源电压和该第二节点之间选择性地提供电流路径,以及,该第二N型晶体管用于在该接地电压和该第二节点之间选择性地提供电流路径。In some embodiments, the at least one second discharge path includes a second P-type transistor and a second N-type transistor, the second P-type transistor is used to selectively provide current between the supply voltage and the second node path, and the second N-type transistor is used to selectively provide a current path between the ground voltage and the second node.
在一些实施例中,该第一P型晶体管、该第一N型晶体管、该第二P型晶体管和该第二N型晶体管中的每一个是二极管式连接的晶体管。In some embodiments, each of the first P-type transistor, the first N-type transistor, the second P-type transistor, and the second N-type transistor is a diode-connected transistor.
在一些实施例中,该第一逻辑电路和该第二逻辑电路包括反相器、与非门,和/或,或非门。In some embodiments, the first logic circuit and the second logic circuit include inverters, NAND gates, and/or, NOR gates.
本领域技术人员在阅读附图所示优选实施例的下述详细描述之后,可以毫无疑义地理解本发明的这些目的及其它目的。详细的描述将参考附图在下面的实施例中给出。These and other objects of the present invention will become apparent to those skilled in the art after reading the following detailed description of the preferred embodiment shown in the accompanying drawings. A detailed description will be given in the following embodiments with reference to the drawings.
附图说明Description of drawings
附图(其中,相同的数字表示相同的组件)示出了本发明实施例。包括的附图用以提供对本公开实施例的进一步理解,以及,附图被并入并构成本公开实施例的一部分。附图示出了本公开实施例的实施方式,并且与说明书一起用于解释本公开实施例的原理。可以理解的是,附图不一定按比例绘制,因为可以示出一些部件与实际实施中的尺寸不成比例以清楚地说明本公开实施例的概念。The drawings (where like numerals indicate like components) illustrate embodiments of the invention. The accompanying drawings are included to provide a further understanding of the embodiments of the present disclosure and are incorporated in and constitute a part of the embodiments of the present disclosure. The drawings illustrate implementations of the embodiments of the disclosure and, together with the description, serve to explain principles of the embodiments of the disclosure. It is to be understood that the drawings are not necessarily to scale as some components may be shown out of scale from actual implementation to clearly illustrate the concepts of the disclosed embodiments.
图1A是根据本发明一实施例示出的毛刺检测器的示意图。FIG. 1A is a schematic diagram of a glitch detector according to an embodiment of the present invention.
图1B是根据本发明一实施例示出的毛刺检测器的示意图。FIG. 1B is a schematic diagram of a glitch detector according to an embodiment of the present invention.
图1C是根据本发明一实施例示出的毛刺检测器的示意图。Fig. 1C is a schematic diagram of a glitch detector according to an embodiment of the present invention.
图2示出了在欠压毛刺发生时毛刺检测器的放电路径能够缩短复位时间。Figure 2 shows that the discharge path of the glitch detector can shorten the reset time when a brown-out glitch occurs.
图3是根据本发明一实施例示出的毛刺检测器的示意图。Fig. 3 is a schematic diagram of a glitch detector according to an embodiment of the present invention.
图4根据本发明一实施例示出了在欠压毛刺之后电容器能够拉高信号Vm并拉低信号Vmb。FIG. 4 illustrates that a capacitor can pull signal Vm high and signal Vmb low after a brown-out glitch, according to an embodiment of the present invention.
图5是根据本发明一实施例示出的毛刺检测器的示意图。Fig. 5 is a schematic diagram of a glitch detector according to an embodiment of the present invention.
在下面的详细描述中,为了说明的目的,阐述了许多具体细节,以便本领域技术人员能够更透彻地理解本发明实施例。然而,显而易见的是,可以在没有这些具体细节的情况下实施一个或多个实施例,不同的实施例可根据需求相结合,而并不应当仅限于附图所列举的实施例。In the following detailed description, for the purpose of illustration, many specific details are set forth so that those skilled in the art can more thoroughly understand the embodiments of the present invention. It should be apparent, however, that one or more embodiments may be practiced without these specific details, that different embodiments may be combined as desired, and that the embodiments should not be limited to those illustrated in the figures.
具体实施方式Detailed ways
以下描述为本发明实施的较佳实施例,其仅用来例举阐释本发明的技术特征,而并非用来限制本发明的范畴。在通篇说明书及权利要求书当中使用了某些词汇来指称特定的元件,所属领域技术人员应当理解,制造商可能会使用不同的名称来称呼同样的元件。因此,本说明书及权利要求书并不以名称的差异作为区别元件的方式,而是以元件在功能上的差异作为区别的基准。本发明中使用的术语“元件”、“系统”和“装置”可以是与计算机相关的实体,其中,该计算机可以是硬件、软件、或硬件和软件的结合。在以下描述和权利要求书当中所提及的术语“包含”和“包括”为开放式用语,故应解释成“包含,但不限定于…”的意思。此外,术语“耦接”意指间接或直接的电气连接。因此,若文中描述一个装置耦接于另一装置,则代表该装置可直接电气连接于该另一装置,或者透过其它装置或连接手段间接地电气连接至该另一装置。The following description is a preferred embodiment of the present invention, which is only used to illustrate the technical features of the present invention, but not to limit the scope of the present invention. While certain terms are used throughout the specification and claims to refer to specific elements, those skilled in the art should understand that manufacturers may use different names for the same element. Therefore, the specification and claims do not use the difference in name as the way to distinguish components, but use the difference in function of the components as the basis for the difference. The terms "element", "system" and "apparatus" used in the present invention may be a computer-related entity, where the computer may be hardware, software, or a combination of hardware and software. The terms "comprising" and "including" mentioned in the following description and claims are open terms, so they should be interpreted as "including, but not limited to...". Also, the term "coupled" means an indirect or direct electrical connection. Therefore, if it is described that a device is coupled to another device, it means that the device may be directly electrically connected to the other device, or indirectly electrically connected to the other device through other devices or connection means.
其中,除非另有指示,各附图的不同附图中对应的数字和符号通常涉及相应的部分。所绘制的附图清楚地说明了实施例的相关部分且并不一定是按比例绘制。Wherein, unless otherwise indicated, corresponding numerals and symbols in different figures of each figure generally refer to corresponding parts. The drawings are drawn to clearly illustrate relevant parts of the embodiments and are not necessarily drawn to scale.
文中所用术语“基本”或“大致”是指在可接受的范围内,本领域技术人员能够解决所要解决的技术问题,基本达到所要达到的技术效果。举例而言,“大致等于”是指在不影响结果正确性时,技术人员能够接受的与“完全等于”有一定误差的方式。The term "basically" or "approximately" used herein means that within an acceptable range, those skilled in the art can solve the technical problem to be solved and basically achieve the technical effect to be achieved. For example, "approximately equal to" refers to a method acceptable to technicians with a certain error from "exactly equal to" without affecting the correctness of the result.
图1A是根据本发明一实施例示出的毛刺检测器(glitch detector)100的示意图。如图1A所示,毛刺检测器(例如,锁存器型毛刺检测器)100包括锁存器(latch),其中,锁存器在节点N1和节点N2处分别产生信号Vm和Vmb,本发明可以根据锁存器的节点N1和/或节点N2处的信号Vm和/或Vmb来判断是否发生过电源毛刺,也就是说,锁存器用于呈现指示电源毛刺的检测结果。例如(请参见图2),在出现电源毛刺之前,信号Vm具有低电平,信号Vmb具有高电平,而在发生电源毛刺(例如,毛刺使得电源电压VDD降低至接地电压VSS,如0V)时,信号Vmb将降低,在信号Vmb降低到接近Vm(即Vmb和Vm基本相同/相等)时,如果电源电压VDD恢复正常,则反相器310和320正常工作,Vm将概率性地(例如,50%)变为高电平,相应地,若Vm为高电平,则Vmb为低电平,从而,在电源电压VDD恢复正常时能够根据信号Vm和Vmb来获知刚刚是否发生过电源毛刺。在一示例中,锁存器包括两个逻辑电路(例如,以锁存器类型式连接的反相器110和120),在本实施例中,这两个逻辑电路以反相器(非门,NOT gate)110和120为例进行示例描述,但本发明并不限于此。例如,如图1B和图1C所示,也可以通过与非门(NAND)、或非门(NOR)等逻辑电路来实现锁存器,在图1B和图1C的示例中,可以理解地,信号SET和RESET为复位/置位信号。在图1A的示例实施例中,反相器110和反相器120中的每一个可以通过使用连接在电源电压(supply voltage,亦可描述为“供电电压”)VDD和接地电压(ground voltage)VSS之间的P型晶体管和N型晶体管来实现,反相器110用于(isconfigured to,亦可描述为“被配置为”)接收节点N1处的信号Vm以在节点N2处产生信号Vmb,反相器120用于接收节点N2处的信号Vmb以在节点N1处产生信号Vm。此外,毛刺检测器100还包括多个(例如,图1A中示出“四个”)放电路径(discharging path),以及,放电路径可以通过使用(例如,二极管式接法的,即晶体管的控制端(如栅极端)和源极端耦接在一起)P型晶体管MP1、MP2和(例如,二极管式接法的)N型晶体管MN1和MN2来实现,其中,P型晶体管MP1用于在电源电压VDD与节点N1之间选择性地提供电流路径(current path,亦可描述为“电流通路”),P型晶体管MP2用于在电源电压VDD与节点N2之间选择性地提供电流路径,N型晶体管MN1用于在节点N1与接地电压之间选择性地提供电流路径,以及,N型晶体管MN2用于在节点N2与接地电压之间选择性地提供电流路径。例如,在正常情形中(例如,电源电压和接地电压上未发生电源毛刺时),晶体管MP1、MP2、MN1和MN2是断开的,且这些晶体管内的寄生二极管(亦可描述为“体二极管”)也是未导通的,从而晶体管MP1、MP2、MN1和MN2未在相应的节点之间提供电流路径。当电源电压VDD和/或接地电压VSS处发生电源毛刺时(例如,电源电压VDD处发生欠压毛刺使得电源电压VDD下降,特别地,例如下降到低于接通晶体管的阈值电压Vth及以下),此时,一方面,节点N2处的信号Vmb的电压由于锁存器中寄生二极管的作用(例如,反相器内晶体管的寄生二极管/体二极管)而降低,另一方面,节点N2处的信号Vmb的电压还由于P型晶体管MP2的漏极(drain)至源极(source)之间的寄生二极管/体二极管的作用而形成从第二节点至电源电压VDD的放电路径/电流路径/电流通路,使得第二节点N2的电压被更快地降低(从图2示出的曲线图可以看出:在具有MP1/MP2/MN1/MN2的实施例中,在电源电压VDD上出现欠压毛刺时,信号Vmb的电压下降速度更快),即能够以更短的时间达到与Vm基本相同的电位,从而复位时间更短,进而能够更加准确地检测到毛刺的发生。应当说明的是,本发明并不限于检测电源电压VDD上的电源毛刺,还可以用于检测接地电压VSS上出现的毛刺(例如,使得接地电压VSS的电压上升的毛刺),在一些情形中,毛刺甚至会使得接地电压VSS的电位高于电源电压VDD的电位,或者是欠压毛刺使得电源电压VDD下降很多甚至下降到低于接地电压VSS。可以理解地,如图2所示,一开始Vm=0,因此,VDD与Vm之间的寄生电容有VDD的电压,Vm与VSS的寄生电容的电压为0;当出现毛刺使得VSS高于VDD时,Cvdd-vm(VDD与Vm之间的寄生电容)的电压会减小,Cvss-Vm(Vm与VSS的寄生电容)的电压会增加,从而,电压增加可表现为充电,电压减小可表现为放电。例如,在一些实施例中,当电源电压VDD处发生电源毛刺使得电源电压VDD降低和/或接地电压VSS处发生毛刺使得接地电压VSS上升时(例如,这些毛刺使得电源电压VDD处的电压电平低于接地电压VSS的电压电平时),一方面,节点N2处的信号Vmb的电压由于锁存器中寄生二极管的作用(例如,反相器内晶体管的寄生二极管/体二极管)而降低,另一方面,节点N2处的信号Vmb的电压还由于P型晶体管MP2的漏极至源极之间的寄生二极管/体二极管而被更快地降低,而且由于毛刺的原因使得接地电压VSS的电压电平高于电源电压VDD的电压电平,从而,晶体管MP2导通(此时,晶体管MP2与节点N2连接的端子的电压高于其控制端的电压,从而,MP2导通,即晶体管MP2呈现为导通电阻),因此节点N2处的信号Vmb的电压能够被更快地降低;与此同时,由于此时毛刺使得接地电压VSS的电压高于电源电压VDD的电压,从而晶体管MN2导通(即晶体管MN2呈现为导通电阻),进而形成从接地电压VSS经由第二节点N2至电源电压VDD的放电路径,使得第二节点N2的信号Vmb能够被更快地接近第一节点N1的信号Vm;类似地,由于毛刺使得接地电压VSS的电压高于电源电压VDD的电压,从而,晶体管MN1和MP1均被导通,即形成接地电压VSS经由第一节点N1至电源电压VDD的电流路径,最终,Vm和Vmb将达到基本相同的电位。由此可见,晶体管MP1/MP2/MN1/MN2在电路操作中会根据电路的实际电压情况而表现为是断开还是提供电流路径(例如,晶体管内的寄生二极管接通和/或晶体管导通),即能够自主地选择性提供电流路径,而无需控制信号和/或控制电路进行额外地控制就能够缩短复位时间,以能够更加准确地检测毛刺。例如,在没有电源毛刺发生时,电流路径是不接通的;在出现电源毛刺时,至少一条电流路径(如MP2所处的电流路径)被自动接通,例如,在出现电源毛刺但电源电压VDD的电位仍高于接地电压VSS的示例中,MP2所处的电流路径被自动接通(例如,经由MP2内的寄生二极管形成节点N2至电源电压VDD的电流通路),再例如,在出现电源毛刺但接地电压VSS的电位变得高于电源电压VDD的示例中,MP1、MP2、MN1、MN2所处的电流路径均自动接通。因此,在本发明实施例中,如图1A所示的二极管式接法的晶体管MP1、MN1和MP2、MN2能够给节点N1和N2选择性地提供电流路径/电流通路,即能够选择性地对节点N1和N2进行充/放电。应当说明的是,本发明实施例并不应当受限于图中所示的四个放电路径,例如,在一些实施例中可以仅包括P型晶体管MP2,在另一些实施例中可以包括P型晶体管MP2及N型晶体管MN2等。FIG. 1A is a schematic diagram of a glitch detector 100 according to an embodiment of the present invention. As shown in FIG. 1A, a glitch detector (for example, a latch-type glitch detector) 100 includes a latch, wherein the latch generates signals Vm and Vmb at nodes N1 and N2, respectively. The present invention Whether a power glitch has occurred can be determined according to the signals Vm and/or Vmb at the nodes N1 and/or N2 of the latch, that is, the latch is used to present a detection result indicating a power glitch. For example (see FIG. 2), the signal Vm has a low level and the signal Vmb has a high level before a power glitch occurs, and after a power glitch occurs (for example, the glitch causes the power supply voltage VDD to drop to the ground voltage VSS, such as 0V) , the signal Vmb will decrease, and when the signal Vmb decreases to close to Vm (that is, Vmb and Vm are basically the same/equal), if the power supply voltage VDD returns to normal, the inverters 310 and 320 will work normally, and Vm will probabilistically (for example , 50%) becomes a high level, correspondingly, if Vm is a high level, then Vmb is a low level, thus, when the power supply voltage VDD returns to normal, it can be known whether a power glitch has just occurred according to the signals Vm and Vmb . In one example, the latch includes two logic circuits (eg, inverters 110 and 120 connected in a latch-type fashion), which in this embodiment are connected as inverters (NOT gates) , NOT gate) 110 and 120 are described as examples, but the present invention is not limited thereto. For example, as shown in FIG. 1B and FIG. 1C, the latch may also be realized by logic circuits such as a NAND gate (NAND) and a NOR gate (NOR). In the example of FIG. 1B and FIG. 1C, it can be understood that The signals SET and RESET are reset/set signals. In the exemplary embodiment of FIG. 1A , each of the inverter 110 and the inverter 120 can be connected between a supply voltage (supply voltage, which can also be described as "supply voltage") VDD and a ground voltage (ground voltage) by using The P-type transistor and the N-type transistor between VSS are realized, and the inverter 110 is used for (isconfigured to, can also be described as " being configured to ") Receive the signal Vm at the node N1 to generate the signal Vmb at the node N2, The inverter 120 is used to receive the signal Vmb at the node N2 to generate the signal Vm at the node N1. In addition, the glitch detector 100 also includes multiple (eg, "four" shown in FIG. 1A ) discharging paths, and the discharging paths can be controlled by using (eg, diode-connected, ie, transistors) terminal (such as gate terminal) and source terminal coupled together) P-type transistors MP1, MP2 and (for example, diode-connected) N-type transistors MN1 and MN2, wherein the P-type transistor MP1 is used for power supply voltage A current path (current path, which can also be described as a "current path") is selectively provided between VDD and the node N1. The P-type transistor MP2 is used to selectively provide a current path between the power supply voltage VDD and the node N2. The N-type The transistor MN1 is used to selectively provide a current path between the node N1 and the ground voltage, and the N-type transistor MN2 is used to selectively provide a current path between the node N2 and the ground voltage. For example, in normal conditions (eg, when no power glitches occur on the supply and ground voltages), transistors MP1, MP2, MN1, and MN2 are off, and the parasitic diodes (also described as "body diodes") within these transistors are off. ”) are also non-conductive, so that transistors MP1, MP2, MN1 and MN2 do not provide a current path between the corresponding nodes. When a power glitch occurs at the supply voltage VDD and/or the ground voltage VSS (eg, an undervoltage glitch at the supply voltage VDD causes the supply voltage VDD to drop, specifically, eg, drop below the threshold voltage Vth of the turn-on transistor and below) , at this time, on the one hand, the voltage of the signal Vmb at the node N2 is reduced due to the effect of the parasitic diode in the latch (for example, the parasitic diode/body diode of the transistor in the inverter), on the other hand, the voltage at the node N2 The voltage of the signal Vmb also forms a discharge path/current path/current from the second node to the power supply voltage VDD due to the effect of the parasitic diode/body diode between the drain (drain) and the source (source) of the P-type transistor MP2 path, so that the voltage of the second node N2 is lowered faster (it can be seen from the graph shown in FIG. , the voltage of the signal Vmb drops faster), that is, it can reach the potential substantially the same as Vm in a shorter time, so that the reset time is shorter, and the occurrence of the glitch can be detected more accurately. It should be noted that the present invention is not limited to detecting power supply glitches on the power supply voltage VDD, and can also be used to detect glitches appearing on the ground voltage VSS (for example, glitches that cause the voltage of the ground voltage VSS to rise). In some cases, The glitch may even cause the potential of the ground voltage VSS to be higher than the potential of the power supply voltage VDD, or the undervoltage glitch may cause the power supply voltage VDD to drop a lot or even drop below the ground voltage VSS. Understandably, as shown in FIG. 2, Vm=0 at the beginning, therefore, the parasitic capacitance between VDD and Vm has the voltage of VDD, and the voltage of the parasitic capacitance between Vm and VSS is 0; when a glitch occurs, VSS is higher than VDD , the voltage of Cvdd-vm (the parasitic capacitance between VDD and Vm) will decrease, and the voltage of Cvss-Vm (the parasitic capacitance between Vm and VSS) will increase. Therefore, the voltage increase can be expressed as charging, and the voltage decrease can be expressed as charging. Appears as discharge. For example, in some embodiments, when a power supply glitch occurs at the supply voltage VDD causing the supply voltage VDD to drop and/or a glitch occurs at the ground voltage VSS causing the ground voltage VSS to rise (e.g., these glitches cause the voltage level at the supply voltage VDD to lower than the voltage level of the ground voltage VSS), on the one hand, the voltage of the signal Vmb at the node N2 is reduced due to the effect of the parasitic diode in the latch (for example, the parasitic diode/body diode of the transistor in the inverter), and on the other hand On the one hand, the voltage of the signal Vmb at the node N2 is also lowered faster due to the parasitic diode/body diode between the drain and the source of the P-type transistor MP2, and the voltage level of the ground voltage VSS is lowered due to the glitch. The level is higher than the voltage level of the power supply voltage VDD, so that the transistor MP2 is turned on (at this time, the voltage of the terminal connected to the node N2 of the transistor MP2 is higher than the voltage of its control terminal, thus, the MP2 is turned on, that is, the transistor MP2 is turned on On-resistance), so the voltage of the signal Vmb at the node N2 can be lowered faster; at the same time, because the glitch makes the voltage of the ground voltage VSS higher than the voltage of the power supply voltage VDD at this time, the transistor MN2 is turned on (that is, the transistor MN2 MN2 presents as an on-resistance), thereby forming a discharge path from the ground voltage VSS to the power supply voltage VDD via the second node N2, so that the signal Vmb of the second node N2 can be approached to the signal Vm of the first node N1 faster; similar Ground, due to the glitch, the voltage of the ground voltage VSS is higher than the voltage of the power supply voltage VDD, so that the transistors MN1 and MP1 are both turned on, that is, a current path from the ground voltage VSS to the power supply voltage VDD via the first node N1 is formed, and finally, Vm and Vmb will reach essentially the same potential. It can be seen that the transistors MP1/MP2/MN1/MN2 behave as open or provide a current path during circuit operation depending on the actual voltage conditions of the circuit (for example, parasitic diodes in the transistors are turned on and/or the transistors are turned on) , that is, the current path can be selectively provided autonomously, and the reset time can be shortened without additional control by the control signal and/or the control circuit, so that the glitch can be detected more accurately. For example, when no power glitch occurs, the current path is not connected; when a power glitch occurs, at least one current path (such as the current path where MP2 is located) is automatically connected, for example, when a power glitch occurs but the power voltage In the example where the potential of VDD is still higher than the ground voltage VSS, the current path where MP2 is located is automatically turned on (for example, the current path from node N2 to the power supply voltage VDD is formed through the parasitic diode in MP2), and for another example, when the power supply In an example where the potential of the ground voltage VSS becomes higher than the power supply voltage VDD despite the glitch, the current paths where MP1 , MP2 , MN1 , and MN2 are located are all automatically turned on. Therefore, in the embodiment of the present invention, the diode-connected transistors MP1, MN1 and MP2, MN2 as shown in FIG. Nodes N1 and N2 are charged/discharged. It should be noted that the embodiments of the present invention should not be limited to the four discharge paths shown in the figure. For example, in some embodiments, only P-type transistor MP2 may be included, and in other embodiments, P-type transistor MP2 may be included. Transistor MP2 and N-type transistor MN2 and so on.
毛刺检测器100用于根据信号Vm或信号Vmb的电压电平(voltage level,亦可描述为“电压位准”)来检测欠压毛刺(under-voltage glitches),即,使得电源电压VDD下降的毛刺,例如,使得电源电压VDD低于使晶体管导通的阈值电压Vth(亦可描述为“晶体管的阈值电压Vth”)的电源毛刺。特别地,当电源电压VDD具有正常(normal)电压电平(即,逻辑值“1”)时(即电源电压VDD上不存在毛刺时),信号Vm被控制为具有低电压电平(即,逻辑值“0”),而信号Vmb被控制为具有高电压电平(即,逻辑值“1”)。然后,当毛刺检测器100遭遇(suffer,亦可描述为“出现”、“遭受”、“遭遇”等)欠压毛刺时(例如,电源电压VDD发生毛刺使得电源电压下降时),信号Vmb的电压电平将下降。最后,当电源电压VDD回到原始(original)的电压电平(即,正常情况下的正常电压电平,逻辑值“1”)时,信号Vm有一定的机率(例如,50%)为高电压电平。因此,一旦信号Vm具有高电压电平,毛刺检测器100就能够确定出芯片发生欠压毛刺,可选地,能够进一步触发警示信号发生器(warning signalgenerator)130,以通知处理电路电源电压VDD发生欠压毛刺,进而便于处理电路采取一些适当的行动(action)。在警示信号产生器130通知处理电路后,复位电路(reset circuit,未示出)能够分别控制信号Vm与Vmb具有低电压电平与高电压电平,以确定下一次的欠压毛刺。The glitch detector 100 is used to detect under-voltage glitches according to the voltage level (voltage level, which can also be described as “voltage level”) of the signal Vm or the signal Vmb, that is, the glitches that cause the power supply voltage VDD to drop A glitch, for example, is a power supply glitch that makes the power supply voltage VDD lower than the threshold voltage Vth that turns on the transistor (it can also be described as "the threshold voltage Vth of the transistor"). Specifically, when the power supply voltage VDD has a normal (normal) voltage level (ie, logic value "1") (ie, when there is no glitch on the power supply voltage VDD), the signal Vm is controlled to have a low voltage level (ie, logic value "0"), while the signal Vmb is controlled to have a high voltage level (ie, logic value "1"). Then, when the glitch detector 100 encounters (suffer, can also be described as "appear", "suffer", "encounter", etc.) an undervoltage glitch (for example, when a glitch occurs on the power supply voltage VDD so that the power supply voltage drops), the signal Vmb The voltage level will drop. Finally, when the power supply voltage VDD returns to the original (original) voltage level (that is, the normal voltage level under normal conditions, logic value "1"), the signal Vm has a certain probability (for example, 50%) to be high voltage level. Therefore, once the signal Vm has a high voltage level, the glitch detector 100 can determine that an undervoltage glitch occurs on the chip, and optionally, can further trigger a warning signal generator (warning signal generator) 130 to notify the processing circuit that the power supply voltage VDD occurs Undervoltage glitches, which in turn facilitate the processing circuitry to take some appropriate action. After the warning signal generator 130 notifies the processing circuit, a reset circuit (not shown) can control the signals Vm and Vmb to have a low voltage level and a high voltage level respectively, so as to determine the next under-voltage glitch.
在另一实施例中,警示信号产生器130可连接至节点N2,当信号Vmb变为逻辑值“0”后,警示信号产生器130被触发以输出警示信号。此替代设计应落入本发明的范围内。可以理解地,当电源电压VDD因电源毛刺而下降到逻辑值“0”时,理想情况下,信号Vmb将变为逻辑值“0”(即与Vm的电压相同),此时,由于毛刺使得电源电压VDD为逻辑值0,通常,警示信号产生器130在毛刺存在的持续时间段内也无法正常工作,因此,等到毛刺消除后(即电源电压VDD恢复正常时,或者描述为“在电源电压发生毛刺过后”),警示信号产生器130才能够根据信号Vm和/或Vmb获知刚刚是否已发生过毛刺。例如,如果检测到信号Vm为高电平和/或检测到Vmb为低电平则可以认为发生了毛刺。In another embodiment, the warning signal generator 130 can be connected to the node N2, and when the signal Vmb becomes logic value “0”, the warning signal generator 130 is triggered to output the warning signal. Such alternative designs should fall within the scope of the present invention. It can be understood that when the power supply voltage VDD drops to a logic value "0" due to a power glitch, ideally, the signal Vmb will become a logic value "0" (that is, the same voltage as Vm), and at this time, due to the glitch, the The power supply voltage VDD is a logic value 0. Generally, the alarm signal generator 130 cannot work normally during the duration of the glitch. After the glitch has occurred"), the alarm signal generator 130 can know whether a glitch has just occurred according to the signal Vm and/or Vmb. For example, a glitch may be considered to have occurred if signal Vm is detected to be at a high level and/or Vmb is detected to be at a low level.
传统的毛刺检测器检测毛刺的准确性不高,例如,不能够检测短毛刺(shortglitches,即持续时间较短的毛刺,例如,纳秒(10-9S)级别的毛刺)。为了解决这个问题,在毛刺检测器100中使用P型晶体管MP1、MP2和N型晶体管MN1、MN2,以使得第二节点与第一节点的电压能够更快地接近于相同,即减少响应欠压毛刺的复位时间(reset time),使得毛刺检测器100能够检测到短毛刺。特别地,参见图2,如果毛刺检测器100不具有P型晶体管MP1、MP2和N型晶体管MN1、MN2,则在电源电压VDD发生欠压毛刺时,毛刺检测器100需要更长的复位时间来使信号Vmb的电压电平接近/基本等于信号Vm的电压电平(假设电源电压VDD下降到接地电压),然后,当电源电压VDD恢复到原始电压电平时,信号Vm能够具有一定的机率(例如,50%)表现为高电压电平。另一方面,如果毛刺检测器100具有P型晶体管MP1、MP2和N型晶体管MN1、MN2(这些晶体管用于在毛刺出现(如电源电压VDD发生欠压毛刺)时选择性地对节点N1、N2的电荷进行充/放电,或者描述为“选择性地形成经由节点N1、N2的电流通路”),只需要短的复位时间就可以使信号Vmb的电压电平接近信号Vm的电压电平。因此,毛刺检测器100能够检测短毛刺,从而提高了检测毛刺的准确性。The accuracy of traditional glitch detectors in detecting glitches is not high, for example, they cannot detect short glitches (short glitches, that is, glitches with a short duration, eg, glitches at the level of nanoseconds (10 −9 S)). In order to solve this problem, P-type transistors MP1, MP2 and N-type transistors MN1, MN2 are used in the glitch detector 100, so that the voltage of the second node and the first node can be closer to the same faster, that is, to reduce the response undervoltage The reset time of the glitch enables the glitch detector 100 to detect short glitches. In particular, referring to FIG. 2, if the glitch detector 100 does not have P-type transistors MP1, MP2 and N-type transistors MN1, MN2, when an undervoltage glitch occurs on the power supply voltage VDD, the glitch detector 100 needs a longer reset time to Make the voltage level of the signal Vmb close to/substantially equal to the voltage level of the signal Vm (assuming that the power supply voltage VDD drops to the ground voltage), and then, when the power supply voltage VDD returns to the original voltage level, the signal Vm can have a certain probability (such as , 50%) appear as a high voltage level. On the other hand, if the glitch detector 100 has P-type transistors MP1, MP2 and N-type transistors MN1, MN2 (these transistors are used to selectively control the nodes N1, N2 when a glitch occurs (such as an undervoltage glitch on the supply voltage VDD) charge/discharge, or described as "selectively forming a current path through the nodes N1, N2"), only a short reset time is required to make the voltage level of the signal Vmb close to the voltage level of the signal Vm. Therefore, the glitch detector 100 can detect short glitches, thereby improving the accuracy of glitch detection.
图3是根据本发明一实施例示出的毛刺检测器300的示意图。如图3所示,毛刺检测器300包括锁存器,锁存器包括两个逻辑电路(例如,锁存器型连接的两个反相器),在本实施例中,两个逻辑电路为反相器310和320。反相器310和反相器320中的每一个可以通过使用连接在电源电压VDD和接地电压之间的P型晶体管和N型晶体管来实现,反相器310用于在节点N1处接收信号Vm以在节点N2处产生信号Vmb,反相器320用于在节点N2处接收信号Vmb以在节点N1处产生信号Vm。此外,毛刺检测器300还包括电容器(capacitor)C1和C2。电容器C1耦接在电源电压VDD与节点N1之间,即电容器C1的一极(one electrode,亦可描述为“一端”)耦接电源电压VDD,电容器C1的另一极(另一端)耦接节点N1。电容器C2耦接在节点N2与接地电压之间,即电容器C2的一极耦接接地电压,电容器C2的另一极耦接节点N2,其中,电容器C1和C2被刻意(intentionally)设置在毛刺检测器300中,即电容器C1和C2不是寄生电容(parasitic capacitance)。FIG. 3 is a schematic diagram of a glitch detector 300 according to an embodiment of the present invention. As shown in FIG. 3 , the glitch detector 300 includes a latch, and the latch includes two logic circuits (for example, two inverters connected in a latch type), and in this embodiment, the two logic circuits are inverters 310 and 320 . Each of the inverter 310 and the inverter 320 can be implemented by using a P-type transistor and an N-type transistor connected between a power supply voltage VDD and a ground voltage, and the inverter 310 is used to receive the signal Vm at the node N1. To generate the signal Vmb at the node N2, the inverter 320 is used to receive the signal Vmb at the node N2 to generate the signal Vm at the node N1. In addition, the glitch detector 300 further includes capacitors C1 and C2. The capacitor C1 is coupled between the power supply voltage VDD and the node N1, that is, one electrode of the capacitor C1 (one electrode, which can also be described as "one end") is coupled to the power supply voltage VDD, and the other pole (the other end) of the capacitor C1 is coupled to the Node N1. The capacitor C2 is coupled between the node N2 and the ground voltage, that is, one pole of the capacitor C2 is coupled to the ground voltage, and the other pole of the capacitor C2 is coupled to the node N2, wherein the capacitors C1 and C2 are intentionally set in the glitch detection In the device 300, the capacitors C1 and C2 are not parasitic capacitances.
在一示例实施例中,毛刺检测器300用于根据信号Vm或信号Vmb的电压电平来检测欠压毛刺。特别地,当电源电压VDD具有正常电压电平时(例如,在未出现毛刺的正常情形中),信号Vm被控制为具有低电压电平(即,逻辑值“0”),而信号Vmb被控制为具有高电压电平(即,逻辑值“1”)。然后,当毛刺检测器300发生欠压毛刺时(例如,电源电压VDD处发生欠压毛刺),信号Vmb将下降到接近电源电压VDD的电压电平(在电源电压VDD处发生毛刺的情形中)。最后,当电源电压VDD回到原始电压电平时,信号Vm将具有高电压电平,而信号Vmb具有低电压电平。因此,一旦信号Vm具有高电压电平,毛刺检测器300就能够确定出芯片发生欠压毛刺并触发警示信号发生器330以通知处理电路电源电压VDD发生欠压毛刺。在警示信号产生器330通知处理电路后,复位电路(未示出)能够分别控制信号Vm与Vmb具有低电压电平与高电压电平,以确定下一次的欠压毛刺。In an example embodiment, the glitch detector 300 is used to detect the undervoltage glitch according to the voltage level of the signal Vm or the signal Vmb. Specifically, when the power supply voltage VDD has a normal voltage level (eg, in a normal situation where no glitch occurs), the signal Vm is controlled to have a low voltage level (ie, logic value "0"), and the signal Vmb is controlled to have a low voltage level (ie, logic value "0"). has a high voltage level (ie, logic value "1"). Then, when an undervoltage glitch occurs in glitch detector 300 (e.g., an undervoltage glitch occurs at supply voltage VDD), signal Vmb will drop to a voltage level close to supply voltage VDD (in the case of a glitch at supply voltage VDD) . Finally, when the power supply voltage VDD returns to the original voltage level, the signal Vm will have a high voltage level, and the signal Vmb will have a low voltage level. Therefore, once the signal Vm has a high voltage level, the glitch detector 300 can determine that the chip has an undervoltage glitch and trigger the alarm signal generator 330 to notify the processing circuit that the power supply voltage VDD has an undervoltage glitch. After the warning signal generator 330 notifies the processing circuit, the reset circuit (not shown) can respectively control the signals Vm and Vmb to have a low voltage level and a high voltage level to determine the next under-voltage glitch.
在另一实施例中,警示信号产生器330可连接至节点N2,当信号Vmb变为逻辑值“0”后,警示信号产生器330被触发以输出警示信号。此替代设计应落入本发明的范围内。In another embodiment, the warning signal generator 330 can be connected to the node N2, and when the signal Vmb becomes logic value “0”, the warning signal generator 330 is triggered to output the warning signal. Such alternative designs should fall within the scope of the present invention.
如本发明背景中所描述的,传统的毛刺检测器在电源毛刺发生时并不总是输出警示信号,即信号Vm在欠压毛刺过后可能仍然具有低电压电平,即检测电源毛刺的准确性不高。在本发明实施例中,若欠压毛刺使得电源电压低于VDD/2,例如,更特别地,只要欠压毛刺使得电源电压低于反相器310/320中晶体管的阈值电压(即,该反相器不能够正常工作,也就是说,该欠压毛刺会改变反相器输出的逻辑值),电容器C1和C2就能够确保信号Vm在该欠压毛刺过后始终具有高电压电平。特别地,参见图4,最初,电源电压VDD为正常电平(例如,1V,应当说明的是,1V仅为示例描述,本发明并不限于此),信号Vm为低电压电平(例如,VSS,0V),信号Vmb为高电压电平(例如,1V),此时,电容器C1和C2中的每一个的跨电压(cross voltage)约为VDD(如1V)。当电源电压VDD发生欠压毛刺时,例如,电源电压下降至(1/3)*VDD(例如,0.3V),信号Vmb的电压电平也因反相器310内的P型晶体管的缘故而下降至(1/3)*VDD(例如,0.3V)。此时,电容器C1和C2中的每一个的跨电压约为(1/3)*VDD(例如,0.3V)。然后,当电源电压VDD恢复到原始电压电平(例如,1V)时,由于电容器两端的电压不能突然改变,即电源电压VDD从降低的电压(例如,(1/3)*VDD,如0.3V)恢复至正常电压(例如,VDD,如1V)时,电容器C1两端的跨电压为(1/3)*VDD(例如,0.3V),因此,电容器C1将信号Vm拉高(例如,从0V拉高至VDD减电容器C1两端的跨压),使得信号Vm的电压电平约为(2/3)*VDD(例如,VDD-(1/3)*VDD),此时,信号Vmb的电压电平仍然是(1/3)*VDD。另外,在电源电压VDD恢复正常时(反相器310与320能够正常工作),由于信号Vm的电压电平高于信号Vmb的电压电平,反相器310与320形成正反馈回路,因此,当电源电压VDD恢复到原始电压电平时,信号Vm会被拉高(例如,拉高至接近电源电压VDD)而信号Vmb会被拉低(例如,拉低至接近接地电压VSS)。即,在欠压毛刺消失/消除(disappear)后,信号Vm等于逻辑值“1”,而信号Vmb等于逻辑值“0”。但是,在没有电容器C1和C2的情形中,在发生毛刺且电源电压VDD恢复正常前,信号Vm的电压电平为低电压电平(例如,VSS,0V),信号Vmb的电压电平为(1/3)*VDD(例如,0.3V),当电源电压VDD恢复正常时,由于,反相器310和320构成正反馈结构,因此,信号Vm和Vmb中的电位较高者迅速接近电源电压VDD,另一者则接近接地电压VSS,也就是说,在电源电压VDD恢复正常时,信号Vmb为高电压电平(例如,VDD),信号Vm为低电压电平(例如,VSS),从而通过信号Vmb和Vm无法检测到毛刺的发生。由此可见,通过刻意设置电容器C1和C2能够准确地检测到电源电压VDD处出现的毛刺,即提高了检测毛刺的准确性,而且,相较于不具有电容器C1和C2的方案也能够更加准确地检测到短毛刺。As described in the Background of the Invention, conventional glitch detectors do not always output a warning signal when a power glitch occurs, that is, the signal Vm may still have a low voltage level after an undervoltage glitch passes, that is, the accuracy of detecting a power glitch not tall. In the embodiment of the present invention, if the undervoltage spike makes the power supply voltage lower than VDD/2, for example, more specifically, as long as the undervoltage spike makes the power supply voltage lower than the threshold voltage of the transistor in the inverter 310/320 (ie, the The inverter cannot work normally, that is, the undervoltage glitch will change the logic value of the inverter output), the capacitors C1 and C2 can ensure that the signal Vm always has a high voltage level after the undervoltage glitch. In particular, referring to FIG. 4, initially, the power supply voltage VDD is a normal level (for example, 1V, it should be noted that 1V is only an example description, and the present invention is not limited thereto), and the signal Vm is a low voltage level (for example, VSS, 0V), the signal Vmb is at a high voltage level (eg, 1V), at this time, the cross voltage of each of the capacitors C1 and C2 is approximately VDD (eg, 1V). When an undervoltage glitch occurs on the power supply voltage VDD, for example, the power supply voltage drops to (1/3)*VDD (for example, 0.3V), the voltage level of the signal Vmb is also due to the P-type transistor in the inverter 310. down to (1/3)*VDD (eg, 0.3V). At this time, the voltage across each of the capacitors C1 and C2 is approximately (1/3)*VDD (eg, 0.3V). Then, when the power supply voltage VDD returns to the original voltage level (for example, 1V), since the voltage across the capacitor cannot be changed suddenly, that is, the power supply voltage VDD changes from the reduced voltage (for example, (1/3)*VDD, such as 0.3V ) to a normal voltage (for example, VDD, such as 1V), the voltage across capacitor C1 is (1/3)*VDD (for example, 0.3V), therefore, capacitor C1 pulls signal Vm high (for example, from 0V pull up to VDD minus the voltage across the capacitor C1), so that the voltage level of the signal Vm is about (2/3)*VDD (for example, VDD-(1/3)*VDD), at this time, the voltage of the signal Vmb The level is still (1/3)*VDD. In addition, when the power supply voltage VDD returns to normal (the inverters 310 and 320 can work normally), since the voltage level of the signal Vm is higher than the voltage level of the signal Vmb, the inverters 310 and 320 form a positive feedback loop. Therefore, When the power voltage VDD returns to the original voltage level, the signal Vm is pulled high (eg, pulled up close to the power voltage VDD) and the signal Vmb is pulled low (eg, pulled down close to the ground voltage VSS). That is, after the undervoltage glitch disappears/disappears, the signal Vm is equal to a logic value “1”, and the signal Vmb is equal to a logic value “0”. However, in the absence of capacitors C1 and C2, before the glitch occurs and the power supply voltage VDD returns to normal, the voltage level of the signal Vm is a low voltage level (for example, VSS, 0V), and the voltage level of the signal Vmb is ( 1/3)*VDD (for example, 0.3V), when the power supply voltage VDD returns to normal, since the inverters 310 and 320 form a positive feedback structure, the higher potential of the signals Vm and Vmb quickly approaches the power supply voltage VDD, and the other is close to the ground voltage VSS, that is, when the power supply voltage VDD returns to normal, the signal Vmb is at a high voltage level (for example, VDD), and the signal Vm is at a low voltage level (for example, VSS), thereby The occurrence of the glitch cannot be detected by the signals Vmb and Vm. It can be seen that by deliberately setting capacitors C1 and C2, the glitches that appear at the power supply voltage VDD can be accurately detected, that is, the accuracy of glitch detection is improved, and it is also more accurate than the solution without capacitors C1 and C2. Short glitches are detected.
参照图3和图4所示的实施例,当电源电压VDD发生重要的(meaningful)欠压毛刺(例如,使得电源电压VDD低于阈值电压Vth的毛刺)时,信号Vm将会一直为高电压电平,以触发警示信号产生器330通知处理电路,从而,毛刺检测器300将不会遗漏任何重要的欠压毛刺,进而提高了可靠性。Referring to the embodiment shown in FIG. 3 and FIG. 4, when a significant (meaningful) under-voltage glitch occurs on the power supply voltage VDD (for example, a glitch that makes the power supply voltage VDD lower than the threshold voltage Vth), the signal Vm will always be at a high voltage Level, to trigger the warning signal generator 330 to notify the processing circuit, so that the glitch detector 300 will not miss any important undervoltage glitches, thereby improving the reliability.
在替代实施例中,图1A所示的毛刺检测器100与图3所示的毛刺检测器300可以被组合,以便毛刺检测器能够检测较短的毛刺且不会遗漏任何重要的电源毛刺。也就是说,毛刺检测器100可以被修改为:添加图3中所示的电容器C1和C2;或者,毛刺检测器300可以被修改为:添加图1A所示的晶体管MP1、MP2、MN1和MN2。图5是根据本发明一实施例示出的毛刺检测器500的示意图。如图5所示,毛刺检测器500包括锁存器,例如,两个锁存型连接的逻辑电路,在本实施例中,这两个逻辑电路为反相器510和520。反相器510和反相器520中的每一个可以通过连接在电源电压VDD和接地电压之间的P型晶体管和N型晶体管来实现,反相器510用于在节点N1处接收信号Vm以在节点N2产生信号Vmb,反相器520用于在节点N2处接收信号Vmb以在节点N1处产生信号Vm。此外,毛刺检测器500还包括四个放电路径,以及,这些放电路径通过使用P型晶体管MP1、MP2和N型晶体管MN1、MN2来实现,其中,P型晶体管MP1用于在电源电压VDD和节点N1之间选择性地提供电流路径,P型晶体管MP2用于在电源电压VDD和节点N2之间选择性地提供电流路径,N型晶体管MN1用于在节点N1和接地电压之间选择性地提供电流路径,以及,N型晶体管MN2用于在节点N2和接地电压之间选择性地提供电流路径。毛刺检测器500还包括电容器C1和C2。电容器C1耦接在电源电压VDD与节点N1之间,以及,电容器C2耦接在节点N2与接地电压之间,其中,电容器C1与C2被有意设置于毛刺检测器500中,即电容器C1和C2不是寄生电容。毛刺检测器500还可以包括警示信号产生器530,其中,当信号Vm从低电压电平变至高电压电平时,警示信号产生器530将输出一警示信号。类似的描述请参考图1A和图3所示的实施例,为简洁起见,此处不再对相同部分进行赘述。In an alternative embodiment, the glitch detector 100 shown in FIG. 1A can be combined with the glitch detector 300 shown in FIG. 3 so that the glitch detector can detect shorter glitches without missing any important power supply glitches. That is, glitch detector 100 can be modified to: add capacitors C1 and C2 shown in FIG. 3; or, glitch detector 300 can be modified to: add transistors MP1, MP2, MN1 and MN2 shown in FIG. 1A . FIG. 5 is a schematic diagram of a glitch detector 500 according to an embodiment of the present invention. As shown in FIG. 5 , the glitch detector 500 includes a latch, for example, two latch-type connected logic circuits. In this embodiment, the two logic circuits are inverters 510 and 520 . Each of the inverter 510 and the inverter 520 may be implemented by a P-type transistor and an N-type transistor connected between a power supply voltage VDD and a ground voltage, and the inverter 510 is used to receive a signal Vm at a node N1 to The signal Vmb is generated at the node N2, and the inverter 520 is used to receive the signal Vmb at the node N2 to generate the signal Vm at the node N1. In addition, the glitch detector 500 also includes four discharge paths, and these discharge paths are realized by using P-type transistors MP1, MP2 and N-type transistors MN1, MN2, wherein the P-type transistor MP1 is used for power supply voltage VDD and node A current path is selectively provided between N1, a P-type transistor MP2 is used to selectively provide a current path between the power supply voltage VDD and the node N2, and an N-type transistor MN1 is used to selectively provide a current path between the node N1 and the ground voltage. A current path, and the N-type transistor MN2 is used to selectively provide a current path between the node N2 and the ground voltage. Glitch detector 500 also includes capacitors C1 and C2. The capacitor C1 is coupled between the power supply voltage VDD and the node N1, and the capacitor C2 is coupled between the node N2 and the ground voltage, wherein the capacitors C1 and C2 are intentionally provided in the glitch detector 500, that is, the capacitors C1 and C2 not parasitic capacitance. The glitch detector 500 may further include an alarm signal generator 530, wherein when the signal Vm changes from a low voltage level to a high voltage level, the alarm signal generator 530 will output an alarm signal. For similar descriptions, please refer to the embodiments shown in FIG. 1A and FIG. 3 , and for the sake of brevity, the same parts are not repeated here.
在本实施例中,P型晶体管MP1、MP2和N型晶体管MN1、MN2中的一部分或全部用于在毛刺(如欠压毛刺)发生时对节点N1、N2的电荷进行充/放电,以及,电容器C1、C2用于在毛刺(如欠压毛刺)消失时拉高信号Vm以及拉低信号Vmb。因此,毛刺检测器500能够检测到短毛刺,以及,检测毛刺的准确性提高而不会遗漏任何重要的欠压毛刺。In this embodiment, some or all of the P-type transistors MP1, MP2 and N-type transistors MN1, MN2 are used to charge/discharge the charges of the nodes N1, N2 when a glitch (such as an undervoltage glitch) occurs, and, Capacitors C1 and C2 are used to pull up the signal Vm and pull down the signal Vmb when the glitch (such as an undervoltage glitch) disappears. Therefore, the glitch detector 500 is able to detect short glitches, and the accuracy of detecting glitches is improved without missing any important undervoltage glitches.
在权利要求书中使用诸如“第一”,“第二”,“第三”等序数术语来修改权利要求要素,其本身并不表示一个权利要求要素相对于另一个权利要求要素的任何优先权、优先级或顺序,或执行方法动作的时间顺序,但仅用作标记,以使用序数词来区分具有相同名称的一个权利要求要素与具有相同名称的另一个权利要求要素。The use of ordinal terms such as "first," "second," "third," etc. in a claim to modify a claim element does not, by itself, indicate any priority of one claim element over another , priority or order, or chronological order in which method actions are performed, but are used only as markers to distinguish one claim element having the same name from another claim element having the same name using ordinal numbers.
虽然本发明已经通过示例的方式以及依据优选实施例进行了描述,但是,应当理解的是,本发明并不限于公开的实施例。相反,它旨在覆盖各种变型和类似的结构(如对于本领域技术人员将是显而易见的),例如,不同实施例中的不同特征的组合或替换。因此,所附权利要求的范围应被赋予最宽的解释,以涵盖所有的这些变型和类似的结构。While the present invention has been described by way of example and in terms of preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar constructions as will be apparent to those skilled in the art, eg combinations or substitutions of different features in different embodiments. Accordingly, the scope of the appended claims should be given the broadest interpretation to cover all such modifications and similar constructions.
Claims (17)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US63/299,424 | 2022-01-14 | ||
US17/989,696 | 2022-11-18 | ||
US17/989,696 US20230228813A1 (en) | 2022-01-14 | 2022-11-18 | Glitch detector with high reliability |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116449245A true CN116449245A (en) | 2023-07-18 |
Family
ID=87130898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211601470.4A Pending CN116449245A (en) | 2022-01-14 | 2022-12-13 | Burr detector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116449245A (en) |
-
2022
- 2022-12-13 CN CN202211601470.4A patent/CN116449245A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10090833B2 (en) | Low power reset circuit | |
US20100271742A1 (en) | Electrical Over-Stress Detection Circuit | |
CN100451663C (en) | Power supply level detector | |
CN104319275A (en) | Electrostatic discharge protection circuit | |
CN103412216B (en) | Electrostatic discharge testing circuit and disposal system | |
CN110518561B (en) | Power clamp ESD protection circuit and integrated circuit structure | |
CN110957713B (en) | Electrostatic discharge clamping circuit | |
CN110120660B (en) | Overvoltage/Energy Protection Devices | |
US10461529B2 (en) | Trigger circuitry for electrostatic discharge (ESD) protection | |
CN211830608U (en) | Circuit including NMOS transistor having body dynamically coupled to drain | |
US7522395B1 (en) | Electrostatic discharge and electrical overstress protection circuit | |
CN116449245A (en) | Burr detector | |
TWI842330B (en) | Glitch detector | |
CN219740340U (en) | Reset circuit, chip and electronic equipment | |
US20170338221A1 (en) | Integrated circuit and electrostatic discharge protection circuit thereof | |
JPH10135808A (en) | Power up detector circuit | |
CN113437062B (en) | Electrostatic protection active trigger circuit and electronic equipment | |
TW202345335A (en) | The novel voltage detection power clamp circuit for power eos event | |
KR20120068212A (en) | Protecting circuit for electrical overstress and semiconductor integrated circuit including the same | |
TWI806742B (en) | Glitch detector | |
CN111091803A (en) | A buzzer drive circuit with electromagnetic coil detection | |
US11601123B1 (en) | Power-on reset (POR) circuit | |
US11621555B2 (en) | Circuits to control a clamping device | |
CN114518778A (en) | Power supply response circuit and analog chip | |
CN117092398A (en) | Novel voltage detection power supply clamp circuit for excessive electrical stress event |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |