Self-repairing memory

Information

  • Patent Grant
  • 8750059
  • Patent Number
    8,750,059
  • Date Filed
    Friday, February 17, 2012
    12 years ago
  • Date Issued
    Tuesday, June 10, 2014
    10 years ago
Abstract
A memory array has a plurality of rows. Each row of the plurality of rows includes a plurality of memory words. Each first bit of a plurality of first bits is associated with a memory word of the each row. A state of the each first bit indicates whether the memory word associated the each first bit has had an error. Each redundancy row of a plurality of redundancy rows includes a plurality of redundancy words. Each redundancy word is associated with a memory word. Each second bit of a 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 an error.
Description
FIELD

The present disclosure, is related to a memory with self-repairing capabilities.


BACKGROUND

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.





BRIEF DESCRIPTION OF THE DRAWINGS

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.



FIG. 1 is a block diagram of a system using an embedded dynamic random access memory (eDRAM), in accordance with some embodiments.



FIG. 2 is a block diagram of a semiconductor chip embodying the eDRAM in FIG. 1, in accordance with some embodiments.



FIG. 3 is a diagram of a memory structure that includes various hardware blocks related to self-repair of erroneous memory locations of the eDRAM in FIG. 1, in accordance with some embodiments.



FIGS. 4-12 are diagrams illustrating various steps in repairing a memory failure, in accordance with some embodiments.





Like reference symbols in the various drawings indicate like elements.


DETAILED DESCRIPTION

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.


Exemplary System

In this document, a low logical value is labeled in the drawings as “0” while a high logical value is labeled as “1.”



FIG. 1 is a block diagram of a system 100, in accordance with some embodiments. System 100 includes a system-on-chip (SoC) 120, an application specific integrated circuit (ASIC 130) external to SoC 120, and other circuitry including software, which, for simplicity, is not shown. In some embodiments, system 100 functions as a network router or a network switch. Depending on implementation, system 100 may be responsible for repairing an error or delegate such repair to other entities such as SoC 120, ASIC 130, etc. Further, system 100 may repair an error when the error is first identified or schedule the error to be repaired at another time. Repairing an error includes overwriting the data with the data provided by an error correcting code (ECC) engine 120-1-3 or flipping the logic value of the existing data in the failed location.


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 FIG. 1, because IP-macro 120-1 includes eDRAM 120-1-1, which is a memory unit, IP-macro 120-1 is called a memory subsystem.


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 FIG. 3.


Memory Chip


FIG. 2 is a block diagram of a semiconductor chip 200 embodying eDRAM 120-1-1, in accordance with some embodiments. Pins PADDR, PCMD, PDIN, PCLK, PDOUT, PSR_FLAG, and PECC_FLAG are used for eDRAM 120-1-1 to interface with circuits outside of eDRAM 120-1-1. For illustration, signals received at pints PADDR, PCMD, PDIN, PCLK, PDOUT, PSR_FLAG and PECC_FLAG are called ADDR, CMD, DIN, CLK, DOUT, SR_FLAG, and ECC_FLAG, respectively. For simplicity, signals ADDR, CMD, DIN, CLK, DOUT, SR_FLAG, and ECC_FLAG are not shown in FIG. 2.


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.


Error-Tag Memory Structure


FIG. 3 is a diagram of a structure 300 that includes various hardware blocks related to self-repair of eDRAM 120-1-1, in accordance with some embodiments. In some embodiments, a memory array 410, an error-tag (ET) memory 418, a redundancy memory 420, and an ET redundancy memory 428 are part of eDRAM 120-1-1. Different locations of memory array 410, ET memory 418, redundancy memory 420, and ET redundancy memory 428 are within the scope of various embodiments.


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 FIG. 4. The exemplary binary value 01010101 corresponding to eight bits in word W[3] is shown in FIG. 3 for illustration. For simplicity, memory bits in words W[1], W[2], and W[4] are not shown. In some embodiments, when a memory location or a bit in a word W has an error, the error is corrected before the next access of that bit or word W. Correcting the data includes intentionally writing the corrected data to the erroneous location and/or having a program application that uses eDRAM 120-1-1 write the data of the application to the erroneous location. After correcting the data any further error at the same location is assumed to be due to a hard error.


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 FIG. 3, bits ET are shown separated from the corresponding words W, in accordance with some embodiments. Bits ET at other locations are within the scope of various embodiments. For example, one bit ET is embedded in a corresponding word W. Further, in FIG. 3, four bits ET corresponding to four words W by the indexes 1, 2, 3, 4 of the bits ET and of the corresponding words W are illustratively shown. Different ways of associating bits ET to words W are within the scope of various embodiments. For example, two additional binary bits providing four binary combinations are used to correspond or associate four bits ET[1] to ET[4] with four words W[1] to W[4]. Three additional binary bits providing eight binary combinations are used to associate eight bits ET[1] to ET[8] with eight words W[1] to W[8], and four additional binary bits providing sixteen binary combinations are used to associate sixteen bits ET[1] to ET[16] with sixteen words W[1] to W[16], etc.


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 FIG. 2 is implemented to indicate that all redundancy rows in redundancy memory 420 have been used, and no additional hard errors can be recovered. In other words, the full signal indicates that eDRAM 120-1-1 has made all the repairs of which eDRAM 120-1-1 is capable. In some embodiments, a number of flags SR_FLAG issued by ECC engine 120-1-3 is counted, and the full signal is activated when the number of flags SR_FLAG reaches the maximum number of rows allocated in redundancy memory 420. Using a redundancy row in place of an erroneous row having an erroneous bit is for illustration. Using a redundancy word in place of an erroneous word is within the scope of various embodiments. For example, word W[3] has an error. When word W[3] is accessed, failed address engine 120-2-2 redirects accessing to the corresponding redundancy word RW[3].


Error-tag (ET) redundancy memory 428 includes bits RET corresponding to memory words RW in row redundancy memory 420. As illustratively shown in FIG. 3, a row 425 includes four words RW[1], RW[2], RW[3], and RW[4]. In some embodiments, ET redundancy memory 428 includes four bits RET[1], RET[2], RET[3], and RET[4] corresponding to four words RW[1], RW[2], RW[3], and RW[4], respectively. When the number of words RW in a row changes, the number of bits RET changes accordingly. In FIG. 3, bits RET are shown separated from the corresponding words RW, in accordance with some embodiments. Bits RET at other locations are within the scope of various embodiments. For example, each bit RET is embedded in a corresponding word RW. Further, in FIG. 3, four bits RET corresponding to four words RW are shown for illustration. Different ways of associating bits RET to words RW are within the scope of various embodiments. For example, two additional binary bits providing four binary combinations are used to associate four bits RET[1] to ET[4] with four words W[1] to W[4]. Three additional binary bits providing eight binary combinations are used to associate eight bits RET[1] to RET[8] with eight words RW[1] to RW[8], and four additional binary bits providing sixteen binary combinations are used to associate sixteen bits RET[1] to RET[16] with sixteen words RW[1] to RW[16], etc.


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.


Self-Repair Illustration


FIGS. 4-12 are diagrams illustrating structure 300 in various stages related to self-repairing an error in eDRAM 120-1-1, in accordance with some embodiments. For simplicity, various elements in FIG. 3 are not labeled in FIGS. 4-12.


In FIG. 4, for illustration, a memory cell in word W[3] of row 415 is accessed. Word W[3] has an exemplary binary value of 01010101 corresponding to bits B1, B2, B3, B4, B5, B6, B7, and B8, respectively. In some embodiments, the binary value 01010101 of word W[3] has been written by ECC engine 120-1-3. Each of error-tag bits ET[1], ET[2], ET[3], and ET[4] has a low logical value, indicating that there is no error in the corresponding words W[1], W[2], W[3], and W[4].


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 FIG. 5, a word line WL corresponding to row 415 is activated for row 415 to be accessed. For illustration, when bit B5 of word W[3] of row 415 is accessed, bit B5 has an erroneous high logical value. As illustratively shown in FIG. 5, word W′[3] having a binary value of 01011101 indicates the erroneous bit B5. Arrow 610 illustrates that engine ECCW has identified the erroneous bit B5, and flipped the erroneous bit B5 to result in word W″ [3] having the binary value 01010101 that is the corrected value of word W[3].


In FIG. 6, arrow 710 indicates that ECC engine 120-1-3 outputs the binary data 01010101 labeled as word DOUT to circuits (not shown) outside of eDRAM 120-1-1. The binary value 01010101 of word DOUT is the data in word W″[3] that represents the corrected data of word W[3]. Arrow 720 indicates that ECC engine 120-1-3 generates a signal ECC_FLAG having a high logical value. In some embodiments, signal ECC_FLAG is output through pin PECC_FLAG in FIG. 2. Signal ECC_FLAG having a logical high value indicates that an error in a word W has been identified by ECC engine 120-1-3. In the above illustration, an error in word W[3] has been identified by ECC engine 120-1-3.


In FIG. 7, arrow 810 indicates that word DOUT having a binary value 01010101 is written back to word W[3] of row 415. Word DOUT includes the corrected value of word W[3]. In various embodiments, if the error is a soft error, the system using eDRAM 120-1-1 corrects the erroneous bit B5 in word W[3] itself. For example, in some embodiments, the system causes the correct binary data value 01010101 to be written to word W[3]. In some other embodiments, the system overwrites the data in word W[3] with the data used by an application that accesses word W[3]. Effectively, writing the data used by an application to word W[3] corrects the erroneous bit B5 in word W[3]. By nature of a soft error, the soft error disappears, and, statistically, will not occur again in the same memory location represented by bit B5 in word W[3]. Also statistically, another soft error will not likely occur in any bit of word W[3]. In contrast, if the error is a hard error, the error will occur again. For example, if the error is a stuck-high error, writing a low logical value results in a logical high value of bit B5 in word W[3].


In FIG. 8, arrow 910 indicates that ECC engine 120-1-3 in response to the signal ECC_FLAG having a high logical value, writes bit ET[3] corresponding to word W[3] with a high logical value. A high logical value in bit ET[3] indicates that an error has occurred in any one bit of word W[3]. Further, if an error occurs again in word W[3], the high logical value in bit ET[3] together with the recurrence of the error indicates that the error is a hard error.


Exemplary Occurrence of a Hard Error


FIGS. 9 and 10 are diagrams illustrating an occurrence of a hard error, in accordance with some embodiments.


With reference to FIG. 9, for illustration, bit B5 of word W[3] of row 415 is accessed again, and an error occurs again in bit B5. Based on the high logical value in bit ET[3] indicating that bit B5 had an error in a previous access, and the fact that bit B5 has an error in the current access (the current error), ECC engine 120-1-3 recognizes the current error is a hard error. In some embodiments, when the error is a hard error, ECC engine 102-1-3 marks the address of bit B5 that has the error. ECC engine 102-1-3 also flags the address of bit B5 to be repaired. In some embodiments, the whole row 415 that contains the error bit B5 is repaired. Failed address engine 120-2-2 captures the corrected data 01010101 of word W[3] and the address of word W[3] having the erroneous bit B5. Failed address engine 120-2-2 also queues a self-repair. In some embodiments, the order for self-repairing erroneous locations is based on the order the item is entered onto the queue. In other words, an erroneous bit entering the queue first is repaired first.


In FIG. 9, arrow 1010 indicates that ECC engine 120-1-3 recognizes that bit B5 of word W[3] is erroneous, which is reflected in word W′[3] having a binary value 01011101. ECC engine 120-1-3 then flips the binary value of word W′[3] to result in the corrected data 01010101 labeled as word W″[3] in engine ECCW. Arrow 1020 indicates that ECC engine 120-1-3 outputs the data 01010101 as word DOUT to circuits (not shown) outside of eDRAM 120-1-1. Arrow 1030 indicates that ECC engine 120-1-3 generates a signal ECC_FLAG having a high logical value, indicating an error occurs and is identified by ECC engine 120-1-3.


In FIG. 10, arrow 1110 indicates that engine ECCET compares the high logical value of bit ET[3] and provides a high logical value in engine ECCET. ECC engine 120-1-3 recognizes that the error is a hard error based on the logical high value in engine ECCET and signal ECC_FLAG having a high logical value. As a result, ECC engine 120-1-3 issues a signal SR_FLAG having a high logical value, as shown by arrow 1120. Self-repair engine 440, based on signal SR_FLAG, captures the address of row 415 having a faulty location B5 in word W[3]. In some embodiments, signal SR_FLAG having a high logical value indicates that an error is to be repaired. In some embodiments, repairing is done when a NOP instruction is available. For example, a task application executed by the system using eDRAM 120-1-1 has various NOP instructions during execution of the application. Repairing is then invoked in the first NOP instruction after signal SR_FLAG has a high logical value. In some other embodiments, the NOP instruction for repairing is scheduled by the system using eDRAM 120-1-1. In such a situation, eDRAM 120-1-1 caches the address to be repaired and the corrected data. The repair will occur in the next NOP instruction received by eDRAM 120-1. For simplicity, the cached or delayed write mechanism is not shown in the drawings.


Exemplary Self-Repairing a Hard Error


FIGS. 11-12 are diagrams used to illustrate self-repair of a hard error, in accordance with some embodiments.


In FIG. 11, various block diagrams involved in self-repairing a hard error are shown. For example, bit ET[3] has a logical high value indicating an error occurred previously in word W[3] of row 415. Engine ECCET includes a true result or a high logical value indicating that a hard error occurred in word W[3]. Word W″[3] in engine ECCW has the corrected value 01010101 of word W[3]. Word DOUT outputted by ECC engine 120-1-3 also includes the corrected value 01010101 of word W[3]. ECC engine 120-1-3 issues the signal ECC_FLAG having a high logical value based on the error occurred in bit B5 of word W[3]. ECC engine 120-1-3 also issues signal SR_FLAG based on signal ECC_FLAG and the high logical value in engine ECCET.


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 FIG. 12, sign 1310 indicates that no access to word W[3] on row 415 is allowed. Arrow 1320 indicates that self-repair engine 440 redirects an access to word W[3] on row 415 to RW[3] on row 425 in redundancy memory 420.


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 FIGS. 4 to 12 includes exemplary steps, but the steps are not necessarily performed in the order shown. Steps may be added, replaced, changed order, and/or eliminated as appropriate, in accordance with the spirit and scope of disclosed embodiments.

Claims
  • 1. A memory structure comprising: a memory array having a plurality of rows, each row of the plurality of rows of the memory array including a plurality of memory words;a plurality of first bits, each first bit of the plurality of first bits associated with a memory word of the plurality of memory words of the each row of the plurality of rows of the memory array, wherein a logic state of the each first bit indicates whether the memory word associated with the each first bit has had a failed bit;a plurality of redundancy rows, each redundancy row of the plurality of redundancy rows including a plurality of redundancy words, each redundancy word of the plurality of redundancy words associated with a corresponding memory word of the plurality of memory words of the each row of the plurality of rows of the memory array;a plurality of second bits, each second bit of the plurality of second bits associated with a redundancy word of the plurality of redundancy words of the each row of the plurality of redundancy rows, wherein a logic state of the each second bit indicates whether the redundancy word associated with the each second bit has had a failed bit; andan error correction engine configured to generate an error-repair flag based on the logic state of a corresponding first bit associated with a memory word and presence of an error in the memory word; orto generate the error-repair flag based on the logic state of a corresponding second bit associated with a redundancy word and presence of an error in the redundancy word.
  • 2. The memory structure of claim 1, further comprising: a word logic engine configured to process each memory word of the plurality of memory words of a row of the memory array; anda bit-tag logic engine configured to process the each first bit associated with the each memory word of the plurality of memory words to be processed.
  • 3. The memory structure of claim 1, wherein the memory structure is configured to satisfy at least one of the following conditions: the each first bit is associated with the memory word based on a first index of the each first bit and a second index of the memory word associated with the each first bit; orthe each second bit is associated with the redundancy word based on a third index of the each second bit and a fourth index of the redundancy word associated with the each second bit.
  • 4. The memory structure of claim 1, wherein the memory structure is configured to satisfy at least one of the following conditions: the plurality of first bits is associated with the plurality of memory words based on a first combinational logic; orthe plurality of second bits is associated with the plurality of redundancy word based on a second combinational logic.
  • 5. The memory structure of claim 1, wherein the error correction engine is further configured to maintain the logic state of the corresponding first bit associated with the memory word when accessing the memory word does not cause an indication of the presence of an error in the memory word; orto maintain the logic state of the corresponding second bit associated with the redundancy word when accessing the redundancy word does not cause an indication of the presence of an error in the redundancy word.
  • 6. The memory structure of claim 1, wherein the error correction engine is further configured to cause a change in the logic state of the corresponding first bit associated with the memory word when accessing the memory word causes the indication of the presence of an error in the memory word; orto cause a change in the logic state of the corresponding second bit associated with the redundancy word when accessing the redundancy word causes the indication of the presence of an error in the redundancy word.
  • 7. The memory structure of claim 1, wherein the error-repair flag is for use in at least one of the following situations: to trigger a repair of the memory word associated with the corresponding first bit; orto trigger a repair of the redundancy word associated with the corresponding second bit.
  • 8. The memory structure of claim 1, wherein a first redundancy row of the plurality of redundancy of rows is configured to be used in place of a row of the memory array or in place of a second redundancy row.
  • 9. The memory structure of claim 1, wherein a first redundancy word of the plurality of redundancy rows is configured to be used in place of a word of the memory array or in place of a second word of the plurality of redundancy rows.
  • 10. A memory structure comprising: a memory row of a memory array, the memory row including a plurality of memory words;a plurality of first bits, each first bit of the plurality of first bits associated with each memory word of the plurality of memory words of the memory row;an error correction engine 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; anda repair engine configured to repair the memory word having the error based on the error-repair flag.
  • 11. The memory structure of claim 10 further comprising: a first redundancy row, wherein the first redundancy row includes a plurality of first redundancy words, each first redundancy word of the plurality of first redundancy words is associated with the each memory word of the plurality of memory words of the memory row; anda plurality of second bits, wherein each second bit of the plurality of second bits is associated with the each first redundancy word of the plurality of first redundancy words, a state of the each second bit indicates whether the each first redundancy word associated with the each second bit has had an error in the each first redundancy word.
  • 12. The memory structure of claim 11, wherein the first redundancy row is configured to be used in place of the memory row; ora redundancy word of the first redundancy row is configured to be used in place of a word of the memory row.
  • 13. The memory structure of claim 11, further comprising: a second redundancy row, wherein the second redundancy row includes a plurality of second redundancy words, each second redundancy word of the plurality of second redundancy words is associated with the each memory word of the plurality of memory words; anda plurality of third bits, wherein each third bit of the plurality of third bits is associated with each second redundancy word of the plurality of second redundancy words, a state of the each third bit indicates whether the each second redundancy word associated with the each third bit has had an error in the each second redundancy word.
  • 14. The memory structure of claim 13, wherein the second redundancy row is configured to be used in place of the first redundancy row; ora word of the second redundancy row is configured to be used in place of a word of the first redundancy row.
  • 15. The memory structure of claim 10, further comprising a queue configured to store data related to the memory word having the error.
  • 16. The memory structure of claim 10, wherein the repair engine is configured to repair the memory word having the error further based on a NOP instruction of a system using the memory structure.
  • 17. A method comprising: accessing a data word and a data bit associated with the data word; andin response to an error in accessing the data word, performing at least one of the following groups of steps: based on a first state of the data bit, changing a state of the data bit; andwriting correct data to the data word; andbased on a second state of the data bit, generating an error-fixing flag for use in repairing the data word,wherein 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; andthe second state of the data bit indicates the data word had another error prior to having the error in accessing the data word.
  • 18. The method of claim 17, wherein the memory row is a part of a memory array or a part of a redundancy memory array.
  • 19. The method of claim 17, wherein the error-fixing flag indicates one or a combination of the following: the data word is to be repaired; ora NOP instruction is requested so that the data word is repaired.
  • 20. The method of claim 17, wherein repairing the data word comprises using a NOP instruction.
  • 21. The method of claim 17, further comprising: copying data of a row having the data word to a redundancy row that has a plurality of redundancy words, each redundancy word of the plurality of redundancy words corresponding to a redundancy data bit; andsetting the redundancy data bit corresponding to the each redundancy word of the plurality of redundancy words to a state indicating that the each redundancy word had no previous error.
  • 22. The method of claim 21, further comprising the step of redirecting another access of the data word to the redundancy row or to a word of the redundancy row.
CROSS-REFERENCE TO RELATED APPLICATIONS

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.

US Referenced Citations (12)
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
Related Publications (1)
Number Date Country
20130215695 A1 Aug 2013 US
Provisional Applications (1)
Number Date Country
61233387 Aug 2009 US
Continuation in Parts (1)
Number Date Country
Parent 12849157 Aug 2010 US
Child 13399993 US