# US 2021/0174892 A1 · Error-Correcting Code-Assisted Memory Repair

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0174892 A1
- Document ID: US20210174892A1
- Status: Published application
- Kind: A1
- Application number: 17/115,894
- Filed: 2020-12-09
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: Mentor Graphics Corporation
- Applicants: Mentor Graphics Corporation
- Inventors: Benoit Nadeau-Dostie
- Web page: https://patentgrep.com/patent/US20210174892A1

## CPC

- G11C 29/42: using error correcting codes [ECC] or parity check
- G11C 11/1673: {Reading or sensing circuits or methods}
- G11C 11/1675: {Writing or programming circuits or methods}
- G11C 29/10: Test algorithms, e.g. memory scan [MScan] algorithms; Test patterns, e.g. checkerboard patterns
- G11C 29/1201: {comprising I/O circuitry}
- G11C 29/24: Accessing extra cells, e.g. dummy cells or redundant cells
- G11C 29/36: Data generation devices, e.g. data inverters
- G11C 29/4401: {for self repair}
- G11C 29/46: Test trigger logic
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G11C 29/81: {using a hierarchical redundancy scheme}
- G11C 29/835: {with roll call arrangements for redundant substitutions}
- G11C 29/84: {with improved access time or stability}
- G11C 29/846: {by choosing redundant lines at an output stage}
- G11C 11/16: using elements in which the storage effect is based on magnetic spin effect
- G11C 29/812: {using a reduced amount of fuses}
- G11C 2029/3602: {Pattern generator}
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A memory-testing circuit configured to perform a test of a memory comprising error-correcting code circuitry comprises repair circuitry configured to allocate a spare row or row block in the memory for a defective row or row block in the memory, a defective row or row block being a row or row block in which a memory word has a number of error bits greater than a preset number, wherein the test of the memory comprises: disabling the error-correcting code circuitry, performing a pre-repair operation, the pre-repair operation comprising: determining whether the memory has one or more defective rows or row blocks, and allocating one or more spare rows or row blocks for the one or more defective rows or row blocks if the one or more spare rows or row blocks are available, and performing a post-repair operation on the repaired memory.

## Claims

### Claim 1

A memory-testing circuit in a circuit configured to perform a test of a memory in the circuit, the memory comprising error-correcting code circuitry configured to detect and correct no more than a first preset number of error bits per memory word detected in the memory, the memory-testing circuit comprising:
a test controller; and
repair circuitry configured to allocate a spare row or row block in the memory for a defective row or row block in the memory, a defective row or row block being a row or row block in which a memory word has a number of error bits greater than a second preset number, the second preset number being equal to or smaller than the first preset number,
wherein the test of the memory comprises:
disabling the error-correcting code circuitry by the test controller,
performing a pre-repair operation, the pre-repair operation comprising: determining whether the memory has one or more defective rows or row blocks, and allocating one or more spare rows or row blocks for the one or more defective rows or row blocks if the one or more spare rows or row blocks are available, and
performing a post-repair operation, the post-repair operation comprising: determining whether the memory has one or more new defective rows or row blocks after the pre-repair operation, and allocating one or more new spare rows or row blocks for the one or more new defective rows or row blocks if the one or more new spare rows or row blocks are available.

### Claim 2 (depends on 1)

The circuit recited in claim 1, wherein each of the determining whether the memory has one or more defective rows or row blocks and the determining whether the memory has one or more new defective rows or row blocks after the pre-repair operation comprises:
selecting a reference address; and
performing a series of write and read operations while accumulating results for the reference address.

### Claim 3 (depends on 2)

The circuit recited in claim 2, wherein the series of write and read operations comprises writing and reading at the reference address and addresses other than the reference address, and the results for the reference address are derived by comparing bits at the reference address with expected bit values.

### Claim 4 (depends on 2)

The circuit recited in claim 2, wherein the series of write and read operations comprise reading a value of 0 and 1 from all bits of the reference address.

### Claim 5 (depends on 1)

The circuit recited in claim 1, wherein the memory-testing circuit further comprises:
a comparator configured to compare bit values from outputs of the memory with expected bit values;
an accumulator configured to accumulate results of the comparing for each of the outputs of the memory and to indicate whether at least one error occurred in the each of the outputs of the memory after a series of write and read operations for a reference address selected by the test controller; and
a fail count device configured to count a number of failing bit positions at the reference address and to send a signal to the repair circuitry indicating whether the number of failing bit positions exceeds the second preset number.

### Claim 6 (depends on 1)

The circuit recited in claim 1, wherein the repair circuitry is further configured to allocate a spare column or column block to a column or column block if an error occurs at a bit of the column or column block located in a last row of a memory bank in either the pre-repair operation or the post-repair operation, the last row being a row farthest away from output circuitry of the memory bank.

### Claim 7 (depends on 1)

The circuit recited in claim 1, wherein the memory-testing circuit further comprises a counter for each memory bit output configured to count a number of errors, and wherein the repair circuitry is further configured to allocate a spare column or column block to a column or column block having a largest number of errors if the largest number of errors is greater than a third preset number.

### Claim 8 (depends on 1)

The circuit recited in claim 1, wherein the test of the memory classifies the memory as:
non-repairable, non-repairable memory comprising memory in which a number of defective rows or row blocks exceeds a number of available spare rows or row blocks,
repair-needed, repair-needed memory comprising memory having spare rows or row blocks available for any defective rows or row blocks determined,
no-repair-needed if a number of errors in any memory word is equal to or smaller than the second preset number, or
error-free if no errors are detected.

### Claim 9 (depends on 1)

The circuit recited in claim 1, wherein the test of the memory further comprises:
determining whether a total number of errors for correction by the error-correcting code circuitry is smaller than a fourth preset number.

### Claim 10 (depends on 1)

The circuit recited in claim 1, wherein the test of the memory further comprises:
enabling the error-correcting code circuitry by the test controller;
masking memory outputs corresponding to check bits used by the error-correcting code circuitry;
performing a series of write and read operations; and
comparing results the series of write and read operations with expected results.

### Claim 11

A method for testing a memory in a circuit by using a memory-testing circuit in the circuit, comprising:
disabling error-correcting code circuitry in the circuit, the error-correcting code circuitry configured to, when enabled, detect and correct no more than a first preset number of error bits per memory word detected in the memory;
performing a pre-repair operation, the pre-repair operation comprising: determining whether the memory has one or more defective rows or row blocks, and allocating one or more spare rows or row blocks in the memory for the one or more defective rows or row blocks if the one or more spare rows or row blocks are available, a defective row or row block being a row or row block in which a memory word has a number of error bits greater than a second preset number, the second preset number being equal to or smaller than the first preset number; and
performing a post-repair operation, the post-repair operation comprising: determining whether the memory has one or more new defective rows or row blocks after the pre-repair operation, and allocating one or more new spare rows or row blocks for the one or more new defective rows or row blocks if the one or more new spare rows or row blocks are available.

### Claim 12 (depends on 11)

The method recited in claim 11, wherein each of the determining whether the memory has one or more defective rows or row blocks and the determining whether the memory has one or more new defective rows or row blocks after the pre-repair operation comprises:
selecting a reference address; and
performing a series of write and read operations while accumulating results for the reference address.

### Claim 13 (depends on 12)

The method recited in claim 12, wherein the series of write and read operations comprises writing and reading at the reference address and addresses other than the reference address, and the results for the reference address are derived by comparing bits at the reference address with expected bit values.

### Claim 14 (depends on 12)

The method recited in claim 12, wherein the series of write and read operations comprise reading a value of 0 and 1 from all bits of the reference address.

### Claim 15 (depends on 11)

The method recited in claim 11, wherein each of the pre-repair operation and the post-repair operation comprises:
allocating a spare column or column block to a column or column block if an error occurs at a bit of the column or column block located in a last row of a memory bank in either the pre-repair operation or the post-repair operation, the last row being a row farthest away from output circuitry of the memory bank.

### Claim 16 (depends on 11)

The method recited in claim 11, wherein each of the pre-repair operation and the post-repair operation comprises:
allocating a spare column or column block to a column or column block having a largest number of errors if the largest number of errors is greater than a third preset number.

### Claim 17 (depends on 11)

The method recited in claim 11, wherein the pre-repair operation and the post-repair operation classify the memory as:
non-repairable, non-repairable memory comprising memory in which a number of defective rows or row blocks exceeds a number of available spare rows or row blocks,
repair-needed, repair-needed memory comprising memory having spare rows or row blocks available for any defective rows or row blocks determined,
no-repair-needed if a number of errors in any memory word is equal to or smaller than the second preset number, or
error-free if no errors are detected.

### Claim 18 (depends on 11)

The method recited in claim 11, further comprising:
determining whether a total number of errors for correction by the error-correcting code circuitry is smaller than a fourth preset number.

### Claim 19 (depends on 11)

The method recited in claim 11, further comprising:
enabling the error-correcting code circuitry;
masking memory outputs corresponding to check bits used by the error-correcting code circuitry;
performing a series of write and read operations; and
comparing results the series of write and read operations with expected results.

### Claim 20 (depends on 11)

The method recited in claim 11, wherein the pre-repair operation further comprises:
reading a repair solution from non-volatile memory in the circuit; and
generating incrementally a new repair solution.
