The present disclosure, is related to a memory with self-repairing capabilities.
In some existing approaches related to an embedded dynamic random access memory (eDRAM), when a failure occurs at a memory location of the eDRAM, a human being, such as a system engineer, needs to go through some processes to have the error repaired.
The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other features and advantages will be apparent from the description, drawings, and claims.
Like reference symbols in the various drawings indicate like elements.
Embodiments, or examples, illustrated in the drawings are disclosed below using specific language. It will nevertheless be understood that the embodiments and examples are not intended to be limiting. Any alterations and modifications in the disclosed embodiments, and any further applications of the principles disclosed in this document are contemplated as would normally occur to one of ordinary skill in the pertinent art.
Some embodiments have one or a combination of the following features and/or advantages. In some embodiments, a memory self-repair completes within one no-operation (NOP) instruction cycle. No external memory is used during the self-repair process. In some embodiments, the system does not track the failed address, nor provide the corrected data. In some embodiments, the self-repair is performed during the system execution of a NOP instruction. As a result, no extra instruction is used by the memory self-repair.
U.S. patent application Ser. No. 12/849,157, entitled MEMORY ERRORS AND REDUNDANCY and filed Aug. 3, 2010, is hereby incorporated by reference in its entirety.
In this document, a low logical value is labeled in the drawings as “0” while a high logical value is labeled as “1.”
SoC 120 represents a subsystem using an embedded dynamic random access memory (eDRAM) 120-1-1 that may have errors to be repaired. Generally, SoC 120 includes a complex electronic or computing system having sub systems integrated into a chip. Exemplary components of SoC 120 include a central processing unit (CPU), a data storage unit, an input-output (IO) controller, digital and/or analog circuitry, all of which, for simplicity, are not shown. In some embodiments, SoC 120 includes a network package buffer, which stores data, processes data packets, and provides the processed data packets. The term system or subsystem in this document includes, for example, a computing unit having processing and/or computing intelligent capabilities.
An IP-macro 120-1 includes a functional block, a subsystem, etc. In the embodiments of
eDRAM 120-1-1 includes a plurality of banks of memory cells. Each bank includes a number of rows, a number of columns and related circuitry such as sense amplifiers, word lines, bit lines, etc. Depending on applications, the size of eDRAM 120-1-1 varies, including, for example, 1, 2, 4 Mb, etc. A row of memory cells may be called a data word. Various embodiments of the disclosure provide mechanisms for the errors which occurred in eDRAM 120-1-1 to be self-repaired without intervention by a human being. Examples of errors include soft errors, latent errors, variable retention time (VRT) errors, etc. eDRAM 120-1-1 is a type of memory used for illustration, other storage devices including, for example, SRAM, flash, one time program (OTP), multi time program (MTP), etc., are within the scope of various embodiments.
A redundancy engine 120-1-2 is responsible for comparing addresses accessing eDRAM 120-1-1 with known faulty locations in eDRAM 120-1-1, in order to redirect those accesses to redundant or spare locations assigned to replace the known faulty locations. In some embodiments, at a final test in production, redundant locations are programmed into eDRAM 120-1-1. In various embodiments, a number of spare locations are reserved for a replacement that might be needed when a latent or a VRT error is discovered during operation.
In various embodiments, redundancy engine 120-1-2 stores the address of the faulty locations. When an error occurs during operation, for example, redundancy engine 120-1-2, based on the information provided by a failed address engine 120-2-2, recognizes the faulty location, controls and identifies a corresponding redundancy location used to repair that faulty location. Once the faulty location has been repaired, redundancy engine 120-1-2 redirects the next access to the faulty location to the corresponding redundancy location.
Depending on applications, an error in eDRAM 120-1-1 can be repaired in different ways. For example, if the data is stored in eDRAM 120-1-1 and may be accessed multiple times for read, redundancy engine 120-1-2 schedules the repair of an identified error. But if the data is likely to be over written by an application using system 100 before the next read, then redundancy engine 120-1-1 does not schedule the repair. In different embodiments, the repair is scheduled through ECC engine 120-1-3, SoC 120, or system 100.
ECC engine 120-1-3 encodes inbound data for storage and decodes and corrects outbound data when communicating with other circuitry such as eDRAM 120-1-1, ASIC 130, etc. ECC engine 120-1-3 recognizes the inbound data and adds parity bits to the data. When eDRAM 120-1-1 is accessed, the data and associated parity bits are sent to ECC engine 120-1-3, based on which ECC engine 120-1-3 determines if an error is present. In some embodiments, when an error occurs in eDRAM 120-1-1, ECC engine 120-1-3, based on the inbound data and associated parity bits, recognizes an error, identifies the address of a failed bit, and flags the error. In some embodiments, ECC engine 120-1-3 uses six parity bits to correct a single error in a data word of 32 bits and uses seven parity bits to correct a single error and detect a double error. In various embodiments, ECC engine 120-1-3 can be defined by the SoC designer, and is therefore suitable for use with different data width of a design choice. In some embodiments, ECC engine 120-1-3 is a type of ECC engine known in the art. Other ECC engines are within the scope of various embodiments.
ASIC 130 includes a specific application design, which, in some embodiments, includes a network processing unit (NPU). ASIC 130 may be considered the intelligence of system 100. In various embodiments, ASIC 130 monitors the ECC flag, and recognizes whether data is correct or contains an error. If the flag is detected such as when an error has been identified, ASIC 130 stores the address of the faulty memory location. ASIC 110, when recognizing the data contains an error, identifies the address and sends the address to failed address engine 120-2-2. Depending on implementations, ASIC 130 delays the repair so that system 100 may repair the error at a later time. Depending on applications, SoC 120 may perform the repair functions.
Failed address engine 120-2-2 determines the type of failures and the action to be taken based on a history of failure, such as a list of stored failed addresses. Because soft errors occur randomly, soft errors are unlikely to repeat in the same location multiple times. In some embodiments, the first time an error occurs in a location, failed address engine 120-2-2 considers the error as a soft error. If the error, however, occurs more than once in the same location, such as a second time, a third time, etc., failed address engine 120-2-2 considers the error as a latent error or a VRT error. For illustration, latent or VRT errors are called “hard errors.” In various embodiments, failed address engine 120-2-2 stores the list of failed addresses. When an error occurs, failed address engine 120-2-2 compares the failed address to the stored list of failed addresses. If there is not a match, failed address engine 120-2 considers the error to be a soft error. If, however, there is a match, failed address engine 120-2-2 considers the error to be a hard error. Failed address engine 120-2-2, based on information provided by ECC engine 120-1-3, calculates the correct data for a faulty location and provides that data to redundancy engine 120-1-2. When appropriate, failed address engine 120-2-2 sends a request to repair the failed address to redundancy engine 120-1-2, which can repair the failed address on the fly using spare redundancy. Depending on implementations, various embodiments use a content-addressable memory (CAM) to implement failed address engine 120-2-2. In some embodiments, failed address engine 120-2-2 also includes a self-repair logic illustratively shown as self-repair engine 440 in
A command signal CMD is for use in a read, a write, and a refresh operation. A clock signal CLK represents a system clock signal. Signal ADDR represents the address of the memory cell in eDRAM 120-1-1 to be accessed. Accessing eDRAM 120-1-1 refers to writing to or reading from eDRAM 120-1-1. Signal DIN represents the data to be written to the accessed memory cell. Signal DOUT represents the data read from the accessed memory cell. Signal ECC_FLAG indicates an error in the data being read out of the accessed memory cell has been detected and fixed. In some embodiments, ECC engine 121-1-3 sets signal ECC_FLAG to a high logical value when an error is identified by ECC engine 121-1-3. A self-repair signal SR_FLAG indicates that an NOP instruction is desired to repair the error. In a non-cached architecture, the NOP instruction is provided in the next clock cycle. In a cached architecture, however, the NOP instruction can be delayed.
In some embodiments, when eDRAM 120-1-1 operates in a mission mode in which eDRAM 120-1-1 is used in a system to store data and provide the stored data to other circuits, the self-repair occurs in one clock cycle. For example, the command signal CMD receives the NOP operation, self-repair signal SR_FLAG has a logical high value, and, on the next rising edge of clock signal CLK, eDRAM 120-1-1 self-repairs a hard error that occurred in a memory word, using the address from the flagged address and the data corrected from ECC engine 120-1-3. In some embodiments, the NOP operation is an operation in which there is no conflicting operation to the memory areas in question.
Memory array 410 includes a plurality of memory cells arranged in rows and columns. For illustration, one row 415 of memory cells is shown. A row of memory cells includes a plurality of memory words W. For illustration, row 415 is shown having four words labeled words W[1], W[2], W[3], and W[4]. Common numbers of words W in a row include 8, 16, 32, 64, etc. A different number of words W in a row of memory cells is within the scope of various embodiments. Each word W includes a plurality of memory cells or memory bits. For illustration, a word W including eight bits B1, B2, B3, B4, B5, B6, B7, and B8 is depicted in word W[3], and is labeled in
Error-tag (ET) memory 418 includes ET bits corresponding to words. W in memory array 410. For example, row 415 includes four words W[1], W[2], W[3], and W[4]. Accordingly, in some embodiments, ET memory 418 includes four bits ET[1], ET[2], ET[3], and ET[4] corresponding to four words W[1], W[2], W[3], and W[4], respectively. When the number of words W in a row of memory changes, the number of bits ET changes accordingly. For example, if N represents an integer, and if there are N number of words W[1] to W[N], there are N number of bits ET[1] to ET[N].
In some embodiments, each bit ET is default to a logical low value indicating there is no error in any of the corresponding word W. When a memory cell in a word W has an error, the corresponding ET bit is set to a high logical value. For example, if a memory cell in word W[1] has an error, bit ET[1] is set to a logical high value. If a memory cell in word W[2] has an error, bit ET[2] is set to a logical high value, and if a memory cell in word W[3] has an error, bit ET[3] is set to a logical high value, etc. Other values in bits ET indicating the erroneous states of the corresponding words W are within the scope of various embodiments. In some embodiments, failed address engine 120-2-2 changes the values in bits ET.
In
Redundancy memory 420 includes memory cells used to repair erroneous memory cells. Redundancy memory 420 is commonly called row redundancy memory 420. Similar to memory array 410, redundancy memory 420 includes a plurality of memory cells arranged in rows and columns. For illustration, only one row 425 of redundancy memory 420 is shown. The number of words in a row of redundancy memory 420 corresponds to the number of words in a row of memory array 410. For example, row 425 is shown having four words RW[1], RW[2], RW[3], and RW[4]corresponding to four words W[1], W[2], W[3], and W[4] of memory array 410, respectively. When the number of words W in a row of memory array 410 changes, the number of words RW in a row of redundancy memory 420 changes accordingly. The number of redundancy rows in redundancy memory 420 varies depending on applications and design choices, taking account of various factors including, for example, the expected life time of eDRAM 121-1-1, the estimated number of failures in the life time, etc.
In some embodiments, when a memory cell in memory array 410 has a hard, error, a row in redundancy memory 420 is used in place of the row in memory array 410 that contains the erroneous memory cell. For example, when a memory cell has an error and is accessed, failed address engine 120-2-2 redirects accessing of the erroneous memory row in memory array 410 to a corresponding row in redundancy memory 420. For another example, row 415 includes an erroneous memory cell. When the erroneous memory cell in row 415 is accessed, failed address engine 120-2-2 redirects accessing to a corresponding memory cell in row 425. Further, when a memory cell in a row of redundancy memory 420 has a hard error, another row in redundancy memory 420 is used in place of the row of redundancy memory 420 that contains the erroneous memory cell. Self-repairing a redundancy row in redundancy memory 420 is similar to self-repairing a row in memory array 410. In some embodiments, a “full” signal through a pin of eDRAM 120-1-1 in
Error-tag (ET) redundancy memory 428 includes bits RET corresponding to memory words RW in row redundancy memory 420. As illustratively shown in
In some embodiments, each bit RET is default to a logical low value indicating there is no error in any of the corresponding word RW. When a memory cell in a word RW has an error, the corresponding bit RET is set to a logical high value. For example, if a memory cell in word RW[1] has an error, bit RET[1] is set to a logical high value. If a memory cell in word RW[2] has an error, bit RET[2] is set to a logical high value, and if a memory cell in word RW[3] has an error, bit RET[3] is set to a logical high value, etc. Other values in bits RET indicating the erroneous states of the corresponding words RW are within the scope of various embodiments. In some embodiments, failed address engine 120-2-2 changes the values in bits RET. In some embodiments, when redundancy memory 420 is part of memory array 410, bits RET are parts of ET memory 418.
ECC engine 120-1-3 includes a word logic engine ECCW and an error-tag logic engine ECCET. Word logic engine ECCW is used to process a word W, such as, a word W[1], W[2], W[3], or W[4]. For example, when a word W is accessed, the binary value of word W and parity bits are provided to word logic engine ECCW, which, in some embodiments, based on Hamming code technique, identifies a bit in word W that has flipped. Engine ECCW also flips the erroneous bit to provide the corrected data for the erroneous word W. Effectively, engine ECCW determines whether an error has occurred in word W, and if the error occurs, engine ECCW provides the corrected data. For simplicity, in the below illustrations, when the binary data of a word W is provided to engine ECCW to be processed, the parity bits for the Hamming code decoding techniques are not shown. Hamming ECC code technique is used for illustration. Other ECC techniques are within the scope of various embodiments.
Error-tag logic engine ECCET is used to process each bit ET, such as each of four bits ET[1] to ET[4]. In some embodiments, engine ECCET is a comparator providing a result to indicate whether the accessed bit ET is logically high or logically low. For example, if the accessed bit ET has a high logical value, engine ECCET provides a result having a logical high value. Effectively, engine ECCET indicates that the word W corresponding to the bit ET has had an error previously. In contrast, if the accessed bit ET has a low logical value, engine ECCT provides the result having a logical low value. Effectively, engine ECCET indicates that the word W corresponding to the accessed bit ET had no previous error. For another example, the high logical value from engine ECCET and a logical high value of ECC_FLAG indicate that the error in the word W corresponding to the accessed bit ET is a hard error. In the embodiments in which bits ET are co-located with their respective words W, engine ECCET is part of engine ECCW. Effectively, ECC engine 120-1-3 decodes and detects error before evaluating corresponding bits ET.
In some embodiments, when a hard error occurs, self-repair engine 440 is configured to repair the data. In various embodiments, self-repair engine 440 is part of failed address engine 120-2-2. Embodiments of the disclosure, however, are not limited by the location of self-repair engine 440.
In
Each of bits RET[1], RET[2], RET[3], and RET[4] has a low logical value, indicating that there is no error in the corresponding words RW[1], RW[2], RW[3], and RW[4]. For simplicity, data in words RW[1] to RW[4] are not shown until redundancy is invoked.
In
In
In
In
With reference to
In
In
In
Arrow 1210 and arrow 1220 indicate self-repair engine 440 captures the row address and column address of word W[3] of row 415 that has a hard error. Arrow 1240 indicates that self-repair engine 440, based on signals ECC_FLAG and SR_FLAG, captures the failed address of row 415 having erroneous bit B5 of word W[3]. In some embodiments, self-repair engine 440 adds the address row 415 of word W[3] of bit B5 to a self-repair queue (not shown). Self-repair engine 440 also stores the address of row 415 in a comparator in self-repair engine 440.
In
Arrow 1330 indicates that self-repair engine 440 copies the corrected value 01010101 of word W″ [3] in engine ECCW to word RW[3]. Based on the stored failed address in self-repair engine 440, when a bit in word W[3] of row 415 is accessed again, self-repair engine 440 redirects the access to the corresponding bit of word RW[3] in row 425.
Each of bits RET[1], RET[2], RET[3], and RET[4] is shown having a low logical value, indicating that corresponding words RW[1], RW[2], R[3], and RW[4] of row 425 do not have an error.
The above explanation illustrates self-repairing an error in word W[3] of row 415. Self-repairing an error in another word of row 415 is similar and should be recognizable by persons of ordinary skill in the art in view of this disclosure. Self-repairing is also explained in the context that row 415 of memory array 410 is redirected to row 425 in redundancy memory 420 when a hard error occurs. Self-repairing an error in another row of memory array 410 by using the same row 425 or another row in redundancy memory 420 is similar and should be recognizable by persons of ordinary skill in the art in view of this disclosure.
In some embodiments, if a location in a word of a row of redundancy memory 420 has an error, the process of self-repairing the error in a row of redundancy memory 420 is similar to that of self-repairing the row 415 in memory array 410 and should be recognizable by persons of ordinary skill in the art in view of this disclosure.
In some embodiments, a memory structure comprises a memory array, a plurality of first bits, a plurality of redundancy rows, and a plurality of second bits. The memory array has a plurality of rows. Each row of the plurality of rows of the memory array includes a plurality of memory words. Each first bit of the plurality of first bits is associated with a memory word of the plurality of memory words of the each row of the plurality of rows of the memory array. A state of the each first bit indicates whether the memory word associated with the each first bit has had a failed bit. Each redundancy row of the plurality of redundancy rows includes a plurality of redundancy words. Each redundancy word of the plurality of redundancy words is associated with a memory word of the plurality of memory words of the each row of the plurality of rows of the memory array. Each second bit of the plurality of second bits is associated with a redundancy word of the plurality of redundancy words of the each row of the plurality of redundancy rows. A state of the each second bit indicates whether the redundancy word associated with the each second bit has had a failed bit.
In some embodiments, a memory structure comprises a memory row of a memory array, a plurality of first bits, an error correction engine, and a repair engine. The memory row includes a plurality of memory words. Each first bit of the plurality of first bits is associated with each memory word of the plurality of memory words. The error correction engine is configured to generate an error-repair flag based on a state of a first bit associated with a memory word and an error of the memory word. The repair engine is configured to repair the memory word having the error based on the error-repair flag.
In some embodiments, a data word and a data bit associated with the data word are accessed. In response to an error in accessing the data word, at least one of the following groups of steps are performed based on a first state of the data bit, a state of the data bit is changed, and the data word is written with correct data, or based on a second state of the data bit, an error-repair flag for use in repairing the data word is generated. The first state of the data bit indicates the data word had no other error prior to having the error in accessing the data word. The second state of the data bit indicates the data word had another error prior to having the error in accessing the data word.
Various embodiments are advantageous because repairing the erroneous word uses a self-repair mechanism. For example, the self-repair signal SR_FLAG is logically high to indicate an error needs to be repaired. As soon as the command CMD receives a NOP instruction, eDRAM 120-1-1, at the rising edge of the clock signal CLK, invokes the self-repair mechanism to repair the error. Effectively, a semiconductor device using eDRAM 120-1-1 identifies and repairs the error without intervention by a system designer. NOP instructions are commonly available in an application using eDRAM 120-1-1.
A number of embodiments have been described. It will nevertheless be understood that various modifications may be made without departing from the spirit and scope of the disclosure.
The above method with reference to
The present application is a Continuation-in-Part of U.S. application Ser. No. 12/849,157, filed Aug. 3, 2010, which in turn claims the priority of U.S. Provisional Application No. 61/233,387, which are incorporated herein by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
5263032 | Porter et al. | Nov 1993 | A |
5469388 | Park | Nov 1995 | A |
5511164 | Brunnmeier et al. | Apr 1996 | A |
5701270 | Mohan | Dec 1997 | A |
6553510 | Pekny | Apr 2003 | B1 |
6560725 | Longwell et al. | May 2003 | B1 |
7168010 | Yadavalli et al. | Jan 2007 | B2 |
7984329 | Lastras-Montano et al. | Jul 2011 | B2 |
20020188897 | Ruckerbauer et al. | Dec 2002 | A1 |
20050044459 | Scheuerlein et al. | Feb 2005 | A1 |
20090285043 | Nasu et al. | Nov 2009 | A1 |
20130301369 | Shvydun et al. | Nov 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20130215695 A1 | Aug 2013 | US |
Number | Date | Country | |
---|---|---|---|
61233387 | Aug 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12849157 | Aug 2010 | US |
Child | 13399993 | US |