METHOD AND APPARATUS FOR DETECTING A TAMPER CONDITION AND ISOLATING A CIRCUIT THEREFROM

Abstract: A system is disclosed for isolating a bond pad (2) from the rest of the circuitry of a semiconductor chip (4) in a manner that protects the chip from applied signals that are outside the normal operating range and which tamper with the operation of the system. The system includes the use of a controllable switch (8) for routing the signal from the bond pad to the circuit and a detector for detecting a tamper condition on the bond pad. The detection of a tamper condition causes the detector to inform the microcontroller on the chip to, for example, terminate the operation in progress, perform a controlled system shutdown, disable pre-arranged functions, or record the fact that a tamper condition occurred.

Description: 2 METHOD AND APPARATUS FOR DETECTING A TAMPER 3 CONDITION AND ISOLATING A CIRCUIT THEREFROM 4 5 FIELD OF THE INVENTION 6 The present invention relates in general to electronic circuitry, and more 7 specifically to a chip that can detect a tamper voltage and prevent that voltage from 8 corrupting the other circuitry on the chip. 9 lo BACKGROUND OF THE INVENTION π Electrical signals are typically routed to and from a semiconductor chip or 12 integrated circuit through bond pads. These bond pads are typically formed of 13 aluminum pads that are electrically connected to the external pins on the chip's 14 package by thin gold bond wires. is Most of the bond pads on a chip are typically used during the normal operation 16 ofthe chip by the end user. However, a manufacturer may include "test pads" that may 17 be used by it to facilitate testing of the chip. For example, and referring to Figure 1, is some flash EPROM (erasable-programmable-read-only-memory) chips contain a 19 "Npp" test pad 2 whereby a voltage (i.e., Npp) can be directly routed to a Flash 20 EPROM memory array 4 in order to perform certain tests. The Npp voltage is typically 2i a relatively high voltage which is generated internally on the chip by a Npp generator 6, 22 as shown in Figure 1. As one of skill in the art of Flash EPROM design will recognize, 23 Npp generator 6 is typically a "charge pump" circuit which is capable of boosting Npp 24 to a voltage higher than the normal voltage levels used elsewhere on the chip. The high 2 5 Npp voltage (typically 12 Volts) is used by the Flash EPROM during the programming 26 (i.e., writing) and erase operations. However, because the magnitude of Vpp generated 27 by Vpp generator 6 can be difficult to control, or because it may be desirable to bypass 28 the internal generation of Vpp, it is sometimes desirable during testing to externally 29 route Vpp into the memory array 4 from Vpp test pad 2. The manufacturer of the chip 30 can then use Vpp test pad 2 to provide a wider range of signals to memory array 4, with 3i such signals being particularly useful in assessing the quality and reliability ofthe chip 32 before sale to a prospective purchaser. 1 It is typical for the manufacturer to disconnect (i.e., open circuit) a test pad after testing has finished and before the chip is sent to the purchaser or end user, for 3 example, at location 8 in Figure 1. In a Flash EPROM chip this disconnection of the 4 Vpp test bond pad is necessary to ensure that the customer or other end user does not 5 tamper with the Vpp voltage and disturb the data state of the memory array. For 6 example, it is important to disconnect the Vpp test pad in Flash EPROM chips that are 7 used in solid state debit cards so that the user will be unable to disturb the data within 8 the cards in a manner which would reflect a higher credit balance than the user actually 9 has. 0 Test bond pads have been disconnected in the prior art in at least three ways. 1 First, a trace which carries signals to and from the test pad can be ablated by using a 2 laser or a particle beam. Typically, the laser or particle beam is directed to a target area 3 on the trace with sufficient energy to remove the trace in that location. Second, the test 4 pad can be made to incorporate a fuse or antifuse which, when exposed to high current s or voltage, will create a short circuit or open circuit respectively. Depending on the 6 location of the fuse or antifuse with respect to the test pad, the test pad can be 7 electrically disconnected from the circuitry on the chip. However, these prior art s techniques for disconnecting a test pad suffer from several drawbacks. Both the 9 ablation/fusing techniques may not result in a perfect open circuit and instead may 0 leave some amount of residual conductive material between the test pad and the i .circuitry. The resulting resistive path may, in the case of a Flash EPROM, allow the 2 user to tamper with the Vpp voltage and thus corrupt data. Also, these prior art 3 techniques, being destructive in nature, may cause other unwanted damage to the chip. 4 Moreover, the creation of a target area or the fuse/antifuse may involve the use of extra 5 processing or testing steps during the manufacture of the chip, adding extra cost and 6 complexity. 7 A third way of disconnecting a test bond pad from other circuitry on a chip is to 8 use a transistor as a switch to controUably allow signals to pass to and from the test 9 bond pad. If the test bond pad is to be used during a special test mode, a signal will be 0 sent to the gate ofthe transistor to turn it on and thereby connect the test pad to the rest i of the circuitry under test. While the use of a transistor avoids the disadvantages 2 associated with ablation or fusing, it is susceptible to tampering by the application of voltages at the test pad that are beyond the normal operating limits of the transistor. For example, an usually high voltage may damage the transistor, allowing it to be bypassed. Also, an usually low voltage, and perhaps even a negative voltage, could cause the transistor to conduct despite the lack of a gate signal, again bypassing the transistor. In either circumstance, the result, in a Flash EPROM, could be the possible corruption of data due to intentional tampering. Given these drawbacks of the prior art, it would be desirable to effectively disconnect a test pad such as the Vpp test pad of a Flash EPROM in such a manner to prevent a tamper condition from corrupting the data within the chip. SUMMARY OF THE INVENTION According to one embodiment of the invention, a system is disclosed for isolating a bond pad from the rest of the circuitry of a semiconductor chip in a manner that protects the chip from applied signals that are outside the normal operating range and which tamper with the operation of the system. The system includes the use of a controllable switch for routing the signal from the bond pad to the circuit and a detector for detecting a tamper condition on the bond pad. The detection of a tamper condition causes the detector to inform the microcontroller on the chip to, for example, terminate the operation in progress, perform a controlled system shutdown, disable pre-arranged functions, or record the fact that a tamper condition occurred. BRIEF DESCRIPTION OF THE DRAWINGS The foregoing and other advantages ofthe invention will become apparent upon reading the following detailed description and upon reference to the drawings in which: Figure 1 shows the manufactured connection of a Vpp test bond pad to a Flash EPROM memory array. Figure 2 shows a block diagram of an embodiment of a tamper detect system built in accordance with the present invention. Figure 3 shows the circuitry ofthe voltage detect block. Figure 4 shows the circuitry ofthe voltage switch block. Figure 5 shows the circuitry ofthe circuit block, including the microcontroller. l Description of Illustrative Embodiments 2 3 The disclosed embodiment was specifically developed to detect whether a tamper condition exists on the Vpp test pad of a Flash EPROM chip, and particularly 5 whether an unacceptably low Vpp voltage is present at the Vpp test pad. However, one 6 of skill in the art of chip design will recognize that use of the disclosed technique is not 7 so limited, and could be applied to a variety of situations and chip products. 8 Importantly, the disclosed technique is not limited to the detection of tamper conditions 9 on test pads, but could be applied to the detection of tamper conditions on normal pads o as well. Also, the disclosed technique may be used to detect a tamper condition at any i node in an electrical schematic, and need not be limited to the detection of tamper 2 conditions at bond pads on integrated circuits. "Tamper condition" as used herein 3 refers to any condition that exceeds specified normal limits, such as an overvoltage, 4 undervoltage, overcurrent, or undercurrent condition, regardless of any intent by the s user in generating such a condition. 6 Figure 2 shows a block diagram of the system of one embodiment of the 7 invention. An input pad 10, such as the Vpp test pad on a Flash EPROM, is input to a s voltage detect block 12 and to a voltage switch block 14. (The input pad 10 may also 9 constitute an input/output pad). In the disclosed embodiment, the voltage detect block 0 12 is used to detect an unacceptably low voltage on input pad 10, and to generate a i tamper signal 16 when such a low voltage is detected. The detection of an 2 unacceptably low Vpp is of special concern in Flash EPROMs because the application 3 of a low Vpp at the Vpp test pad may interfere with the internal generation of Vpp and 4 affect the writing and/or erasure of the memory array. This tamper signal 16 is sent to 5 circuit block 18, which could be a complete Flash EPROM circuit, an embedded Flash 6 EPROM circuit, or any other useful circuit or combination of circuits. Upon receipt of 7 tamper signal 16, circuit block 18 reacts by, for example, terminating the operation in 8 progress (e.g., writing or erasing), performing a controlled system shutdown, disabling 9 pre-arranged functions, or recording the fact that a tamper condition occurred. In this 0 manner, circuit block 18 is protected from the application of a voltage on the input pad i 10 that is too low. 1 Many variations on this basic disclosure are possible without departing from the 2 basic spirit of the invention. For example, voltage detect block 12 could be a circuit 3 which detects an unacceptably high voltage in order to protect circuit block 18 from an overvoltage condition. Optimally, such a high voltage detect block could be used in 5 parallel with low voltage detect block 12 so that two tamper signals (a "tamper high" 6 and a "tamper low") could be generated and passed on to circuit block 18. 7 Additionally, voltage detect block 12 could be a circuit which detects either an 8 unacceptably high or low current to protect circuit block 18 against receiving a poor 9 level of current from input pad 10. Suitable detector circuits for performing these o functions are well known to those skilled in the art of circuit design, but are not i particularly pertinent to the Flash EPROM chips which influenced the present 2 disclosure. Accordingly, such alternative voltage detect circuits are not disclosed 3 herein. 4 Furthermore, and as shown in Figure 2, the basic system could be altered so that s tamper signal 16 is input directly into the voltage switch block 14, perhaps in addition 6 to feeding the tamper signal 16 into circuit block 18 as shown. In addition, the circuit 7 block 18, depending on its current state of operation, could be made to generate a s tamper disable signal 22 which is fed into voltage detect block 12 to temporarily 9 disable the voltage detection capabilities of the disclosed system. Of course, circuit 0 block 18 will have other signals 21 connected to it, some of which will come from i outside the chip. 2 A circuit capable of performing the function of voltage detect block 12 is shown 3 in Figure 3. In this circuit diagram, regular complementary metal-oxide-semiconductor 4 (CMOS) logic transistors are labeled as Nx or Px and denote N-channel and P-channel 5 transistors respectively. The transistor labeled NH1 is a high voltage transistor that 6 contains modified diffusion regions (junctions) which can withstand the application of 7 high voltages (such as Vpp) without breaking down. In the process used to first 8 manufacture the preferred embodiment, NHx transistors have lower thresholds, thicker 9 gate oxides and larger minimum dimensions compared to the regular CMOS logic 0 transistors. Transistors with different features, as found in other manufacturing i processes, can also be used without departing from the basic spirit of the invention. In 2 this embodiment, voltage detect block 12 contains three inverters, II, 12, and 13, one 1 pull-up transistor PI, two disable transistors P2 and N3, and a pass transistor NH In normal operation the voltage on tamper disable 22 is low and pull-up transistor PI 3 attempts to connect tamp_det 24 to Vcc. During testing, input pad 10 is connected to 4 an external supply at a voltage between Vcc and a maximum of about 17 volts. The 5 voltage on input pad 10 is greater than Vcc-Vt(NHl); therefore pass transistor NH1 6 does not conduct and tamp_det 24 remains at a voltage equal to Vcc. After 7 manufacturing and testing is complete and when the circuit is operating in its final 8 point of use, the input pad 10 should be unconnected thus allowing the drain of pass 9 transistor NH1 to float. Under these conditions the voltage on tamp_det 24 is also o equal to Vcc. However, if an external connection is made to input pad 10 and a voltage i is applied which is less than Vcc-Vt(NHl) then NH1 conducts and the voltage on 2 tamp_det 24 is reduced. The relative transistor dimensions of NH1 and PI are chosen 3 such that, once NH1 starts to conduct, the voltage drop across NH1 is minimized to a 4 few tens of millivolts so that the voltage on tamp_det 24 closely follows the voltage on s input pad 10. 6 Tamp_det 24 is then presented to inverter II. If tamp_det 24 is lower than the 7 threshold voltage of inverter II (i.e., Vt(Il)), then the output of II will be a high s voltage, and tamper signal 16 (emerging from buffering inverters 12 and 13) will be 9 high, signaling that a tamper condition (i.e., an unacceptably low voltage) has been 0 detected on input pad 10. If tamp_det 24 is greater than Vt(Il), then tamper signal 16 i will be low, signaling that the voltage on input pad 10 is sufficiently high such that no 2 tamper condition exists. To summarize, voltage detect block 12 generates tamper 3 signal 16 when the voltage on input pad 10 is less than Vt(Il). One skilled in the art 4 will recognize that Vt(Il) can be adjusted to set an appropriate value by adjusting either 5 the relative lengths or widths of transistors N2 and P3, or by modifying their threshold 6 voltage values. 7 Although not strictly necessary to the operation of the invention in a broad 8 sense, a tamper disable signal 22 can be sent from circuit block 18 to voltage detect 9 block 12. When tamper disable signal 22 is high, N3 pulls the output of inverter II and 0 consequently tamper signal 16 to ground, regardless of the voltage of input pad 10. In i this way, the voltage detect function of voltage detect block 12 can be temporarily 1 disabled if circuit block 18 determines that the voltage detect function is not needed or 2 desired for some reason. 3 A circuit capable of performing the function of voltage switch block 14 is 4 shown in Figure 4. As in the prior art diagram shown in Figure 1, the Vpp generator 6 5 is connected to the correct node in the circuit, Vout 20a, which carries the Vpp signal to 6 circuit block 18 through interface bus 20. (All signals labeled as "20x" are signals 7 present within the interface bus 20). During normal operation of the chip, the logic 8 circuitry within the circuit block 18 enables the Vpp generator 6 which then sends an 9 internally-generated Vpp signal to Vout 20a. lo Generally, the voltage switch block 14, when activated, acts to pass the voltage π at input pad 10 to the circuit block 18 via Vout signal 20a. This is accomplished as 12 follows. First, the logic circuitry within circuit block 18 passes signals precharge 20b, 13 discharge 20c, and clock 20d to the voltage switch block through the interface bus 20. 14 If circuit block 18 wishes to enable the switch, it sends the following signals on the is interface bus 20: precharge 20b=high logic, discharge 20c=low logic, and clock 20d is 16 clocked between high and low. Because this combination of logic on the interface bus 17 20 typically signifies that the device is operating in a special test mode, the Vpp is generator 6 is typically disabled at signal 20e as well. When these signals appear at 19 their respective nodes in Figure 3, the combined effect is to "charge pump" the value of 20 gate node 26 to a voltage which is approximately 2(Vcc-Vt) above the voltage on input 2i pad 10. Since 2(Vcc-Vt) is greater than Vt(NH4), NH4 can pass the voltage on input 22 pad 10 to the circuit block 18 through Vout 20a without an appreciable voltage drop 23 across NH4, as is well known in the art. 24 By contrast, the voltage switch block 14 can be disabled by sending the 25 following signal over the interface bus 20: precharge 20b=low logic, discharge 26 20c=high, clock 20d=don't care. When this happens, gate node 26 is pulled to ground 27 through NH7, and transistor NH4 is off. Thus, input pad 10 is isolated from Vout and 28 is not connected to circuit block 18. 29 As noted in the background section, transistor-based switches such as voltage 30 switch block 14 are susceptible to being by-passed by the application of voltages 3i outside the normal voltage operating range. For instance, an external negative voltage 32 applied to input pad 10 may cause NH4 to conduct even if its gate node is at Vss. The 1 negative voltage on the drain of NH4 creates a positive gate-to-source voltage and also creates a negative back-bias effect, which reduces the threshold of NH4. Thus the channel of NH4 may become conducting due to channel inversion and the voltage at the output of Vpp generator 6 on node Vout 20a would be disturbed. NH4 is a high 5 voltage n-channel transistor, so chosen to facilitate the switching of high voltages 6 connected to the input pad 20. Typically, such transistors have fairly low thresholds 7 and, due to the threshold reduction caused by back-bias, NH4 may conduct with a 8 negative voltage as small as 0.3V applied to input pad 10. Another mechanism for 9 disturbing Vout 20a is the bipolar transistor action that occurs when a negative applied o voltage causes the drain of NH4 to become a forward biased emitter. Bipolar action i begins at an applied voltage of about -0.6V on the drain of NH4. Under either of the 2 above circumstances, a low impedance load is applied to the output of Vpp Generator 6 3 such that Vpp generator 6 is unable to supply the high voltages required by circuit block 18. s The application of a negative voltage on input pad 10 would, however, result in 6 the generation of tamper signal 16 from the voltage detect block 12 as previously 7 discussed. This tamper signal is picked up by circuit block 18, which is shown in s further detail in Figure 5. The circuit block 18 is comprised, in a Flash EPROM 9 embodiment, of a microcontroller 30, a Flash EPROM array 32, and read-only memory 0 (ROM) 34, and random-access-memory (RAM) 36. (The ROM 34 and RAM 36 are i primarily used by the microcontroller 30.) When the tamper signal 16 is received by 2 microcontroller 30, the microcontroller 30 treats the signal as an interrupt and 3 immediately and preferably enters a state which aborts any writing or erasing which 4 may be occurring in the Flash EPROM array 32. While one skilled in the art will 5 understand how to configure a microcontroller to so function without undue 6 experimentation, a brief description is provided. When the tamper signal is asserted it 7 is recognized almost immediately, during a single microcontroller clock cycle. The 8 current instruction being processed by the microcontroller is completed and the 9 program counter is pushed onto a stack. The program counter is then loaded with a 0 predetermined content that initiates the servicing of the interrupt. Control of the i microcontroller is then withdrawn from the application program that was running at the 2 time of the interrupt (e.g., writing or erasing) and is given to a secure process that 1 protects data and disables control from external inputs. Depending on the instruction 2 that was executing at the time of the interrupt, microcontroller control is given to the 3 secure process within a few tens of clock cycles. This time delay is typically less than 4 a few microseconds, which is a short time period compared to the time required to 5 write or erase data in Flash EPROM array 32. In other words, the interruption of the 6 writing or erasing program will take place in a quick enough fashion that the data in the 7 Flash EPROM array 32 will not be corrupted. 8 The microcontroller 30 can also be programmed to react in other ways. For 9 example, the microcontroller 30 can, upon the detection of tamper signal 16, perform a lo controlled system shutdown, disable pre-arranged functions, or record the fact that a π tamper condition occurred. As with the program termination mode of operation 12 outlined in the preceding paragraph, the actual details of how to program the 13 microcontroller 30 to perform such functions is well known to those of skill in the art 14 of circuit design and would not involve undue experimentation. is From the foregoing detailed description of a specific embodiment of the 16 invention, it should be apparent that a way of protecting a circuit from a tamper 17 condition has been disclosed. Although specific embodiments of the invention have is been disclosed herein in some detail, this has been done solely for the purposes of 19 illustrating various aspects and features of the invention, and is not intended to be 20 limiting with respect to the scope of the invention. It is contemplated that various 2i substitutions, alterations, and/or modifications, including but not limited to those 22 design alternatives which might have been specifically noted in this disclosure, may be 23 made to the disclosed embodiment without departing from the spirit and scope of the 24 invention as defined in the appended claims. 25 26 27 28 29 30 31

Claims: l CLAIMS 2 3 WHAT IS CLAIMED IS: 4 5 1. A method for protecting a circuit from the application of a primary signal, the 6 primary signal being defined by parameters, the circuit being isolated from the primary 7 signal by a switch, comprising: 8 supplying the primary signal to a detector and to the switch; 9 disabling the switch to interrupt the primary signal from being applied to the lo circuit; and π generating a tamper signal at the detector if at least one of the primary signal 12 parameters is greater than or less than a value set by the detector. 13 14 2. The method of claim 1, wherein the circuit includes a Flash EPROM. 15 16 3. The method of claim 1, wherein one of the parameters of the primary signal is 17 the voltage ofthe primary signal, and the detector is a voltage detector. 18 19 4. The method of claim 3, wherein the tamper signal is generated if the voltage of 20 the primary signal is less than a value set by the voltage detector. 21 22 5. The method of claim 1, wherein one of the parameters of the primary signal is 23 the current ofthe signal, and the detector is a current detector. 24 5 6. The method of claim 1, wherein the primary signal is applied to a bond pad of 6 an integrated circuit device. 7 8 7. The method of claim 6, wherein the bond pad is the Vpp test pad of an 9 integrated circuit containing a Flash ERPOM memory array. 0 i 8. The method of claim 1, further comprising sending the tamper signal to a logic 32 circuit. 1 2 9. The method of claim 8, wherein the circuit performs operations and wherein the 3 logic circuit terminates the circuit operation in progress. 4 5 10. The method of claim 8, wherein the logic circuit performs a system shutdown. 6 7 11. The method of claim 8, wherein the logic circuit records the fact that a tamper 8 condition occurred. 9 lo 12. The method of claim 1, wherein the switch includes a transistor. π 12 13. The method of claim 1 , wherein the switch includes a charge pumping circuit. 13 14 14. An apparatus for protecting a circuit from the application of a primary signal, is the primary signal being defined by parameters, comprising: 16 a detector, wherein the primary signal is input to the detector, and wherein the 17 detector generates a tamper signal if at least one of the primary signal is parameters is greater than or less than a value set by the detector; 19 a switch interposed between the primary signal and the circuit; and 20 a logic circuit responsive to the tamper signal. 21 22 15. The apparatus of claim 14, wherein the circuit includes a Flash EPROM. 23 24 16. The apparatus of claim 14, wherein one of the parameters of the primary signal 25 is the voltage ofthe primary signal, and the detector is a voltage detector. 26 27 17. The apparatus of claim 16, wherein the tamper signal is generated if the voltage 28 of the primary signal is less than a value set by the voltage detector. 29 30 18. The apparatus of claim 14, wherein one of the parameters of the primary signal 3i is the current ofthe signal, and the detector is a current detector. 32 19. The apparatus of claim 14, wherein the primary signal is applied to a bond pad of an integrated circuit device. 20. The apparatus of claim 19, wherein the bond pad is the Vpp test pad of an integrated circuit containing a Flash ERPOM memory array. 21. The apparatus of claim 14, wherein the circuit performs operations and wherein the logic circuit terminates the circuit operation in progress in response to the tamper signal. 22. The apparatus of claim 14, wherein the logic circuit performs a system shutdown in response to the tamper signal. 23. The apparatus of claim 14, wherein the logic circuit records the fact that a tamper condition occurred in response to the tamper signal. 24. The apparatus of claim 14, wherein the switch includes a transistor. 25. The apparatus of claim 14, wherein the switch includes a charge pumping circuit. 26. An apparatus for protecting a circuit from the application of a primary signal, the primary signal being defined by parameters, comprising: means for generating a tamper signal in response to the primary signal; a switch interposed between the primary signal and the circuit; and a logic circuit responsive to the tamper signal. 27. The apparatus of claim 26, wherein the circuit includes a Flash EPROM. 28. The apparatus of claim 26, wherein the primary signal is applied to a bond pad of an integrated circuit device. 29. The apparatus of claim 28, wherein the bond pad is the Vpp test pad of an integrated circuit containing a Flash EPROM memory array. 30. The apparatus of claim 26, wherein the circuit performs operations and wherein the logic circuit terminates the circuit operation in progress in response to the tamper signal. 31. The apparatus of claim 26, wherein the logic circuit performs a system shutdown in response to the tamper signal. 32. The apparatus of claim 26, wherein the logic circuit records the fact that a tamper condition occurred in response to the tamper signal. 33. The apparatus of claim 26, wherein the switch includes a transistor. 34. The apparatus of claim 26, wherein the switch includes a charge pumping circuit.

Inventors: BLYTH TREVOR A, BLYTH, TREVOR, A.
Applicants: ADVANCED TECH MATERIALS, BLYTH TREVOR A, ADVANCED TECHNOLOGY MATERIALS, INC., BLYTH, TREVOR, A.
Application year: 2001
Main classification: G01R31
IPC codes: G11C5, G11C16