Integrated circuit and method of operating the same
By introducing ECC encoders, inverters and logic circuits into integrated circuits, a set of check bits is generated and stored to detect data errors, which solves the problem of reset attack detection in integrated circuits and achieves efficient attack identification and data integrity assurance. .
Patent Information
- Application Number
- CN202111006602.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-05-07
- Filing Date
- 2021-08-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-08-30
AI Technical Summary
As integrated circuits shrink and increase in complexity, changes in wire resistance affect the operating voltage and overall performance of digital devices, and it is difficult for existing technologies to effectively detect reset attacks on memory cells.
An integrated circuit is designed, including an ECC encoder, an inverter set and a memory cell array. It detects errors in the data by generating and storing a check bit set, and determines whether the memory unit is attacked by the user through a logic circuit to achieve reset. Detection of attacks.
The design is able to detect reset attacks without using a separate sensor, reducing area occupation, improving detection efficiency of memory cell attacks, and enhancing data integrity.
Smart Images

Figure CN113806135B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to an integrated circuit and an operating method thereof. Background Art
[0002] The semiconductor integrated circuit (IC) industry manufactures a wide variety of digital devices to solve problems in many different fields. Some of these digital devices, such as memory macros, are configured to store data. As ICs become smaller and more complex, the resistance of the wires in these digital devices will also change, affecting the operating voltage of these digital devices and the overall IC performance. Summary of the invention
[0003] According to one aspect of an embodiment of the present invention, an integrated circuit is provided, comprising: an error correction code (ECC) encoder, configured to generate a first check bit set in response to a first data set; a first inverter set, coupled to the ECC encoder and configured to generate a second check bit set in response to the first check bit set, the second check bit set being inverted from the first check bit set; and a first memory cell array.
[0004] The first memory cell array includes a first portion of memory cells configured to store a first set of data and a second portion of memory cells coupled to the first set of inverters and configured to store a second set of parity bits.
[0005] According to another aspect of an embodiment of the present invention, an integrated circuit is provided, comprising: an error correction code (ECC) encoder configured to generate a first check bit set in response to a first data set; a first inverter set configured to generate a second data set in response to the first data set, the second data set being inverted from the first data set; and a first memory cell array.
[0006] The first memory cell array includes a first portion of memory cells coupled to a first set of inverters and configured to store a second set of data, and a second portion of memory cells coupled to an ECC encoder and configured to store a first set of parity bits.
[0007] According to another aspect of an embodiment of the present invention, a method for operating an integrated circuit is provided, the integrated circuit comprising a first memory cell array, the method comprising: generating a first check bit set by an error correction code (ECC) encoder in response to a first data set; generating a second check bit set by a first inverter set in response to the first check bit set, the second check bit set being inverted from the first check bit set, the first inverter set being coupled to the ECC encoder; storing the first data set in a first portion of memory cells of the first memory cell array; storing the second check bit set in a second portion of memory cells of the first memory cell array, the second portion of memory cells being coupled to the first inverter set; A third check bit set is received by a second inverter set, and a fourth check bit set is generated in response to the third check bit set, the fourth check bit set is inverted with the third check bit set, the third check bit set corresponds to the second check bit set stored in the second part of the memory cell, the second inverter set is coupled to the second part of the memory cell; and a first logic circuit is used to determine whether the first memory cell array has been attacked by a user by detecting an invalid codeword, the invalid codeword includes the fourth check bit set and a second data set, the second data set corresponds to the first data set stored in the first part of the memory cell, and the first logic circuit is coupled to the second inverter set and the first part of the memory cell. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Various aspects of the present invention will be best understood from the following detailed description when read in conjunction with the accompanying drawings. It should be noted that, in accordance with standard practice in the industry, the various components are not drawn to scale. In fact, the sizes of the various components may be arbitrarily increased or decreased for clarity of discussion.
[0009] Figure 1 is a block diagram of an integrated circuit according to some embodiments.
[0010] Figure 2 is a circuit diagram of a memory circuit according to some embodiments.
[0011] Figure 3 According to some embodiments Figure 1 Block diagram of the integrated circuit available in .
[0012] Figure 4 is a block diagram of logic gates according to some embodiments.
[0013] Figure 5 According to some embodiments Figure 1 Block diagram of the integrated circuit available in .
[0014] Figure 6 is a block diagram of logic gates according to some embodiments.
[0015] Figure 7 is a table of parity check matrices according to some embodiments.
[0016] Figure 8 is a block diagram of an exclusive-OR (XOR) tree, according to some embodiments.
[0017] Fig. 9 is a block diagram of an ECC decoder according to some embodiments.
[0018] Fig.10 is a block diagram of a syndrome generator according to some embodiments.
[0019] Fig.11 is a block diagram of an error logic circuit according to some embodiments.
[0020] Fig.12 is a flow chart of a method of operating an integrated circuit according to some embodiments.
[0021] Fig.13 is a flow chart of a method of operating an integrated circuit according to some embodiments.
[0022] Fig.14 is a schematic diagram of a system according to some embodiments. DETAILED DESCRIPTION
[0023] The following disclosure provides many different embodiments or examples of different features for implementing the subject matter of the present invention. Specific examples of components, materials, values, steps, arrangements, etc. are described below to simplify the present disclosure. Of course, these are merely examples and are not intended to be limiting. Other components, materials, values, steps, arrangements, etc. can be expected. For example, in the following description, forming a first component above or on a second component can include an embodiment in which the first component and the second component are in direct contact, and can also include an embodiment in which an additional component is formed between the first component and the second component so that the first component and the second component are not in direct contact. Moreover, the present invention can repeat reference numbers and / or letters in various examples. This repetition is only for simplicity and clarity, and does not itself represent the relationship between the various embodiments and / or configurations discussed.
[0024] Additionally, for ease of description, spatially relative terms such as "below," "beneath," "lower," "above," "upper," etc. may be used herein to describe the relationship of one element or component to another element or component as illustrated in the figures. The spatially relative terms are intended to encompass different orientations of the device during use or operation in addition to the orientation depicted in the figures. The device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein should likewise be interpreted accordingly.
[0025] According to some embodiments, the integrated circuit includes an ECC (error correction code) encoder, a first memory cell array, and an ECC decoder. In some embodiments, the ECC encoder is configured to generate a first check bit set in response to data. In some embodiments, the first check bit set is stored in the first memory cell array in an inverted or complementary form.
[0026] In some embodiments, before decoding the first inverted check bit set, the first inverted check bit set is inverted again to generate a second check bit set, and then the ECC decoder is configured to decode the second check bit set to at least detect or correct errors in the data or the first check bit set.
[0027] In some embodiments, the ECC decoder is further configured to determine a reset attack by a user on the first memory cell by detecting an invalid or corrupted codeword (e.g., data and a first check bit set). In some embodiments, compared to other methods that use a separate sensor to detect a reset attack, the integrated circuit of the present disclosure is capable of detecting a reset attack without including a separate sensor (thus occupying less area than other methods).
[0028] integrated circuit
[0029] Figure 1 is a block diagram of an integrated circuit 100 according to some embodiments. Figure 1 In the exemplary embodiment, integrated circuit 100 is a memory macro.
[0030] Integrated circuit 100 includes a memory cell array 102 and a controller 104. Memory cell array 102 is coupled to controller 104. In some embodiments, memory cell array 102 is coupled to controller 104 via at least bit lines BL ( Figure 2 ) or word lines WL or other conductive lines are coupled to the controller 104. The controller 104 is configured to control the memory cell array 102. In some embodiments, the controller 104 is configured to provide error correction coding (ECC), decoding and correction for the integrated circuit 100 (as described below).
[0031] The memory cell array 102 includes a memory cell array having M rows and L columns, where M and L are positive integers (eg, Figure 2 ). In some embodiments, each memory cell in the memory cell array 102 is configured to store one (1) bit of data. In some embodiments, each memory cell in the memory cell array 102 is configured to store more than one (1) bit of data.
[0032] In some embodiments, the memory cell array 102 is a nonvolatile memory cell array including nonvolatile memory cells. In some embodiments, each memory cell in the memory cell array 102 corresponds to a magnetoresistive random access memory (MRAM) cell. In some embodiments, each memory cell in the memory cell array 102 corresponds to a phase change memory (PCM) cell. In some embodiments, each memory cell in the memory cell array 102 corresponds to a phase change RAM (PRAM) cell. In some embodiments, each memory cell in the memory cell array 102 corresponds to a ferroelectric RAM (FeRAM) cell. In some embodiments, each memory cell in the memory cell array 102 corresponds to a ferroelectric field effect transistor (FeFET) cell.
[0033] Other types of memory cells in the memory cell array 102 are within the scope of the present disclosure. Other configurations of the memory cell array 102 are within the scope of the present disclosure.
[0034] Controller 104 includes X-decoder circuit 106 , Y-decoder circuit 108 , and ECC encoder / decoder 110 .
[0035] The X-decoder circuit 106 is coupled to (not shown) the memory cell array 102 via the word lines WL. The X-decoder circuit 106 is configured to generate word line signals (not shown) on the corresponding word lines WL to the memory cell array 102. In some embodiments, the X-decoder circuit 106 includes a word line driver circuit (not shown) coupled to the word lines WL, and the word line driver circuit (not shown) is configured to generate word line signals sent to the memory cell array 102.
[0036] In some embodiments, a word line driver circuit (not shown) decodes a row address of a memory cell in the memory cell array 102 selected to be accessed in a read operation or a write operation. In some embodiments, the word line driver circuit (not shown) then provides a voltage to the selected word line corresponding to the decoded row address and provides a different voltage to other unselected word lines. In some embodiments, the X-decoder circuit 106 is configured to generate a word line signal in response to a first control signal set (not shown) received from the controller 104.
[0037] Other configurations of X-decoder circuit 106 are within the scope of the present disclosure.
[0038] Y-decoder circuit 108 is coupled to (not shown) memory cell array 102 via bit lines BL. Y-decoder circuit 108 is configured to generate a bit line signal (not shown) on a corresponding bit line BL to memory cell array 102.
[0039] In some embodiments, the Y-decoder circuit 108 includes a bit line driver circuit (not shown) coupled to the bit line BL, the bit line driver circuit (not shown) being configured to generate a bit line signal that is sent to the memory cell array 102 .
[0040] In some embodiments, the bit line driver circuit (not shown) decodes the column address of the memory cell in the memory cell array 102 selected to be accessed in the write operation. In some embodiments, the bit line driver circuit (not shown) then provides a voltage to the selected bit line corresponding to the decoded column address. In some embodiments, the Y-decoder circuit 108 is configured to generate a bit line signal in response to a second set of control signals (not shown) received from the controller 104.
[0041] Other configurations of the Y-decoder circuit 108 are within the scope of the present disclosure.
[0042] The ECC encoder / decoder 110 is coupled to the memory cell array 102 (not shown). The ECC encoder / decoder 110 is configured to provide ECC encoding, decoding, error detection, and error correction for data stored in the memory cell array 102. In some embodiments, the ECC encoder / decoder 110 includes a Hamming ECC encoder / decoder, a Hsiao ECC encoder / decoder, a Reed-Solomon ECC encoder / decoder 110, a Bose-Chaudhuri-Hocquenghem (BCH) ECC encoder / decoder 110, etc. Other ECC or error detection methods are within the scope of various embodiments.
[0043] In some embodiments, at least two or more of memory cell array 102, X-decoder circuit 106, Y-decoder circuit 108, or ECC encoder / decoder 110 are combined into a single circuit. Other configurations of ECC encoder / decoder 110 are within the scope of the present disclosure.
[0044] In some embodiments, the integrated circuit 100 corresponds to at least a radio frequency identification (RFID) card, a bank card, a payment card, or an identification (ID) card. In some embodiments, the integrated circuit 100 corresponds to an intermittently powered device such as an Internet of Things (IoT) device. In some embodiments, the memory cell array 102 is configured to store sensitive data. In some embodiments, the memory cell array 102 is configured to store a security key that can be used to provide data integrity. Therefore, some users can perform a reset attack on the integrated circuit 100 by attempting to reset or change the content of the data stored in the memory cell array 102. For example, if the memory cell array 102 includes PCM cells, some users can heat the memory cell array 102 in an attempt to change the storage logic state of each PCM cell from logic 1 to logic 0 or vice versa, thereby damaging the data stored in the memory cell array 102. For example, if the memory cell array 102 includes MRAM cells, some users can apply a magnetic field to the memory cell array 102 in an attempt to change the storage logic state of each MRAM cell from logic 1 to logic 0 or vice versa, thereby damaging the data stored in the memory cell array 102.
[0045] In some embodiments, the ECC encoder / decoder 110 is configured to determine whether the memory cell array 102 has been attacked by a user. In some embodiments, the ECC encoder / decoder 110 is configured to determine whether the memory cell array 102 has been attacked by a user by detecting an invalid codeword stored in the memory cell array 102. In some embodiments, the codeword is a combination of a data bit and a check bit. In some embodiments, the check bit is generated by the ECC encoder / decoder 110 based on the data bit.
[0046] In some embodiments, the ECC encoder / decoder 110 is configured to detect valid and invalid codewords based on the type of ECC used and designate specific data and check bits (e.g., codewords) as invalid. In some embodiments, the controller 104 is configured to store valid codewords in the memory cell array 102 and not intentionally store invalid codewords in the memory cell array 102. Therefore, storing invalid codewords in the memory cell array 102 indicates data corruption. In some embodiments, the invalid codewords include a series of all logic 0s or a series of all logic 1s. In some embodiments, if a user attempts a reset attack by making the storage logic state of each memory cell in the memory cell array 102 all logic 0s or all logic 1s, the ECC encoder / decoder 110 is configured to detect the stored codeword as an invalid codeword, thereby determining that the memory cell array 102 has been attacked by the user.
[0047] In some embodiments, the integrated circuit 100 is capable of detecting a reset attack without including a separate sensor, as compared to other methods that use a separate sensor to detect a reset attack. In some embodiments, by not including a separate sensor to detect a reset attack, the integrated circuit 100 occupies less area than other methods. In some embodiments, the integrated circuit 100 uses an existing ECC architecture of the ECC encoder / decoder 110 to detect a reset attack, thereby using less overhead than other methods.
[0048] Other configurations of integrated circuit 100 are within the scope of the present disclosure.
[0049] Memory circuit
[0050] Figure 2 is a circuit diagram of a memory circuit 200 according to some embodiments.
[0051] The memory circuit 200 is Figure 1 The present invention is an embodiment of the memory cell array 102, and thus similar detailed description is omitted.
[0052] and Figure 1-Figure 14 Those same or similar components in one or more of the drawings are given the same figure marks, and thus a detailed description thereof is omitted.
[0053] The memory circuit 200 includes a memory cell array 202 having M rows and L columns of memory cells MCB, where L is a positive integer corresponding to the number of columns in the memory cell array 202, and M is a positive integer corresponding to the number of rows in the memory cell array 202. The rows of cells in the memory cell array 202 are arranged along a first direction X. The columns of cells in the memory cell array 202 are arranged along a second direction Y. The second direction Y is different from the first direction X. In some embodiments, the second direction Y is perpendicular to the first direction X.
[0054] In some embodiments, each memory cell MCB in the memory cell array 202 is configured to store a data bit. In some embodiments, the memory circuit 200 is a logic-based memory.
[0055] The number of rows M in the memory cell array 202 is equal to or greater than 1. The number of columns L in the memory cell array 202 is equal to or greater than 1. Different types of memory cells MCB in the memory cell array 202 are within the contemplated scope of the present disclosure.
[0056] The memory circuit 200 further includes N bit lines BL[1], ..., BL[L] (collectively referred to as "bit lines BL"). Each column 1, ..., L in the memory cell array 202 overlaps and is coupled to a corresponding bit line BL[1], ..., BL[L]. Each bit line BL extends along the second direction Y and over a column of cells (e.g., columns 1, ..., L).
[0057] The memory circuit 200 further includes M word lines WL[1], ..., WL[M] (collectively referred to as "word lines WL"). Each row 1, ..., M in the memory cell array 202 overlaps and is coupled to a corresponding word line WL[1], ..., WL[M]. Each word line WL extends along a first direction X and over a row of cells (e.g., rows 1, ..., M).
[0058] Other configurations of the memory circuit 200 are within the scope of the present disclosure. In some embodiments, one or more of the bit lines BL or word lines WL are not included in the memory circuit 200. In some embodiments, one or more of the bit lines BL or word lines WL are replaced with corresponding source lines SL, or corresponding source lines SL are added.
[0059] integrated circuit
[0060] Figure 3 According to some embodiments Figure 1 000 is a block diagram of an integrated circuit 300 that may be used in FIG.
[0061] Integrated circuit 300 involves Figure 1 The integrated circuit 300 is an embodiment of the integrated circuit 100, and similar detailed description is omitted.
[0062] Integrated circuit 300 includes memory cell array 302 , ECC encoder 304 , set of inverters 306 , set of inverters 308 , and ECC decoder 310 .
[0063] In some embodiments, ECC encoder 304, inverter set 306, inverter set 308, and ECC decoder 310 are Figure 1 For the embodiments of the ECC encoder / decoder 110, similar detailed description is omitted.
[0064] The integrated circuit 300 is configured to receive a data set Din and generate an output data set Dout. The integrated circuit 300 is configured to provide ECC encoding, decoding, error detection and error correction for the data stored in the memory cell array 302. The integrated circuit 300 is also configured to generate an attacked signal BAS. In some embodiments, the value of the attacked signal BAS indicates whether a reset attack by a user is detected.
[0065] The ECC encoder 304 is configured to receive a data set Din. The data set Din includes N bits, where N is an integer corresponding to the number of bits of the data set Din. The ECC encoder 304 is configured to generate a parity bit set (hereinafter referred to as "check bit") CB1 in response to the data set Din.
[0066] The parity bit set CB1 includes at least parity bits CB1a, CB1b, ..., CB1j or CB1k, where k is an integer corresponding to the number of bits in the parity bit set CB1. In some embodiments, k is less than N.
[0067] The inverter set 306 is coupled between the ECC encoder 304 and the second portion 302b of the memory cell. The inverter set 306 is configured to generate a check bit set CBB1 in response to the check bit set CB1. The check bit set CBB1 includes at least check bits CBB1a, CBB1b, ..., CBB1j, or CBB1k. The check bit set CBB1 includes k bits. Each check bit in the check bit set CBB1 is associated with each corresponding check bit in the check bit set CB1. In other words, at least the check bits CBB1a, CBB1b, ..., CBB1j, or CBB1k of the check bit set CBB1 correspond to at least the check bits CB1a, CB1b, ..., CB1j, or CB1k of the check bit set CB1.
[0068] In some embodiments, at least one check bit of the check bit set CBB1 is inverted or complementary to at least one corresponding bit of the check bit set CB1.
[0069] The inverter set 306 includes at least inverters 306a, 306b, ..., 306j or 306k. Each inverter in the inverter set 306 is coupled in parallel with each other. Each inverter in the inverter set 306 has a corresponding input terminal coupled to the output terminal of the ECC encoder 304. Each inverter in the inverter set 306 has a corresponding output terminal, which is coupled to a corresponding memory cell (not shown) in the second portion 302b of the memory cells.
[0070] In some embodiments, the number of inverters in the inverter set 306 is one or more. For example, in some embodiments, the inverter set 306 includes k inverters (306a, ..., 306k), and each inverter in the inverter set 306 is configured to invert the corresponding check bit of the check bit set CB1, thereby generating the check bit set CBB. In this embodiment, each check bit of the check bit set CBB1 is inverted or complementary to each corresponding bit of the check bit set CB1.
[0071] For example, in some embodiments, the inverter set 306 includes one inverter 306a (e.g., inverter 306a), and the inverter 306a in the inverter set 306 is configured to invert the check bit CB1a of the check bit set CB1, thereby generating the check bit CBB1a of the check bit set CBB1. In this embodiment, the check bit set CBB1 includes check bits CBB1a, CBB1b, CBB1c, ..., CBB1k. In this embodiment, the check bit CBB1a is inverted or complementary to the check bit CB1a, and the check bits CBB1b, CBB1c, ..., CBB1k are equal to the corresponding check bits CB1b, CB1c, ..., CB1k. Therefore, in this embodiment, the check bit set CBB1 includes check bits CBB1a, CB1b, CB1c, ..., CB1k, and the check bit CBB1a is inverted or complementary to the check bit CB1a.
[0072] The memory cell array 302 corresponds to Figure 1 The memory cell array 102 or Figure 2 A similar detailed description is omitted for reference.
[0073] The memory cell array 302 includes a first portion of memory cells 302a and a second portion of memory cells 302b. Each memory cell in the first portion of memory cells 302a and the second portion of memory cells 302b is configured to store a bit of data.
[0074] The first portion 302a of the memory cells is configured to store a data set Din1. The second portion 302b of the memory cells is coupled to the inverter set 306 and is configured to store a check bit set CBB1. In some embodiments, if the number of inverters in the inverter set 306 is less than k, one or more memory cells in the first portion 302a of the memory cells are coupled to the ECC encoder 304.
[0075] The set of inverters 308 is coupled between the second portion 302b of memory cells and the ECC decoder 310. The set of inverters 308 is configured to receive the parity bit set CBB2 and is configured to generate the parity bit set CB2 in response to the parity bit set CBB2.
[0076] The parity bit set CBB2 includes at least parity bits CBB2a, CBB2b, ..., CBB2j or CBB2k. The parity bit set CBB2 includes k bits.
[0077] In some embodiments, the check bit set CBB2 corresponds to the check bit set CBB1 stored in the second portion 302b of the memory cell. In some embodiments, if the data stored in the second portion 302b of the memory cell is not corrupted, the check bit set CBB2 is equal to the check bit set CBB1. In some embodiments, if the data stored in the second portion 302b of the memory cell is corrupted, the check bit set CBB2 is not equal to the check bit set CBB1.
[0078] The check bit set CB2 includes at least check bits CB2a, CB2b, ..., CB2j or CB2k. The check bit set CB2 includes k bits.
[0079] Each check bit in the check bit set CBB2 is associated with each corresponding check bit in the check bit set CBB1 or each corresponding check bit in the check bit set CB2. In other words, at least the check bits CBB2a, CBB2b, ..., CBB2j or CBB2k of the check bit set CBB2 correspond to at least the check bits CBB1a, CBB1b, ..., CBB1j or CBB1k of the check bit set CBB1 or at least the check bits CB2a, CB2b, ..., CB2j or CB2k of the check bit set CB2.
[0080] In some embodiments, at least one check bit of the check bit set CBB2 is inverted or complementary to at least one corresponding bit of the check bit set CB2.
[0081] The inverter set 308 includes at least inverters 308a, 308b, ..., 308j or 306e. Each inverter in the inverter set 308 is coupled in parallel with each other. Each inverter in the inverter set 308 has a corresponding input terminal coupled to the output terminal of the ECC encoder 304. Each inverter in the inverter set 308 has a corresponding output terminal coupled to a corresponding memory cell (not shown) in the second portion 302b of memory cells.
[0082] The number of inverters in the inverter set 308 is equal to the number of inverters in the inverter set 306. For example, in some embodiments, the inverter set 306 includes k inverters (306a, ..., 306k), and thus the inverter set 308 includes k inverters (308a, ..., 308k), and each inverter in the inverter set 308 is configured to invert a corresponding check bit of the check bit set CBB2, thereby generating the check bit set CB2. In this embodiment, each check bit of the check bit set CB2 is inverted or complementary to each corresponding bit of the check bit set CBB2.
[0083] Each inverter in the inverter set 306 corresponds to each inverter in the inverter set 308. Therefore, each check bit of the check bit set CBB1 inverted by the corresponding inverter in the inverter set 306 is in a corresponding path that also includes the corresponding inverter of the inverter set 308, and the check bits in the path that does not include the inverter of the inverter set 306 also do not include the inverter of the inverter set 308. For example, in some embodiments, the inverter set 306 includes 1 inverter (e.g., inverter 306a) configured to invert the check bit CB1a, thereby generating the check bit CBB1a of the check bit set CB1, and therefore the inverter set 308 includes 1 inverter (e.g., inverter 308a), and the inverter 308a of the inverter set 308 is configured to invert the check bit CBB2a of the check bit set CBB2, thereby generating the check bit CB2a of the check bit set CB2. In this embodiment, the check bit set CB2 includes check bits CB2a, CB2b, CB2c, ..., CB2k. In this embodiment, the check bit CB2a is inverted or complementary to the check bit CBB2a, and the check bits CB2b, CB2c, ..., CB2k are equal to the corresponding check bits CBB2b, CBB2c, ..., CBB2k. Therefore, in this embodiment, the check bit set CB2 includes check bits CB2a, CBB2b, CBB2c, ..., CBB2k, and the check bit CB2a is inverted or complementary to the check bit CBB2a.
[0084] The ECC decoder 310 is coupled to the set of inverters 308 and the first portion 302a of memory cells. The ECC decoder 310 is configured to receive a set of data Din2 and a set of check bits CB2.
[0085] The data set Din2 includes N bits, where N is an integer corresponding to the number of bits of the data set Din or the data set Din2. Each bit in the data set Din2 is associated with each corresponding bit in the data set Din1. In other words, at least bit Din1a, Din1b, ..., Din1m or Din1n of the data set Din1 corresponds to at least bit Din2a, Din2b, ..., Din2m or Din2n of the data set Din2.
[0086] The ECC decoder 310 is configured to at least detect or correct errors in at least the data set Din2 or the check bit set CB2, thereby generating at least the output data set Dout and an attacked signal BAS. In some embodiments, the attacked signal BAS indicates a reset attack by a user.
[0087] In some embodiments, the output data set Dout is equal to the data set Din1. In some embodiments, the output data set Dout is equal to the data set Din2, thereby indicating that the data stored in the first portion 302a of the memory cell is not corrupted. In some embodiments, the output data set Dout is not equal to the data set Din2, thereby indicating that the data stored in the first portion 302a of the memory cell is corrupted.
[0088] In some embodiments, the data set Din2 corresponds to the data set Din1 stored in the first portion 302a of the memory cell. In some embodiments, if the data stored in the first portion 302a of the memory cell is not corrupted, the data set Din2 is equal to the data set Din1. In some embodiments, if the data stored in the first portion 302a of the memory cell is corrupted, the data set Din2 is not equal to the data set Din1.
[0089] The ECC decoder 310 includes a victim logic gate 312. The victim logic gate 312 is configured to generate a victim signal BAS.
[0090] The attacked logic gate 312 is configured to determine whether the memory cell array 302 has been attacked by a user. In some embodiments, the attacked logic gate 312 is configured to determine whether the memory cell array 302 has been attacked by a user by generating an attacked signal BAS, thereby detecting whether an invalid codeword is stored in the first part of the memory cell and the second part 302b of the memory cell. In some embodiments, the invalid codeword includes a check bit set CB2 and a data set Din2.
[0091] Other configurations of integrated circuit 300 are within the scope of the present disclosure.
[0092] Integrated circuit 300 implements the above Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0093] Logic Gates
[0094] Figure 4 is a block diagram of logic gate 400 according to some embodiments.
[0095] Logic gate 400 is Figure 3 For the embodiment of the attacked logic gate 312, similar detailed description is omitted.
[0096] Logic gate 400 includes a set of inverters 408 and a NOR logic gate 412 .
[0097] The inverter set 408 is coupled between the inverter set 308 and the NOR logic gate 412 .
[0098] The inverter set 408 is configured to receive the parity bit set CB2 and is configured to generate the parity bit set CBB3 in response to the parity bit set CB2.
[0099] The parity bit set CBB3 includes at least parity bits CBB3a, CBB3b, ..., CBB3j or CBB3k. The parity bit set CBB3 includes k bits.
[0100] In some embodiments, the check bit set CBB3 corresponds to the check bit set CBB2. Each check bit in the check bit set CBB3 is associated with each corresponding check bit in the check bit set CB2. In other words, at least the check bits CBB3a, CBB3b, ..., CBB3j or CBB3k of the check bit set CBB3 correspond to at least the check bits CB2a, CB2b, ..., CB2j or CB2k of the check bit set CB2.
[0101] In some embodiments, at least one check bit of the check bit set CBB3 is inverted or complementary to at least one corresponding bit of the check bit set CB2.
[0102] Inverter set 408 includes at least inverters 408a, 408b, ..., 408j or 408k. Each inverter in inverter set 408 is coupled in parallel with each other. Each inverter of inverter set 408 has a corresponding input terminal coupled to a corresponding output terminal of inverter set 308. Each inverter of inverter set 408 has a corresponding output terminal coupled to a corresponding terminal of NOR logic gate 412.
[0103] Each inverter in the inverter sets 306 and 308 corresponds to each inverter in the inverter set 408. The number of inverters in the inverter set 408 is equal to the number of inverters in the inverter sets 306 and 308. For example, in some embodiments, the inverter set 306 includes k inverters (306a, ..., 306k), and the inverter set 308 includes k inverters (308a, ..., 308k), so the inverter set 408 includes k inverters (408a, ..., 408k), and each inverter in the inverter set 408 is configured to invert the corresponding check bit of the check bit set CB2, thereby generating the check bit set CBB3. In this embodiment, each check bit of the check bit set CBB3 is inverted or complementary to each corresponding bit of the check bit set CB2.
[0104] In some embodiments, the inverter set 306 includes one inverter (e.g., inverter 306a), which is configured to invert the parity bit CB1a, thereby generating the parity bit CBB1a of the parity bit set CB1, and thus the inverter set 308 includes one inverter (e.g., inverter 308a). In this embodiment, the inverter 308a of the inverter set 308 is configured to invert the parity bit CBB2a of the parity bit set CBB2, thereby generating the parity bit CB2a of the parity bit set CB2, and thus the inverter set 408 includes one inverter (e.g., inverter 408a and coupled to the inverter 308a). In this embodiment, the inverter 408a of the inverter set 408 is configured to invert the parity bit CB2a of the parity bit set CB2, thereby generating the parity bit CBB3a of the parity bit set CBB3. In this embodiment, the output terminal of inverter 408a of inverter set 408 is coupled to the input terminal of NOR logic gate 412, and the other input terminals of NOR logic gate 412 are coupled to the first part 302a of memory cell and the output terminals of inverters 308b, . . . , 308k of inverter set 308.
[0105] In this embodiment, the check bit set CBB3 includes check bits CBB3a, CBB3b, CBB3c, ..., CBB3k. In this embodiment, the check bit CBB3a is inverted or complementary to the check bit CB2a, and the check bits CBB3b, CBB3c, ..., CBB3k are equal to the corresponding check bits CB2b, CB2c, ..., CB2k. Therefore, in this embodiment, the check bit set CBB3 includes check bits CBB3a, CB2b, CB2c, ..., CB2k, and the check bit CBB3a is inverted or complementary to the check bit CB2a.
[0106] NOR logic gate 412 is coupled to first portion of memory cells 302a and inverter set 408. Each input terminal of NOR logic gate 412 is coupled to a corresponding memory cell of first portion of memory cells 302a or a corresponding output terminal of inverter set 308 or 408. NOR logic gate 412 has N+k input terminals.
[0107] The NOR logic gate 412 is configured to generate an attacked signal BAS in response to the check bit set CBB3 and the data set Din2. Other configurations or types of logic gates of the NOR logic gate 412 are within the scope of the present disclosure.
[0108] The following discloses a non-limiting example of the operation of the integrated circuit 300 and the logic gate 400, illustrating a reset attack by a user. In this non-limiting example, if the data set Din is 0101, the check bit CB2 is 010, and the inverter set 308 includes 3 inverters, the integrated circuit 300 stores 0101 (e.g., data Din) in the first part 302a of the memory cell, the inverter set 306 generates a pseudo 101 for the check bit CBB2, and 101 (e.g., check bit CBB2) is stored in the second part 302b of the memory cell. In this non-limiting example, if the user resets the data stored in the first part 302a of the memory cell and the second part 302b of the memory cell to all 0s (e.g., 0000000), the data set Din2 is 0000, and the check bit set CBB2 is 000. In this non-limiting example, the inverter set 308 generates the parity bit CB2 as 111, and the inverter set 408 generates the parity bit CBB3 as 000.
[0109] In this non-limiting example, the NOR logic gate performs a NOR logic operation on 000 (e.g., check bit set CBB3) and 0000 (e.g., data set Din2), and outputs a logic 1 as the attacked signal BAS. In some embodiments, the logic value 1 of the attacked signal BAS indicates that an attack is detected or occurs, and the logic value 0 of the attacked signal BAS indicates that an attack is not detected or occurs.
[0110] Other values or bits of the attacked signal BAS are within the scope of the present disclosure. For example, in some embodiments, a logic value of 0 of the attacked signal BAS indicates that an attack is detected or occurs, while a logic value of 1 of the attacked signal BAS indicates that an attack is not detected or occurs. In some embodiments, the inverter sets 306, 308, and 408 are replaced by other logic circuits that perform the same logic function.
[0111] Other configurations of logic gate 400 are within the scope of the present disclosure.
[0112] Logic gate 400 implements the above Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0113] integrated circuit
[0114] Figure 5 According to some embodiments Figure 1 0048 is a block diagram of an integrated circuit 500 that may be used in the invention.
[0115] IC 500 is Figure 3 The integrated circuit 300 of the present invention is modified, and similar detailed description is omitted. Figure 3Compared to the integrated circuit 300 , the integrated circuit 500 is configured to invert the data set Din without inverting the parity bit set CB1 .
[0116] Integrated Circuit 500 Figure 1 The integrated circuit 500 is an embodiment of the integrated circuit 100, and similar detailed description is omitted.
[0117] Integrated circuit 500 includes memory cell array 302, ECC encoder 304, inverter set 506, inverter set 508, and ECC decoder 310. In some embodiments, ECC encoder 304, inverter set 506, inverter set 508, and ECC decoder 310 are Figure 1 For the embodiments of the ECC encoder / decoder 110, similar detailed description is omitted.
[0118] and Figure 3 Compared with the integrated circuit 300 , the inverter set 506 replaces the inverter set 306 , and the inverter set 508 replaces the inverter set 308 , so similar detailed descriptions are omitted.
[0119] and Figure 3 Compared with the IC 300, Figure 5 The output of the ECC encoder 304 is coupled to the second portion 302 b of the memory cell, and the second portion 302 b of the memory cell is configured to store the check bit set CB1 , so similar detailed description is omitted.
[0120] and Figure 3 Compared with the IC 300, Figure 5 The second portion of the memory cell 302b is coupled to the input of the ECC decoder 310, and the ECC decoder 310 is configured to receive the check bit set CB2 from the second portion of the memory cell 302b, so similar detailed description is omitted.
[0121] In some embodiments, Figure 5 The check bit set CB2 corresponds to the check bit set CB1 stored in the second portion 302b of the memory cell. In some embodiments, if Figure 5 If the data stored in the second portion 302b of the memory cell is not corrupted, then the check bit set CB2 is equal to the check bit set CB1. In some embodiments, if Figure 5 If the data stored in the second part 302b of the memory cell is corrupted, the check bit set CB2 is not equal to the check bit set CB1.
[0122] and Figure 3 Compared to the integrated circuit 300, the inverter set 506 is coupled to the first portion 302a of the memory cell, and Figure 5 The first portion 302a of the memory cell is configured to store the data set Dinb1, and thus similar detailed description is omitted.
[0123] The inverter set 506 is configured to generate a data set Dinbl in response to the data set Dinl. The data set Dinb1 includes at least data Dinb1a, Dinb1b, ..., Dinb1m, or Dinb1N. The data set Dinb1 includes N bits. Each bit in the data set Dinb1 is associated with each corresponding bit in the data set Din1. In other words, at least bits Dinb1a, Dinb1b, ..., Dinb1m, or Dinb1N of the data set Dinb1 correspond to at least bits Din1a, Din1b, ..., Din1m, or Din1N of the data set Din1.
[0124] In some embodiments, at least one bit of the data set Dinb1 is inverted or complementary to at least one corresponding bit of the data set Din1.
[0125] The inverter set 506 includes at least inverters 506a, 506b, ..., 506j, or 506N. Each inverter in the inverter set 506 is coupled in parallel with each other. Each inverter in the inverter set 506 has a corresponding input terminal configured to receive a bit Din1a, Din1b, ..., Din1m, or Din1N of the data set Din1. Each inverter 506a, 506b, ..., 506j, or 506N of the inverter set 506 has a corresponding output terminal coupled to a corresponding memory cell (not shown) in the first portion 302a of the memory cells. Each inverter 506a, 506b, ..., 506j, or 506N of the inverter set 506 has a corresponding output terminal configured to output at least a corresponding bit Dinb1a, Dinb1b, ..., Dinb1m, or Dinb1N of the data set Dinb1.
[0126] In some embodiments, the number of inverters in the inverter set 506 is one or more. For example, in some embodiments, the inverter set 506 includes M inverters (506a, ..., 506M), and each inverter in the inverter set 506 is configured to invert a bit of the data set Din1, thereby generating the data set Dinb1. In this embodiment, each bit of the data set Dinb1 is inverted or complementary to each corresponding bit of the data set Din1.
[0127] For example, in some embodiments, the inverter set 506 includes one inverter 506a (e.g., inverter 506a), and the inverter 506a in the inverter set 506 is configured to invert the bit Dinla of the data set Din1, thereby generating the bit Dinb1a of the data set Dinb1. In this embodiment, the data set Dinb1 includes data Dinb1a, Dinb1b, ..., Dinb1N. In this embodiment, the bit Dinb1a is inverted or complementary to the bit Din1a, and the bits Dinb1b, ..., Dinb1N are equal to the corresponding bits Din1b, ..., Din1N. Therefore, in this embodiment, the data set Dinb1 includes data Dinb1a, Din1b, ..., Din1N, and the bit Dinb1a is inverted or complementary to the bit Din1a.
[0128] and Figure 3 Compared to the integrated circuit 300, the inverter set 508 is coupled between the first portion 302a of the memory cell and the ECC decoder 310, Figure 5 The ECC decoder 310 is configured to receive the data set Din2, and thus similar detailed description is omitted.
[0129] The inverter set 508 is configured to receive the data set Dinb2 and is configured to generate the data set Din2 in response to the data set Dinb2.
[0130] The data set Dinb2 includes at least data Dinb2a, Dinb2b, ..., Dinb2m or Dinb2N. The data set Dinb2 includes N bits.
[0131] The data set Din2 includes at least data Din2a, Din2b, ..., Din2m or Din2N. The data set Din2 includes N bits.
[0132] Each bit in the data set Dinb2 is associated with each corresponding bit in the data set Dinb1 or each corresponding bit in the data set Din2. In other words, at least bit Dinb2a, Dinb2b, ..., Dinb2m or Dinb2N of the data set Dinb2 corresponds to at least bit Dinb1a, Dinb1b, ..., Dinb1m or Dinb1N of the data set Dinb1 or at least bit Din2a, Din2b, ..., Din2m or Din2N of the data set Din2.
[0133] In some embodiments, the data set Dinb2 corresponds to the data set Dinbl stored in the first portion 302a of the memory unit. In some embodiments, if the data stored in the first portion 302a of the memory unit is not corrupted, the data set Dinb2 is equal to the data set Dinbl. In some embodiments, if the data stored in the first portion 302a of the memory unit is corrupted, the data set Dinb2 is not equal to the data set Dinbl.
[0134] In some embodiments, at least one bit of the data set Dinb2 is inverted or complementary to at least one corresponding bit of the data set Din2.
[0135] The inverter set 508 includes at least inverters 508a, 508b, ..., 508m or 508N. Each inverter in the inverter set 508 is coupled in parallel with each other. Each inverter in the inverter set 508 has a corresponding input terminal, which is coupled to a corresponding memory cell (not shown) of the first portion 302a of the memory cell. Each inverter in the inverter set 508 has a corresponding output terminal coupled to an input terminal of the ECC decoder 312.
[0136] The number of inverters in the inverter set 508 is equal to the number of inverters in the inverter set 506. For example, in some embodiments, the inverter set 506 includes N inverters (506a, ..., 506N), and thus the inverter set 508 includes N inverters (508a, ..., 508N), and each inverter in the inverter set 508 is configured to invert a corresponding bit of the data set Dinb2, thereby generating the data set Din2. In this embodiment, each bit of the data set Din2 is inverted or complementary to each corresponding bit of the data set Dinb2.
[0137] Each inverter in the inverter set 506 corresponds to each inverter in the inverter set 508. Therefore, each bit of the data set Dinb1 inverted by the corresponding inverter in the inverter set 506 is in a corresponding path that also includes the corresponding inverter of the inverter set 508, and the data bits in the path that does not include the inverter of the inverter set 506 also do not include the inverter of the inverter set 508. For example, in some embodiments, the inverter set 506 includes 1 inverter (e.g., inverter 506a) configured to invert the bit Din1a, thereby generating the bit Dinb1a of the data set Dinb1, and therefore the inverter set 508 includes 1 inverter (e.g., inverter 508a), and the inverter 508a of the inverter set 508 is configured to invert the bit Dinb2a of the data set Dinb2, thereby generating the bit Din2a of the data set Din2. In this embodiment, the data set Din2 includes data Din2a, Din2b, Din2c, ..., Din2N. In this embodiment, the bit Din2a is inverted or complementary to the bit Dinb2a, and the data Din2b, Din2c, ..., Din2N are equal to the corresponding data Dinb2b, Dinb2c, ..., Dinb2N. Therefore, in this embodiment, the data set Din2 includes data Din2a, Dinb2b, Dinb2c, ..., Dinb2N, and the bit Din2a is inverted or complementary to the bit Dinb2a.
[0138] Other configurations of integrated circuit 500 are within the scope of the present disclosure.
[0139] Integrated circuit 500 implements the above Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0140] Logic Gates
[0141] Figure 6 is a block diagram of a logic gate 600 according to some embodiments.
[0142] Logic gate 600 is Figure 5 The embodiment of the attacked logic gate 312 is omitted. The logic gate 600 is Figure 4 Similar detailed description is omitted for the variations of the logic gate 400. Figure 4 Compared to the logic gate 400 , the logic gate 600 is configured to invert the data set Din2 but not to invert the check bit set CB2 .
[0143] Logic gate 600 includes a set of inverters 608 and a NOR logic gate 612 .
[0144] and Figure 4Compared with the logic gate 400 , the inverter set 608 replaces the inverter set 408 , and the NOR logic gate 612 replaces the NOR logic gate 412 , so similar detailed descriptions are omitted.
[0145] The set of inverters 608 is coupled between the set of inverters 508 and a NOR logic gate 612. The NOR logic gate 612 is coupled to the set of inverters 508 and the first portion 302a of memory cells.
[0146] and Figure 4 Compared with 400 logic gates, Figure 5 The output terminal of the inverter set 508 is coupled to the corresponding input terminal of the inverter set 608, and the corresponding output terminal of the inverter set 608 is coupled to the corresponding input terminal of the NOR logic gate 612, so similar detailed description is omitted.
[0147] and Figure 4 Compared to the logic gate 400, the input terminal of the NOR logic gate 612 is coupled to the corresponding memory cell (not shown) of the first portion of memory cells 302a and the corresponding output terminal of the inverter set 608, so similar detailed description is omitted.
[0148] The inverter set 608 is configured to receive the data set Din2 and is configured to generate the data set Dinb3 in response to the data set Din2.
[0149] The data set Dinb3 includes at least data Dinb3a, Dinb3b, ..., Dinb3m or Dinb3N. The data set Dinb3 includes N bits.
[0150] In some embodiments, data set Dinb3 corresponds to data set Din2. Each bit in data set Dinb3 is associated with each corresponding bit in data set Din2. In other words, at least bit Dinb3a, Dinb3b, ..., Dinb3m or Dinb3N of data set Dinb3 corresponds to at least bit Din2a, Din2b, ..., Din2m or Din2N of data set Din2.
[0151] In some embodiments, at least one bit of the data set Dinb3 is inverted or complementary to at least one corresponding bit of the data set Din2.
[0152] The inverter set 608 includes at least inverters 608a, 608b, ..., 608m or 608N. Each inverter in the inverter set 608 is coupled in parallel with each other. Each inverter of the inverter set 608 has a corresponding input terminal coupled to a corresponding output terminal of the inverter set 508. Each inverter of the inverter set 608 has a corresponding output terminal coupled to a corresponding terminal of the NOR logic gate 612.
[0153] Each inverter in inverter sets 506 and 508 corresponds to each inverter in inverter set 608. The number of inverters in inverter set 608 is equal to the number of inverters in inverter sets 506 and 508, and similarly, the number of inverters in inverter set 408 is equal to the number of inverters in inverter sets 406 and 408, so similar detailed descriptions are omitted.
[0154] In some embodiments, if the inverter set 608 includes M inverters (608a, ..., 608M), each inverter in the inverter set 608 is configured to invert a corresponding bit of the data set Din2, and each bit of the data set Dinb3 is inverted or complemented with each corresponding bit of the data set Din2.
[0155] In some embodiments, if the inverter set 608 includes one inverter (e.g., inverter 608a), the inverter 608a of the inverter set 608 is configured to invert the bit Din2a of the data set Din2, thereby generating the bit Dinb3a of the data set Dinb3. In this embodiment, the output terminal of the inverter 608a of the inverter set 608 is coupled to the input terminal of the NOR logic gate 612, and the other input terminal of the NOR logic gate 612 is coupled to the first portion 302a of the memory cell and the output terminals of the inverters 508b, ..., 508N of the inverter set 508. In this embodiment, the bit Dinb3a is inverted or complementary to the bit Din2a, and the bits Dinb3b, ..., Dinb3N are equal to the corresponding data Din2b, ..., Din2N.
[0156] Other configurations or types of logic gates for NOR logic gate 612 are within the scope of the present disclosure.
[0157] In some embodiments, non-limiting examples of the operation of integrated circuit 500 and logic gate 600 are similar to the operation of integrated circuit 300 and logic gate 400 , and thus similar detailed descriptions are omitted.
[0158] Other values or bits of the attacked signal BAS are within the scope of the present disclosure. For example, in some embodiments, a logic value of 0 of the attacked signal BAS indicates that an attack is detected or occurs, while a logic value of 1 of the attacked signal BAS indicates that no attack is detected or occurs.
[0159] Other configurations of logic gate 600 are within the scope of the present disclosure.In some embodiments, sets of inverters 506, 508, and 608 are replaced by other logic circuits that perform the same logic functions.
[0160] Logic gate 600 implements the above Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0161] Parity Check Matrix
[0162] Figure 7 is a table 700 of a parity check matrix H according to some embodiments.
[0163] Table 700 and parity check matrix H may be used by ECC encoder 304 and ECC decoder 312. For example, in some embodiments, ECC encoder 304 is configured to generate check bit set CB1 using parity check matrix H. For example, in some embodiments, ECC decoder 312 is configured to decode check bit set CB2 using parity check matrix H. In some embodiments, table 700 may be used to correct Figure 3 and Figure 5 Other parity check matrices are within the scope of the present disclosure.
[0164] Table 700 is a non-limiting example of a parity check matrix H of a BCH (72, 64, 1) code capable of correcting errors in an output signal set Dout. Table 700 includes 8 rows arranged along a first direction X and 72 columns arranged along a second direction Y. In some embodiments, the number of rows corresponds to the number of check bits in the check bit sets CB1, CBB1, CBB2, CB2, and CBB3. In some embodiments, the number of columns corresponds to the sum of the number of check bits in the check bit sets CB1, CBB1, CBB2, CB2, and CBB3 and the number of data bits in the data sets Din1, Dinb1, Dinb2, Din2, and Dinb3. In some embodiments, columns 1-64 correspond to data bits, and columns 65-72 correspond to check bits of the parity check matrix H.
[0165] Other ECCs that may be used to generate different parity-check matrices are within the scope of the present disclosure.
[0166] XOR Tree
[0167] Figure 8is a block diagram of an XOR tree 800 according to some embodiments.
[0168] In some embodiments, XOR tree 800 is Figure 3 and Figure 5 For the embodiment of the ECC encoder 304, similar detailed description is omitted.
[0169] In some embodiments, XOR tree 800 may be used as a syndrome generator in an ECC decoder, such as Fig. 9 The syndrome generator 902 in , or as Fig.10 XOR tree 1002, similar detailed description is omitted.
[0170] XOR tree 800 includes XOR trees 802a, 802b, 802c, ..., 802h (collectively referred to as "XOR tree set 802"). Other numbers of trees are within the scope of the present disclosure. For example, in some embodiments, the number of XOR trees 800 corresponds to the number of XOR trees generated by ECC encoder 304. Fig.10 The number k of check bits available to the syndrome generator 1000 in .
[0171] In some embodiments, XOR tree 800 is Figure 3 and Figure 5 , and each XOR tree 802a, 802b, 802c, ..., 802h in the XOR tree set 802 is configured to generate Figure 3 and Figure 5 In these embodiments, the XOR tree 802a is configured to receive a portion of the data set Din1 and to generate the check bits CB1a of the check bit set CB1.
[0172] In some embodiments, XOR tree 800 is Fig.10 In an embodiment of the XOR tree 1002, each XOR tree 802a, 802b, 802c, ..., 802h in the XOR tree set 802 is configured to generate a corresponding check bit T1a, T1b, T1c, ..., Th of the check bit set T. In some embodiments, the corresponding check bits T1a, T1b, T1c, ..., Th of the check bit set T can be obtained by Fig.10 In these embodiments, the XOR tree 802a is configured to receive a portion of the data set Din2 and to generate a check bit T1a of the check bit set T.
[0173] The XOR tree 800 has input terminals x1, ..., x64. Each input terminal x1-x64 is configured to receive a corresponding bit of the data set Din1 or Din2. For example, the input terminal x1 is configured to receive a bit in position 1 of the data set Din1 or Din2, the input terminal x2 is configured to receive a bit in position 2 of the data set Din1 or Din2, and so on.
[0174] In some embodiments, the configuration of the XOR tree 800 is based on the rows and columns in the parity check matrix 700. Each XOR tree of the XOR tree set 802 is constructed by the rows in the table 700. In some embodiments, the XOR trees 802a, 802b, ..., 802h of the XOR tree set 802 are constructed by the corresponding rows 1, 2, ..., 8 of the table 700. In other words, based on the rows in the table 700, each XOR tree of the XOR tree set 802 includes input terminals x1, ..., x64. For each row in the table 700, when there is a "1" in the column, the corresponding column number is the corresponding input terminal in the input terminals x1, ..., x64. For example, in row 1 of Table 700, columns 1-8, 25-33, 37, 38, 39, 41, 45, 46, 47, 49, 53, 54, 55, 57, 61, 62, and 63 have entries "1", so XOR tree 802a has corresponding input terminals x1, ..., x8, x25, ..., x33, x37, x38, x39, x41, x45, x46, x47, x49, x53, x54, x55, x57, x61, x62, and x63. In row 2 of table 700, columns 1-16, 34, 37, 38, 40, 42, 45, 46, 48, 50, 53, 54, 56, 58, 61, 62, and 64 have entries "1", so XOR tree 802b has corresponding input terminals x1-x16, x34, x37, x38, x40, x42, x45, x46, x48, x50, x53, x54, x56, x58, x61, x62, and x64 (not shown). The input terminals of XOR trees 802c-802h follow a similar approach to the input terminals of XOR trees 802c-802h and are not described again for brevity.
[0175] XOR tree 802a includes sets of XOR gates 810, 812, 814, 816, and 818. In some embodiments, XOR tree 802a includes other numbers of sets of XOR gates 810, 812, 814, 816, and 818.
[0176] The XOR gate set 810 has input terminals x1, ..., x8, x25, ..., x33, x37, x38, x39, x41, x45, x46, x47, x49, x53, x54, x55, x57, x61, x62, and x63. In some embodiments, the input terminals x1, ..., x8, x25, ..., x33, x37, x38, x39, x41, x45, x46, x47, x49, x53, x54, x55, x57, x61, x62, and x63 are configured to receive bits at corresponding bit positions 1-8, 25-33, 37, 38, 39, 41, 45, 46, 47, 49, 53, 54, 55, 57, 61, 62, and 63 of the data set Din or Din2.
[0177] The XOR gate set 810 includes at least XOR gates 810a, 810b, ..., 810o, or 810p.
[0178] XOR gate 810a has input terminals x1 and x2, XOR gate 810b has input terminals x3 and x4, XOR gate 810c has input terminals x5 and x6, XOR gate 810d has input terminals x7 and x8, XOR gate 810e has input terminals x25 and x26, XOR gate 810f has input terminals x27 and x28, XOR gate 810g has input terminals x29 and x30, XOR gate 810h has input terminals x31 and x32 ... OR gate 810i has input terminals x33 and x37, XOR gate 810j has input terminals x38 and x39, XOR gate 810k has input terminals x41 and x45, XOR gate 810l has input terminals x46 and x47, XOR gate 810m has input terminals x49 and x53, XOR gate 810n has input terminals x54 and x55, XOR gate 810o has input terminals x57 and x61, and XOR gate 810p has input terminals x62 and x63.
[0179] A pair of XOR gates of XOR gate set 810 are coupled to XOR gates of XOR gate set 812. For example, XOR gates 810a and 810b are coupled to XOR gate 812a of XOR gate set 812.
[0180] XOR gate set 812 includes at least XOR gates 812a, 812b, ..., 812g or 812h. A pair of XOR gates of XOR gate set 812 is coupled to an XOR gate of XOR gate set 814. For example, XOR gates 812a and 812b are coupled to XOR gate 814a of XOR gate set 814.
[0181] XOR gate set 814 includes at least XOR gate 814a, 814b, 814c, or 814d. A pair of XOR gates of XOR gate set 814 is coupled to an XOR gate of XOR gate set 816. For example, XOR gates 814a and 814b are coupled to XOR gate 816a of XOR gate set 816.
[0182] XOR gate set 816 includes at least XOR gate 816a or 816b. XOR gate set 818 includes at least XOR gate 818a. A pair of XOR gates of XOR gate set 816 are coupled to XOR gates of XOR gate set 818. For example, XOR gates 816a and 816b are coupled to XOR gate 818a of XOR gate set 818.
[0183] In some embodiments, the XOR gate 818a is configured to output a check bit CB1a of the check bit set CB1. In some embodiments, the XOR gate 818a is configured to output a check bit T1a of the check bit set T.
[0184] Other numbers of XOR gates in one or more of XOR gate sets 810, 812, 814, 816, and 818 are within the scope of the present disclosure.
[0185] For ease of explanation, the details of the XOR trees 802b, 802c, ..., 802h are not shown, but are similar to the details of the XOR tree 802a, so similar detailed description is omitted.
[0186] Other configurations of XOR tree 800 are within the scope of the present disclosure.
[0187] ECC Decoder
[0188] Fig. 9 is a block diagram of an ECC decoder 900 according to some embodiments.
[0189] The ECC decoder 900 is Figure 3 and Figure 5 The embodiments of the ECC decoder 312 are omitted from similar detailed descriptions.
[0190] The ECC decoder 900 includes a syndrome generator 902 , error and detection logic 904 , and the attacked logic gate 312 .
[0191] The syndrome generator 902 is configured to receive a data set Din2 and a check bit set CB2. The syndrome generator 902 is configured to generate a syndrome vector (hereinafter referred to as “syndrome”) S in response to the data set Din2 and the check bit set CB2. The output terminal of the syndrome generator 902 is coupled to the corresponding input terminal of the error and detection logic 904.
[0192] The syndrome S includes S1, S2, ..., S8. The syndrome S has r bits. In some embodiments, r bits are less than N bits. In some embodiments, r bits are equal to kN bits.
[0193] The syndrome S indicates the location of errors in the data set Din2 and the check bit set CB2 (e.g., codeword). For example, in some embodiments, a syndrome of all 0s indicates that there are no errors in the data set Din2 and the check bit set CB2 (e.g., codeword). For example, in some embodiments, a syndrome including 1s indicates that there are errors in the data set Din2 and the check bit set CB2 (e.g., codeword).
[0194] In some embodiments, syndrome generator 902 is coupled to set of inverters 508 and second portion 302b of memory cells. In some embodiments, syndrome generator 902 is configured to receive data set Din2 from set of inverters 508 and check bit set CB2 from second portion 302b of memory cells.
[0195] In some embodiments, the syndrome generator 902 is coupled to the set of inverters 308 and the first portion 302a of the memory cell. In some embodiments, the syndrome generator 902 is configured to receive the data set Din2 from the set of inverters 308 and receive the check bit set CB2 from the first portion 302a of the memory cell. Other configurations of the syndrome generator 902 are within the scope of the present disclosure.
[0196] The error detection and correction logic 904 is configured to generate an output data set in response to the data set Din2 and the syndrome S. In some embodiments, the error detection and correction logic 904 is coupled to the syndrome generator 902 and the first portion 302a of the memory cell, and is configured to receive the syndrome S from the syndrome generator 902 and receive the data set Din2 from the first portion 302a of the memory cell. In some embodiments, the error detection and correction logic 904 is coupled to the syndrome generator 902 and the set of inverters 508, and is configured to receive the syndrome S from the syndrome generator 902 and receive the data set Din2 from at least the set of inverters 508. Other configurations of the error detection and correction logic 904 are within the scope of the present disclosure.
[0197] Other configurations of ECC decoder 900 are within the scope of the present disclosure.
[0198] ECC decoder 900 implements the above Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0199] Syndrome Generator
[0200] Fig.10is a block diagram of a syndrome generator 1000 according to some embodiments.
[0201] The syndrome generator 1000 is Fig. 9 For the embodiment of the syndrome generator 902, similar detailed description is omitted.
[0202] The syndrome generator 1000 includes a set of XOR trees 1002 and a set of XOR logic gates 1004 .
[0203] The XOR tree set 1002 includes at least XOR trees 1002a, 1002b, ..., 1002g, or 1002h. Figure 8 The XOR tree 800 may be used as the XOR tree set 1002, and similar detailed description is omitted. Other numbers of trees are within the scope of the present disclosure. For example, in some embodiments, the number of XOR trees in the XOR tree set 1002 corresponds to the number k of check bits generated by the ECC encoder 304 or available to the syndrome generator 1000.
[0204] The set of XOR trees 1002 is configured to receive the data set Din2. In some embodiments, the set of XOR trees 1002 is coupled to the set of inverters 508. In some embodiments, the set of XOR trees 1002 is coupled to the first portion 302a of the memory cells.
[0205] The XOR tree set 1002 is configured to generate a check bit set T in response to the data set Din2. The check bit set T includes at least check bits T1a, T1b, T1c, ..., Tg or Th. Each XOR tree 1002a, 1002b, ..., 1002h of the XOR tree set 1002 is configured to generate corresponding check bits T1a, T1b, ..., Th of the check bit set T in response to the data set Din2.
[0206] The XOR logic gate set 1004 is configured to generate a syndrome S in response to the check bit set T and the check bit set CB2. In some embodiments, the XOR logic gate set 1004 generates the syndrome S based on a comparison of each bit of the check bit set T and each corresponding bit of the check bit set CB2. For example, the same logic inputs of the XOR logic gates of the XOR logic gate set 1004 obtain a logic "0" output, and different logic inputs of the XOR logic gates of the XOR logic gate set 1004 obtain a logic "1" output.
[0207] The XOR logic gate set 1004 includes at least XOR logic gates 1004 a , 1004 b , . . . , 1004 g or 1004 h . Figure 8The XOR tree 800 can be used as the XOR tree set 1002, and similar detailed description is omitted. Other numbers of XOR logic gates are also within the scope of the present disclosure. For example, in some embodiments, the number of XOR logic gates in the XOR logic gate set 1004 corresponds to the number k of check bits generated by the ECC encoder 304 or available to the syndrome generator 1000.
[0208] In some embodiments, the set of XOR logic gates 1004 is coupled to the set of XOR trees 1002 and the set of inverters 308. In some embodiments, each XOR logic gate 1004a, 1004b, ..., 1004h of the set of XOR logic gates 1004 is coupled to a corresponding XOR tree 1002a, 1002b, ..., 1002h of the set of XOR trees 1002 and a corresponding inverter 308a, 308b, ..., 308h of the set of inverters 308, and is configured to generate a corresponding syndrome bit S1, S2, ..., S8 of the syndrome S.
[0209] In some embodiments, the set of XOR logic gates 1004 is coupled to the set of XOR trees 1002 and the second portion 302b of memory cells. In some embodiments, each XOR logic gate 1004a, 1004b, ..., 1004h of the set of XOR logic gates 1004 is coupled to a corresponding XOR tree 1002a, 1002b, ..., 1002h of the set of XOR trees 1002 and a corresponding memory cell (not shown) of the second portion of memory cells, and is configured to generate a corresponding syndrome bit S1, S2, ..., S8 of the syndrome S. Other configurations of at least the set of XOR trees 1002 or the set of XOR logic gates 1004 are within the scope of the present disclosure.
[0210] Other configurations of the syndrome generator 1000 are within the scope of the present disclosure. Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0211] Error logic circuit
[0212] Fig.11 is a block diagram of an error logic circuit 1100 according to some embodiments.
[0213] Error logic circuit 1100 is Fig. 9 For the embodiments of the error detection and correction logic 904, similar detailed description is omitted.
[0214] The error logic circuit 1100 includes an OR logic gate 1102 , a syndrome decoder 1104 , an XOR logic gate set 1106 , a NOR logic gate 1108 , and an AND logic gate 1110 .
[0215] OR logic gate 1102 is coupled to Fig. 9 The syndrome generator 902 or Fig.10 The OR logic gate 1102 has r input terminals, which are configured to receive corresponding syndrome bits of the syndrome S.
[0216] The OR logic gate 1102 is configured to generate an error detection signal FE1 in response to the syndrome S. In some embodiments, the error detection signal FE1 indicates whether an error in the check bit set CB2 and the data set Din2 is detected. For example, in some embodiments, when there is no error in the check bit set CB2 and the data set Din2 (e.g., codeword), the error detection signal FE1 has a logic value of 0. For example, in some embodiments, when there is an error in the check bit set CB2 and the data set Din2 (e.g., codeword), the error detection signal FE1 has a logic value of 1. Other values of the error detection signal FE1 are within the scope of the present disclosure.
[0217] Other configurations or logic circuit types for OR logic gate 1102 are within the scope of the present disclosure.
[0218] The syndrome decoder 1104 is coupled to Fig. 9 The syndrome generator 902 or Fig.10 The syndrome generator 1000 of FIG. 1004 is configured to generate an error signal Y in response to the syndrome S. In some embodiments, the error signal Y indicates at least the location of the error in the check bit set CB2 and the data set Din2. In some embodiments, the syndrome decoder is an 8×72 decoder. In some embodiments, the syndrome decoder is an 8×72 decoder including 72 8-input AND logic gates.
[0219] The error signal Y includes error signals Y1, Y2, ..., Y72. Each error signal Y1, Y2, ..., Y72 of the error signal Y corresponds to a check bit of the check bit set CB2 and a bit of the data set Din2. In some embodiments, the error signal Y is an error locating polynomial that identifies the locations of errors in the check bit set CB2 and the data set Din2.
[0220] The set of XOR logic gates 1106 is configured to generate an output data set Dout in response to the error signal Y, the data set Din2 and the check bit set CB2.
[0221] In some embodiments, the XOR logic gate set 1106 is configured to generate an output data set Dout based on a comparison of each bit in the error signal Y with each corresponding check bit in the check bit set CB2 and each corresponding bit in the data set Din2. For example, the same logic inputs of the XOR logic gates of the XOR logic gate set 1106 obtain a logic "0" output, and different logic inputs of the XOR logic gates of the XOR logic gate set 1106 obtain a logic "1" output. In other words, the XOR logic gate set 1106 is configured to correct the error bit by flipping the logic value of the bit.
[0222] XOR logic gate set 1106 includes at least XOR logic gates 1106(1), 1106(2), ..., 1106(71) or 1106(72). Other numbers of XOR logic gates are also within the scope of the present disclosure. For example, in some embodiments, the number of XOR logic gates in XOR logic gate set 1106 corresponds to the sum of the number of check bits k generated by ECC encoder 304 and the number of data bits in data set Din.
[0223] In some embodiments, the set of XOR logic gates 1106 is coupled to the syndrome decoder 1104, the set of inverters 308, and the first portion 302a of the memory cells. In some embodiments, each XOR logic gate 1106a, 1106b, ..., 1106h of the set of XOR logic gates 1106 is coupled to the syndrome decoder 1104 and a corresponding inverter 308a, 308b, ..., 308h of the set of inverters 308 and a corresponding memory cell (not shown) of the first portion 302a of the memory cells, and is configured to generate a corresponding bit of the output data set Dout.
[0224] In some embodiments, the set of XOR logic gates 1106 is coupled to the syndrome decoder 1104, the second portion of memory cells 302 b, and the set of inverters 508. In some embodiments, each XOR logic gate 1106 a, 1106 b, ..., 1106 h of the set of XOR logic gates 1106 is coupled to the syndrome decoder 1104 and a corresponding memory cell (not shown) of the second portion of memory cells 302 b and a corresponding inverter 508 a, 508 b, ..., 508 h of the set of inverters 508, and is configured to generate a corresponding bit of the output data set Dout.
[0225] Other configurations or logic circuit types for the set of XOR logic gates 1106 are within the scope of the present disclosure.
[0226] The NOR logic gate 1108 is coupled between the syndrome decoder 1104 and the AND logic gate 1110. The NOR logic gate 1108 is configured to generate a NOR output signal Nout in response to the error signal Y.
[0227] The NOR logic gate 1108 has 72 input terminals, which are configured to receive corresponding bits of the error signal Y. Other numbers of input terminals are within the scope of the present disclosure. For example, in some embodiments, the number of input terminals of the NOR logic gate 1108 corresponds to the sum of the number k of check bits generated by the ECC encoder 304 and the number of bits of the data N of the data set Din.
[0228] Other configurations or logic circuit types for NOR logic gate 1108 are within the scope of the present disclosure.
[0229] AND logic gate 1110 is coupled to OR logic gate 1102 and NOR logic gate 1108. An input terminal of AND logic gate 1110 is coupled to an output terminal of OR logic gate 1102, and another input terminal of AND logic gate 1110 is coupled to an output terminal of NOR logic gate 1108.
[0230] AND logic gate 1110 is configured to generate an uncorrectable error signal FE2 in response to NOR output signal Nout and error detection signal FE1. In some embodiments, uncorrectable error signal FE2 indicates that errors in check bit set CB2 and data set Din2 are uncorrectable.
[0231] For example, in some embodiments, when there is no error in the check bit set CB2 and the data set Din2 (e.g., codeword), the error detection signal FE2 has a logic value of 0. For example, in some embodiments, when there is an uncorrectable error in the check bit set CB2 and the data set Din2 (e.g., codeword), the error detection signal FE2 has a logic value of 1. Other values of the error detection signal FE2 are within the scope of the present disclosure. Other configurations or logic circuit types of the AND logic gate 1110 are within the scope of the present disclosure.
[0232] Other configurations of the error logic circuit 1100 are within the scope of the present disclosure. Figure 1 The benefits of the integrated circuit 100 are discussed above.
[0233] method
[0234] Fig.12 is a flow chart of a method 1200 of operating an integrated circuit according to some embodiments.
[0235] In some embodiments, Fig.12 Yes Operation Figure 1 The integrated circuit 100 and Figure 3 Integrated circuit 300, Figure 4 The logic circuit 400, Figure 8 XOR tree 800, Fig. 9 ECC decoder 900, Fig.10 The syndrome generator 1000 of Fig.11 The error logic circuit 1100 and Fig.14 1400. It should be understood that the system 1400 may be used to perform one or more of the following methods. Fig.12 Additional operations are performed before, during, and / or after the method 1200 shown in the figure, so only some other operations are briefly described herein. In some embodiments, other operation sequences of the method 1200 are within the scope of the present disclosure. In some embodiments, one or more operations of the method 1200 are not performed.
[0236] In some embodiments, at least method 1200 or 1300 ( Fig.13 ) is performed after the user performs an operation to attempt to log into the system 1400. In some embodiments, at least method 1200 or 1300 is part of a security mechanism implemented by an integrated circuit having a security key that can be used to provide data integrity in an RFID card, a bank card, a payment card, an ID card, etc.
[0237] Method 1200 includes exemplary operations, but the operations are not necessarily performed in the order shown. Operations may be added, replaced, reordered, and / or deleted as appropriate, in accordance with the spirit and scope of the disclosed embodiments. It should be understood that method 1200 utilizes features of one or more of integrated circuits 100 and 300, logic circuit 400, table 700, parity check matrix H, XOR tree 800, ECC decoder 900, syndrome generator 1000, error logic circuit 1100, and system 1400.
[0238] In operation 1202 of method 1200, a first check bit set is generated in response to the first data set. In some embodiments, the first check bit set of method 1200 includes at least a check bit set CB1. In some embodiments, the first data set of method 1200 includes at least a data set Din1. In some embodiments, operation 1202 is performed by ECC encoder 304.
[0239] In operation 1204 of method 1200, a second set of check bits is generated in response to the first set of check bits. In some embodiments, at least a portion of the second set of check bits is inverted or complementary to at least a portion of the first set of check bits. In some embodiments, the first set of inverters is coupled to an ECC encoder.
[0240] In some embodiments, the second check bit set of method 1200 includes at least check bit set CBB1. In some embodiments, the first inverter set of method 1200 is inverter set 306. In some embodiments, operation 1204 is performed by inverter set 306.
[0241] At operation 1206 of method 1200 , the first set of data of method 1200 is stored in a first portion 302 a of memory cells of a first memory cell array. In some embodiments, the first memory cell array is memory cell array 302 .
[0242] In operation 1208 of method 1200, a second set of parity bits is stored in a second portion 302b of memory cells of the first memory cell array. In some embodiments, the second portion 302b of memory cells is coupled to a first set of inverters.
[0243] In operation 1210 of method 1200 , a third set of parity bits is received, and a fourth set of parity bits is generated in response to the third set of parity bits.
[0244] In some embodiments, the third check bit set is received by the second set of inverters. In some embodiments, the fourth check bit set is generated by the second set of inverters. In some embodiments, the second set of inverters of method 1200 is set of inverters 308. In some embodiments, operation 1210 is performed by set of inverters 308.
[0245] In some embodiments, the third parity bit set of method 1200 includes at least parity bit set CBB2. In some embodiments, the fourth parity bit set of method 1200 includes at least parity bit set CB2.
[0246] In some embodiments, at least a portion of the fourth check bit set is inverted with at least a portion of the third check bit set. In some embodiments, the third check bit set corresponds to the second check bit set stored in the second portion 302b of the memory cell. In some embodiments, the second inverter set is coupled to the second portion 302b of the memory cell.
[0247] In operation 1212 of method 1200, at least the second data set or the fourth check bit set is decoded to generate at least an output data set or an attacked signal. In some embodiments, the attacked signal indicates a reset attack by the user. In some embodiments, the ECC decoder of method 1200 is coupled to the second inverter set and the first portion 302a of the memory cell.
[0248] In some embodiments, the second data set of method 1200 includes data set Din2. In some embodiments, the second data set of method 1200 corresponds to the first data set stored in the first portion 302a of the memory cell.
[0249] In some embodiments, the output data set of method 1200 includes at least the output data set Dout. In some embodiments, the attacked signal of method 1200 includes at least the attacked signal BAS.
[0250] In some embodiments, operation 1212 is performed by at least ECC decoder 310 or ECC decoder 900. In some embodiments, at least a portion of operation 1212 is performed by at least syndrome generator 1000 and error logic circuit 1100.
[0251] In operation 1214 of method 1200, it is determined whether the first memory cell array has been attacked by a user by detecting an invalid codeword. In some embodiments, the invalid codeword of method 1200 includes a fourth check bit set and a second data set.
[0252] In some embodiments, operation 1214 is performed by a first logic circuit. In some embodiments, the first logic circuit of method 1200 is logic circuit 400. In some embodiments, the first logic circuit is coupled to the second set of inverters and the first portion 302a of the memory cell.
[0253] In some embodiments, the determination of operation 1214 is performed by logic circuit 400 or system 1400 .
[0254] In some embodiments, operation 1214 of method 1200 includes at least generating a fifth check bit set by the third set of inverters in response to the fourth check bit set, and generating an attacked signal by the first NOR logic circuit in response to the fifth check bit set and the second data set.
[0255] In some embodiments, the fifth parity bit set of method 1200 includes at least parity bit set CBB3. In some embodiments, the third inverter set of method 1200 is inverter set 408. In some embodiments, the first NOR logic circuit of method 1200 is NOR logic gate 412.
[0256] In some embodiments, the fifth parity bit set is inverted from the fourth parity bit set. In some embodiments, the third set of inverters is coupled to the second set of inverters. In some embodiments, the first NOR logic circuit is coupled to the first portion 302a of the memory cell and the third set of inverters.
[0257] In some embodiments, if the determination of operation 1214 is “NO”, the method 1200 proceeds to operation 1216 .
[0258] In some embodiments, if the determination of operation 1214 is “yes,” method 1200 proceeds to operation 1218 .
[0259] In operation 1214 of method 1200, the attacked signal BAS is set to a first value. In some embodiments, the first value is a logic 1. In some embodiments, the first value is a logic 0.
[0260] In operation 1216 of method 1200, the attacked signal BAS is set to a second value opposite to the first value. In some embodiments, the second value is a logic 0. In some embodiments, the second value is a logic 1. In some embodiments, the first value or the second value corresponds to more than a single data bit.
[0261] In some embodiments, operations 1214 and 1216 are performed by logic circuit 400. In some embodiments, operations 1214 and 1216 are performed by system 1400.
[0262] In some embodiments, after operation 1214 or 1216, method 1200 remains in an idle state until a login timer expires.
[0263] By operating at least method 1200 or 1300 , the integrated circuit operates to achieve the benefits discussed above with respect to integrated circuit 100 .
[0264] Fig.13 is a flow chart of a method 1300 of operating an integrated circuit according to some embodiments.
[0265] In some embodiments, Fig.13 Yes Operation Figure 1 The integrated circuit 100 and Figure 5 Integrated circuit 500, Figure 6 The logic circuit 600, Figure 8 XOR tree 800, Fig. 9 ECC decoder 900, Fig.10 The syndrome generator 1000 of Fig.11 The error logic circuit 1100 and Fig.14 1400. It should be understood that the system 1400 may be used to perform one or more of the following methods. Fig.13 Additional operations are performed before, during, and / or after the method 1300 shown in the figure, so only some other operations are briefly described herein. In some embodiments, other operation sequences of the method 1300 are within the scope of the present disclosure. In some embodiments, one or more operations of the method 1300 are not performed.
[0266] Method 1300 includes exemplary operations, but the operations are not necessarily performed in the order shown. Operations may be added, replaced, reordered, and / or deleted as appropriate, in accordance with the spirit and scope of the disclosed embodiments. It should be understood that method 1300 utilizes features of one or more of integrated circuits 100 and 500, logic circuit 600, table 700, parity check matrix H, XOR tree 800, ECC decoder 900, syndrome generator 1000, error logic circuit 1100, and system 1400.
[0267] In operation 1302 of method 1300, a first check bit set is generated in response to the first data set. In some embodiments, the first check bit set of method 1300 includes at least a check bit set CB1. In some embodiments, the first data set of method 1300 includes at least a data set Din1. In some embodiments, operation 1302 is performed by ECC encoder 304.
[0268] In operation 1304 of method 1300, a second data set is generated in response to the first data set. In some embodiments, at least a portion of the second data set is an inverse or complementary to at least a portion of the first data set.
[0269] In some embodiments, the second data set of method 1300 includes at least data set Dinb1. In some embodiments, the first inverter set of method 1300 is inverter set 506. In some embodiments, operation 1304 is performed by inverter set 506.
[0270] At operation 1306 of method 1300, a second set of data of method 1300 is stored in a first portion 302a of memory cells of a first memory cell array. In some embodiments, the first memory cell array is memory cell array 302. In some embodiments, the first portion 302a of memory cells is coupled to a first set of inverters.
[0271] In operation 1308 of method 1300 , the first set of parity bits is stored in a second portion 302 b of memory cells of the first array of memory cells. In some embodiments, the second portion 302 b of memory cells is coupled to an ECC encoder 304 .
[0272] In operation 1310 of method 1300 , a third data set is received, and a fourth data set is generated in response to the third data set.
[0273] In some embodiments, the third data set is received by the second set of inverters. In some embodiments, the fourth data set is generated by the second set of inverters. In some embodiments, the second set of inverters of method 1300 is set of inverters 508. In some embodiments, operation 1310 is performed by set of inverters 508.
[0274] In some embodiments, the third data set of method 1300 includes at least data set Dinb2. In some embodiments, the fourth data set of method 1300 includes at least data set Din2.
[0275] In some embodiments, at least a portion of the fourth data set is inverted from at least a portion of the third data set. In some embodiments, the third data set corresponds to the second data set stored in the first portion 302a of the memory cell. In some embodiments, the second inverter set is coupled to the first portion 302a of the memory cell.
[0276] In operation 1312 of method 1300, at least the second check bit set or the fourth data set is decoded to generate at least an output data set or an attacked signal. In some embodiments, the attacked signal indicates a reset attack by the user. In some embodiments, the ECC decoder of method 1300 is coupled to the second inverter set and the second portion 302b of the memory cell.
[0277] In some embodiments, the second parity bit set of method 1300 includes parity bit set CB2. In some embodiments, the second parity bit set of method 1300 corresponds to the first parity bit set stored in the second portion 302b of the memory cells.
[0278] In some embodiments, the output data set of method 1300 includes at least the output data set Dout. In some embodiments, the attacked signal of method 1300 includes at least the attacked signal BAS.
[0279] In some embodiments, operation 1312 is performed by at least ECC decoder 310 or ECC decoder 900. In some embodiments, at least a portion of operation 1312 is performed by at least syndrome generator 1000 and error logic circuit 1100.
[0280] In operation 1314 of method 1300, it is determined whether the first memory cell array has been attacked by a user by detecting an invalid codeword. In some embodiments, the invalid codeword of method 1300 includes a fourth data set and a second check bit set.
[0281] In some embodiments, operation 1314 is performed by a first logic circuit. In some embodiments, the first logic circuit of method 1300 is logic circuit 600. In some embodiments, the first logic circuit is coupled to the second set of inverters and the second portion 302b of memory cells.
[0282] In some embodiments, the determination of operation 1314 is performed by logic circuit 600 or system 1400 .
[0283] In some embodiments, operation 1314 of method 1300 includes at least generating, by the third set of inverters, a fifth set of data in response to the fourth set of data, and generating, by the first NOR logic circuit, an attacked signal in response to the fifth set of data and the second set of check bits.
[0284] In some embodiments, the fifth data set of method 1300 includes at least data set Dinb3. In some embodiments, the third inverter set of method 1300 is inverter set 608. In some embodiments, the first NOR logic circuit of method 1300 is NOR logic gate 612.
[0285] In some embodiments, the fifth set of data is inverted from the fourth set of data. In some embodiments, the third set of inverters is coupled to the second set of inverters. In some embodiments, the first NOR logic circuit is coupled to the second portion 302b of the memory cell and the third set of inverters.
[0286] In some embodiments, if the determination of operation 1314 is “NO”, the method 1300 proceeds to operation 1316 .
[0287] In some embodiments, if the determination of operation 1314 is “yes,” method 1300 proceeds to operation 1318 .
[0288] In operation 1314 of method 1300, the attacked signal BAS is set to a first value. In some embodiments, the first value is a logic 1. In some embodiments, the first value is a logic 0.
[0289] In operation 1316 of method 1300, the attacked signal BAS is set to a second value opposite to the first value. In some embodiments, the second value is a logic 0. In some embodiments, the second value is a logic 1. In some embodiments, the first value or the second value corresponds to more than a single data bit.
[0290] In some embodiments, operations 1314 and 1316 are performed by logic circuit 600. In some embodiments, operations 1314 and 1316 are performed by system 1400.
[0291] In some embodiments, after operation 1314 or 1316, method 1300 remains in an idle state until a login timer expires.
[0292] Fig.14 is a schematic diagram of a system 1400 according to some embodiments. In some embodiments, the system 1400 is at least Figure 1 The controller 104 or the ECC encoder / decoder 110 are not described with reference to the drawings, and thus similar detailed description is omitted.
[0293] In some embodiments, system 1400 is at least Figure 1 Integrated circuit 100, Figure 3 Integrated circuit 300, Figure 4 The logic circuit 400, Figure 5 Integrated circuit 500, Figure 6 The logic circuit 600, Figure 8 XOR tree 800, Fig. 9 ECC decoder 900, Fig.10 The syndrome generator 1000 of Fig.11 The present invention is an embodiment of the error logic circuit 1100, and thus similar detailed description is omitted.
[0294] In some embodiments, a portion of system 1400 is at least an embodiment of integrated circuit 300 or 500 , and thus similar detailed description is omitted.
[0295] In some embodiments, the system 1400 is configured to control one or more of the controller 104, the memory cell array 102 or 202, the X-decoder circuit 106, the Y-decoder circuit 108, the ECC encoder / decoder 110, the memory circuit 200, the ECC encoder 304, at least the inverter set 306, 308, 506 or 508, the ECC decoder 310, the logic circuit 400, the logic circuit 600, the XOR tree 800, the ECC decoder 900, the syndrome generator 1000, or the error logic circuit 1100. For example, the system 1400 is configured to perform one or more operations of the method 1200 or the method 1300.
[0296] The system 1400 includes a hardware processor 1402 and a non-transitory computer-readable storage medium 1404 (eg, memory 1404 ) encoded with (ie, storing) computer program code 1406 (ie, a set of executable instructions 1406 ).
[0297] The computer readable storage medium 1404 is configured to communicate with at least the controller 104, the memory cell array 102 or 202, the X-decoder circuit 106, the Y-decoder circuit 108, the ECC encoder / decoder 110, the storage circuit 200, the ECC encoder 304, at least the inverter set 306, 308, 506 or 508, the ECC decoder 310, the logic circuit 400, the logic circuit 600, the XOR tree 800, the ECC decoder 900, the syndrome generator 1000 or Fig.11 The error logic circuit 1100 interacts.
[0298] The processor 1402 is electrically coupled to the computer-readable storage medium 1404 via a bus 1408. The processor 1402 is also electrically coupled to an I / O interface 1410 via the bus 1408. A network interface 1412 is also electrically coupled to the processor 1402 via the bus 1408. The network interface 1412 is connected to a network 1414 so that the processor 1402 and the computer-readable storage medium 1404 can be connected to external elements via the network 1414. The processor 1402 is configured to execute a computer program code 1406 encoded in the computer-readable storage medium 1404 so that the system 1400 can be used to implement at least some or all of the operations described in the method 1200 or 1300. In some embodiments, the network 1414 is not part of the system 1400.
[0299] In some embodiments, processor 1402 is a central processing unit (CPU), a multi-processor, a distributed processing read circuit, an application specific integrated circuit (ASIC), and / or a suitable processing unit.
[0300] In some embodiments, the computer-readable storage medium 1404 is an electronic, magnetic, optical, electromagnetic, infrared, and / or semiconductor reading circuit (or device or device). For example, the computer-readable storage medium 1404 includes a semiconductor or solid-state memory, a magnetic tape, a mobile computer floppy disk, a random access memory (RAM), a read-only memory (ROM), a hard disk, and / or an optical disk. In some embodiments using optical disks, the computer-readable storage medium 1404 includes a read-only compact disk memory (CD-ROM), a read / write compact disk (CD-R / W), and / or a digital video disk (DVD).
[0301] In some embodiments, storage medium 1404 stores computer program code 1406 configured to cause system 1400 to perform at least one or more operations of method 1200 or 1300. In some embodiments, storage medium 1404 also stores information for performing at least method 1200 or 1300 and information generated during the performance of at least method 1200 or 1300, such as table 1416, parity check matrix 1418, data set 1420, check bit set 1422, syndrome 1424, signal set 1426, and user interface 1428 and / or executable instruction set to perform at least one or more operations of method 1200 or 1300.
[0302] In some embodiments, storage medium 1404 stores instructions (e.g., computer program code 1406) for interacting with at least controller 104, memory cell array 102 or 202, X-decoder circuit 106, Y-decoder circuit 108, ECC encoder / decoder 110, memory circuit 200, ECC encoder 304, at least inverter set 306, 308, 506 or 508, ECC decoder 310, logic circuit 400, logic circuit 600, XOR tree 800, ECC decoder 900, syndrome generator 1000, or error logic circuit 1100. The instructions (e.g., computer program code 1406) enable the processor 1402 to generate instructions readable by at least the controller 104, the memory cell array 102 or 202, the X-decoder circuit 106, the Y-decoder circuit 108, the ECC encoder / decoder 110, the memory circuit 200, the ECC encoder 304, at least the inverter set 306, 308, 506 or 508, the ECC decoder 310, the logic circuit 400, the logic circuit 600, the XOR tree 800, the ECC decoder 900, the syndrome generator 1000, or the error logic circuit 1100 to effectively implement one or more operations of at least the method 1200 or 1300 during operation of the integrated circuit 100, 300 or 500 or the logic circuit 400 or 600.
[0303] System 1400 includes an I / O interface 1410. I / O interface 1410 is coupled to external circuitry. In some embodiments, I / O interface 1410 includes a keyboard, a keypad, a mouse, a trackball, a touchpad, and / or cursor direction keys that communicate information and commands to processor 1402.
[0304] The system 1400 also includes a network interface 1412 coupled to the processor 1402. The network interface 1412 allows the system 1400 to communicate with a network 1414, to which one or more other computer-readable circuits are connected. The network interface 1412 includes a wireless network interface such as BLUETOOTH, WIFI, WIMAX, GPRS, or WCDMA; or a wired network interface such as ETHERNET, USB, or IEEE-884. In some embodiments, at least the method 1200 or 1300 is implemented in two or more systems 1400, and information such as tables, parity check matrices, data sets, check bit sets, syndromes, signal sets, and user interfaces are exchanged between different systems 1400 via the network 1414.
[0305] System 1400 is configured to receive information related to the table via I / O interface 1410 or network interface 1412. The information is transmitted to processor 1402 via bus 1408 to determine table values for generating parity check matrix H. The table values are then stored in computer readable medium 1404 as table 1416. In some embodiments, table 1416 includes table 700.
[0306] System 1400 is configured to receive information related to a parity check matrix via I / O interface 1410 or network interface 1412. The information is stored in computer readable medium 1404 as parity check matrix 1418. In some embodiments, the parity check matrix includes Figure 7 The parity check matrix H is .
[0307] System 1400 is configured to receive information related to a data set via I / O interface 1410 or network interface 1412. The information is stored in computer readable medium 1404 as data set 1420. In some embodiments, the data set includes at least Figure 1-Figure 13 One or more or at least the data sets Din1, Dinb1, Dinb2, Din2, Dinb3 or Dout of method 1200 or 1300.
[0308] System 1400 is configured to receive information related to a check bit set via I / O interface 1410 or network interface 1412. The information is stored in computer readable medium 1404 as a check bit set 1422. In some embodiments, the check bit set includes at least Figure 1-Figure 13 One or more or at least the check bit sets CB1, CBB1, CBB2, CB2, CBB3 or T of method 1200 or 1300.
[0309] System 1400 is configured to receive information related to the syndrome via I / O interface 1410 or network interface 1412. The information is stored in computer readable medium 1404 as syndrome 1424. In some embodiments, the syndrome includes at least Figure 1-Figure 13 One or more or at least the syndrome S of method 1200 or 1300.
[0310] System 1400 is configured to receive information related to a signal set through I / O interface 1410 or network interface 1412. The information is stored in computer readable medium 1404 as signal set 1426. In some embodiments, the signal set includes at least Figure 1-Figure 13 One or more or at least the attacked signal BAS, the error detection signal FE1 or the uncorrectable error signal FE2 of the method 1200 or 1300 .
[0311] The system 1400 is configured to receive information related to the user interface through the I / O interface 1410 or the network interface 1412. The information is stored in the computer readable medium 1404 as the user interface 1428.
[0312] In some embodiments, at least a portion of the method 1200 or 1300 is implemented as a standalone software application executed by a processor. In some embodiments, at least a portion of the method 1200 or 1300 is implemented as a software application that is part of an additional software application. In some embodiments, at least a portion of the method 1200 or 1300 is implemented as a plug-in for a software application. In some embodiments, at least a portion of the method 1200 or 1300 is implemented as a software application that is part of an ECC tool or a certification tool. In some embodiments, at least a portion of the method 1200 or 1300 is implemented as a software application used by an ECC tool or a certification tool. In some embodiments, the certification tool is used to authenticate the certificate of at least a user of the memory circuit 100.
[0313] In some embodiments, one or more operations of method 1200 or 1300 are not performed. Figure 1-Figure 11 The various logic circuits shown are for illustration purposes. The embodiments of the present disclosure are not limited to specific logic circuits, and Figure 1-Figure 11 One or more of the logic circuits shown in the figure may be replaced with one or more corresponding logic circuits of different or equivalent functions. Similarly, the low or high logic values of the various signals used in the above description are also used for illustration. The embodiments of the present disclosure are not limited to specific logic values when the signals are activated and / or not activated. It is within the scope of various embodiments to select different logic values. Figure 1-Figure 11 Different numbers of logic circuits in are within the scope of various embodiments.
[0314] It can be seen that, for those of ordinary skill in the art, one or more of the disclosed embodiments achieve one or more of the advantages set forth above. After reading the foregoing description, those of ordinary skill in the art will be able to conceive of multiple variations, equivalent substitutions, and multiple other embodiments as broadly disclosed herein. Therefore, it is intended that the protection claimed herein be limited only by the limitations contained in the attached claims and their equivalents.
[0315] One aspect of the present invention relates to an integrated circuit. The integrated circuit includes: an ECC encoder configured to generate a first check bit set in response to a first data set; a first inverter set coupled to the ECC encoder and configured to generate a second check bit set in response to the first check bit set; and a first memory cell array. The second check bit set is inverted from the first check bit set. The first memory cell array includes: a first portion of memory cells configured to store the first data set; and a second portion of memory cells coupled to the first inverter set and configured to store the second check bit set.
[0316] In the above integrated circuit, it also includes: a second inverter set, coupled to the second part of the memory cell and configured to receive a third check bit set, and generate a fourth check bit set in response to the third check bit set, the fourth check bit set is inverted from the third check bit set, and the third check bit set corresponds to the second check bit set stored in the second part of the memory cell.
[0317] In the above integrated circuit, it also includes: an error correction code decoder, coupled to the second inverter set and the first part of the memory unit, and configured to at least detect or correct errors in at least the second data set or the fourth check bit set, thereby generating at least an output data set and an attacked signal, the second data set corresponds to the first data set stored in the first part of the memory unit, and the attacked signal indicates a reset attack by the user.
[0318] In the above integrated circuit, the error correction code decoder further includes: a first logic circuit configured to determine whether the first memory cell array has been attacked by a user by detecting an invalid codeword, wherein the invalid codeword includes a fourth check bit set and a second data set.
[0319] In the above-mentioned integrated circuit, the first logic circuit includes: a third inverter set, coupled to the second inverter set and configured to generate a fifth check bit set in response to the fourth check bit set, the fifth check bit set being inverted from the fourth check bit set; and a first OR-NON logic circuit, coupled to the first part of the memory cell and the third inverter set, and configured to generate an attacked signal in response to the fifth check bit set and the second data set.
[0320] In the above-mentioned integrated circuit, the error correction code encoder includes: a first XOR tree, including a first XOR gate set, configured to generate a first check bit of a first check bit set in response to a first data set; a second XOR tree, including a second XOR gate set, configured to generate a second check bit of the first check bit set in response to the first data set; and an Nth XOR tree, including an Nth XOR gate set, configured to generate an Nth check bit of the first check bit set in response to the first data set; wherein N is an integer corresponding to the number of check bits in the first check bit set and the number of XOR trees in the error correction code encoder.
[0321] In the above integrated circuit, the first memory cell array includes: a magnetoresistive random access memory (MRAM); or a phase change RAM (PRAM).
[0322] Another aspect of the present invention relates to an integrated circuit. The integrated circuit includes: an ECC encoder configured to generate a first set of check bits in response to a first set of data; a first set of inverters configured to generate a second set of data in response to the first set of data; and a first array of memory cells. In some embodiments, the second set of data is inverted from the first set of data. In some embodiments, the first array of memory cells includes: a first portion of memory cells coupled to the first set of inverters and configured to store the second set of data; and a second portion of memory cells coupled to the ECC encoder and configured to store the first set of check bits.
[0323] In the above integrated circuit, it also includes: a second inverter set, coupled to the first part of the memory cell and configured to receive a third data set, and generate a fourth data set in response to the third data set, the fourth data set is inverted from the third data set, and the third data set corresponds to the second data set stored in the first part of the memory cell.
[0324] In the above integrated circuit, it also includes: an error correction code decoder, coupled to the second inverter set and the second part of the memory unit, and configured to at least detect or correct errors in at least the fourth data set or the second check bit set, thereby generating at least an output data set and an attacked signal, the second check bit set corresponds to the first check bit set stored in the second part of the memory unit, and the attacked signal indicates a reset attack by the user.
[0325] In the above integrated circuit, the error correction code decoder further includes: a first logic circuit configured to determine whether the first memory cell array has been attacked by a user by detecting an invalid codeword, wherein the invalid codeword includes a second check bit set and a fourth data set.
[0326] In the above-mentioned integrated circuit, the first logic circuit includes: a third inverter set, coupled to the second inverter set and configured to generate a fifth data set in response to the fourth data set, the fifth data set being inverted from the fourth data set; and a first NOR logic circuit, coupled to the second part of the memory cell and the third inverter set, and configured to generate an attacked signal in response to the second check bit set and the fifth data set.
[0327] In the above-mentioned integrated circuit, the error correction code decoder includes: a syndrome generator, coupled to the second inverter set and the second part of the memory unit, and configured to generate a syndrome vector in response to the fourth data set and the second check bit set; and an error detection / correction logic circuit, coupled to the syndrome generator and the second part of the memory unit, and configured to generate an output data set in response to the fourth data set and the syndrome vector.
[0328] In the above-mentioned integrated circuit, the syndrome generator includes: an XOR tree set, coupled to the second inverter set and configured to generate another check bit set in response to a fourth data set, each XOR tree in the XOR tree set is configured to generate a corresponding check bit of the other check bit set in response to the fourth data set; and an XOR gate set, coupled to the XOR tree set and the second part of the memory cell, and configured to generate a syndrome vector in response to the second check bit set and the other check bit set, each XOR gate of the XOR gate set is coupled to a corresponding XOR tree of the XOR tree set, and is configured to generate a corresponding syndrome bit of the syndrome vector.
[0329] In the above integrated circuit, the error detection / correction logic circuit includes: an OR logic gate coupled to the syndrome generator and configured to generate an error detection signal in response to the syndrome vector, the error detection signal indicating whether errors in the second check bit set and the fourth data set are detected.
[0330] In the above integrated circuit, the error detection / correction logic circuit also includes: a syndrome decoder, coupled to the syndrome generator and configured to generate an error signal in response to the syndrome vector, the error signal at least identifying the location of the error in the second check bit set and the fourth data set; and a set of XOR gates, coupled to the syndrome decoder, the second part of the memory cell and the second inverter set, and configured to generate an output data set in response to the error signal, the fourth data set and the second check bit set.
[0331] In the above-mentioned integrated circuit, the error detection / correction logic circuit also includes: an NOR logic gate, coupled to the syndrome decoder and configured to generate an NOR output signal in response to the error signal; and an AND logic gate, coupled to the OR logic gate and the NOR logic gate, and configured to generate an uncorrectable error signal in response to the NOR output signal and the error detection signal, the uncorrectable error signal indicating that errors in the second check bit set and the fourth data set are uncorrectable.
[0332] Another aspect of the present invention relates to a method of operating an integrated circuit including a first memory cell array. In some embodiments, the method includes: generating a first check bit set by an ECC encoder in response to a first data set; generating a second check bit set by a first inverter set in response to the first check bit set; storing the first data set in a first portion of memory cells of the first memory cell array; storing the second check bit set in a second portion of memory cells of the first memory cell array; receiving a third check bit set by a second inverter set; generating a fourth check bit set in response to the third check bit set; and determining by a first logic circuit whether the first memory cell array has been attacked by a user by detecting an invalid codeword. In some embodiments, the second check bit set is inverted from the first check bit set. In some embodiments, the first inverter set is coupled to the ECC encoder. In some embodiments, the second portion of the memory cell is coupled to the first inverter set. In some embodiments, the fourth check bit set is inverted from the third check bit set. In some embodiments, the third check bit set corresponds to the second check bit set stored in the second portion of the memory cell. In some embodiments, the second inverter set is coupled to the second portion of the memory cell. In some embodiments, the invalid codeword includes the fourth check bit set and the second data set. In some embodiments, the second set of data corresponds to the first set of data stored in the first portion of the memory cell. In some embodiments, the first logic circuit is coupled to the second set of inverters and the first portion of the memory cell.
[0333] In the above method, it also includes: decoding at least the second data set or the fourth check bit set by an error correction code decoder to at least generate an output data set or an attacked signal, the attacked signal indicates a reset attack by the user, and the error correction code decoder is coupled to the second inverter set and the first part of the memory unit.
[0334] In the above method, determining whether the first memory cell array has been attacked by the user includes: generating a fifth check bit set by a third inverter set in response to a fourth check bit set, the fifth check bit set is inverted with the fourth check bit set, and the third inverter set is coupled to the second inverter set; and generating an attacked signal by a first OR-NOT logic circuit in response to the fifth check bit set and a second data set, the first OR-NOT logic circuit is coupled to a first portion of the memory cell and the third inverter set, and the attacked signal indicates a reset attack by the user.
[0335] The components of several embodiments are discussed above so that those skilled in the art can better understand the various embodiments of the present invention. It should be understood by those skilled in the art that the present invention can be easily used as a basis to design or change other processing and structures to achieve the same purpose and / or achieve the same advantages as the embodiments introduced in the present invention. It should also be appreciated by those skilled in the art that these equivalent structures do not deviate from the spirit and scope of the present invention, and that various changes, substitutions and modifications may be made without departing from the spirit and scope of the present invention.
Claims
1. An integrated circuit, comprising: an error correction code encoder configured to generate a first check bit set in response to a first data set; a first set of inverters coupled to the error correction code encoder and configured to generate a second set of parity bits in response to the first set of parity bits, the second set of parity bits being inverted with respect to the first set of parity bits; A first memory cell array comprises: a first portion of a memory unit configured to store said first set of data; and a second portion of memory cells coupled to the first set of inverters and configured to store the second set of parity bits; a second set of inverters coupled to the second portion of the memory cell and configured to receive a third set of parity bits and generate a fourth set of parity bits in response to the third set of parity bits, the fourth set of parity bits being inverted from the third set of parity bits, the third set of parity bits corresponding to the second set of parity bits stored in the second portion of the memory cell; and an error correction code decoder coupled to the second set of inverters and the first portion of the memory cell and configured to at least detect or correct errors in at least a second set of data or the fourth set of check bits, thereby generating at least an output data set and an attacked signal, the second set of data corresponding to the first set of data stored in the first portion of the memory cell.
2. The integrated circuit according to claim 1, wherein: The number of inverters in the first inverter set is one.
3. The integrated circuit according to claim 1, wherein: The attacked signal indicates a reset attack by the user.
4. The integrated circuit according to claim 3, wherein: The error correction code decoder also includes: The first logic circuit is configured to determine whether the first memory cell array has been attacked by a user by detecting an invalid codeword, wherein the invalid codeword includes the fourth check bit set and the second data set.
5. The integrated circuit according to claim 4, wherein: The first logic circuit comprises: a third set of inverters coupled to the second set of inverters and configured to generate a fifth set of parity bits in response to the fourth set of parity bits, the fifth set of parity bits being inverted from the fourth set of parity bits; and A first NOR logic circuit is coupled to the first portion of the memory cells and the third inverter set and is configured to generate the attacked signal in response to the fifth check bit set and the second data set.
6. The integrated circuit of claim 1, wherein: The error correction code encoder comprises: a first XOR tree, comprising a first set of XOR gates, configured to generate a first check bit of the first set of check bits in response to the first set of data; a second XOR tree, comprising a second set of XOR gates, configured to generate a second check bit of the first set of check bits in response to the first set of data; and An Nth XOR tree, comprising an Nth set of XOR gates, configured to generate an Nth check bit of the first check bit set in response to the first data set; Wherein, N is an integer corresponding to the number of check bits in the first check bit set and the number of XOR trees in the error correction code encoder.
7. The integrated circuit according to claim 1, wherein: The first memory cell array comprises: Magnetoresistive random access memory; or Phase-change random access memory.
8. An integrated circuit comprising: an error correction code encoder configured to generate a first check bit set in response to a first data set; a first inverter set configured to generate a second data set in response to the first data set, the second data set being inverted with respect to the first data set; A first memory cell array comprises: a first portion of memory cells coupled to the first set of inverters and configured to store the second set of data; and a second portion of a memory unit coupled to the error correction code encoder and configured to store the first set of check bits; a second set of inverters coupled to the first portion of the memory cell and configured to receive a third set of data and generate a fourth set of data in response to the third set of data, the fourth set of data being inverted from the third set of data, the third set of data corresponding to the second set of data stored in the first portion of the memory cell; and an error correction code decoder coupled to the second set of inverters and the second portion of the memory cell and configured to at least detect or correct errors in at least the fourth data set or a second set of check bits, thereby generating at least an output data set and an attacked signal, the second set of check bits corresponding to the first set of check bits stored in the second portion of the memory cell.
9. The integrated circuit of claim 8, wherein: The number of inverters in the first inverter set is one.
10. The integrated circuit of claim 8, further comprising: The attacked signal indicates a reset attack by the user.
11. The integrated circuit of claim 10, wherein: The error correction code decoder also includes: The first logic circuit is configured to determine whether the first memory cell array has been attacked by a user by detecting an invalid codeword, wherein the invalid codeword includes the second check bit set and the fourth data set.
12. The integrated circuit of claim 11, wherein: The first logic circuit comprises: a third set of inverters coupled to the second set of inverters and configured to generate a fifth set of data in response to the fourth set of data, the fifth set of data being inverted from the fourth set of data; and A first NOR logic circuit is coupled to the second portion of the memory cells and the third inverter set and is configured to generate the attacked signal in response to the second check bit set and the fifth data set.
13. The integrated circuit of claim 10, wherein: The error correction code decoder comprises: a syndrome generator coupled to the second set of inverters and the second portion of the memory cells and configured to generate a syndrome vector in response to the fourth set of data and the second set of check bits; and An error detection / correction logic circuit is coupled to the syndrome generator and the second portion of the memory unit and is configured to generate the output data set in response to the fourth data set and the syndrome vector.
14. The integrated circuit of claim 13, wherein: The syndrome generator comprises: a set of XOR trees coupled to the second set of inverters and configured to generate another set of check bits in response to the fourth set of data, each XOR tree in the set of XOR trees being configured to generate a corresponding check bit of the another set of check bits in response to the fourth set of data; and a set of XOR gates coupled to the set of XOR trees and a second portion of the memory cells and configured to generate the syndrome vector in response to the second set of parity bits and the another set of parity bits, each XOR gate of the set of XOR gates being coupled to a corresponding XOR tree of the set of XOR trees and configured to generate a corresponding syndrome bit of the syndrome vector.
15. The integrated circuit of claim 13, wherein: The error detection / correction logic circuit comprises: An OR logic gate is coupled to the syndrome generator and is configured to generate an error detection signal in response to the syndrome vector, the error detection signal indicating whether errors in the second check bit set and the fourth data set are detected.
16. The integrated circuit of claim 15, wherein: The error detection / correction logic circuit also includes: a syndrome decoder coupled to the syndrome generator and configured to generate an error signal in response to the syndrome vector, the error signal identifying at least locations of errors in the second set of check bits and the fourth set of data; and A set of XOR gates is coupled to the syndrome decoder, the second portion of the memory cells, and the second set of inverters and is configured to generate the output data set in response to the error signal, the fourth data set, and the second set of check bits.
17. The integrated circuit of claim 16, wherein: The error detection / correction logic circuit also includes: a NOR logic gate coupled to the syndrome decoder and configured to generate a NOR output signal in response to the error signal; and An AND logic gate is coupled to the OR logic gate and the NOR logic gate and is configured to generate an uncorrectable error signal in response to the NOR output signal and the error detection signal, the uncorrectable error signal indicating that errors in the second check bit set and the fourth data set are uncorrectable.
18. A method of operating an integrated circuit, the integrated circuit comprising a first memory cell array, the method comprising: generating, by an error correction code encoder, a first check bit set in response to the first data set; generating a second check bit set in response to the first check bit set by a first inverter set, the second check bit set being inverted with the first check bit set, the first inverter set being coupled to the error correction code encoder; storing the first set of data in a first portion of memory cells of the first array of memory cells; storing the second set of parity bits in a second portion of memory cells of the first array of memory cells, the second portion of memory cells being coupled to the first set of inverters; receiving a third set of parity bits by a second set of inverters, and generating a fourth set of parity bits in response to the third set of parity bits, the fourth set of parity bits being inverted from the third set of parity bits, the third set of parity bits corresponding to the second set of parity bits stored in a second portion of the memory cell, the second set of inverters being coupled to the second portion of the memory cell; as well as A first logic circuit is used to determine whether the first memory cell array has been attacked by a user by detecting an invalid codeword, wherein the invalid codeword includes the fourth check bit set and a second data set, wherein the second data set corresponds to the first data set stored in the first portion of the memory cell, and the first logic circuit is coupled to the second inverter set and the first portion of the memory cell.
19. The method according to claim 18, further comprising: At least the second data set or the fourth check bit set is decoded by an error correction code decoder, thereby generating at least an output data set or an attacked signal, the attacked signal indicating a reset attack by a user, the error correction code decoder being coupled to the second inverter set and the first portion of the memory cell.
20. The method according to claim 18, wherein: Determining whether the first memory cell array has been attacked by a user includes: generating a fifth parity bit set in response to the fourth parity bit set by a third inverter set, the fifth parity bit set being inverted from the fourth parity bit set, the third inverter set being coupled to the second inverter set; and An attacked signal is generated by a first NOR logic circuit in response to the fifth check bit set and the second data set, the first NOR logic circuit being coupled to the first portion of the memory cells and the third inverter set, the attacked signal indicating a reset attack by a user.
