IP Library › Granted Patent US 11,579,969
Granted Patent B2
US 11,579,969 · App. 17/336,818 · Granted Feb 14, 2023

Verifying method for ECC circuit of SRAM

Inventors: Zhi-Qiang Yang (Hsinchu, TW); Jia-Jia Cai (Hsinchu, TW); Bin Chen (Hsinchu, TW); Dong Qiu (Hsinchu, TW)
Assignee: REALTEK SEMICONDUCTOR CORP.
G06F11/1068G11C29/52
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,579,969
App. No.
17/336,818
Granted
Feb 14, 2023
Kind
B2
Abstract

A verifying method for an error checking and correcting (ECC) circuit of a static random-access memory (SRAM) is provided. The SRAM comprises a storage unit, an ECC circuit and a checking circuit. The ECC circuit receives an original data and an output first data. The checking circuit obtains a second data according to an error-injecting mask. The checking circuit performs a bit operation on the first data and the second data to obtain a third data. The checking circuit writes the third data into a test target area of the storage unit and the written data as a fourth data. The checking circuit reads the fourth data from the test target area. The ECC circuit obtains a fifth data and an error message according to the fourth data. The checking circuit obtains the bit error detection result according to the error message and the second data.

Claims (38)

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.

2. 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.

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

4. 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:

repeatedly selecting other bits from the error-injecting mask to be the at least one error-injecting bit, until all of bits of the error-injecting mask have been selected.

5. The verifying method for an ECC circuit of an SRAM according to claim 4 , wherein the step of repeatedly selecting the other bits from the error-injecting mask to be the at least one error-injecting bit comprises:

obtaining the other bits of the error-injecting mask by repeatedly shifting a first incremental distance from the selected at least one error-injecting bit.

6. The verifying method for an ECC circuit of an SRAM according to claim 4 , wherein the step of repeatedly selecting the other bits from the error-injecting mask 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.

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

8. 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.

9. 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.

10. 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.

11. 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 the address section of the test target area have been selected.

12. 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.

13. 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.

14. 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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 2, 2021
From: YANG, ZHI-QIANG; CAI, JIA-JIA; CHEN, BIN; QIU, DONG
To: REALTEK SEMICONDUCTOR CORP.
Reel/Frame 056418/0917 →
Priority Claims (1)
CN 202110241055.1 · Mar 4, 2021 · national
Continuity (1)
Related Publication 20220283897A1 · Sep 8, 2022
Cited By (1)
US 12,332,781