Self-healing mechanism system of data cache and design method

By designing a data cache self-healing mechanism system and using the cache self-check module and backup cache, the detection and correction of multi-bit errors in the SRAM cache is realized, which solves the problem of the inability to handle multi-bit errors in the existing technology and improves the chip performance. yield and lower costs.

CN118588147APending Publication Date: 2024-09-03EAST CHINA INST OF COMPUTING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410636696.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing technologies cannot effectively detect and correct multi-bit errors in SRAM caches, and existing fault detection methods increase chip design complexity and resource consumption.

Method used

A data cache self-healing mechanism system is designed, including a cache self-test module, a cache address linked list and a backup cache. It realizes cache self-healing by replacing faulty cache addresses with multi-mode data detection and backup cache.

Benefits of technology

It realizes the detection and correction of single-bit and multi-bit errors in the SRAM cache, reduces chip costs, improves chip yield, and the backup cache takes up less resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588147A
    Figure CN118588147A
Patent Text Reader

Abstract

According to the technical scheme, the self-healing mechanism system of the data cache is characterized by comprising a cache self-checking module, a cache address linked list, a main cache and a backup cache. The other technical scheme of the invention is to provide a self-healing mechanism design method for the data cache. The invention provides a self-healing mechanism system for data cache and a design method, which are characterized in that the cache is detected by multi-mode data, a fault cache address is shielded, a backup cache is adopted to replace the fault cache, and an effective cache address linked list is established, so that the data cache capacity can be effectively recovered under the condition that the available data cache capacity is equal. The self-recovery of the data cache is realized, and the self-recovery effect is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a self-healing mechanism system and a design method for data cache, and belongs to the technical field of computing and communication. Background Art

[0002] SRAM is an indispensable type of memory in digital chips. It has advantages such as fast read and write speed and long service life, as well as characteristics such as easy data volatility and high cost. It is often used in cache modules of CPU, GPU, MCU, switching, routing and other chips. With the growing market demand for high-computing power, high-throughput, and high-processing speed chips and the increasingly advanced design and manufacturing technology, the role of SRAM in chips is becoming more and more important.

[0003] SRAM serves as the cache module of the chip, receiving data read and write instructions from the main devices such as CPU / DMA, and realizing system functions such as storage, transmission and transfer of related data according to the address information.

[0004] The increasingly advanced nano-scale transistor technology can cause SRAM defects during the manufacturing process, including STA (Stuckat Fault), TF (Transition Fault), CF (Coupling Fault) and other possible faults that lead to data anomalies. Therefore, the correctness of the data cached by SRAM must be tested. Currently, the technologies used to detect the correctness of SRAM data include parity check, MBIST, ECC, etc.

[0005] Among them, parity check is to detect whether an error occurs during data transmission by adding an odd or even check bit at the end of the data. Parity check is simple to implement and can only detect parity bit errors, but cannot correct errors. It cannot guarantee the detection of errors of more than 2 bits.

[0006] MBIST in DFT uses built-in self-test circuits to detect on-chip data caches, and is generally used for large-scale wafer and finished product screening of chips. MBIST requires the addition of a large number of self-test circuits, which increases the complexity of chip design, and can only check cache circuit defects or faults, but cannot correct cache errors.

[0007] ECC stores a data-encrypted code in an extra bit on the data bit through encoding. It can correct single-bit errors and detect double-bit errors, and the calculation speed is very fast. However, it cannot correct errors of more than 1 bit, and cannot guarantee the detection of errors of more than 2 bits. It also needs to consume 12.5% ​​of the data cache (taking one ECC check code for every 8 bytes of data as an example) to store the ECC check code. Summary of the invention

[0008] The purpose of the present invention is to implement a function that can detect faulty cache and correct single-bit and multi-bit errors in the cache by design based on the shortcomings of the prior art in repairing cache faults.

[0009] In order to achieve the above object, a technical solution of the present invention is to provide a data cache self-healing mechanism system, characterized in that it includes a cache self-check module, a cache address linked list, a primary cache and a backup cache, wherein:

[0010] The cache self-check module is connected to the cache address linked list to manage the valid cache addresses and faulty cache addresses; at the same time, the cache self-check module is connected to the primary cache and the primary backup cache to perform data self-check on the cache;

[0011] The cache address linked list includes: a data structure of a valid cache address linked list and pointer management required as a free cache address linked list;

[0012] The main cache is composed of an SRAM storage array of any size and capacity, connected to a cache self-check module and a cache access device, and is used for data caching.

[0013] The backup cache comprises an SRAM storage array of any size and capacity, is connected to a cache self-check module and a cache access device, and is used for data caching when a partial cache failure occurs in the main cache.

[0014] Preferably, the cache self-check module includes: importing a cache fault model, automatically checking each address of the data cache, establishing a valid cache address linked list, and replacing a faulty cache address.

[0015] Preferably, the capacity of the backup cache is 1‰ of the capacity of the primary cache.

[0016] Another technical solution of the present invention is to provide a method for designing a self-healing mechanism of a data cache, characterized in that it comprises the following steps:

[0017] Step S1: After the system is reset, enter the data cache self-check process;

[0018] Step S2: Loading data of each mode through preset data mode or software configuration;

[0019] Step S3: if the data comparison of each mode is passed, it is marked as a valid cache; if the data comparison is not passed, it is marked as a faulty cache, and a valid cache address linked list is established;

[0020] Step S4: the cache address with the faulty cache flag is replaced by the cache address of the backup cache and updated to the valid cache address linked list;

[0021] Step S5: Complete the check of all addresses in the main cache, and the system exits the data cache self-check state.

[0022] Preferably, in step S2: for the cache failure model, four or more customized mode data are used to cover seven major failure behaviors of the cache.

[0023] Preferably, in step S3: starting from the initial address of the main cache, mode 1, 2, 3, 4 data are loaded in sequence, and data comparison is performed by reading the cache address: if the comparison is consistent, it indicates that the cache of the address is valid, and the valid cache address linked list is written. After the four mode data are compared, the data comparison of the next address is automatically performed.

[0024] Preferably, in step S4: in the data structure of the cache address linked list, there is a backup flag, 0 indicates that the primary cache address is valid, 1 indicates that the primary cache address is replaced by the backup cache address, ensuring that all caches in the cache address linked list are valid and fault-free.

[0025] The present invention provides a data cache self-healing mechanism system and design method, which detects the cache through multi-mode data, shields the faulty cache address, replaces the faulty cache with a backup cache, and establishes a valid cache address linked list, thereby achieving self-repair of the data cache and achieving a self-healing effect while ensuring that the available data cache capacity is the same.

[0026] Compared with the prior art solutions, the present invention has the following beneficial effects:

[0027] 1. The present invention solves the problem of multi-bit error cache that cannot be well handled by the prior art by replacing the error cache with a backup cache. In addition, the cache self-check function is achieved by automatically detecting each address of the data cache.

[0028] 2. Compared with the ECC circuit, the circuit of the present invention has lower overhead, and the backup cache only occupies 1‰ of the main cache;

[0029] 3. The data cache self-healing mechanism involved in the present invention can repair faulty SRAM in the data cache, improve chip yield and reduce chip cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A structural diagram of the data cache self-healing function;

[0031] Figure 2 Flowchart of the data cache self-healing mechanism;

[0032] Figure 3 Workflow diagram for the data cache self-check module;

[0033] Figure 4 Schematic diagram of data primary cache failure processing. DETAILED DESCRIPTION

[0034] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0035] The embodiment of the present invention provides a data cache self-healing mechanism system, including: a cache self-check module, a cache address linked list, a primary cache and a backup cache.

[0036] The cache self-check module is connected to the cache address linked list to manage the valid cache addresses and faulty cache addresses. At the same time, the cache self-check module is also connected to the primary cache and the backup cache to perform data self-check on the cache. Specifically, the cache self-check module further includes: importing the cache fault model, automatic address-by-address detection of the data cache, generating valid cache addresses, judging faulty cache addresses, and replacing faulty cache addresses.

[0037] The cache address linked list includes: the data structure of the valid cache address linked list and the pointer management of the free cache address linked list. The pointer management includes the processing logic of the head pointer, tail pointer and middle linked list pointer of the free cache address linked list, as well as the occupation and release logic of the free cache address.

[0038] The main cache includes: an SRAM storage array of any size, connected to a cache self-check module, DMA and other cache access devices, and used for data caching.

[0039] The backup cache includes: an SRAM storage array of any size, connected to cache self-check modules, DMA and other cache access devices, and used for data caching when a partial cache failure occurs in the main cache. Considering the SRAM failure rate under different processes, the capacity is generally 1‰ of the main cache capacity.

[0040] The embodiment of the present invention also provides a method for designing a self-healing mechanism of a data cache, which specifically includes the following steps:

[0041] The data cache self-check module is as follows Figure 3 The flowchart shown in the figure is used to perform cache self-check. Through the preset data mode or software configuration, four or more modes of data are loaded to perform a comprehensive test on the data main cache. For the cache fault model, four or more custom modes of data are used to cover the seven major fault behaviors of the cache, as shown in Table 1.

[0042] The main cache that passes the self-check is output by the data cache self-check module to the cache address linked list, thereby establishing a valid cache address linked list. Starting from the initial address of the main cache, mode 1, 2, 3, and 4 data are loaded in sequence, and data comparison is performed by reading the cache address. If the comparison is consistent, it indicates that the cache of the address is valid and is written into the valid cache address linked list. After the four mode data comparisons, the data comparison of the next address is automatically performed.

[0043] If some addresses in the primary cache fail, the data cache self-check module will replace the failed cache address with the backup cache address and output it to the cache address linked list. The backup flag in the linked list entry will be set to 1, and the address field will be written to the backup cache address. In the data structure of the cache address linked list, there is a backup flag, 0 means the primary cache address is valid, 1 means the primary cache address is replaced by the backup cache address, ensuring that all caches in the cache address linked list are valid and fault-free.

[0044] When the main cache completes the self-test, the system switches from the self-test mode to the normal mode, and the devices on the cache data bus can access the data cache.

[0045] Finally, the overall design circuit completes the self-check of the data cache and the repair of the faulty cache.

[0046] Table 1 Cache failure model

Claims

1. A data cache self-healing mechanism system, characterized in that: It includes a cache self-check module, a cache address linked list, a primary cache, and a backup cache, among which: The cache self-check module is connected to the cache address linked list to manage the valid cache addresses and faulty cache addresses; at the same time, the cache self-check module is connected to the primary cache and the primary backup cache to perform data self-check on the cache; The cache address linked list includes: a data structure of a valid cache address linked list and pointer management required as a free cache address linked list; The main cache is composed of an SRAM storage array of any size and capacity, connected to a cache self-check module and a cache access device, and is used for data caching. The backup cache comprises an SRAM storage array of any size and capacity, is connected to a cache self-check module and a cache access device, and is used for data caching when a partial cache failure occurs in the main cache.

2. A data cache self-healing mechanism system as claimed in claim 1, characterized in that: The cache self-check module includes: importing a cache fault model, automatically checking each address of the data cache, establishing a valid cache address linked list, and replacing a faulty cache address.

3. A data cache self-healing mechanism system as claimed in claim 1, characterized in that: The capacity of the backup cache is 1‰ of the capacity of the primary cache.

4. A method for designing a self-healing mechanism for data cache, characterized in that: The following steps are involved: Step S1: After the system is reset, enter the data cache self-check process; Step S2: Loading data of each mode through preset data mode or software configuration; Step S3: if the data comparison of each mode is passed, it is marked as a valid cache; if the data comparison is not passed, it is marked as a faulty cache, and a valid cache address linked list is established; Step S4: the cache address with the faulty cache flag is replaced by the cache address of the backup cache and updated to the valid cache address linked list; Step S5: Complete the check of all addresses in the main cache, and the system exits the data cache self-check state.

5. A method for designing a self-healing mechanism for data cache as claimed in claim 4, characterized in that: In step S2: for the cache fault model, four or more customized mode data are used to cover seven major fault behaviors of the cache.

6. A method for designing a self-healing mechanism for data cache as claimed in claim 4, characterized in that: In step S3: starting from the initial address of the main cache, mode 1, 2, 3, and 4 data are loaded in sequence, and data comparison is performed by reading the cache address: if the comparison is consistent, it indicates that the cache of the address is valid, and the valid cache address linked list is written. After the four mode data comparisons, the data comparison of the next address is automatically performed.

7. A method for designing a self-healing mechanism for data cache as claimed in claim 4, characterized in that: In step S4: in the data structure of the cache address linked list, there is a backup flag, 0 indicates that the primary cache address is valid, 1 indicates that the primary cache address is replaced by the backup cache address, ensuring that all caches in the cache address linked list are valid and fault-free.