# US 2022/0283897 A1 · Verifying method for ecc circuit of sram

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

- Number: US 2022/0283897 A1
- Document ID: US20220283897A1
- Status: Published application
- Kind: A1
- Application number: 17/336,818
- Filed: 2021-06-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corp.
- Inventors: Zhi-Qiang Yang; Jia-Jia Cai; Bin Chen; Dong Qiu
- Web page: https://patentgrep.com/patent/US20220283897A1

## CPC

- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G06F 11/2215: {to test error correction or detection circuits}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G11C 2029/0411: {Online error correction}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A verifying method for an error checking and correcting (ECC) circuit of a static random-access memory (SRAM) includes inputting original data into an error-correcting-and-coding procedure to output first data; obtaining second data according to an error-injecting mask; performing a bit operation on the first data and the second data to obtain third data; writing the third data into a test target area in the SRAM as fourth data; reading the fourth data from the test target area; inputting the fourth data into an error-correcting-and-decoding procedure to output fifth data and an error message; and obtaining a verification result according to the fifth data, the original data, the error message, and the second data.

## Claims

### Claim 1

A verifying method for an error checking and correcting (ECC) circuit of a static random-access memory (SRAM), comprising:
inputting original data into an error-correcting-and-coding procedure to output first data;
obtaining second data according to an error-injecting mask;
performing a bit operation on the first data and the second data to obtain third data;
writing the third data into a test target area in the SRAM to be fourth data;
reading the fourth data from the test target area;
inputting the fourth data into an error-correcting-and-decoding procedure to output fifth data and an error message; and
obtaining a verification result according to the fifth data, the original data, the error message, and the second data.

### Claim 2 (depends on 1)

The verifying method for an ECC circuit of an SRAM according to claim 1, wherein the step of inputting the original data into the error-correcting-and-coding procedure to output the first data comprises: adjusting the original data having an original bit length to the first data having an operation bit length.

### Claim 3 (depends on 2)

The verifying method for an ECC circuit of an SRAM according to claim 2, wherein the step of obtaining the second data according to the error-injecting mask comprises:
setting a bit length of the error-injecting mask according to the operation bit length;
selecting at least one error-injecting bit from the error-injecting mask; and
writing error-injecting data into the at least one error-injecting bit to obtain the second data.

### Claim 4 (depends on 3)

The verifying method for an ECC circuit of an SRAM according to claim 3, wherein the step of obtaining the second data according to the error-injecting mask further comprises:
selecting other bits from the error-injecting mask by turns to be the at least one error-injecting bit, until all of specific bits of the error-injecting mask have been selected.

### Claim 5 (depends on 4)

The verifying method for an ECC circuit of an SRAM according to claim 4, wherein the step of selecting the other bits from the error-injecting mask by turns to be the at least one error-injecting bit comprises:
obtaining at least one new error-injecting bit according to shift from the at least one error-injecting bit by a first incremental distance.

### Claim 6 (depends on 4)

The verifying method for an ECC circuit of an SRAM according to claim 4, wherein the step of selecting the other bits from the error-injecting mask by turns to be the at least one error-injecting bit comprises:
randomly selecting the other bits in the error-injecting mask that have not been selected to obtain at least one new error-injecting bit.

### Claim 7 (depends on 3)

The verifying method for an ECC circuit of an SRAM according to claim 3 wherein the step of writing the third data into the test target area in the SRAM to be the fourth data comprises:
selecting a memory address from the SRAM; and
using the memory address as a start address of the test target area, wherein a bit length of the test target area is identical to a bit length of the third data.

### Claim 8 (depends on 7)

The verifying method for an ECC circuit of an SRAM according to claim 7, wherein the step of writing the third data into the test target area in the SRAM to be the fourth data further comprises:
selecting an address section from the test target area, wherein a bit length of the address section is identical to the bit length of the third data; and
writing the third data into the address section to be the fourth data.

### Claim 9 (depends on 3)

The verifying method for an ECC circuit of an SRAM according to claim 3 wherein the step of writing the third data into the test target area in the SRAM to be the fourth data further comprises:
obtaining a start address and an end address of the SRAM; and
defining a space from the start address to the end address to be the test target area, wherein a bit length of the test target area is greater than or equal to a bit length of the third data.

### Claim 10 (depends on 9)

The verifying method for an ECC circuit of an SRAM according to claim 9, wherein the step of writing the third data into the test target area in the SRAM to be the fourth data further comprises:
selecting an address section from the test target area, wherein a bit length of the address section is identical to the bit length of the third data; and
writing the third data into the address section as the fourth data.

### Claim 11 (depends on 8)

The verifying method for an ECC circuit of an SRAM according to claim 8, wherein the step of writing the third data into the test target area in the SRAM to be the fourth data further comprises:
repeatedly selecting another address section at other positions from the test target area, until all of specific addresses of the test target area have been selected.

### Claim 12 (depends on 11)

The verifying method for an ECC circuit of an SRAM according to claim 11, wherein the step of repeatedly selecting the another address section at the other positions from the test target area comprises:
obtaining the another address section starting from an address section shifted from the address section by a second incremental distance.

### Claim 13 (depends on 11)

The verifying method for an ECC circuit of an SRAM according to claim 11, wherein the step of repeatedly selecting the another address section at the other positions from the test target area comprises:
randomly selecting other addresses in the test target area that have not been selected to obtain the another address section.

### Claim 14 (depends on 1)

The verifying method for an ECC circuit of an SRAM according to claim 1, wherein the bit operation is selected from an OR operation or an exclusive-OR operation.
