Ecc checking method and device, and electronic equipment

By grouping the raw data at the data sending end, adding check bits and CRC fingerprint processing, and combining interleaving processing, the problem of high memory error rate in the ECC verification method is solved, and efficient data recovery is achieved.

CN119892112BActive Publication Date: 2025-11-04SHENZHEN CITY TECHWIN SEMICONDUCTOR COMPANY LIMITED
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411893756.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-11-04
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

Existing ECC verification methods suffer from high memory error rates, especially when the probability of data errors increases due to the growth of data bits, causing Hamming code protection to fail.

Method used

At the data sending end, the original data is grouped, a check bit is added, and CRC fingerprinting and interleaving are performed. Then, if erroneous data is introduced during transmission or storage, the data is recovered by deinterleaving, decoding the plain Chinese character code, and de-CRC fingerprinting.

Benefits of technology

Significantly reduces the data error rate of the memory, ensuring that the original data can be recovered even if errors are introduced during transmission or storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892112B_ABST
    Figure CN119892112B_ABST
Patent Text Reader

Abstract

The application provides an ECC checking method, device and electronic equipment, comprising: if original data code sent by a data sending end is detected, grouping the original data code by bytes to obtain a plurality of sub-original data codes; adding a check bit in each of the sub-original data codes to obtain processed original data code; performing CRC fingerprint processing and interleaving processing on the processed original data code to obtain first intermediate state data; when the first intermediate state data is transmitted or stored, introducing error data into the first intermediate state data to obtain second intermediate state data; performing de-interleaving processing, Chinese character deciphering processing and de-CRC fingerprint processing on the second intermediate state data to obtain recovered data; and receiving the recovered data by a data receiving end. The ECC checking method can significantly reduce the data error rate of a memory.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of ECC check, in particular to an ECC check method, device and electronic equipment. BACKGROUND

[0002] The traditional ECC check method generally uses the minimum redundant information to protect the data, but due to the increase of information bits, the probability of more than 2-bit data error increases, and once this situation occurs, the protection of Hamming code is invalid.

[0003] Overall, the existing ECC check method has a high memory error rate. SUMMARY

[0004] The present application aims to provide an ECC check method, device and electronic equipment to alleviate the technical problem of high memory error rate of the existing ECC check method, and to reduce the memory error rate.

[0005] In a first aspect, the present application provides an ECC check method, comprising: if it is detected that a data sending end sends an original data code, grouping the original data code by bytes to obtain a plurality of sub-original data codes; adding a check bit in each of the sub-original data codes to obtain a processed original data code; performing CRC fingerprint processing and interleaving processing on the processed original data code to obtain first intermediate state data; introducing error data in the first intermediate state data when the first intermediate state data is transmitted or stored to obtain second intermediate state data; performing de-interleaving processing, de-Hamming code processing and de-CRC fingerprint processing on the second intermediate state data to obtain recovered data; and receiving the recovered data by a data receiving end.

[0006] In a preferred embodiment of the present application, the step of grouping the original data code by bytes to obtain a plurality of sub-original data codes comprises: grouping the original data code by one byte to obtain a plurality of sub-original data codes.

[0007] In a preferred embodiment of the present application, after the step of grouping the original data code by one byte to obtain a plurality of sub-original data codes, the method comprises: determining whether each of the sub-original data codes is 8 bits; and if not, zero padding is performed after the sub-original data code which is less than 8 bits to make each of the sub-original data codes 8 bits.

[0008] In a preferred embodiment of the present application, the original data code is 14 bits.

[0009] In the preferred embodiment of the present application, the step of grouping the original data code by one byte to obtain a plurality of sub-original data codes comprises: determining the first 8 bits of the original data as a first sub-original data code of the plurality of sub-original data codes; and zero-padding the last 6 bits of the original data to obtain a second sub-original data code of the plurality of sub-original data codes; the second sub-original data code is 8 bits.

[0010] In the preferred embodiment of the present application, the step of adding a check bit to each of the sub-original data codes to obtain a processed original data code comprises: adding a 4-bit check bit to the rear of each of the sub-original data codes to obtain the processed original data code.

[0011] In the preferred embodiment of the present application, the step of performing CRC fingerprint processing and interleaving processing on the processed original data code to obtain first intermediate state data comprises: performing CRC fingerprint processing on the processed original data code to obtain a fingerprint-processed original data code; and performing 4-bit interval interleaving processing on the fingerprint-processed original data code to obtain the first intermediate state data.

[0012] In the second aspect, the embodiment of the present application further provides an ECC check device, comprising: a grouping module configured to group an original data code by one byte to obtain a plurality of sub-original data codes if it is detected that the original data code is sent by a data sending end; a check bit adding module configured to add a check bit to each of the sub-original data codes to obtain a processed original data code; a processing module configured to perform CRC fingerprint processing and interleaving processing on the processed original data code to obtain first intermediate state data; an error introducing module configured to introduce error data into the first intermediate state data to obtain second intermediate state data when the first intermediate state data is transmitted or stored; a de-processing module configured to perform de-interleaving processing, Chinese code processing and CRC fingerprint processing on the second intermediate state data to obtain recovered data; and a receiving module configured to receive the recovered data by a data receiving end.

[0013] In the third aspect, the embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the method.

[0014] In the fourth aspect, the embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method.

[0015] The embodiment of the present application has the following beneficial technical effects:

[0016] The embodiment of the present application provides an ECC checking method, device and electronic equipment, which comprises the following steps: if original data code sent by a data sending end is detected, the original data code is grouped by bytes to obtain a plurality of sub-original data codes; a check bit is added in each of the sub-original data codes to obtain a processed original data code; the processed original data code is subjected to CRC fingerprint processing and interleaving processing to obtain first intermediate state data; when the first intermediate state data is transmitted or stored, error data is introduced into the first intermediate state data to obtain second intermediate state data; the second intermediate state data is subjected to deinterleaving processing, Chinese character decoding processing and de-CRC fingerprint processing to obtain recovered data; and the recovered data is received by a data receiving end. The ECC checking method groups the original data at the data sending end, adds a check bit, performs CRC fingerprint processing and interleaving processing, so that even if error is introduced in the process of transmission or storage, the original data can be recovered at the receiving end through deinterleaving, Chinese character decoding processing and de-CRC fingerprint processing, thereby significantly reducing the data error rate of the memory. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the specific embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0018] Figure 1 A flowchart of an ECC checking method provided by the embodiment of the present application is shown in the figure.

[0019] Figure 2 A flowchart of another ECC checking method provided by the embodiment of the present application is shown in the figure.

[0020] Figure 3 A structure diagram of an ECC checking device provided by the embodiment of the present application is shown in the figure.

[0021] Figure 4 A structure diagram of an electronic equipment provided by the embodiment of the present application is shown in the figure.

[0022] Figure: 31-grouping module; 32-check bit adding module; 33-processing module; 34-error introducing module; 35-deprocessing module; 36-receiving module; 41-memory; 42-processor; 43-bus; 44-communication interface. DETAILED DESCRIPTION

[0023] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.

[0024] The existing ECC check method has a high memory error rate.

[0025] Therefore, the embodiments of the present application provide an ECC check method, device and electronic equipment. The ECC check method groups original data at a data sending end, adds check bits, performs CRC fingerprint processing and interleaving processing, so that even if errors are introduced during transmission or storage of the data, the original data can be restored at a receiving end through deinterleaving, Chinese code processing and CRC fingerprint processing, thereby significantly reducing the data error rate of the memory. In order to facilitate understanding, first, an ECC check method is described in detail.

[0026] Embodiment 1

[0027] In this embodiment, Figure 1 A flowchart of an ECC check method provided by the embodiments of the present application is shown.

[0028] As seen from Figure 1 , the method comprises:

[0029] Step S101: If it is detected that the data sending end sends original data code, the original data code is grouped by bytes to obtain a plurality of sub-original data codes.

[0030] Step S102: Check bits are added in each of the sub-original data codes to obtain processed original data codes.

[0031] Step S103: The processed original data codes are subjected to CRC fingerprint processing and interleaving processing to obtain first intermediate state data.

[0032] Step S104: When the first intermediate state data is transmitted or stored, error data is introduced in the first intermediate state data to obtain second intermediate state data.

[0033] Step S105: The second intermediate state data is subjected to deinterleaving processing, Chinese code processing and CRC fingerprint processing to obtain restored data.

[0034] Step S106: The restored data is received by a data receiving end.

[0035] The embodiment of the present application provides an ECC checking method, which comprises the following steps: if it is detected that an original data code is sent by a data sending end, the original data code is grouped by byte to obtain a plurality of sub-original data codes; a check bit is added in each of the sub-original data codes to obtain a processed original data code; the processed original data code is subjected to CRC fingerprint processing and interleaving processing to obtain first intermediate state data; when the first intermediate state data is transmitted or stored, error data is introduced in the first intermediate state data to obtain second intermediate state data; the second intermediate state data is subjected to deinterleaving processing, Chinese code processing and CRC fingerprint processing to obtain recovered data; and the recovered data is received by a data receiving end. The ECC checking method groups the original data by byte, adds a check bit, performs CRC fingerprint processing and interleaving processing on the original data at the data sending end, so that even if error is introduced in the data during transmission or storage, the original data can be recovered at the receiving end through deinterleaving, Chinese code processing and CRC fingerprint processing, thereby significantly reducing the data error rate of the memory.

[0036] Embodiment 2

[0037] On the basis of the above embodiment, Figure 2 The flowchart of another ECC checking method provided by the embodiment of the present application is shown.

[0038] As seen from Figure 2 The method comprises the following steps:

[0039] Step S201: If it is detected that an original data code is sent by a data sending end, the original data code is grouped by byte to obtain a plurality of sub-original data codes.

[0040] In the embodiment, after the step of grouping the original data code by byte to obtain a plurality of sub-original data codes, the method comprises the following steps: determining whether each of the sub-original data codes is 8 bits; if not, zero is added after the sub-original data code which is less than 8 bits to make each of the sub-original data codes 8 bits.

[0041] In actual operation, the original data code is 14 bits.

[0042] Further, the step of grouping the original data code by byte to obtain a plurality of sub-original data codes comprises the following steps: the first 8 bits of the original data are determined as a first sub-original data code of the plurality of sub-original data codes; and the last 6 bits of the original data are zero-padded to obtain a second sub-original data code of the plurality of sub-original data codes; the second sub-original data code is 8 bits.

[0043] Step S202: A check bit is added in each of the sub-original data codes to obtain a processed original data code.

[0044] In the embodiment, the step of adding the check bits in each of the sub-raw data codes to obtain the processed raw data code comprises: adding 4-bit check bits at the end of each of the sub-raw data codes to obtain the processed raw data code.

[0045] Step S203: performing CRC fingerprint processing and interleaving processing on the processed raw data code to obtain first intermediate state data.

[0046] In the embodiment, the step of performing CRC fingerprint processing and interleaving processing on the processed raw data code to obtain first intermediate state data comprises: performing CRC fingerprint processing on the processed raw data code to obtain fingerprint-processed raw data code; and performing 4-bit interval interleaving processing on the fingerprint-processed raw data code to obtain the first intermediate state data.

[0047] Step S204: introducing error data into the first intermediate state data when the first intermediate state data is transmitted or stored to obtain second intermediate state data.

[0048] Step S205: performing de-interleaving processing, Chinese code processing and CRC fingerprint processing on the second intermediate state data to obtain recovered data.

[0049] Step S206: receiving the recovered data by a data receiving end.

[0050] The embodiment of the present application provides an ECC check method, which comprises: if it is detected that a data sending end sends raw data code, grouping the raw data code by one byte to obtain a plurality of sub-raw data codes; adding check bits in each of the sub-raw data codes to obtain processed raw data code; performing CRC fingerprint processing and interleaving processing on the processed raw data code to obtain first intermediate state data; introducing error data into the first intermediate state data when the first intermediate state data is transmitted or stored to obtain second intermediate state data; performing de-interleaving processing, Chinese code processing and CRC fingerprint processing on the second intermediate state data to obtain recovered data; and receiving the recovered data by a data receiving end. The ECC check method groups the raw data by one byte, adds check bits, performs CRC fingerprint processing and interleaving processing on the raw data at the data sending end, so that even if error is introduced in the transmission or storage process of the data, the original data can be recovered at the receiving end through de-interleaving, Chinese code processing and CRC fingerprint processing, thereby further reducing the data error rate of the memory.

[0051] Embodiment 3

[0052] On the basis of the above-mentioned embodiments, Figure 3A structure schematic diagram of an ECC checking device provided by the embodiment of the present application is shown.

[0053] By Figure 3 As shown in the figure, the device comprises:

[0054] A grouping module 31 is configured to group the original data code in bytes to obtain a plurality of sub-original data codes if it is detected that the data sending end sends the original data code.

[0055] A check bit adding module 32 is configured to add check bits in each of the sub-original data codes to obtain processed original data codes.

[0056] A processing module 33 is configured to perform CRC fingerprint processing and interleaving processing on the processed original data codes to obtain first intermediate state data.

[0057] An error introducing module 34 is configured to introduce error data in the first intermediate state data when the first intermediate state data is transmitted or stored to obtain second intermediate state data.

[0058] A de-processing module 35 is configured to perform de-interleaving processing, Chinese code processing and CRC fingerprint processing on the second intermediate state data to obtain recovered data.

[0059] A receiving module 36 is configured to receive the recovered data through a data receiving end.

[0060] The grouping module 31, the check bit adding module 32, the processing module 33, the error introducing module 34, the de-processing module 35 and the receiving module 36 are sequentially connected.

[0061] The ECC checking device provided by the embodiment of the present application has the same technical features as the ECC checking method provided by the above embodiment, so it can also solve the same technical problems and achieve the same technical effects. It can be clearly understood by those skilled in the art that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the foregoing method embodiment, which will not be described here.

[0062] Embodiment 4

[0063] The embodiment provides an electronic device, comprising a processor and a memory, the memory stores computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the steps of the ECC checking method.

[0064] The embodiment provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the ECC checking method.

[0065] Referring toFigure 4 Fig. 14 shows a structural schematic diagram of an electronic device, which comprises a memory 41 and a processor 42, the memory 41 storing a computer program executable on the processor 42, and the processor 42 implements the steps of the ECC checking method when executing the computer program.

[0066] As shown in Fig. 14, the device further comprises a bus 43 and a communication interface 44, the processor 42, the communication interface 44 and the memory 41 are connected through the bus 43; and the processor 42 is configured to execute the executable modules stored in the memory 41, such as the computer program. Figure 4

[0067] The memory 41 can include a high-speed random access memory (RAM), and can also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 44 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.

[0068] The bus 43 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 4 only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0069] ​The memory 41 is configured to store a program, and the processor 42 is configured to execute the program after receiving an execution instruction. The method performed by the ECC checking device according to any of the embodiments of the present application can be applied to the processor 42 or implemented by the processor 42. The processor 42 can be an integrated circuit chip with a processing capability of signals. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 42 or an instruction in the form of software. The processor 42 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logic block disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the memory 41, and the processor 42 reads the information in the memory 41 and combines the hardware to complete the steps of the above method.

[0070] Further, the embodiments of the present application also provide a machine readable storage medium, which stores machine executable instructions. When the machine executable instructions are called and executed by the processor 42, the machine executable instructions cause the processor 42 to implement the above ECC checking method.

[0071] The electronic device and the computer readable storage medium provided by the embodiments of the present application have the same technical features, so they can also solve the same technical problems and achieve the same technical effects.

[0072] In addition, in the description of the embodiments of the present application, unless specifically defined and limited, the terms "mounting", "connection", "connecting" should be understood in a broad sense, for example, can be fixedly connected, can also be detachably connected, or integrally connected; can be mechanically connected, can also be electrically connected; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication of two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0073] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.

Claims

1. An ECC checking method, characterized by, include: If the data sender detects that it is sending raw data code, the raw data code is grouped into bytes to obtain multiple sub-raw data codes; Add a check bit to each of the sub-original data codes to obtain the processed original data codes; The processed original data code is subjected to CRC fingerprinting and interleaving to obtain the first intermediate state data; When the first intermediate data is being transmitted or stored, erroneous data is introduced into the first intermediate data to obtain the second intermediate data; The second intermediate state data is subjected to deinterleaving, plain Chinese character encoding, and CRC fingerprinting to obtain the recovered data. The recovered data is received through a data receiving terminal.

2. The ECC check method of claim 1, wherein, The step of grouping the original data code by bytes to obtain multiple sub-original data codes includes: The original data code is grouped into multiple sub-original data codes by one byte each.

3. The ECC check method of claim 2, wherein, After the step of grouping the original data code into multiple sub-original data codes by one byte, the method includes: Determine whether each of the sub-original data codes is 8 bits; If not, pad with zeros after each sub-original data code that is less than 8 bits, so that each sub-original data code is 8 bits.

4. The ECC check method of claim 3, wherein, The original data code is 14 bits.

5. The ECC check method of claim 4, wherein, The step of grouping the original data code into multiple sub-original data codes by one byte includes: The first 8 bits of the original data are determined as the first sub-original data code of the plurality of sub-original data codes; and the last 6 bits of the original data are padded with zeros to obtain the second sub-original data code of the plurality of sub-original data codes; the second sub-original data code is 8 bits.

6. The ECC check method of claim 1, wherein, The step of adding a check bit to each of the sub-original data codes to obtain the processed original data codes includes: Add 4 check bits to the end of each of the sub-original data codes to obtain the processed original data codes.

7. The ECC check method of claim 1, wherein, The step of performing CRC fingerprinting and interleaving on the processed original data code to obtain the first intermediate state data includes: Perform CRC fingerprinting on the processed original data code to obtain the fingerprinted original data code; The original data code after fingerprint processing is interleaved with a 4-bit interval to obtain the first intermediate state data.

8. An ECC checking apparatus, characterized by comprising: include: The grouping module is used to group the raw data code by bytes to obtain multiple sub-raw data codes if the data sending end is detected to send raw data codes. The check bit addition module is used to add a check bit to each of the sub-original data codes to obtain the processed original data codes. The processing module is used to perform CRC fingerprinting and interleaving processing on the processed original data code to obtain the first intermediate state data; An error introduction module is used to introduce error data into the first intermediate data during transmission or storage to obtain second intermediate data. The de-processing module is used to perform de-interleaving, de-plain Chinese character processing, and de-CRC fingerprinting on the second intermediate state data to obtain the recovered data; A receiving module is used to receive the recovered data through a data receiving terminal.

9. An electronic device, comprising: The electronic device includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Collaborative transmission method based on distributed interweaved and group encoding

    CN102724021A

  • System and method for online fsunctional testing for error-correcting code function

    CN111480147A