THE INTEGRATED CIRCUIT WITH ELECTROMAGNETIC FAULT INJECTION PROTECTION

DE102020127962B4Active Publication Date: 2024-10-31SILICON LABORATORIES INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
DE102020127962
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-11-18
Filing Date
2020-10-23
Publication Date
2024-10-31
Estimated Expiration
2040-10-23

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Integrated circuit (300) comprising: a plurality of electromagnetic fault injection sensors (400), each of said plurality of electromagnetic fault injection sensors comprising: a sensing loop (710 / 810) comprising a conductor around a corresponding part of a logic circuit whose operation is influenced by an electromagnetic pulse, a positive sensing loop (811) having a first end for receiving a negative reference voltage and a second end, and a negative sensing loop (815) having a first end for receiving a positive reference voltage and a second end;and a detector circuit (720 / 820) coupled to the said detection loop (710 / 810) and having an output for providing a pulse detection signal in response to a pulse of at least one predetermined size, and a safety management circuit (318) for performing a protection operation to safeguard the integrated circuit (300) in response to activation of the pulse detection signal from one of the said plurality of electromagnetic fault injection sensors (400).
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD This disclosure relates generally to security circuits and, more particularly, to tamper-evident circuits for protecting integrated circuits from electromagnetic fault injection. BACKGROUND Hackers attempt to gain access to cryptographic integrated circuits, such as smart card controllers, in order to steal valuable user data, passwords, and the like. One technique hackers use is to inject electrical faults to cause circuits to malfunction, allowing hackers to access the integrated circuit's memory and other resources. Hackers use several methods to inject faults into cryptographic circuits. Well-known methods include laser, voltage, and electromagnetic fault injection (EMFI). Laser fault injection is a popular method due to its high spatial and temporal resolution. However, the use of lasers for fault injection has limitations. An increased number of metal layers for routing signals in a chip, as well as progressive countermeasures, increase the inefficiency of laser attacks.Voltage spike injection involves injecting a voltage spike directly into the substrate of a targeted integrated circuit. This injection of voltage spikes creates ground bounces or voltage drops depending on the intensity of the spike. However, it is a crude technique because it affects many circuits on the chip. EMFI, delivered via a targeted electromagnetic pulse, is now widely used for attacks aimed at disrupting the behavior of logic circuits within integrated circuits. EMFI pulses are used with very small EMFI probe tips, which can, for example, be as small as 200 micrometers (µm) in diameter. These small EMFI probe tips limit the destruction of the electromagnetic field to a small area, allowing the hacker to destroy only a single circuit or group of circuits and take control of the chip without destroying the entire chip. Because they only affect a small area, these very localized destructions make a hack attempt using the EMFI pulse technique very difficult to detect. The document US 2018 / 0 232 542 A1 relates to an integrated circuit protected against fault injection attacks. The circuit comprises: a network of optical sensors; a monitoring circuit connected to the optical sensors to signal a fault when at least one of the optical sensors changes state; and inductive windings connected in the network. Each winding is configured to generate an induced voltage that causes at least one of the optical sensors to switch when the winding is exposed to an electromagnetic flux that can cause a fault injection into the circuit. The document US 2017 / 0 357 829 A1 relates to an integrated circuit comprising an internal circuit and an attack detection circuit with at least one sensor configured to detect at least one abnormal condition of the internal circuit. The at least one abnormal condition is a parameter of the internal circuit that lies outside a predetermined range. The attack detection circuit is configured to detect an external attack on the internal circuit based on the at least one abnormal condition. The attack detection circuit further comprises an integrated security self-test circuit configured to detect a physical attack on the attack detection circuit. US 2018 / 0 005 964 A1 relates to an integrated circuit comprising a number of components arranged on a surface of a semiconductor body and an interconnection region connecting the components to form a functional circuit. A metallic shield is also fabricated in the interconnection region. A configurable stage can be configured to operate in a receive antenna configuration or in a detection configuration, in which the integrated circuit is configured to detect the presence of external electromagnetic radiation representing a fault injection attack. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 illustrates, in block diagram form, a prior art electromagnetic fault injection (EMFI) system; Fig. 2 illustrates, in side view, an EMFI probe tip and the magnetic fields it generates; Fig. 3 illustrates, in block diagram form, a microcontroller unit (MCU) that can be hacked using EMFI techniques; Fig. 4 illustrates a top view of an EMFI sensor array that can detect an EMFI pulse in a region of an integrated circuit according to one embodiment of the present disclosure; Fig. 5 illustrates a top view of the EMFI sensor array of Fig. 4 when an EMFI probe tip is placed at two exemplary points; Fig. 6 illustrates a top view of an EMFI sensor array with overlapping sensing loops according to another embodiment of the present disclosure;7 illustrates, in partial block diagram and partial schematic form, an EMFI sensor that may be used in the EMFI sensors of FIGS. 4 and 6; FIG. 8 illustrates, in partial block diagram and partial schematic form, another EMFI sensor that may be used in the EMFI sensors of FIGS. 4 and 6; FIG. 9 illustrates, in block diagram form, a comparator that may be used in the detector circuit of FIGS. 7 and 8, according to some embodiments; FIG. 10 illustrates, in block diagram form, an EMFI detection process that may be used in the security management circuit of FIG. 3; FIG. 11 illustrates a top view of a portion of the floor plan having overlapping sensing loops and showing the dimensions of a first layer of sensing loops; FIG. 12 illustrates a top view of the floor plan of the integrated circuit of FIG.11, which has the same overlapping sensing loops but shows the dimensions of a second layer of sensing loops; FIG. 13 illustrates a top view of an EMFI sensor array with overlapping sensing loop sets according to another embodiment of the present disclosure; and FIG. 14 illustrates, in partial block diagram and partial schematic form, another EMFI sensor that may be used in the sensing loops of FIGS. 4 and 6. In the following description, similar or identical elements are referred to by the use of the same reference numerals in different drawings. Unless otherwise noted, the word "coupled" and the associated verb forms include both direct and indirect electrical connections by means known in the art, and unless otherwise noted, any description of direct connection also includes alternative embodiments employing suitable forms of indirect electrical connection. DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS The invention is based on the object of providing an integrated circuit with improved protection against electromagnetic fault injection and a method for designing an integrated circuit with improved protection against electromagnetic fault injection. This object is achieved by the features of the corresponding independent claims. Embodiments of the invention are specified in the dependent claims. Fig. 1 illustrates, in block diagram form, a prior art electromagnetic fault injection (EMFI) system 100. The EMFI system 100 generally includes an integrated circuit 110, a circuit board 120, a movable platen 130, a host control system 140, an EMFI glitch generator 160, and an EMFI probe 170. The integrated circuit 110 is mounted on and electrically connected to the circuit board 120. The circuit board 120 rests on the movable platen 130. A motorized stepper motor system, not shown in Fig. 1, is used to move the movable platen 130 horizontally and vertically in small increments. The host control system 140 is bidirectionally connected to the board 120 and is capable of sending electrical test patterns to the integrated circuit 110 via the board 120 and measuring electrical feedback from the integrated circuit 110 via the board 120.The host control system 140 also has an output to provide a trigger signal to the EMFI glitch generator 160. The EMFI glitch generator 160 provides a short-duration high-voltage pulse to the EMFI probe 170. The EMFI probe 170 then emits a magnetic field that can cause the failure of the integrated circuit 110. The host control system 140 performs an EMFI sweep on the integrated circuit 110. For example, a hacker may attempt to cause a program error so they can insert invalid boot firmware into the integrated circuit 110. In this case, the invalid boot firmware would allow the hacker to inspect and modify internal registers. The EMFI glitch generator 160 provides a high-energy spike or pulse of positive or negative polarity to the EMFI probe 170, which generates an EMFI pulse for a very localized area of the integrated circuit 110. The EMFI probe 170 is a miniaturized EMFI injector positioned over a specific location in the integrated circuit 110. For example, the EMFI probe 170 discharges a capacitor bank into a coil when it receives the pulse from the EMFI glitch generator 160, thereby generating an EMFI.The EMFI glitch generator 160 waits a predefined time (glitch offset) from a reference event, such as the system reset, provided by the host control system 140 to the integrated circuit 110 via the board 120, and emits a pulse when the host control system 140 asserts the TRIGGER signal. The host control system 140 communicates with the board 120 and monitors the behavior of the integrated circuit 110. The motorized stepper motor system manipulates the movable platen 130 and thus the integrated circuit 110 relative to the EMFI probe 170. The host control system 140 initiates a glitch sweep of the EMFI pulses across the surface of the integrated circuit 110 until it causes a firmware authentication operation to malfunction in a desired manner, for example, during booting of the integrated circuit 110. Finally, the host control system 140 can determine a desired position for the EMFI probe 170 and the desired glitch offset that caused the failure, for example, during the firmware boot authentication process, so that the host control system 140 can provide instructions to read and modify the memory on the integrated circuit 110. Fig. 2 illustrates, in side view, an electric field model 200 generated by an EMFI probe tip 210. The EMFI probe tip 210 extends downward and tapers to a point with a width designated "D." The width D may be, for example, approximately 0.2 millimeters (mm) / 200 micrometers (µm). A wire loop 220 is used to create a clockwise current flow. Fig. 2 shows the loop 220 as one turn of wire, but it is generally formed with one or more turns of wire around the EMFI probe tip 210. Shown in Fig. 2 are the electromagnetic field lines 230 extending along the probe tip 210 around the loop 220. The EMFI probe tip 210 generates electromagnetic field lines 230 caused by a large step-like increase in current through the EMFI glitch generator, such as EMFI glitch generator 160 of Fig. 1 .However, the EMFI noise pulse is localized around the EMFI probe tip 210 and generally decreases with the square of the distance from the EMFI probe tip 210. Figure 3 illustrates, in block diagram form, an integrated circuit 300 that can be hacked using EMFI techniques. Integrated circuit 300 is a microcontroller unit (MCU) formed on a single chip and generally includes a digital logic circuit 310 and an analog circuit 320. Digital logic circuitry section 310 includes a central processing unit and memory block 311, a set of internal buses 312, a set of serial interfaces 313, an encryption engine 314, a set of input / output (I / O) ports 315, a set of timers and triggers 316, and security management circuitry 318. Digital logic circuitry section 310 illustrates a representative set of digital circuits commonly found in integrated circuit MCUs. Other integrated circuit MCUs will include various combinations of these and similar digital circuit blocks. The analog circuitry portion 320 includes a clock control circuitry 322, a power management circuitry 324, and a set of analog interfaces 326. The analog circuitry portion 320 illustrates a representative set of analog circuitry commonly found in integrated circuit MCUs, and other integrated circuit MCUs will include various combinations of these and similar analog circuitry blocks. It's worth noting that attempts to hack integrated circuit MCUs generally focus on digital circuits, such as those in the digital logic circuitry section 310. A successful hack may result from modifying the results of a conditional branch operation, allowing the branch to take the wrong branch, providing the hacker with the opportunity at a critical point in program execution to deliver code to take control of the MCU's operation, read the state of registers, and ultimately understand the software and read critical data. For example, a cryptographic certificate can be used to delegate host firmware development and debug access to an authorized developer.During cryptographic authentication, an EMFI pulse can be injected into the integrated circuit, which may be using the encryption engine 314. The control program, real-time operating system, or the like can validate the signature, which is unknown to the hacker. If the EMFI pulse is applied during the signature validation process, even though the hacker enters an invalid signature, the result could be falsely evaluated as valid, and the firmware could then be booted from an external source, e.g., from malicious firmware provided by the hacker. However, as described below, integrated circuit 300 includes circuitry capable of detecting highly localized EMFI pulses at location 310 of the digital logic circuit and providing a pulse detection signal to security management circuit 318. Security management circuit 318 can then take appropriate countermeasures, i.e., perform a protection operation. These countermeasures may include resetting integrated circuit 300, selectively erasing sensitive information from integrated circuit 300, activating a debug interface to invalidate a cryptographic authentication operation and disabling access to the debug interface, and erasing secrets and / or functions of integrated circuit 300. Integrated circuit 300 uses EMFI sensors in conjunction with security management circuit 318. An EMFI sensor, in turn, includes a sensing loop and a detector circuit. An EMFI attack generates localized areas of large, but transient, magnetic fields to locally destroy circuit traces. The size of the sensing loop depends on the expected dimensions of the EMFI probe; probes on the order of 200 µm in diameter are currently known to be used. The magnetic field strength of an EMFI pulse can be analyzed in terms of the probe diameter and the probe height above the integrated circuit chip. The voltage induced on a victim signal or detector loop within the targeted integrated circuit is proportional to the time derivative of the component of the magnetic field perpendicular to the surface of the integrated circuit, i.e., the z-component. The induced voltage is also proportional to the surface integral of the z-component of the time derivative of the magnetic field. For detector loops (and victim signal traces) that are much smaller than the area over which the attacker's magnetic field is large, the integral (and thus the voltage) is roughly proportional to the area of the detector loop.However, if the detector loop is much larger than the attacker's magnetic field, the detector loop will include regions where the field polarity has reversed; therefore, for very large detector loop areas, the integral (and thus the voltage) approaches zero as the loop size increases. The detector loops are essentially larger than the victim signal traces, so the detector may be more sensitive than the victim signal trace(s) but not much larger than the attacker's field size. Furthermore, a single large loop may not be an efficient solution unless the circuit to be defended is smaller than the attacker's magnetic field. Therefore, based on the expected size of the attacker's probes and considering reasonable limits that can be applied to the length of victim signal traces, the inventors have determined that on-chip EMFI pulse detection loops on the order of a few hundred micrometers in width and height are preferable. If a digital core or a discrete location of the digital logic circuit on the integrated circuit chip is larger than this size, multiple loops can be used together to cover the digital core. This situation is now described. Fig. 4 illustrates a top view of an EMFI sensor array 400 that can detect an EMFI pulse in a region of an integrated circuit according to one embodiment of the present disclosure. EMFI sensor array 400 includes an array of EMFI sensors, including representative EMFI sensors 410, 420, 430, 440, 450, and 460 in an array of two rows and three columns. Each EMFI sensor is depicted as a rectangle with a small triangle in the upper left corner. The rectangle represents a sensing loop formed with one or more conductor turns around a corresponding portion of the logic circuit (not separately shown in Fig. 4) whose operation is affected by an EMFI pulse.The relative positioning of the detection loop and the part of the logic circuit can be specified as follows: A projection of an outer perimeter of the part of the logic circuit onto a surface of a substrate of the integrated circuit 300 lies within a projection of an inner perimeter of the detection loop onto the surface of a substrate of the integrated circuit 300. The detection loop can be formed with one or more conductors around a periphery of the detection loop. The small triangle represents a detector circuit connected to the detection loop, which has an output for providing a pulse detection signal in response to an EMFI pulse of at least a certain strength. An EMFI pulse strength can be determined as the maximum of an absolute value of a voltage generated by the EMFI pulse at the ends of a detection loop, e.g.the detection loops 710, 811, 812, which are described below. A safety management circuit, such as safety management circuit 318 of Fig. 3, is connected to the outputs of detector circuits 410-460 in corresponding EMFI sensors and, in response to activation of a corresponding pulse detection signal from one or more EMFI sensors of EMFI sensor array 400, performs a protection operation to secure integrated circuit 300. Each EMFI sensor has a sensing loop small enough to detect an EMFI pulse from a nearby EMFI probe of a particular diameter. For example, if the diameter is 200 µm, then sensing loops 410-460 are small enough to detect sufficient energy if the EMFI probe were in the center, farthest from any part of the sensing loop. Advantageous details of the construction of the detection loops and safety management circuits will now be described using some specific examples. Fig. 5 illustrates a top view 500 of the EMFI sensor array 400 of Fig. 4 when an EMFI probe tip is placed at two example positions 510 and 520. The sensitivity for detecting EMFI attacks is reduced when the magnetic field is focused along a loop boundary because no single loop integrates the entire field. For example, when the EMFI probe tip is placed at position 510, it crosses the detection loops of EMFI sensors 410 and 420. When the EMFI probe tip is placed at position 520, the EMFI probe tip crosses the detection loops of EMFI sensors 420, 430, 450, and 460. When using the EMFI sensor array 400, the detector circuitry in each EMFI sensor must be robust enough to detect the reduced energy under these conditions. Figure 6 illustrates a top view of an EMFI sensor array 600 with overlapping sets of sensing loops according to another embodiment of the present disclosure. The EMFI sensor array 600 has two overlapping sets of EMFI sensors, including the EMFI sensor array 400, as described in Fig. 4 above, and an EMFI sensor array 600. The EMFI sensor array 600 comprises three rows of non-overlapping sensing loops, including a row 610, a row 620, and a row 630. Row 610 includes the EMFI sensors 611, 612, 613, and 614. Row 620 includes the EMFI sensors 621, 622, 623, and 624. Row 630 includes the EMFI sensors 631, 632, 633, and 634. Each EMFI sensor is again depicted as a rectangle with a small triangle in the upper left corner, where the rectangle represents a sensing loop connected to one or more conductors around a corresponding Part of the logic circuit (not shown in Fig.6), and the small triangle represents a detector circuit connected to the sensing loop and having an output for providing a pulse detection signal in response to an EMFI pulse of at least a certain strength. The relative positioning of the sensing loops and the corresponding portions of the logic circuit can be specified as described above with reference to Fig. 4. Fig. 6 shows how sensitivity can be increased by adding an overlapping layer of sensing loops, which reduces the likelihood of positioning the EMFI probe at a location where the magnetic field is canceled in the nearest loop but too weak to be detected by another loop. Fig. 7 illustrates, in partial block diagram and partial schematic form, an EMFI sensor 700 that can be used as EMFI sensors 400 and 600 of Figs. 4 and 6, respectively. The EMFI sensor 700 generally includes a bias circuit 705, a sense loop 710, and a detector circuit 720. The bias source 705 has an output for providing a bias voltage labeled "VREF." VREF may, for example, be a voltage approximately midway between a positive power supply voltage labeled "VDD" and ground. The sense loop 710 has a first end connected to the output of the bias circuit 705 and a second end. The detector circuit 720 includes a comparator 722, a flip-flop 724, a comparator 726, and a flip-flop 728.Comparator 722 has a positive input for receiving a voltage labeled "VREF+DELTA," a negative input connected to the second end of sense loop 710, and an output. The voltage labeled "VREF+DELTA" can, for example, be a voltage approximately midway between a bias voltage labeled "VREF" and the positive power supply voltage labeled "VDD." For example, if VDD = 3.0 volts, then VREF = 1.5 volts and VREF+DELTA = 2.25 volts.Flip-flop 724 is a clocked D-type flip-flop having a D input connected to a power supply terminal providing the power supply voltage VDD, a clock input labeled "CK" connected to the output of comparator 722, an active-low reset input labeled "RN" for receiving a reset signal labeled "R_N," and a Q output providing a logic signal labeled "POSITIVE_PULSE_DETECTED." Comparator 726 has a positive input for receiving a voltage labeled "VREF-DELTA," a negative input connected to the second end of sense loop 710, and an output. The voltage labeled "VREF-DELTA" may, for example, be approximately midway between a bias voltage labeled "VREF" and ground. For example, if VDD = 3.0 volts, then VREF = 1.5 volts and VREF-DELTA = 0.75 volts.Flip-flop 728 is a clocked D flip-flop with a D input connected to a power supply terminal providing the power supply voltage VDD, a CK input connected to the output of comparator 726, an active-low reset input RN for receiving the reset signal R_N, and a Q output providing a logic signal labeled "NEGATIVE_PULSE_DETECTED." In operation, the EMFI sensor 700 uses a single sensing loop, sense loop 710, to detect both positive and negative EMFI pulses. The positive EMFI pulse can be caused by a decrease in a magnetic field of a first polarity or an increase in a magnetic field of a second polarity, while the negative EMFI pulse can be caused by an increase in the magnetic field of the first polarity or a decrease in the magnetic field of the second polarity, where the first polarity is opposite to the second. The first end of sense loop 710 receives VREF, a voltage approximately midway between VDD and ground. At the beginning of operation, integrated circuit 300 asserts the R_N signal, resets flop-flops 724 and 728, and causes their Q outputs to go low. The circuit branch formed by comparator 722 and flip-flop 724 detects a positive EMFI pulse.When the second end of the capture loop 710 rises above VREF+DELTA, the output of comparator 722 goes high, causing flip-flop 724 to latch the high logic level at the D input and thereby latching the POSITIVE_PULSE_DETECTED signal at its Q output. The circuit branch formed by comparator 726 and flip-flop 728 detects a negative EMF pulse. When the second end of the capture loop 710 falls below VREF+DELTA, the output of comparator 726 goes high, causing flip-flop 728 to latch the high logic level at the D input and thereby latching the NEGATIVE_PULSE_DETECTED signal at its Q output. Thus, the detector circuit 720 detects and latches transient EMF events in either the positive or negative direction. Although Fig. 7 shows the same DELTA value for both the positive and negative branches, different DELTA values may be used in other embodiments to compensate for asymmetry in circuit operation. Detector circuit 720 represents an ideal detector circuit. However, using bias circuit 705 in the middle of the supply voltage results in power supply bottlenecks and requires at least significant circuitry, e.g., for comparators 722 and 726. Therefore, in some embodiments, it may not meet the design requirements to reduce current consumption to near zero in certain low-power conditions. Furthermore, many integrated circuits are implemented using standard cells and circuits that are automatically routed within a standard cell core area. Therefore, it is difficult to embed distributed EMFI sensors within the core area of standard cells unless the distributed EMFI sensors are also implemented using standard cells and can be automatically routed at the same time as the surrounding circuits are routed. Fig. 8 illustrates, in partial block diagram and partial schematic form, another EMFI sensor 800 that may be used in the EMFI sensors 400 and 600 of Figs. 4 and 8, respectively. The EMFI sensor 800 includes separate positive and negative sensing loops and positive and negative detector circuit branches. The EMFI sensor 800 includes a sensing loop 810 and a detector circuit branch 820. Sensing loop portion 810 includes a positive sense loop 811, a clamp circuit 812, a negative sense loop 815, and a clamp circuit 816. The positive sense loop 811 has a first end connected to ground and a second end. The clamp circuit 812 is connected to the second end of the positive sense loop 811. The negative sense loop 815 has a first end connected to VDD and a second end. The clamp circuit 816 is connected to the second end of the negative sense loop 815. The detector circuit portion 820 includes a comparator 822, a flip-flop 824, a comparator 826, and a flip-flop 828. The comparator 822 has an input connected to the second end of the detection loop 811 and a TRUE output. Flip-flop 824 is a clocked D flip-flop with a D input connected to VDD, a clock input CK connected to the output of the comparator 822, an active-low reset input RN for receiving a reset signal R_N, and a Q output providing the POSITIVE_PULSE_DETECTED signal. The comparator 826 has an input connected to the second end of the detection loop 815 and a complementary output.Flip-flop 828 is a clocked D flip-flop with a D input connected to VDD, a clock input CK connected to the output of comparator 826, an active-low reset input RN for receiving a reset signal R_N, and a Q output providing the NEGATIVE_PULSE_DETECTED signal. Positive sense loop 811 and negative sense loop 815 can be routed side by side to reduce the impact on the integrated circuit layout. For the positive detector branch, the second end of positive sense loop 811 is typically driven to a low logic level by connecting a first end of positive sense loop 811 to ground. An EMI pulse produces a positive pulse at a second end of positive sense loop 811, i.e., an increase in voltage when measured with respect to ground. Clamp circuit 812 clamps the voltage at a high level, high enough to be detected by comparator 822, but limited to a level that does not damage the transistors in comparator 822.Clamp circuit 812 can be implemented as a Zener diode, allowing current to flow to ground when a voltage at the second end of positive sense loop 811 exceeds a threshold reverse voltage of the Zener diode. Alternatively, clamp circuit 812 can be implemented as a diode with its anode connected to the second end of sense loop 811 and its cathode connected to VDD. Comparator 822 sends a well-formed logic high pulse to flip-flop 824. Flip-flop 824 detects the positive pulse and asserts the POSITIVE_PULSE_DETECTED signal to a logic high level. For the negative detector branch, a second end of negative sense loop 815 is brought to a logic high level, typically by connecting a first end to VDD. An EMF pulse produces a negative pulse at a second end of negative sense loop 815, i.e., a voltage drop when measured with respect to ground.Clamp 816 clamps the voltage to a low level, low enough to be detected by comparator 826, but limited to a level that does not damage the transistors in comparator 826. Clamp circuit 816 can be implemented as a Zener diode, allowing current to flow to VDD when a voltage at the second end of negative sense loop 815 exceeds a threshold reverse bias of the Zener diode. Alternatively, clamp circuit 815 can be implemented as a diode with its cathode connected to the second end of positive negative sense loop 815 and its anode connected to ground. Comparator 826 sends a well-formed logic high pulse to flip-flop 828. Flip-flop 828 detects the positive pulse event and asserts the POSITIVE_PULSE_DETECTED signal to a logic high level.Thus, the positive detection loop 811 and the negative detection loop can be configured to register EMFI pulses with different magnetic field polarities. In an exemplary embodiment, comparator 822 is formed by two series-connected CMOS inverters whose switching point is used for an implicit comparison, and comparator 826 is formed as a single CMOS inverter. Likewise, flip-flops 824 and 828 can be formed using CMOS transistors. Thus, EMFI sensor 800 consumes little power and consumes power only during the switching operation, reducing the power supply to very low leakage power. Furthermore, comparator 822, comparator 826, and flip-flops 824 and 828 can be easily formed with minimal circuitry using simple CMOS logic circuits in a standard cell array. Fig. 9 illustrates, in block diagram form, a comparator 900 that may be used in the detector circuits of Figs. 7 and 8 according to some embodiments. Comparator 900 includes AND gates 910 and 920, OR gates 930 and 940, and a selector 950. AND gate 910 is a 4-input AND gate, each having a first through a fourth input for receiving a signal labeled "PSENSE," and an output. AND gate 920 is a 2-input AND gate, each having a first and a second input, each receiving the PSENSE signal, and an output. OR gate 930 is a 2-input OR gate, each having a first and a second input, each receiving the PSENSE signal, and an output. OR gate 940 is a 4-input OR gate with first through fourth inputs, each of which receives the PSENSE signal, and one output.The selector 950 has a first input connected to the output of the AND gate 910, a second input connected to the output of the AND gate 920, a third input connected to the output of the OR gate 930, a fourth input connected to the output of the OR gate 940, a first control input for receiving a signal labeled POS_THRES <0> , a second control input for receiving a signal called POS_THRES <1> and an output for providing a logic signal labeled “PCK”. Comparator 900 allows control of the sensitivity of the detector circuit by selectively changing its threshold voltage using only standard digital cells. When used in comparator 822 in the EMFI sensor 800 of Fig. 8, the PSENSE signal is the signal provided by the second end of the positive sense loop 811, and the PCK signal is the logic signal provided to the CK input of flip-flop 824. Each logic gate has a different threshold voltage, and logic signals, e.g., POS_THRESH <0> and POS_THRESH <1> , select which logic gate, e.g., one of 910, 920, 930, 940, is used to form the signal provided at the CK input of flip-flop 824. In this way, a selectable threshold comparator can be formed using only standard digital cells. A comparable selectable threshold inverting comparator used in comparator 826 of Fig.8 can be formed by simply adding an inverter between the output of selector 950 and the CK input of flip-flop 828. Fig. 10 illustrates, in block diagram form, an EMFI detection processing circuit 1000 that may be used in the safety management circuit 318 of Fig. 3. The EMFI detection processing circuit 1000 includes a set of EMFI detector circuits 1010, an OR gate 1020, and a safety management circuit 1030. The EMFI detector circuits 1010 include representative detector circuits 1011, 1012, and 1013, each of which selectively activates an output signal to a logic high level to indicate that an EMFI pulse has been detected in the corresponding detection loop. The OR gate 1020 has inputs connected to the outputs of the corresponding detector circuits and an output that provides a signal labeled "EMFI DETECTED" to an input of the safety management circuit 1030. The security management circuit 1030 represents the remainder of the security management circuit 318.It would therefore contain a circuit to implement one of the protective measures described above. Fig. 11 illustrates a top view 1100 of a portion of an integrated circuit floor plan with overlapping sense loops, showing the dimensions of a first layer of sense loops. The integrated circuit floor plan includes a typical layout in which digital circuitry is arranged between and adjacent to analog circuit blocks or open areas. In this example, the shapes of the polygons defining the sense loops are irregular. The integrated circuit floor plan includes polygons 1110, 1120, 1130, 1140, 1150, and 1160, whose dimensions are specified to be sub-µm. Figure 12 illustrates a top view 1200 of the integrated circuit footprint of Figure 11, with the same overlapping sense loops, but showing the dimensions of a second layer of sense loops. The integrated circuit footprint includes polygons 1210 and 1220 in the second layer, whose dimensions are shown in µm. The sense loops in the first and second layers are assumed to be sufficient to protect against a localized EMI pulse generated by an EMI probe with a diameter on the order of 200 µm. Fig. 13 illustrates a top view of an EMFI sensor array 1300 with overlapping sensing loops according to another embodiment of the present disclosure. The EMFI sensor array 1300 includes an array of EMFI sensors using different metal layers to form each sensing loop, with the horizontal loop segments or "routes" located in one metal layer and the vertical loop routes located in another metal layer. These metal layers and other metal layers mentioned further below are different metal interconnect levels implemented at different levels relative to a substrate level of the integrated circuit 300.For example, a first EMFI sensor is formed by a detector circuit 1310, shown as a rectangle in the upper left corner of a sensing loop formed by a horizontal metal segment 1312 at the top and a horizontal metal segment 1314 at the bottom in a particular metal layer labeled "M1," and a vertical metal segment 1316 at the left and a vertical metal segment 1318 at the right in another metal layer labeled "M2." The horizontal and vertical metal segments are connected by metal vias as corners of the sensing loop. The terms "horizontal" and "vertical" refer to directions with respect to a drawing plane in Fig. 13, where the vertical direction is the top-to-bottom direction and the horizontal direction is the left-to-right direction, as Fig. 13 is oriented.The vertical and horizontal segments of the metal layers are parallel to the substrate plane of the integrated circuit 300. Similarly, a second EMFI sensor, overlapping the first EMFI sensor, is formed using two horizontal metal segments in M1 and two vertical segments in M2, connected at the corners with vias and having a detector circuit 1320 in the upper left corner. The downward-extending EMFI sensor array 1300 includes two additional EMFI sensors following the same pattern, with detector circuits 1330 and 1340 in their upper left corners vertically overlapping the first two. On the right side, the EMFI sensor array 1300 includes additional EMFI sensors that horizontally overlap the right portions of the preceding sensors in the array. The EMFI sensor array 1300 demonstrates a way to form each sensing loop in multiple metal layers, resulting in a sensor array that includes a series of horizontally and vertically overlapping sensing loops. When an EMFI pulse 1350 is applied, it can be detected by multiple sensing loops. Furthermore, because the metal segments are located in different metal layers based on their direction, they can be conveniently interspersed with existing signal paths, resulting in minimal impact on chip layout. Fig. 14 illustrates, in partial block diagram and partial schematic form, another EMFI sensor 1400 used in the sensing loops of Fig. 4 and Fig. 6. The EMFI sensor 1400 includes a sensing loop 1410, a transimpedance amplifier 1422, a comparator 1424, and a flip-flop 1426. The sensing loop 1410 has a first end connected to ground and a second end and is used to detect a positive EMFI pulse. The transimpedance amplifier 1422 has an input connected to the second end of the sensing loop 1410 and an output. Comparator 1424 has a positive input connected to the output of the transimpedance amplifier 1422, a negative input for receiving VREF, and an output.Flip-flop 1426 is a clocked D flip-flop with a D input connected to VDD, a clock input CK connected to the output of comparator 1424, an active-low reset input RN for receiving the reset signal R_N, and a Q output providing the POSITIVE_PULSE_DETECTED signal. Transimpedance amplifier 1422 converts a current pulse induced by the changing magnetic field into a voltage pulse—that is, an increase in voltage when measured with respect to ground. When the voltage pulse exceeds VREF, the output of comparator 1424 goes high, clocking flip-flop 1426 and setting its Q output, the POSITIVE_PULSE_DETECTED signal, to a logic high level. A corresponding negative pulse detector circuit can be formed using a corresponding pattern. In one form, an integrated circuit with protection against malicious EMFI pulse attacks was described. The integrated circuit uses an array of EMFI sensors. Each of the EMFI sensors includes a sensing loop in which a localized EMFI pulse induces a current and voltage pulse, as well as a detector circuit. The sensing loop is a conductor around a corresponding location of the digital logic circuit whose operation is affected by an EMFI pulse. The detector circuit is connected to the sensing loop and has an output for providing a pulse detection signal in response to an EMFI pulse of at least a predetermined strength. A security management circuit performs a protection operation to secure the integrated circuit in response to activation of a corresponding pulse detection signal from at least one of the EMFI sensors.In one form, the majority of EMFI sensors can be formed as two overlapping layers. The above-disclosed subject matter is to be considered illustrative and not restrictive, and the appended claims are intended to cover all such modifications, extensions, and other embodiments that fall within the scope of the claims. For example, each sensor loop may be implemented as one or more turns of wire. Note, however, that since a loop with N turns has N times the capacitance and N times the resistance, the bandwidth would be reduced by a factor of N2. The sensitivity would increase by a factor of N for long-time glitches, while it would decrease by a factor of N for short-time glitches. Therefore, single-turn loops may be sufficient for many integrated circuits. The sensor loops can be formed in a dedicated metal layer, or they can be virtual loops formed by horizontal and vertical paths in corresponding metal layers and connected at the corners by metal-to-metal vias. The detector circuits can be formed in various ways. For example, positive and negative detector circuits can detect a pulse on a sensor loop biased to a medium supply voltage, or each EMFI sensor can use separate sensing loops and detector circuits for positive and negative EMFI pulse detectors. The sensing loops can have regular shapes, such as squares, and be tiled over large logic circuit areas, or they can have irregular polygonal shapes to detect EMFI pulses for small, irregularly shaped digital logic circuit areas.

Claims

An integrated circuit (300) comprising:a plurality of electromagnetic fault injection sensors (400), each of said plurality of electromagnetic fault injection sensors comprising:a sensing loop (710 / 810) comprising a conductor around a corresponding portion of a logic circuit whose operation is affected by an electromagnetic pulse, a positive sensing loop (811) having a first end for receiving a negative reference voltage and a second end, and a negative sensing loop (815) having a first end for receiving a positive reference voltage and a second end;anda detector circuit (720 / 820) coupled to said detection loop (710 / 810) and having an output for providing a pulse detection signal in response to a pulse of at least a predetermined magnitude, anda security management circuit (318) for performing a protection operation for securing the integrated circuit (300) in response to activation of the pulse detection signal from one of said plurality of electromagnetic fault injection sensors (400).; The integrated circuit (300) of claim 1, wherein said detection loop of each of said plurality of electromagnetic fault injection sensors (400) overlaps said detection loop of at least one other of said plurality of electromagnetic fault injection sensors (400). The integrated circuit (300) of claim 2, wherein said detection loop of each of the plurality of electromagnetic fault injection sensors (400) is implemented in both a first metal layer (M1) and a second metal layer (M2) of the integrated circuit (300). The integrated circuit (300) of claim 1, wherein said detector circuit (820) comprises:a comparator (822 / 826) having an input coupled to said second end of one of said positive sense loops (811) and said negative sense loop (815), and an output; anda latch (824 / 828) having an input coupled to said output of said comparator (822 / 826) and an output for providing the pulse detection signal in response to an activation of said output of said comparator (822). The integrated circuit (300) of claim 4, wherein said comparator (822 / 826) comprises:at least one logic gate (910 / 920 / 930 / 940), each having an input coupled to said second end of said positive sense loop (811) or said negative sense loop (815) and an output, said at least one logic gate (910 / 920 / 930 / 940) having a circuit-programmable threshold. The integrated circuit (300) of claim 5, wherein: said positive reference voltage corresponds to a power supply voltage; said negative reference voltage corresponds to a ground voltage; and the sense loop (810) further comprises: a first clamp circuit (812) coupled to said second end of said positive sense loop (811) and limiting a positive voltage at said second end of said positive sense loop (811) to said power supply voltage plus a first predetermined voltage and a negative voltage at said second end of said positive sense loop (811) to said ground voltage minus a second predetermined voltage;anda second clamp circuit (816) coupled to said second end of said negative sense loop (815) and limiting a negative voltage at said second end of said negative sense loop (815) to said power supply voltage plus a first predetermined voltage and a negative voltage at said second end of said negative sense loop (815) to said ground voltage minus a second predetermined voltage; An integrated circuit (300) comprising:a plurality of electromagnetic fault injection sensors (400), each of said plurality of electromagnetic fault injection sensors comprising:a sensing loop (710 / 810) comprising a conductor around a corresponding portion of a logic circuit whose operation is affected by an electromagnetic pulse, said sensing loop (710) having a first end for receiving a first reference voltage and a second end;anda detector circuit (720 / 820) coupled to said detection loop (710 / 810) and having an output for providing a pulse detection signal in response to a pulse of at least a predetermined magnitude, the detector circuit (720) comprising: a comparator (722 / 726) having a first input for receiving a second reference voltage that differs from said first reference voltage by a first predetermined amount, a second input coupled to said second end of said detection loop (710), and an output; and a latch (724 / 728) having an input coupled to said output of said comparator (722 / 726) and an output for providing the pulse detection signal in response to an activation of said output of said comparator (722 / 726);anda security management circuit (318) for performing a protection operation to secure the integrated circuit (300) in response to activation of a corresponding pulse detection signal from one of said plurality of electromagnetic fault injection sensors (400),wherein the integrated circuit (300) operates using a power supply voltage and a ground voltage, and said first reference voltage is between said power supply voltage and said ground voltage; An integrated circuit (300) comprising:a digital logic circuit portion (310) whose operation is influenced by an electromagnetic pulse, comprising:a plurality of electromagnetic fault injection sensors (400), each of said plurality of electromagnetic fault injection sensors comprising:a sense loop (710 / 810) comprising a conductor around a corresponding portion of a logic circuit, a positive sense loop (811) having a first end for receiving a negative reference voltage and a second end, and a negative sense loop (815) having a first end for receiving a positive reference voltage and a second end;anda detector circuit (720 / 820) coupled to said detection loop (710 / 810) and having an output for providing a pulse detection signal in response to a pulse of at least a predetermined magnitude, anda security management circuit (318) for performing a protection operation for securing the integrated circuit (300) in response to activation of the pulse detection signal from at least one of said plurality of electromagnetic fault injection sensors (400), andan analog circuit portion (320) coupled to the digital logic circuit portion (310); The integrated circuit (300) of claim 8, wherein said detection loop of each of said plurality of electromagnetic fault injection sensors (400) overlaps said detection loop of another of said plurality of electromagnetic fault injection sensors (400). The integrated circuit (300) of claim 9, wherein said detection loop of each of said plurality of electromagnetic fault injection sensors (400) is implemented in both a first metal layer (M1) and a second metal layer (M2) of the integrated circuit (300). The integrated circuit (300) of claim 10, wherein said detector circuit (820) comprises:a comparator (822 / 826) having an input coupled to one of said second end of said positive sense loop (811) and said second end of said negative sense loop (815), and an output; anda latch (824 / 828) having an input coupled to said output of said comparator (822 / 826) and an output for providing the pulse detection signal in response to an activation of said output of said comparator (822). The integrated circuit (300) of claim 11, wherein said comparator (822 / 826) comprises:at least one logic gate (910 / 920 / 930 / 940), each having an input coupled to said second end of said positive sense loop (811) or said negative sense loop (815) and an output, said at least one logic gate (910 / 920 / 930 / 940) having a circuit-programmable threshold. The integrated circuit (300) of claim 12, wherein: said positive reference voltage corresponds to a power supply voltage; said negative reference voltage corresponds to a ground voltage; and each of said plurality of electromagnetic fault injection sensors (400) further comprises: a first clamp circuit (812) coupled to said second end of said positive sense loop (811) that limits a negative voltage at said second end of said positive sense loop (811) to said power supply voltage plus a first predetermined voltage and a negative voltage at said second end of said positive sense loop (811) to said ground voltage minus a second predetermined voltage;anda second clamp circuit (816) coupled to said second end of said negative sense loop (815) that limits a negative voltage at said second end of said negative sense loop (815) to said power supply voltage plus a first predetermined voltage and a negative voltage at said second end of said negative sense loop (815) to said ground voltage minus a second predetermined voltage; An integrated circuit (300) comprising:a digital logic circuit portion (310) whose operation is influenced by an electromagnetic pulse, comprising:a plurality of electromagnetic fault injection sensors (400), each of said plurality of electromagnetic fault injection sensors comprising:a sensing loop (710 / 810) comprising a conductor around a corresponding portion of a logic circuit, said sensing loop (710) having a first end for receiving a first reference voltage and a second end;anda detector circuit (720 / 820) coupled to said detection loop (710 / 810) and having an output for providing a pulse detection signal in response to a pulse of at least a predetermined magnitude, the detector circuit (720) comprising:a comparator (722 / 726) having a first input for receiving a second reference voltage that differs from said first reference voltage by a first predetermined amount, a second input coupled to said second end of said detection loop (710), and an output; and a latch (724 / 728) having an input coupled to said output of said comparator (722 / 726) and an output for providing the pulse detection signal in response to an activation of said output of said comparator (722 / 726);anda security management circuit (318) for performing a protection operation to secure the integrated circuit (300) in response to activation of a corresponding pulse detection signal from at least one of said plurality of electromagnetic fault injection sensors (400); andan analog circuit portion (320) coupled to the digital logic circuit portion (310), wherein the integrated circuit (300) operates using a power supply voltage and a ground voltage, and the first reference voltage is between the power supply voltage and the ground voltage.; The integrated circuit (300) of claim 14, wherein the integrated circuit (300) is a microcontroller and said digital logic circuit portion comprises:a central processing unit and a memory block (311); andat least one digital peripheral (313 / 314 / 315 / 316) connected to said central processing unit and said memory block (311). The integrated circuit (300) of claim 15, wherein the at least one digital peripheral (313 / 314 / 315 / 316) comprises:an encryption processor (314) coupled to said central processing unit and said memory block (311). A method for designing an integrated circuit (300) according to any one of claims 1-16 with protection against electromagnetic fault injection, comprising: determining a digital logic circuit region (310) to be protected, said digital logic circuit region (310) comprising a logic circuit whose operation is affected by electromagnetic fault injection; linking a plurality of subregions to corresponding ones of a plurality of electromagnetic fault injection sensors (400), said linking comprising: defining a size of a sensing loop (710 / 810) for each of the plurality of electromagnetic fault injection sensors (400), said sensing loop (710 / 810) comprising a conductor around a corresponding part of a logic circuit;Determining a number of said plurality of electromagnetic fault injection sensors (400) of said size to cover said digital logic circuit area (310) using overlapping sensing loops;Designing a layout of the sensing loop of each of said plurality of electromagnetic fault injection sensors (400);andcoupling a respective detector circuit (720 / 820) having an output for providing a pulse detection signal in response to a pulse of at least a predetermined magnitude to the detection loop of each of said plurality of electromagnetic fault injection sensors (710 / 810), andcoupling a safety management circuit (318) to outputs of said respective detector circuits (720 / 820) in said detection loop of each of said plurality of electromagnetic fault injection sensors (400), said safety management circuit (318) being configured to perform a safety operation in response to activation of an output of at least one respective detector circuit (720 / 820) of each of said plurality of electromagnetic fault injection sensors (710 / 810); The method of claim 17, further comprising:automatically routing a layout of a logic circuit of the integrated circuit (300) within respective detection loops (710 / 720) of said plurality of electromagnetic fault injection sensors in a plane of the integrated circuit (300). The method of claim 17, wherein the layout of the sensing loop of each of said plurality of electromagnetic fault injection sensors comprises: designing a layout of said sensing loop of each of said plurality of electromagnetic fault injection sensors such that said sensing loop of each of said plurality of electromagnetic fault injection sensors (400) overlaps said sensing loop of another of said plurality of electromagnetic fault injection sensors (400). The method of claim 19, further comprising:designing said detection loop of each of said plurality of electromagnetic fault injection sensors (400) in both a first metal layer (M1) and a second metal layer (M2) of the integrated circuit (300).

Citation Information

Patent Citations

  • Integrated circuit, mobile device having the same, and hacking preventing method thereof

    US20170357829A1

  • Integrated circuit protection method, and corresponding integrated circuit

    US20180005964A1

  • Countermeasures for fault-injection attacks by optical and electromagnetic pulses

    US20180232542A1