Decoding method, apparatus and device
By simplifying the RS code decoding algorithm through feature-based parity-check matrix and matrix decomposition, the problem of high decoding complexity is solved, and decoding efficiency is improved.
Patent Information
- Application Number
- PCT/CN2026/098141
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2026-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Existing Reed-Solomon code (RS code) decoding algorithms are highly complex, making it difficult to effectively reduce the complexity of hardware implementation, especially when correcting multiple symbol errors.
By employing a characteristic check matrix, matrix operations are simplified through matrix decomposition and transformation, reducing the number of multiplication and XOR operations. The linear independent elements of the target row or column are used to cover the multidimensional space, simplifying the calculation of the check equation.
It improves the efficiency of RS code decoding, reduces the complexity of matrix operations, and enhances hardware decoding performance.
Smart Images

Figure CN2026098141_26112026_PF_FP_ABST
Abstract
Description
A decoding method, apparatus, and device
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202510661190.X, filed on May 22, 2025, entitled "A Decoding Method, Apparatus and Device", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of encoding and decoding, and more particularly to a decoding method, apparatus, and device. Background Technology
[0004] Reed-Solomon codes (RS codes) were proposed by I.S. Reed and G. Solomon. Early RS codes lacked effective decoding algorithms, and correcting more than six symbols proved extremely difficult. With advancements in decoding algorithms, the Berlekamp-Massey (BM) algorithm was developed.
[0005] As the RS algorithm continues to improve and technology advances, hardware implementation of the RS decoding algorithm has become a reality. The more complex the RS decoding process, the more demanding it is on the hardware performance supporting the decoding algorithm. Therefore, it is necessary to minimize the complexity of RS decoding as much as possible. Summary of the Invention
[0006] This application provides a decoding method, apparatus, and device for improving RS decoding efficiency.
[0007] Firstly, embodiments of this application provide a decoding method, which is illustrated here using a first device as the encoding device and a second device as the decoding device. In this method:
[0008] The first device sends first encoded data to the second device. The first encoded data can be a codeword of RS code, a subcode of RS code, or a codeword of a derivative code class of RS code (such as BCH, Hamming, Reed-Muller, etc.).
[0009] The second device acquires the first encoded data. The second device can use a first check matrix to verify the first encoded data. The first check data has certain characteristics. The first check matrix contains target rows and target columns. The elements of the target rows or target columns include all elements in a multidimensional space. The multidimensional space is a linear space V of a finite field or a translation of a linear space V of a finite field.
[0010] Using the above method, the second device uses a first parity check matrix with certain characteristics during the decoding process. Since the first parity check matrix contains target rows and target columns, it provides the possibility of simplifying the matrix operations in which the first parity check matrix participates. For example, the number of multiplication and XOR operations in matrix operations can be reduced by matrix decomposition, or the number of non-zero elements in the first parity check matrix can be reduced by matrix transformation, thereby reducing the number of multiplication and XOR operations in matrix operations and effectively ensuring decoding efficiency.
[0011] In one possible implementation, the second device obtains the first parity check matrix based on the second parity check matrix, wherein the first encoded data is obtained based on the second parity check matrix; for example, the first device obtains the first encoded data based on the second parity check matrix; or the first device obtains the first encoded matrix using a generator matrix corresponding to the second parity check matrix. In other words, if the second parity check matrix does not contain a target row or target column that satisfies the aforementioned conditions (i.e., the elements of the target row or target column include all elements in the multidimensional space), then the second device can process the second parity check matrix, such as matrix splitting or matrix completion, to obtain the first parity check matrix. Of course, if the second parity check matrix contains a target row or target column that satisfies the aforementioned conditions, then the second parity check matrix can be used as the first parity check matrix.
[0012] Using the above method, the second device can obtain the first parity check matrix based on the second parity check matrix. In this way, the first parity check matrix contains some or all of the elements in the second parity check matrix, and the first parity check matrix can participate in the decoding process to simplify the decoding process and improve decoding efficiency.
[0013] In one possible implementation, the element α in the j-th column of the target row j satisfy:
[0014] Where a is a constant, and a is the finite field GF(2). n The elements in (j0,j1,…,j) m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0015] Using the above method, the elements of the target row in the second check matrix can be represented by a set of linearly independent elements of the linear space V and a, and the elements of the target row can cover all elements in the linear space V.
[0016] In one possible implementation, the element α in the j-th row of the target columnj satisfy:
[0017] Where a is a constant, and a is the finite field GF(2). n The elements in (j0,j1,…,j) m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0018] Using the above method, the elements of the target column in the second check matrix can be represented by a set of linearly independent elements of the linear space V and a, and the elements of the target column can cover all elements in the linear space V.
[0019] In one possible implementation, when the second device verifies the first coded data using the first check matrix, it calculates a check equation that includes the product of the first check matrix and the second coded data, wherein the second coded data is determined based on the first coded data.
[0020] When the second device calculates the product of the first parity check matrix and the second encoded data, it can calculate the product of the first matrix, the first Boolean matrix, and the second encoded data. That is, the second parity check matrix is decomposed into the product of the first matrix and the first Boolean matrix (in other words, the product of the first matrix and the first Boolean matrix is the first parity check matrix). The number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix.
[0021] Using the above method, when the second device calculates the product of the first parity check matrix and the second encoded data, it calculates the first matrix with fewer non-zero elements, the first Boolean matrix with a simpler structure, and the product of the second encoded data. Fewer non-zero elements mean fewer multiplication operations. Since the first Boolean matrix only contains 0 and 1 elements, the operation participated in by the first Boolean matrix is a simple XOR operation, which simplifies the calculation of the parity check equation and ensures decoding efficiency.
[0022] In one possible implementation, the elements in the target row or target column of the first matrix are a set of linearly independent elements in a multidimensional space. Here, the target row and target column in the first matrix refer to the same row or the same column as the target row and target column in the first check matrix.
[0023] Using the above method, the elements of the target row or target column in the first matrix are more simply constructed, making the multiplication operations involved in the matrix operations in which the first matrix participates simpler.
[0024] In one possible implementation, the second encoded data is a subset of the first encoded data (suitable for cases where the first parity check matrix is a submatrix of the second parity check matrix) or is data obtained by padding the first encoded data with zeros (suitable for cases where the first parity check matrix is a matrix formed by adding rows or columns to the second parity check matrix).
[0025] By using the above method, the second parity check matrix is processed to obtain the first parity check matrix. Correspondingly, the first encoded data is also adjusted to ensure that the participation of the first parity check matrix will not affect the final decoding result.
[0026] In one possible implementation, if the first encoded data fails verification, the second device can perform a Qian search on the first vector (i.e., perform a Qian search with the first vector as input). The Qian search includes calculating the product of the first vector and the first submatrix. Through matrix decomposition, the product of the first vector and the first submatrix is transformed into the product of the first vector, the second matrix, and the second Boolean matrix.
[0027] The product of the second matrix and the second Boolean matrix is the first submatrix, which is a submatrix of the first parity check matrix. The number of non-zero elements in the second matrix is less than the number of non-zero elements in the first submatrix.
[0028] By performing matrix decomposition on the first submatrix, we can obtain a second matrix with fewer non-zero elements and a second Boolean matrix with a simpler structure. This reduces the number of multiplication and XOR operations in the matrix operation process, improves the efficiency of the search, and thus ensures decoding efficiency.
[0029] In one possible implementation, the elements in the target row or target column of the second matrix are a set of linearly independent elements in a multidimensional space. Here, the target row and target column in the second matrix refer to the same row or the same column as the target row and target column in the first check matrix.
[0030] Using the above method, the elements of the target row or target column in the second matrix are more simply constructed, making the multiplication operation in the matrix operations involving the second matrix simpler.
[0031] In one possible implementation, if the first encoded data fails verification, the second device performs a money search on the first vector, which includes calculating the product of the first vector and the first submatrix.
[0032] The second device converts the product of the first vector and the first submatrix into the product of the second vector and the second submatrix. The second submatrix is a submatrix of the first check matrix. The second submatrix can be a submatrix of the first submatrix. The proportion of elements in the second submatrix that are powers of 2 is greater than a preset proportion.
[0033] The second device calculates the product of the second vector and the second submatrix by calculating the product of the second vector, the third matrix, and the third Boolean matrix. That is, the product of the second vector and the second submatrix is equal to the product of the second vector, the third matrix, and the third Boolean matrix. The second submatrix is equal to the product of the third matrix and the third Boolean matrix. The number of non-zero elements in the third matrix is less than the number of non-zero elements in the second submatrix.
[0034] Using the above method, the second device transforms the first vector, converting its product with the first submatrix into the product of the second vector and a second submatrix with a simpler structure and fewer elements, thus reducing the number of multiplication operations in matrix operations. Then, by performing matrix decomposition on the second submatrix, it is decomposed into the product of a third matrix and a third Boolean matrix, further reducing the number of multiplication operations and improving decoding efficiency.
[0035] In one possible implementation, the second submatrix is a Moore matrix. The Moore matrix has a simpler structure and contains fewer elements than the first submatrix, which can significantly reduce the number of multiplication operations in matrix multiplication.
[0036] In one possible implementation, the elements in the target row or target column of the third matrix are a set of linearly independent elements in a multidimensional space. Here, the target row and target column in the third matrix refer to the same row or the same column as the target row and target column in the first check matrix.
[0037] Using the above method, the elements of the target row or target column in the third matrix are more simply constructed, making the multiplication operation in the matrix multiplication involving the third matrix simpler.
[0038] In one possible implementation, if the first encoded data fails verification, the second device performs a Forney value calculation on the third vector, which includes calculating the product of the third vector and the third submatrix.
[0039] The second device converts the product of the second vector and the third submatrix into the product of the third vector, the fourth matrix, and the fourth Boolean matrix. The product of the fourth matrix and the fourth Boolean matrix is equal to the third submatrix, which is a submatrix of the first parity check matrix. The fourth matrix has fewer non-zero elements than the third submatrix.
[0040] By performing matrix decomposition on the third submatrix, we can obtain a fourth matrix with fewer non-zero elements and a simpler structure. This reduces the number of multiplication and XOR operations in matrix operations, improves the efficiency of Forney value calculation, and thus ensures decoding efficiency.
[0041] In one possible implementation, the elements in the target row or target column of the fourth matrix are a set of linearly independent elements in a multidimensional space. Here, the target row and target column of the fourth matrix refer to the same row or column as the target row and target column of the first check matrix.
[0042] Using the above method, the elements of the target row or target column in the fourth matrix are more simply constructed, making the multiplication operations involved in the matrix operations in which the fourth matrix participates simpler.
[0043] Secondly, embodiments of this application also provide an encoding method, which can be executed by a first device. Since the encoding process can be viewed as the "inverse" operation of the decoding process, some features on the encoding side are similar to those on the decoding side. Some beneficial effects can be found in the relevant description of the first aspect, and will not be repeated here. In this method:
[0044] The first device obtains the first encoded data based on the first check matrix and the data to be encoded. For an explanation of the first encoded data, please refer to the foregoing content, which will not be repeated here.
[0045] The first parity check matrix can be the second parity check matrix or it can be determined based on the second parity check matrix. It should be noted that the first device can perform matrix decomposition on the second parity check matrix to obtain the first parity check matrix (which is a submatrix of the second parity check matrix). Correspondingly, the data to be encoded can also be adjusted, such as obtaining a subset of the data to be encoded. The first device can also add rows or columns to the second parity check matrix to obtain the first parity check matrix. Correspondingly, the data to be encoded can also be adjusted, such as padding the data with zeros. Furthermore, the first parity check matrix on the first device side and the first parity check matrix on the second device side can be different or the same; this embodiment does not limit this.
[0046] The first verification matrix has certain characteristics. It contains a target row or a target column. The elements of the target row or target column include all elements in a multidimensional space. The multidimensional space is a linear space of a finite field or a translation of a linear space of a finite field.
[0047] The first device sends the first encoded data.
[0048] Using the above method, the first parity check matrix used for encoding has certain characteristics, which makes it possible to simplify the matrix operations involved in the encoding process.
[0049] In one possible implementation, the element α in the j-th column of the target row j satisfy:
[0050] Where a is a constant, and a is a finite field GF(2). n The elements in (j0,j1,…,j) m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ).
[0051] In one possible implementation, the element α in the j-th row of the target column j satisfy:
[0052] Where a is a constant, and a is a finite field GF(2). n The elements in (j0,j1,…,j) m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ).
[0053] In one possible implementation, the first parity check matrix is equal to the product of the first matrix and the first Boolean matrix, and the number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix. It should be noted that the first matrix and the first Boolean matrix on the encoding side can be different from, or the same as, the first matrix and the first Boolean matrix on the decoding side.
[0054] In one possible implementation, the elements in the target row or target column of the first matrix are a set of linearly independent elements in a multidimensional space.
[0055] Thirdly, embodiments of this application provide a communication system, which includes a first device and a second device. Here, the first device is described as an encoding device and the second device as a decoding device. Beneficial effects can be found in the foregoing descriptions of the first and second aspects, and will not be repeated here.
[0056] The first device sends first encoded data to the second device. The first encoded data can be a codeword of RS code, a subcode of RS code, or a codeword of a derivative code class of RS code (such as BCH, Hamming, Reed-Muller, etc.).
[0057] The second device acquires the first encoded data; the second device verifies the first encoded data using a first check matrix, wherein the elements of the target row or target column in the first check matrix include all elements in a multidimensional space, the multidimensional space being a linear space V of a finite field or a translation of a linear space V of a finite field.
[0058] In one possible implementation, the first device obtains first encoded data based on a second parity check matrix. The second device obtains the first parity check matrix based on the second parity check data.
[0059] In one possible implementation, when the first device obtains the first encoded data based on the second check matrix, it obtains the third check matrix based on the second check matrix, and obtains the first encoded data based on the third check matrix and the data to be encoded. The elements of the target row or target column in the third check matrix include all elements in the multidimensional space, which is a linear space of a finite field or a translation of a linear space of a finite field.
[0060] In one possible implementation, the element α in the j-th column of the target row in the first verification matrix... j satisfy:
[0061] Where a is a constant, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0062] In one possible implementation, the element α in the j-th row of the target column of the first verification matrix... j satisfy:
[0063] Where a is a constant, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0064] In one possible implementation, the specific representation of the elements in the target column or target row of the third check matrix is similar to that of the elements in the target column or target row of the first check matrix, except that the values of m and n may be different.
[0065] In one possible implementation, when the second device verifies the first coded data using the first check matrix, it calculates the product of the first check matrix and the second coded data, wherein the second coded data is determined based on the first coded data.
[0066] When the second device calculates the product of the first parity check matrix and the second encoded data, it calculates the product of the first matrix, the first Boolean matrix, and the second encoded data. The product of the first matrix and the first Boolean matrix is the first parity check matrix, and the number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix.
[0067] In one possible implementation, the elements in the target row or target column of the first matrix are a set of linearly independent elements in a multidimensional space.
[0068] In one possible implementation, the second encoded data is a subset of the first encoded data or is data obtained by padding the first encoded data with zeros.
[0069] In one possible implementation, if the first encoded data fails verification, the second device performs a money search on the first vector, which includes calculating the product of the first vector, the second matrix, and the second Boolean matrix.
[0070] The product of the second matrix and the second Boolean matrix is the first submatrix, which is a submatrix of the first parity check matrix. The number of non-zero elements in the second matrix is less than the number of non-zero elements in the first submatrix.
[0071] In one possible implementation, the elements in the target row or target column of the second matrix are a set of linearly independent elements in a multidimensional space.
[0072] In one possible implementation, if the first encoded data fails verification, the second device performs a money search on the first vector. The money search includes calculating the product of the first vector and the first submatrix. The second device converts the product of the first vector and the first submatrix into the product of the second vector and the second submatrix, wherein the second submatrix is a submatrix of the first verification matrix, and the proportion of elements in the second submatrix that are powers of 2 is greater than a preset proportion.
[0073] The second device calculates the product of the second vector, the third matrix, and the third Boolean matrix, where the second submatrix is equal to the product of the third matrix and the third Boolean matrix, and the number of non-zero elements in the third matrix is less than the number of non-zero elements in the second submatrix.
[0074] In one possible implementation, the second submatrix is a Moore matrix.
[0075] In one possible implementation, the elements in the target row or target column of the third matrix are a set of linearly independent elements in a multidimensional space.
[0076] In one possible implementation, if the first encoded data fails verification, the second device performs a Forney value calculation on the third vector, which includes calculating the product of the third vector, the fourth matrix, and the fourth Boolean matrix.
[0077] Among them, the product of the fourth matrix and the fourth Boolean matrix is equal to the third submatrix, the third submatrix is a submatrix of the first parity check matrix, and the number of non-zero elements in the fourth matrix is less than the number of non-zero elements in the third submatrix.
[0078] In one possible implementation, the elements in the target row or target column of the fourth matrix are a set of linearly independent elements in a multidimensional space.
[0079] In one possible implementation, when the first device encodes using the third parity-check matrix, it can decompose the third parity-check matrix into the product of the fifth matrix and the fifth Boolean matrix; that is, the third parity-check matrix is equal to the product of the fifth matrix and the fifth Boolean matrix. The number of non-zero elements in the fifth matrix is less than the number of non-zero elements in the third parity-check matrix.
[0080] In one possible implementation, the elements in the target row or target column of the first matrix are a set of linearly independent elements in a multidimensional space.
[0081] Fourthly, embodiments of this application also provide a decoding apparatus that performs the functions described in the method examples of the first aspect. The beneficial effects are described in the first aspect description and will not be repeated here. The functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions. In one possible design, the decoding apparatus includes an acquisition module, a verification module, and optionally, a search module and a calculation module. These modules can perform the corresponding functions in the method examples of the first aspect, as detailed in the method examples and will not be repeated here.
[0082] Fifthly, embodiments of this application also provide an encoding device that has the function of implementing the behavior in the method example of the second aspect described above. The beneficial effects can be found in the description of the second aspect and will not be repeated here. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the encoding device includes an encoding module and a transmission module. These modules can perform the corresponding functions in the method example of the second aspect described above; see the detailed description in the method example for details, which will not be repeated here.
[0083] Sixthly, this application also provides a computing device, which includes a processor and a memory, and may further include a communication interface. The processor executes computer program instructions in the memory to perform the method provided by the first aspect or any possible implementation thereof. Alternatively, the processor executes computer program instructions in the memory to perform the method provided by the second aspect or any possible implementation thereof. The memory is coupled to the processor and stores computer program instructions and data necessary for determining the encoding or decoding process. The communication interface is used for communicating with other devices.
[0084] In a seventh aspect, this application provides a computing device system comprising at least one computing device. Each computing device includes a memory and a processor. The processor of at least one computing device is configured to access code in the memory to execute the method provided by the first aspect or any possible implementation thereof, or the processor of at least one computing device is configured to access code in the memory to execute the method provided by the second aspect or any possible implementation thereof.
[0085] Eighthly, this application provides a computer-readable storage medium that, when executed by a computing device, allows the computing device to perform the method provided in the first aspect or any possible implementation thereof, or to perform the method provided in the second aspect or any possible implementation thereof. The storage medium stores computer program instructions. The storage medium includes, but is not limited to, volatile memory, such as random access memory, and non-volatile memory, such as flash memory, hard disk drive (HDD), and solid-state drive (SSD).
[0086] Ninthly, this application provides a computer device program product, which includes computer program instructions. When executed by a computing device, the computing device performs the method provided in the first aspect or any possible implementation thereof, or performs the method provided in the second aspect or any possible implementation thereof. The computer program product can be a software installation package. When it is necessary to use the method provided in the first aspect or any possible implementation thereof, or when it is necessary to use the method provided in the second aspect or any possible implementation thereof, the computer program product can be downloaded and executed on the computing device.
[0087] In a tenth aspect, this application also provides a computer chip connected to a memory, the chip being used to read and execute computer program instructions stored in the memory, to execute the methods in the first aspect and various possible implementations of the first aspect, or to execute the methods in the second aspect and various possible implementations of the second aspect.
[0088] For the technical effects that can be achieved in the second to tenth aspects mentioned above, please refer to the description of the technical effects that can be achieved by the corresponding design schemes in the first aspect mentioned above. This application will not repeat them here. Attached Figure Description
[0089] Figure 1 is a schematic diagram of the structure of a communication system provided in this application;
[0090] Figure 2A is a schematic diagram of another communication system provided in this application;
[0091] Figures 2B to 2D are schematic diagrams of an application scenario provided by this application;
[0092] Figure 3 is a schematic diagram of a communication method (including encoding and decoding) provided in this application;
[0093] Figure 4 is a schematic diagram of an encoding device provided in an embodiment of this application;
[0094] Figure 5 is a schematic diagram of a decoding device provided in an embodiment of this application;
[0095] Figures 6 and 7 are schematic diagrams of the structure of a computing device provided in an embodiment of this application. Detailed Implementation
[0096] Figure 1 shows a communication system provided in an embodiment of this application. The communication system includes multiple devices that can transmit data between each other. For ease of explanation, the first device 10 and the second device 20 are used as examples. In this embodiment, the first device 10 is the data sender and the second device 20 is the data receiver.
[0097] Data sender: First device 10.
[0098] Before sending data to the second device 20, the first device 10 needs to encode the data to be sent, and then send the encoded data to the second device 20. The purpose of encoding is to ensure the security of the data to be sent, and to generate a check bit for the data to be sent. When the data is transmitted to the second device 20, it may change due to noise interference. The check bit can be used to verify and correct the data.
[0099] The data to be sent can exist in the form of a sequence, such as a sequence containing several 0s and / or 1s. In this embodiment, the data before encoding is referred to as the data to be encoded.
[0100] The first device 10 encodes the data to be encoded to generate first encoded data. The first device 10 can obtain the first encoded data by multiplying the data to be encoded by the generator matrix. Alternatively, the first device 10 can obtain the first encoded data by multiplying the data to be encoded by a second parity check matrix. This second parity check matrix is the matrix corresponding to the generator matrix. Compared to the data to be encoded, the first encoded data includes one or more parity bits, which are related to each data bit in the data to be encoded.
[0101] In this embodiment, the first device 10 can use RS code, RS code subcode, or RS code derivative class to encode the data to be transmitted. The RS code derivative class can be BCH (Bose Chandhari Hocquenhem) code, Hamming code, Reed-Muller code, etc. Therefore, the first encoded data can be an RS codeword, an RS code subcode, or a codeword of an RS code derivative class (e.g., BCH, Hamming, Reed-Muller, etc.).
[0102] Data receiver: Second device 20.
[0103] For the second device 20, the data received from the first device 10 is first encoded data that has undergone encoding processing, and the first encoded data is decoded. In this embodiment of the application, the second device 20 mainly needs to go through several key steps when decoding the first encoded data, including checksum calculation, key equation solving, money search, and Forney value calculation.
[0104] The checksum calculation uses a check matrix to verify the first encoded data and determine if errors exist. If an error is found, the key equation is solved to obtain a first vector related to the error bit (the error bit refers to the location of the erroneous data symbol or checksum in the encoded data). After obtaining this first vector, a Forney search is performed, which calculates the solution to the equation related to the first vector to accurately locate the error bit in the first encoded data. After locating the error bit, the Forney value is calculated, thus determining the correct data at that error bit.
[0105] In this embodiment, when the second device 20 decodes the first encoded data, it can use a first parity check matrix to decode the first encoded data. For example, it can use the first parity check matrix to verify the first encoded data (i.e., perform parity calculation), or it can use the first parity check matrix to determine error bits in the first encoded data (i.e., perform a fork search), or it can use the first parity check matrix to determine the correct data at the error bits (i.e., perform a fork value calculation). The first parity check matrix has certain characteristics, such as having a target row or target column, and the elements in the target row or target column containing all elements in a multidimensional space. This multidimensional space can be a linear space V of a finite field, or a translation of a linear space V of a finite field.
[0106] In practical applications, the second parity-check matrix (or the second parity-check matrix used for encoding) corresponding to the generator matrix may not possess the characteristics of the first parity-check matrix. The second device 20 can obtain the first parity-check matrix based on the second parity-check matrix, such as by decomposing one or more sub-matrices from the second parity-check matrix to give these sub-matrices the characteristics of the first parity-check matrix, or by adding rows or columns to the second parity-check matrix to give it the characteristics of the first parity-check matrix. Of course, if the second parity-check matrix itself possesses the characteristics of the first parity-check matrix, then the second parity-check matrix can be used as the first parity-check matrix in the decoding of the first encoded data.
[0107] During the decoding process of the first coded data using the first parity check matrix, the second device 20 performs the aforementioned key steps. Among these key steps, the parity check calculation involves operations involving the second parity check matrix, and the Forney search and Forney value calculation involve operations involving submatrices of the second parity check matrix. The second device 20 determines the first parity check matrix based on the second parity check matrix and then performs the parity check calculation, the Forney search, and the Forney value calculation using the first parity check matrix.
[0108] In this embodiment of the application, when the second device 20 performs checksum calculation, it can decompose the first checksum matrix into a product of a matrix with fewer non-zero elements (such as the first matrix) and a Boolean matrix (for ease of explanation, the Boolean matrix is referred to as the first Boolean matrix). This can reduce the number of multiplication operations in the checksum calculation process, and can also reduce the number of XOR operations to a certain extent, thereby improving the efficiency of checksum calculation.
[0109] When the second device 20 performs the Qian search, the Qian search includes calculating the product of the first vector and a submatrix of the first parity check matrix. For ease of explanation, the submatrix of the first parity check matrix is referred to as the first submatrix. The second device 20 decomposes the first submatrix into the product of a matrix with fewer non-zero elements (such as the second matrix) and a Boolean matrix (for ease of explanation, this Boolean matrix is referred to as the second Boolean matrix). In this way, the product of the first vector and the first submatrix is transformed into the product of the first vector, the second matrix, and the second Boolean matrix. Since the second matrix has fewer non-zero elements, the number of multiplication operations can be effectively reduced. Furthermore, the second Boolean matrix is a simple 0-1 matrix, meaning that the operations involving the second Boolean matrix only involve some XOR operations, simplifying the calculation process of the Qian search and improving its computational efficiency.
[0110] Furthermore, in some scenarios, when performing the money search, the second device 20 can also convert the product of the first vector and the first submatrix into the product of the second vector and the second submatrix, where the second submatrix is also a submatrix of the first parity check matrix. This second submatrix can also be a submatrix of the first submatrix. When calculating the product of the second vector and the second submatrix, the second submatrix can be decomposed into the product of the third matrix and the third Boolean matrix; that is, the second submatrix is equal to the product of the third matrix and the third Boolean matrix. In this way, the third matrix has fewer non-zero elements than the second submatrix. This method results in a simpler structure for the second submatrix than for the first submatrix, and the third matrix derived from the second submatrix has fewer non-zero elements, further simplifying the money search calculation process.
[0111] When the second device 20 performs the Forney value calculation, the Forney value calculation process can essentially be understood as the process of calculating the product of the third vector and the third submatrix. The third submatrix is the product of the first submatrix. The second device 20 decomposes the third submatrix into the product of the fourth matrix and the fourth Boolean matrix. That is, the third submatrix is equal to the product of the fourth matrix and the fourth Boolean matrix. The fourth matrix has fewer non-zero elements than the third submatrix, which can reduce the number of multiplication operations in the Forney value calculation process and simplify the Forney value calculation process.
[0112] In this embodiment, the second device 20 decomposes the first parity check matrix or its submatrix into matrices with fewer non-zero elements and simpler Boolean matrices through matrix decomposition. Reducing the number of non-zero elements in the matrix means that the number of multiplication operations between elements in the two matrices being multiplied can be reduced during matrix multiplication. Since a Boolean matrix contains only 0s and 1s, only simple XOR operations are needed between elements in matrix multiplication operations involving a Boolean matrix. Therefore, in this embodiment, the second device 20 can effectively reduce the number of multiplication operations and XOR operations in parity check calculation, money search, and Forney value calculation by decomposing the first parity check matrix (or its submatrix), thereby improving decoding efficiency.
[0113] Example of a communication system:
[0114] This application does not limit the specific form and deployment location of the first device 10 and the second device 20. As shown in FIG2A, this application uses a schematic diagram of another communication system architecture. The communication system 1000 shown in FIG2A includes a wireless access network 100 and a core network 200. Optionally, the communication system 1000 also includes the Internet 300. The wireless access network 100 may include at least one network device (110a and 110b in FIG2A) and at least one terminal device (120a-120j in FIG2A). The terminal device is connected to the network device wirelessly, and the network device is connected to the core network wirelessly or via a wired connection. The core network device and the network device may be independent and different physical devices, or the functions of the core network device and the logical functions of the network device may be integrated on the same physical device, or a single physical device may integrate some of the functions of the core network device and some of the functions of the network device. Terminal devices and network devices may be interconnected via wired or wireless connections. Figure 2A is just a schematic diagram. The communication system may also include other network devices, such as wireless relay devices and wireless backhaul devices, which are not shown in Figure 2A.
[0115] Network equipment is an access device that enables terminal devices to access a communication system via wired or wireless means. Network equipment can be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next-generation NodeB (gNB) in a 5G mobile communication system, a next-generation base station in a 6G mobile communication system, a base station in a future mobile communication system, or an access node in a WiFi system; it can also be a module or unit that performs some of the functions of a base station, such as a central unit (CU), a distributed unit (DU), or a radio unit (RU). Network equipment can be a macro base station (as shown in Figure 2A, 110a), a micro base station or an indoor station (as shown in Figure 2A, 110b), a relay node, or a donor node, etc. The embodiments of this application do not limit the specific technologies or equipment forms used in the network equipment.
[0116] A terminal device is a device with wireless transceiver capabilities, capable of sending signals to or receiving signals from network devices. Terminal devices include, but are not limited to, terminal units, terminals, user equipment (UE), mobile stations, and mobile terminals. Terminal devices can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), the Internet of Things (IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grids, smart furniture, smart offices, smart wearables, smart transportation, and smart cities. Specifically, a terminal device can be a mobile phone, tablet computer, computer with wireless transceiver capabilities, wearable device, vehicle, aircraft, ship, robot, robotic arm, smart home device, etc. The embodiments of this application do not limit the specific technologies or device forms used in the terminal devices.
[0117] Network devices and terminal devices can be fixed in location or mobile. They can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on water; and they can be deployed on aircraft, balloons, and artificial satellites. The embodiments of this application do not limit the application scenarios of the network devices and terminal devices.
[0118] The roles of network devices and terminal devices can be relative. For example, the helicopter or drone 120i in Figure 2A can be configured as a mobile network device. For terminal devices 120j that access the wireless access network 100 via 120i, terminal device 120i is a network device; however, for network device 110a, 120i is a terminal device. That is, 110a and 120i communicate via a wireless air interface protocol. Of course, 110a and 120i can also communicate via a network device-to-network device interface protocol. In this case, relative to 110a, 120i is also a network device.
[0119] Communication between network devices and terminal devices, between network devices, and between terminal devices can be conducted using licensed spectrum, unlicensed spectrum, or both simultaneously. Communication can be conducted using spectrum below 6 GHz, spectrum above 6 GHz, or both simultaneously. The embodiments of this application do not limit the spectrum resources used for wireless communication.
[0120] Any of the network devices and terminal devices shown in Figure 2A can act as the first device 10, communicating with other devices in the communication system, encoding the data to be sent to generate first encoded data, and sending the first encoded data to other devices. Any of the network devices and terminal devices shown in Figure 2A can also act as the second device 20, communicating with other devices in the communication system, obtaining the first encoded data sent by other devices, and decoding the received first encoded data.
[0121] Application scenarios:
[0122] The method provided in this application can be applied to multiple fields, such as augmented reality / virtual reality (AR / VR), artificial intelligence (AI), 5G applications, or cloud applications. The increasing number of applications in various fields will generate ever-increasing throughput, and this explosive growth in throughput requires higher bandwidth. The data transmission method mentioned in this application is applicable to various system architectures that utilize RS codes, RS code subcodes, and their derivative codes for error correction. The encoding schemes for 100GE, 200GE, and 400GE in the IEEE 802.3 standard all employ RS encoding and decoding at the PCS layer. Here, taking the Ethernet architecture as an example, the encoding and decoding schemes for 100GE, 200GE, and 400GE in the IEEE 802.3 standard are explained.
[0123] 1. 100GE
[0124] In a 100GE Ethernet 4-channel physical media dependent (PMD) KP4 application scenario, the encoding scheme adopts the Reed-Solomon (RS) (544,514,10) codeword. The code length n of the RS codeword is... RS =544, information symbol bit length k RS =514, Galois domain is GF(2 10The flowchart of the 100GE KP4 Ethernet encoding scheme is shown in Figure 2B. Data from the medium access control (MAC) and higher-layer clients passes through the reconciliation sublayer. The reconciliation sublayer translates the data from the MAC and higher-layer clients and sends it to the 100GBASE-R physical coding sublayer (PCS) through the 100Gb / s media independent interface (CGMII). The PCS layer performs transcoding, scrambling, and AM insertion operations on the data before encoding it with a Reed-Solomon forward error correction (RS-FEC) codeword. The RS-FEC encoding of 100GE Ethernet uses an RS(544,514,10) codeword. The encoded codewords enter the Physical Medium Attachment Sublayer (PMA) for multiplexing (Mux) and other operations. The processed data stream is then transmitted to the next layer, the PMA, via a four-lane attachment unit interface (CAUI-4) chip-to-module (C2M) interface. After passing through the PMA, the PMD modulates and converts the data stream photoelectrically. The medium-dependent interface (MDI) then transmits the modulated and photoelectrically converted optical signal to the receiving end via a medium such as optical fiber.
[0125] Figure 2B shows a flowchart of the Ethernet encoding scheme. The decoding process performed by the data receiver (such as the second device 20) is opposite to the operation performed by the sender. The data receiver sequentially passes through PMD, PMA, RS-FEC Decode, PCS layer, MAC, and reconciliation sublayer to obtain the final sequence (the sequence before encoding by the data sender). The steps performed by the receiver are the decoding operations of the corresponding steps performed by the sender. In this embodiment, the decoding method performed by the second device 20 can be applied to the PCS layer.
[0126] 2. 200GE, 400GE
[0127] The encoding schemes for 200GE and 400GE Ethernet also use RS(544,514,10) codewords. The code length n of the RS codeword is...RS =544, information symbol bit length k RS =514, Galois domain is GF(2 10 ).
[0128] The flowchart of the 200GE Ethernet encoding scheme is shown in Figure 2C. Data from the MAC and higher-layer clients passes through the modulation sublayer, which translates the data and sends it to the PCS layer of the 200GBASE-R via the 200GMII interface. The PCS layer performs transcoding, scrambling, and AM insertion operations on the data before sending it to the RS-FEC module for encoding. The RS-FEC encoding of 200GE Ethernet uses two RS (544, 514, 10) codewords. The data stream from the PCS layer is distributed to the two RS codewords using a 10-bit polling method. The encoded codewords from the two RS codewords enter the PMA layer for Mux operations. The processed data stream is then transmitted to the next-layer PMA via a 200G four-lane attachment unit interface (CAUI-4) C2M interface. After passing through the PMA, the PMD modulates and performs photoelectric conversion on the data stream. The MDI interface transmits the modulated and photoelectric converted optical signal to the receiving end via a medium such as optical fiber.
[0129] The flowchart of the Ethernet encoding scheme is shown in Figure 2C. The decoding process performed by the data receiver (such as the second device 20) is opposite to the operation performed by the sender. The data receiver sequentially passes through PMD, PMA, RS-FEC Decode, PCS layer, MAC, and reconciliation sublayer to obtain the final sequence (the sequence before encoding by the data sender). The steps performed by the receiver are the decoding operations of the corresponding steps performed by the sender. In this embodiment, the decoding method performed by the second device 20 can be applied to the PCS layer.
[0130] Figure 2D shows a flowchart of the 400GE Ethernet encoding scheme. Data from the MAC and higher-layer clients passes through the modulation sublayer, which translates the data and sends it to the PCS layer of the 400GBASE-R via the 400GMII interface. The PCS layer performs transcoding, scrambling, and AM insertion operations on the data before sending it to the RS-FEC module for encoding. 400GE Ethernet RS-FEC encoding uses two RS (544, 514, 10) codewords. The data stream from the PCS layer is distributed to these two RS codewords using a 10-bit polling method. The encoded codewords from the two RS codewords are then distributed via a Mux and 10-bit symbol distribution to the PMA layer. The data stream output from the PMA layer is passed to the next layer, the PMA, via a 400GAUI-4C2M interface. After passing through the PMA, the PMD modulates and performs photoelectric conversion on the data stream. The MDI interface transmits the modulated and photoelectric converted optical signal to the receiving end via a medium such as optical fiber.
[0131] Figure 2D shows a flowchart of the Ethernet encoding scheme. The decoding process performed by the data receiver (such as the second device 20) is opposite to the operation performed by the sender. The data receiver sequentially passes through PMD, PMA, RS-FEC Decode, PCS layer, MAC, and reconciliation sublayer to obtain the final sequence (the sequence before encoding by the data sender). The steps performed by the receiver are the decoding operations of the corresponding steps performed by the sender. In this embodiment, the decoding method performed by the second device 20 can be applied to the PCS layer.
[0132] Figure 3 illustrates a data transmission method provided in this embodiment of the application, where a first device 10 acts as the data sender and a second device 20 acts as the data receiver. The method mainly includes two parts: the encoding process on the first device 10 side (see step 301 for details), and the decoding process of the encoded data on the second device 20 (see steps 303 to 307 for details).
[0133] Step 301: The first device 10 encodes the data s to be encoded to generate the first encoded data C(S).
[0134] The first encoded data C(S) generated by the first device 10 after encoding the data to be encoded s satisfies:
[0135] C(S) = sG, where G is the generating matrix.
[0136] During the encoding process, the first device 10 adds one or more parity bits to the data s to be encoded. Therefore, the encoded data C(S) includes data bits and parity bits. The data bits are the data symbols in the data s to be encoded (each data symbol includes one or more bits). The parity bits are generated after the data s is encoded. The value of the parity bits is related to the data symbols in the data s and the generator matrix.
[0137] Step 302: The first device 10 sends the first encoded data C(S) to the second device 20.
[0138] Step 303: The second device 20 receives the first encoded data C(S) and, according to the second parity check matrix H... check The first verification matrix H is obtained.
[0139] Second verification matrix H check The Vandermonde matrix, i.e., the element in the i-th row and j-th column, can be represented as α. i j-1 The second parity check matrix H check Each element belongs to a finite field. The second parity-check matrix H check There is a one-to-one correspondence between the generator matrix G and the second parity check matrix H. The second parity check matrix H can be uniquely determined based on the generator matrix G. check Correspondingly, the generator matrix G can also be uniquely determined based on the second parity check matrix H. check The generating matrix G satisfies: G T H check =0, where G T Let G be the transpose of G.
[0140] When the second device 20 executes step 303, it obtains a first parity check matrix H, which is a Vandermonde matrix, and each element of the first parity check matrix H belongs to the finite field GF(2). n In the first verification matrix H, there exists a target row or target column whose elements include all elements in the multidimensional space, which is a finite field GF(2). n Linear spaces or finite fields GF(2) in ) n Translation of a linear space in GF(2) (i.e., translation of the finite field GF(2)) n (The set of elements formed by translating the linear space in ).
[0141] The second verification matrix H is discussed below. check The form of the first parity check matrix H will be introduced as follows:
[0142] For the second parity-check matrix H check H check The target row (usually the second row) contains a set of elements (α0, α...).1、 The first powers of α2, α3, ..., α1, each element in the second row can be represented using a basis in a linear space. For the element α in the j-th column of the second row... j The element α j satisfy:
[0143] Where a is a set value, ω0, ω1, ..., ω z-1 It is a set of linearly independent elements over a finite field. That is, the second parity-check matrix H. check The elements in the second row belong to the linear space (a equals 0), or to a translation of the linear space. The elements in the second row are elements in the linear space (or the linear space after translation a).
[0144] Due to the second parity check matrix H check Each element belongs to a finite field, but the second parity-check matrix H check Each element (especially the elements in the second row) does not cover the finite field GF(2). n All possible values in ).
[0145] Therefore, when the second device 20 obtains the first parity check matrix H, it can process the second parity check matrix H. check The processing includes, but is not limited to, matrix splitting and matrix completion.
[0146] Matrix splitting refers to splitting the second parity check matrix H check It is split into multiple matrices, among which at least one first parity matrix exists.
[0147] For example, the finite field GF(8) = {0,1,2,3,4,5,6,7}, that is, the finite field GF(8) has 8 elements, namely 0,1,2,3,4,5,6,7. Assume the second parity-check matrix H check The elements in the second row are 0, 1, 4, 5, 6, and 7, respectively. The second parity check matrix H... check It can be decomposed into matrices H1 and H2, where matrices H1 and H2 are Vandermonde matrices. Matrix H1 is a matrix over the linear space V1 = {0, 1}, meaning that the elements of a certain row (usually the second row) of matrix H1 are 0 and 1. Matrix H2 is a matrix over the linear space V3 = {4, 5, 6, 7}, which is the linear space V2 = {0, 1, 2, 3} shifted by 4. This is also known as the second parity check matrix H. check It can be represented as the sum of two matrices: H check =H1 + H2. Both of these decomposed matrices can be used as the first parity check matrix H.
[0148] It should be noted that the number of columns in the first parity check matrix H obtained after matrix partitioning is less than that in the second parity check matrix H. check When the first parity-check matrix H participates in the subsequent decoding process, it needs to adjust the first encoded data by splitting it into multiple subsets (each subset includes a portion of the data in the first encoded data). The multiplication operation between the second parity-check matrix and the first encoded data can be converted into multiplying the split matrix with the subsets of the first encoded data and then summing the results. That is, H check C(S) T =H1C(S)1 T +H2 C(S)2 T , where C(S)1 and C(S)2 are subsets of the first encoded data.
[0149] To give another example, in the finite field GF(8)={0,1,2,3,4,5,6,7}, suppose the second parity-check matrix H check The second row contains elements 0, 1, 2, 3, 4, and the second parity check matrix H... check Decompose the matrix H3 in the linear space V2 = {0, 1, 2, 3} and the matrix H4 in the space {4} after shifting the linear space V0 = {0} by a = 4, which is also the second parity check matrix H. check It can be represented as the sum of two matrices: H check =H3 + H4. The decomposed matrix H3 can be used as the first parity check matrix H.
[0150] Matrix completion refers to the completion of the second parity check matrix H. check Adding one or more columns of elements results in a second parity check matrix H. check This is the first parity check matrix H.
[0151] For example, the second parity check matrix H check The second row of elements is 0, 1, 4, 5, 6, 7, which is in the second parity check matrix H. check Add two columns of elements to obtain the finite field GF(2). 3 The first parity check matrix H on ).
[0152] It should be noted that the number of columns in the first parity check matrix H obtained after matrix completion is greater than that in the second parity check matrix H. check When the first parity-check matrix H participates in the subsequent decoding process, it needs to adjust the first encoded data by adding multiple symbols with a value of 0. These added symbols with a value of 0 are the symbols that need to be multiplied with the added columns of elements in the first parity-check matrix H in subsequent matrix multiplications. In this way, the result of multiplying the added symbols with a value of 0 by the added columns is zero, and it will not affect the final result.
[0153] Here's a concrete example: Suppose the first encoded data C(S) = (C0, C1, C2, C3, C4, C5), and the second parity check matrix H... check for:
[0154] For the second parity check matrix H check Perform matrix completion on the second parity-check matrix H. check By adding two columns of elements to the matrix, we obtain the first parity check matrix H, which is:
[0155] in, These two columns are the newly added elements.
[0156] The first encoded data C(S) is adjusted by padding it with zeros. The adjusted first encoded data C(S) = (C0, C1, C2, C3, C4, C5, 0, 0).
[0157] It should be noted that, for ease of explanation in this embodiment, the adjusted first encoded data C(S) is referred to as the second encoded data C(s). The second encoded data can be a subset of the first encoded data, or data obtained by padding the first encoded data with zeros.
[0158] Of course, if the second parity check matrix H check Each element belongs to the finite field GF(2). n Therefore, the second device 20 can directly transmit the second parity check matrix H. check As the second parity check matrix H. In this embodiment, the second device 20 can use the first parity check matrix H for decoding. Subsequent steps focus on the operations involving the first parity check matrix H. Regarding the second parity check matrix H... check The matrices that cannot be used as the first parity check matrix after being split can be used in the calculation using existing decoding methods (such as a subset of the first encoded data). The calculation method for this part is not limited in the embodiments of this application.
[0159] The second encoded data C(s) that subsequently participates in the operation with the first parity check matrix H can be the first encoded data C(S) padded with zeros (that is, one or more zeros are added to the first encoded data, corresponding to the operation of the second parity check matrix H). check In the case of matrix completion, it can also be a subset of the first encoded data C(S) (that is, a part of the first encoded data, corresponding to the second parity check matrix H). check In the case of matrix splitting, the first encoded data C(S) received from the first device 10 (corresponding to the second parity check matrix H) can also be used. check (The case where H is the first parity check matrix).
[0160] The first verification matrix H obtained by the second device 20 is:
[0161] H is a matrix with r rows and n columns, and each element in H belongs to the finite field GF(2). n In, that is h i,j This is used to verify the element in the i-th row and j-th column of the matrix. i is an integer not less than 0 and less than r. j is an integer not less than 0 and less than n.
[0162] In this embodiment of the application, for a target row (such as the second row of the first check matrix H) among multiple rows of elements in the first check matrix H, the element α in the j-th column of the target row... j satisfy:
[0163] Where a is a set value, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a finite field GF(2) n The previous set of linearly independent elements.
[0164] In the foregoing description, the first parity check matrix or the second parity check matrix H is used. check The distribution of elements in the Bank of China will be used as an example for illustration. In practical applications, the first parity check matrix or the second parity check matrix H... check The elements of the Bank of China do not satisfy the aforementioned distribution, but the first parity check matrix or the second parity check matrix H... check The elements in the middle column satisfy the aforementioned distribution.
[0165] In other words, the second parity check matrix H check The elements in the target column may be some elements of the linear space, or they may be all elements of the linear space. If the second check matrix H check The elements in the target column are a subset of elements in the linear space, and the second parity check matrix H check The first parity check matrix H can be obtained by matrix splitting (i.e., decomposing into submatrices) or matrix padding (such as adding one or more rows of elements to the second parity check matrix).
[0166] For a target column (such as the second column of the first check matrix H) among multiple columns, the element α in the j-th row of that target column... j satisfy:
[0167] Where a is a set value, (j0,j1,…,j m-1) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a finite field GF(2) n The previous set of linearly independent elements.
[0168] After obtaining the first parity check matrix H, the second device 20 can decode the second encoded data C(s). The decoding process mainly includes four steps, which are:
[0169] Step 1: Calculate the checksum.
[0170] In this section, the second device 20 can use the first check matrix H to determine whether there are errors in the second encoded data C(s), that is, to determine whether the second encoded data C(s) has changed during transmission. If it is determined that there are errors in the second encoded data C(s), then steps three to four are executed. If it is determined that there are no errors in the second encoded data C(s), then data s is obtained from the second encoded data C(s).
[0171] Step 2: Solve the key equations.
[0172] If an error is determined in the second encoded data C(s), the erroneous data bit or check bit in the second encoded data C(s) is identified by solving the key equation. For ease of explanation, the erroneous data bit or check bit is referred to as the error bit. In step two, a vector related to the error bit is output; for ease of explanation, this vector is referred to as the first vector.
[0173] Step 3: Money Search
[0174] Step two alone cannot definitively identify the error position. It is necessary to solve the equations related to the first vector to obtain the error position; the roots of the equations are the error positions. Solving the equations can be transformed into solving the product of the first vector and a submatrix of the first parity-check matrix H. For ease of explanation, the submatrix of the first parity-check matrix H multiplied by the first vector is referred to as the first submatrix.
[0175] Step 4: Calculate the Forney value.
[0176] After identifying the error bits in the second encoded data C(s), it is necessary to determine the correct values at those error bits. Step four also involves solving an equation, which is obtained from the check equation and the equation related to the first vector. Solving this equation can also be converted into solving the product of the third vector and a submatrix of the first check matrix H (this submatrix is called the third submatrix).
[0177] In this embodiment of the application, since the first parity check matrix H has certain characteristics, when performing steps one to four, the result can be quickly obtained by decomposing the first parity check matrix H (or the submatrix of the first parity check matrix H). The decoding process will be explained below in conjunction with steps 304 to 306.
[0178] Step 304: The second device 20 uses the first check matrix H to check the first encoded data C(S) and determines that there are error bits in the first encoded data C(S). This step corresponds to the aforementioned step one.
[0179] The relationship between the first encoded data C(S) and the second encoded data C(s) can be found in the foregoing explanation. The decoding process of the first encoded data C(S) can be transformed into the decoding process of the second encoded matrix C(s).
[0180] On the decoding side (e.g., the second device 20 side), when performing verification, the second device 20 calculates the verification between the first check matrix H and the second encoded data C(s). The first check matrix H and the correct encoded data C(s) satisfy the following:
[0181] HC(s) T =0
[0182] Wherein, C(s) T It is the transpose of C(s).
[0183] The second device, 20, first calculates HC(s). T In calculating HC(s) T At that time, the second device 20 can decompose the first parity check matrix H, and the decomposition of the first parity check matrix H satisfies: H=H′×P
[0184] Here, P is an n-column Boolean matrix, that is, P is a 0-1 matrix. That is, the first parity check matrix H is equal to the product of the first matrix H′ and the first Boolean matrix P. The number of non-zero elements in the first parity check matrix H is less than the number of non-zero elements in the first matrix H′.
[0185] In some scenarios, the first parity check matrix H and the first matrix H′ can satisfy: x is a set value, where x is a number greater than 1. x is related to the performance of the second device 20; if the performance of the second device 20 is high, the value of x is high; if the performance of the second device 20 is low, the value of x is low. Compared to the first parity check matrix H, the first matrix H′ is a sparser row-coordinated matrix.
[0186] After decomposing the first parity-check matrix H, we obtain a first matrix H′ with fewer non-zero elements and a first Boolean matrix P with a simpler structure. Then, we perform the operation HC(s). TConvert to H′×P×C(s) T .
[0187] The second device 20 calculates H′×P×C(s). T We can first calculate P×C(s). T Since P is a Boolean matrix, calculate P×C(s). T The process mainly involves some simple XOR operations, which are computationally efficient. After calculating P×C(s)... T Then, the intermediate data M(s) is obtained. T Then calculate H′×M(s). T Since the first matrix H′ has fewer non-zero elements, H′×M(s) is calculated. T It mainly involves a small number of multiplication operations (each non-zero element represents one multiplication operation) and some simple XOR operations. Therefore, the operation HC(s) T Convert to H′×P×C(s) T Afterwards, the number of multiplication operations is reduced, which can improve the computational efficiency of the verification equation.
[0188] Step 305: The second device 20 calculates the first vector. This step corresponds to step two mentioned above. In this step, the second device 20 initially determines the error bit, and the information of the error bit is implicit in the first vector. middle.
[0189] Step 306: The second device 20, according to the first vector Locate the error bit within the second encoded data C(s). This process is equivalent to solving the first polynomial equation. The root. Step 306 is the aforementioned step three money search, in which the second device 20 needs to explicitly locate the error bit. The first polynomial equation is the equation related to the first vector.
[0190] Solving the first polynomial equation The process is to solve for the first vector. With the first submatrix The product of, that is in It is a submatrix of the first parity-check matrix H, and this first submatrix The first H of the first parity check matrix OK.
[0191] When the second device 20 executes step 306, it processes the first sub-matrix. Decompose the first submatrix Transform it into W×Q, where Q is an n-column Boolean matrix, referred to here as the second Boolean matrix. The number of non-zero elements in the second matrix W is less than that in the first submatrix. The number of non-zero elements in the array.
[0192] Therefore, the first vector is calculated. With the first submatrix When multiplying, we can calculate the product of the first vector, the second matrix W, and the second Boolean matrix Q, that is:
[0193] S1, in calculation First calculate Since the number of non-zero elements in W is small, therefore, in calculating At this time, only a small number of multiplications and some simple XOR operations need to be calculated.
[0194] S2, in obtaining (δ0,δ1,…,δ) m After that, calculate (δ0,δ1,…,δ) m )×Q, where Q is a Boolean matrix, in calculating (δ0,δ1,…,δ m )×Q only requires some simple XOR operations.
[0195] It should be noted that, in practical applications, the second device 20 can transform the first polynomial equation. By substituting or transforming variables without affecting the solution, the polynomial can be transformed into a linear polynomial equation (or a linear polynomial with a constant term), or a combination of multiple linear polynomial equations (or multiple linear polynomials with a constant term). A linearized polynomial equation refers to a monomial whose degree is a power of 2 (e.g., 2^2). 0 2 1 2 2 ...) constitutes a polynomial, or contains multiple polynomials whose monomials are powers of 2, the proportion of which is greater than that of the first proportion of polynomials.
[0196] For example, suppose the first polynomial equation is x 4 +ax 3 +bx 2 The first polynomial equation can be obtained by +cx+d. Perform variable substitution; after the substitution, the whole is the same as y. 4 The product polynomial will become:
[0197] Thus, compared with the transformed first polynomial equation, the first polynomial equation before the transformation has four monomials and one constant term, while the transformed first polynomial equation has three monomials and one constant term.
[0198] Through polynomial transformation, the first polynomial equation Solving for the roots involves converting the equation into a polynomial equation. Solving for the root.
[0199] From the perspective of matrix multiplication, the first vector can be transformed through variable substitution or transformation. With the first submatrix The product is transformed into a second vector and a second submatrix. The product of the two submatrices. This is a submatrix of the first parity check matrix H, and this second submatrix... It can also be the first submatrix The submatrix.
[0200] Through variable substitution or transformation, the number of non-zero elements in the second vector is less than the number of non-zero elements in the first vector. Second submatrix It can be a Moore matrix, or a matrix close to a Moore matrix, i.e., a second submatrix. The exponents of each element in the matrix are powers of 2, or the second submatrix. The proportion of elements whose powers are 2 is greater than the second proportion.
[0201] so, Convert to
[0202] With the first vector In comparison, the second vector (σ′0,σ′1,σ′2,…) contains fewer non-zero elements, which can further reduce… The number of multiplication operations. Second submatrix. It can be represented as Second submatrix It has fewer rows.
[0203] For the second submatrix The second device 20 can enable the second sub-matrix This is transformed into the product of the third matrix J and the third Boolean matrix O, which is also the third submatrix. It equals the product of the third matrix and the third Boolean matrix. The number of non-zero elements in the third matrix J is less than that in the second submatrix. The number of non-zero elements. The third Boolean matrix O is a Boolean matrix; here, for ease of distinction, Boolean matrix O is referred to as the third Boolean matrix.
[0204] By substituting variables, the number of monomials in the first polynomial equation can be reduced, thus improving the computational efficiency. At that time, it is only necessary to calculate the second vector and the second submatrix. The product of these can reduce multiple multiplication operations and improve the computational efficiency of the search. Furthermore, for the second submatrix... By using matrix decomposition, the second submatrix Converting to the product of a third matrix J with fewer non-zero elements and a third Boolean matrix O further reduces the number of multiplication and XOR operations, thus further ensuring the efficiency of decoding.
[0205] Step 307: The second device 20 corrects the data in the erroneous bits. This step corresponds to step four mentioned above. The essence of the Forney value calculation process is solving the second polynomial equation. The second polynomial involved in the Forney value calculation is determined based on the verification equation and the first polynomial equation in step 306. For example, the second polynomial equation is a polynomial equation determined by the sum of the verification equation and the first polynomial equation. The second polynomial equation is...
[0206] The process of solving the second polynomial equation in the Forney value calculation is transformed into solving the third vector. Submatrix of the first parity check matrix H (In this embodiment, the submatrix that is multiplied with the third vector is called the third submatrix.) The calculation process of the product. Third vector With the third submatrix The calculation process of the product is the same as that of the first vector. With the first submatrix The calculation process for the product is implemented in a similar way; that is, when the second device 20 executes step 307, it can perform calculations on the third submatrix. The decomposition is performed, resulting in the product of a fourth matrix with fewer non-zero elements and a fourth Boolean matrix. The second device 20 can also perform a polynomial transformation on the second polynomial method to transform the third submatrix... The matrix is converted into a Mohr's matrix or a matrix close to a Mohr's matrix (for a detailed explanation of Mohr's matrices and matrices close to Mohr's matrices, please refer to the previous explanation; it will not be repeated here). Then, the converted matrix is decomposed into the product of a matrix with fewer non-zero elements and a Boolean matrix. The specific implementation process can be found in the explanation of step 306 above; it will not be repeated here.
[0207] It is worth noting that step 301 mentioned above only describes the encoding method of obtaining the first encoded data C(S) by encoding the data s using a generator matrix. In fact, in practical applications, the first device 10 can also use the second parity check matrix H. CHECK The sequence s is encoded. The specific principle is as follows:
[0208] Assuming the set of data consisting of check bits required for encoding is p, then H CHECK ×(s, p) T =0. For H CHECK The data is split into columns, resulting in a matrix H with the same number of columns as the data s. CHECK_1 And a matrix H with the same number of columns as the sequence p. CHECK_2 H CHECK_1 and H CHECK_2 The second parity check matrix H CHECK The submatrix.
[0209] It can be determined that: H CHECK ×(s, p) T =(H CHECK_1 H CHECK_2 )×(s,p) T =0.
[0210] So,
[0211] The encoding process is to obtain the data set p. Therefore, when performing step 301, the second parity check matrix H can be used. CHECK The two submatrices are used to obtain the parity bits, which are the data sets p. After concatenating the data s with the data set p, the first encoded data C(s) can be obtained.
[0212] In calculating p, H needs to be calculated. CHECK_1 ×s, for H CHECK_1 The processing method is the same as the aforementioned second verification matrix H CHECK The processing method is similar, that is, according to H CHECK_1 The third parity check matrix H is obtained. This matrix contains target rows or target columns, and the elements of these target rows or columns are all elements in a multidimensional space. The definition of multidimensional space can be found in the preceding explanation and will not be repeated here. The specific representation of the elements in the target rows or columns can be found in the relevant explanation of the elements in the first parity check matrix H.
[0213] Then, the first device 10 decomposes the third parity check matrix H into the product of a matrix with fewer non-zero elements and a Boolean matrix (e.g., ...), to reduce the computation time of H. CHECK_1 Multiplication and XOR operations in the ×s process.
[0214] It should be noted that, according to H CHECK_1 The obtained third parity check matrix H may be the first parity check matrix H, or it may be a matrix similar to the first parity check matrix H, such as a submatrix of the first parity check matrix H. This application does not limit the specific form of the third parity check matrix H. The first device 10 can obtain a third parity check matrix with certain characteristics from the second parity check matrix in a similar manner, and use matrix decomposition to decompose the third parity check matrix for matrix operations, thereby reducing the number of multiplication and XOR operations during matrix operations.
[0215] As can be seen from the decoding process of the second device 20 mentioned above, the second device 20 decodes the first parity check matrix H and its sub-matrices (such as the first sub-matrices). Second submatrix Third submatrix The decomposition of the first parity check matrix simplifies the calculation process of the parity check matrix, the money search, and the Forney value calculation. The following examples illustrate the specific implementation process of the decomposition of the first parity check matrix and its submatrices:
[0216] Example 1: The codeword of the (9,7)RS code consists of 7 data symbols (data symbols can also be called data bits) and 2 check symbols (check symbols can also be called check bits). The 7 data symbols are a1, a2, a3, a4, a5, a6, and a7.
[0217] Each symbol (such as a data symbol or a check symbol) consists of 3 bits. The first check symbol P1 is obtained by summing the 7 data symbols, that is: P1 = a2 + a3 + a4 + a5 + a6 + a7
[0218] The second check symbol P2 satisfies: P2 = a1 + 2a2 + 3a3 + 4a4 + 5a5 + 6a6 + 7a7
[0219] Assuming that the first encoded data received by the second device 20 is (a′1,a′2,a′3,a′4,a′5,a′6,a′7,p′1,p′2), the second device 20 first executes the checksum and calculates the following check equations: s1=a′1+a′2+a′3+a′4+a′5+a′6+a′7+p′1; s2=a′1+2a′2+3a′3+4a′4+5a′5+6a′6+7a′7+p′2.
[0220] That is, calculation:
[0221] If s1 = s2 = 0, then it is determined that the first encoded data has no error; otherwise, continue with the remaining steps (i.e., solving the key equation, money search, and Forney value calculation).
[0222] In the process of solving the verification equation, the second verification matrix H check Perform matrix splitting:
[0223] Among them, the first verification matrix Decompose the first parity check matrix H.
[0224] That is, the first parity check matrix H can be decomposed into:
[0225] The first parity-check matrix H is transformed into a matrix with fewer non-zero elements. and the product of Boolean matrices
[0226] The calculation of the verification equation is converted to:
[0227] First calculate We obtain B1 = X5 + X6, B2 = X6 + p′2, B3 = X3 + X4, B4 = a′4 + a′5 + a′6 + a′7, where X1 = p′1 + a′4, X2 = a′1 + a′5, X3 = a′2 + a′6, X4 = a′3 + a′7, X5 = X1 + X3, and X6 = X2 + X4.
[0228] The verification equations are: s1 = B1; s2 = B2 + 2B3 + 4B4.
[0229] The calculation of the checksum of the (9,7) RS code involves 6 multiplications and 14 XOR operations. This improves the computational efficiency of the checksum. If the calculation result of the checksum indicates that there are error bits in the coding training, steps such as key equation calculation and Qian search can be performed. Similarly, in the Qian search process, matrix decomposition can be used to decompose the submatrices of the first checksum matrix to reduce the number of multiplication operations.
[0230] Example 2: For the [64,60] RS code in the finite field GF(256), the first parity check matrix H can be constructed as follows
[0231] The following explains the calculation of the checksum and the money search process.
[0232] 1) Calculation of checksum.
[0233] The first parity check matrix H is decomposed as follows: H = H′ × P, where H′ is a 4×22 matrix (4 rows and 22 columns) and P is a 22×64 Boolean matrix (22 rows and 64 columns).
[0234] The first parity check matrix H is decomposed into H′ and P′. H′ has fewer non-zero elements, so fewer multiplication operations are required during calculation. P′ is a Boolean matrix, which means that a simple XOR operation is needed during calculation. This reduces the complexity of parity check calculation and improves decoding efficiency.
[0235] 2) Money Search.
[0236] First, the first submatrix It can be decomposed into: That is, the first submatrix Transform into a matrix with fewer non-zero elements. and simple Boolean matrices The Qian search algorithm can reduce the number of multiplication and XOR operations during the calculation process, thereby improving the computational efficiency of the Qian search algorithm and accelerating the decoding speed.
[0237] Example 3: For the [128,120] RS code over the finite field GF(256), the first parity check matrix H can be constructed as follows:
[0238] The following explains the calculation of the checksum and the money search process.
[0239] 1) Calculation of checksum.
[0240] The first parity check matrix H is decomposed as follows: H = H′ × P, where H′ is an 8×64 matrix (8 rows and 64 columns) and P is a 64×128 Boolean matrix (64 rows and 128 columns).
[0241] 2) Money Search.
[0242] The first polynomial equation x 4 +ax 3 +bx 2 +cx+d passes Variable substitution and multiplication by y 4 It can be transformed into:
[0243] The original first polynomial equation x 4 +ax 3 +bx 2 The assignment +cx+d is equivalent to multiplying (1, a, b, c, d) by the first submatrix. After the transformation, the new polynomial The assignment on is equivalent to multiplying the second vector (σ′0,σ′1,σ′2,σ′3) by the second submatrix. Second submatrix It can be broken down into:
[0244] Second submatrix Transform into a matrix with fewer non-zero elements. and Boolean matrix The product of . A matrix with fewer non-zero elements. This indicates that fewer multiplication operations are performed during the money search process; Boolean matrix. The operations involved only involve simple XOR operations, and there are many similar parts in the Boolean matrix. During the Boolean matrix operation, some operation results can be reused, which further reduces the number of XOR operations, improves the efficiency of Qian search calculation, and achieves the effect of accelerating decoding.
[0245] Based on the same inventive concept as the method embodiments, this application also provides an encoding device, which is deployed in a first device 10 and is used to execute the method executed by the first device 10 in the above method embodiments. As shown in FIG4, the encoding device 400 includes an encoding module 401 and a transmitting module 402. Specifically, in the encoding device 400, the modules are connected through a communication path.
[0246] Encoding module 401 is used to: obtain first encoded data based on a first parity check matrix and first data to be encoded, wherein the first encoded data is a codeword of an RS code; the elements of the target row or target column in the first parity check matrix include all elements in a multidimensional space, wherein the multidimensional space is a linear space of a finite field or a translation of a linear space of a finite field.
[0247] The sending module 402 is used to send the first encoded data.
[0248] As one possible implementation, the element α in the j-th column of the target row in the first verification matrix j satisfy:
[0249] Where a is a constant, and a is an element in the finite field (j0,j1,…,j...). m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0250] As one possible implementation, the element α in the j-th row of the target column of the first verification matrix j satisfy:
[0251] Where a is a constant, and a is an element in the finite field (j0,j1,…,j...). m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0252] As one possible implementation, the first parity check matrix is equal to the product of the first matrix and the first Boolean matrix, and the number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix.
[0253] As one possible implementation, the elements in the target row or target column of the first matrix are a set of linearly independent elements in a multidimensional space.
[0254] Based on the same inventive concept as the method embodiments, this application also provides a decoding device, which is deployed in a second device 20 and is used to execute the method executed at the second device 20 in the above method embodiments. As shown in FIG5, the decoding device 500 includes an acquisition module 501 and a verification module 502. Specifically, in the decoding device 500, the modules are connected through a communication path.
[0255] The acquisition module 501 is used to acquire the first encoded data.
[0256] The verification module 502 is used to verify the first coded data using the first verification matrix, wherein the elements of the target row or target column in the first verification matrix include all elements in the multidimensional space, and the multidimensional space is a linear space V of a finite field or a translation of the linear space V of a finite field.
[0257] As one possible implementation, the acquisition module 501 obtains the first check matrix based on the second check matrix, wherein the first encoded data is obtained based on the second check matrix.
[0258] As one possible implementation, the element α in the j-th column of the target row in the first verification matrix j satisfy:
[0259] Where a is a constant, and a is an element in the finite field (j0,j1,…,j...). m-1 ) is j∈[0,2 mThe binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0260] As one possible implementation, the element α in the j-th row of the target column of the first verification matrix j satisfy:
[0261] Where a is a constant, and a is an element in the finite field (j0,j1,…,j...). m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on a linear space V, where V is a finite field GF(2). n The subspace of ), where m is a positive integer not greater than n.
[0262] As one possible implementation, when the verification module 502 verifies the first coded data using the first verification matrix, it calculates the product of the first verification matrix and the second coded data, wherein the second coded data is determined based on the first coded data;
[0263] The verification module 502 calculates the product of the first verification matrix and the second encoded data by: calculating the product of the first matrix, the first Boolean matrix, and the second encoded data.
[0264] The product of the first matrix and the first Boolean matrix is the first parity check matrix, and the number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix.
[0265] As one possible implementation, the elements in the target row or target column of the first matrix are a set of linearly independent elements in a multidimensional space.
[0266] As one possible implementation, the second encoded data is a subset of the first encoded data or is data obtained by padding the first encoded data with zeros.
[0267] As one possible implementation, the decoding device 500 also includes a search module 503. If the first encoded data fails verification, the search module 503 performs a money search on the first vector. The money search includes calculating the product of the first vector, the second matrix, and the second Boolean matrix.
[0268] The product of the second matrix and the second Boolean matrix is the first submatrix, which is a submatrix of the first parity check matrix. The number of non-zero elements in the second matrix is less than the number of non-zero elements in the first submatrix.
[0269] As one possible implementation, the elements in the target row or target column of the second matrix are a set of linearly independent elements in a multidimensional space.
[0270] As one possible implementation, if the first encoded data fails verification, the search module 503 performs a money search on the first vector. The money search includes calculating the product of the first vector and the first submatrix.
[0271] The search module 503 converts the product of the first vector and the first submatrix into the product of the second vector and the second submatrix, wherein the second submatrix is a submatrix of the first check matrix, and the proportion of elements in the second submatrix whose powers of 2 are greater than a preset proportion.
[0272] Search module 503 calculates the product of the second vector, the third matrix, and the third Boolean matrix, where the second submatrix is equal to the product of the third matrix and the third Boolean matrix, and the number of non-zero elements in the third matrix is less than the number of non-zero elements in the second submatrix.
[0273] As one possible implementation, the second submatrix is a Moore matrix.
[0274] As one possible implementation, the elements in the target row or target column of the third matrix are a set of linearly independent elements in a multidimensional space.
[0275] As one possible implementation, the decoding device 500 also includes a calculation module 504. If the first encoded data verification fails, the calculation module 504 performs a Forney value calculation on the third vector. The Forney value calculation includes calculating the product of the third vector, the fourth matrix, and the fourth Boolean matrix.
[0276] Among them, the product of the fourth matrix and the fourth Boolean matrix is equal to the third submatrix, the third submatrix is a submatrix of the first parity check matrix, and the number of non-zero elements in the fourth matrix is less than the number of non-zero elements in the third submatrix.
[0277] As one possible implementation, the elements in the target row or target column of the fourth matrix are a set of linearly independent elements in a multidimensional space.
[0278] The module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of this application can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0279] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a terminal device (which may be a personal computer, mobile phone, or network device, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0280] This application also provides a computing device 600 as shown in FIG6. The computing device 600 includes a bus 601, a processor 602, a communication interface 603, and a memory 604. The processor 602, the memory 604, and the communication interface 603 communicate with each other via the bus 601.
[0281] The processor 602 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0282] The memory 604 can be dynamic random access memory (DRAM). Besides DRAM, the memory 604 can also be other types of random access memory, such as static random access memory (SRAM). Alternatively, the memory 604 can also be read-only memory (ROM). For example, a read-only memory could be programmable read-only memory (PROM) or erasable programmable read-only memory (EPROM). The memory 604 can also be flash memory, hard disk drive (HDD), or solid-state drive (SSD).
[0283] The memory 604 stores computer program instructions. The processor 602 invokes these computer program instructions to execute the steps performed by the second device 20 in the method described in FIG3, or invokes the computer program instructions to execute the steps performed by the first device 10 in the method described in FIG3. The memory 604 may also include other software modules required for running processes, such as an operating system (e.g., multiple modules in the encoding device 400 or decoding device 500). The operating system may be LINUX. TM UNIX TM WINDOWS TM wait.
[0284] This application also provides a computing device system, which includes at least one computing device 700 as shown in FIG7. The computing device 700 includes a bus 701, a processor 702, a communication interface 703, and a memory 704. The processor 702, the memory 704, and the communication interface 703 communicate with each other via the bus 701. At least one computing device 700 in the computing device system communicates with each other via a communication path.
[0285] The specific types of processor 702 and memory 704 can be found in the relevant descriptions of processor 602 and memory 604, and will not be repeated here. Processor 702 calls computer program instructions stored in memory 704 to execute some or all of the steps performed by the second device 20 in the method described in FIG3. Alternatively, processor 702 calls computer program instructions stored in memory 704 to execute some or all of the steps performed by the first device 10 in the method described in FIG3. The memory may also include other software modules required for running processes, such as an operating system. The operating system may be LINUX. TM UNIX TM WINDOWS TM wait.
[0286] At least one computing device 700 in the computing device system establishes communication with each other through a communication network, and each computing device 700 runs multiple modules in the encoding device 400. And / or
[0287] At least one computing device 700 in the computing device system establishes communication with each other through a communication network, and multiple modules in the decoding device 500 run on each computing device 700.
[0288] The descriptions of the processes corresponding to the above-mentioned figures each have their own emphasis. For parts of a process that are not described in detail, please refer to the relevant descriptions of other processes.
[0289] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. A computer program product includes computer program instructions, which, when loaded and executed on a computer, generate entirely or partially the flow or function described in FIG. 3 of this embodiment.
[0290] The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., SSD).
[0291] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A decoding method, characterized in that, The method includes: Obtain the first encoded data; The first coded data is verified using a first check matrix, wherein the elements of the target row or target column in the first check matrix include all elements in a multidimensional space, the multidimensional space being a linear space V of a finite field or a translation of a linear space V of a finite field.
2. The method as described in claim 1, characterized in that, The method further includes: The first check matrix is obtained based on the second check matrix, wherein the first encoded data is obtained based on the second check matrix.
3. The method as described in claim 1 or 2, characterized in that, The element α in the j-th column of the target row j satisfy: Where a is a constant, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on the linear space V, where the linear space V is a finite field GF(2). n The subspace of ).
4. The method as described in claim 1 or 2, characterized in that, The element α in the j-th row of the target column j satisfy: Where a is a constant, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on the linear space V, where the linear space V is a finite field GF(2). n The subspace of ).
5. The method according to any one of claims 1 to 4, characterized in that, The step of verifying the first encoded data using the first check matrix includes: Calculate the product of the first parity check matrix and the second encoded data, wherein the second encoded data is determined based on the first encoded data; Calculating the product of the first parity check matrix and the second encoded data includes: calculating the product of the first matrix, the first Boolean matrix, and the second encoded data; The product of the first matrix and the first Boolean matrix is the first parity check matrix, and the number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix.
6. The method as described in claim 5, characterized in that, The elements in the target row or target column of the first matrix are a set of linearly independent elements in the multidimensional space.
7. The method as described in claim 5 or 6, characterized in that, The second encoded data is a subset of the first encoded data or is data obtained by padding the first encoded data with zeros.
8. The method according to any one of claims 1 to 7, characterized in that, The method further includes: If the first encoded data fails verification, a money search is performed on the first vector, the money search including calculating the product of the first vector, the second matrix, and the second Boolean matrix; Wherein, the product of the second matrix and the second Boolean matrix is the first submatrix, the first submatrix is a submatrix of the first parity check matrix, and the number of non-zero elements in the second matrix is less than the number of non-zero elements in the first submatrix.
9. The method as described in claim 8, characterized in that, The elements in the target row or target column of the second matrix are a set of linearly independent elements in the multidimensional space.
10. The method according to any one of claims 1 to 7, characterized in that, The method further includes: If the first encoded data fails verification, a money search is performed on the first vector, the money search including calculating the product of the first vector and the first submatrix; The product of the first vector and the first submatrix is converted into the product of the second vector and the second submatrix, wherein the second submatrix is a submatrix of the first check matrix, and the proportion of elements in the second submatrix whose powers of 2 are greater than a preset proportion. Calculate the product of the second vector, the third matrix, and the third Boolean matrix, wherein the second submatrix is equal to the product of the third matrix and the third Boolean matrix, and the number of non-zero elements in the third matrix is less than the number of non-zero elements in the second submatrix.
11. The method as described in claim 10, characterized in that, The second submatrix is the Moore matrix.
12. The method according to any one of claims 1 to 11, characterized in that, The method further includes: If the first encoded data fails verification, Forney value calculation is performed on the third vector. The Forney value calculation includes calculating the product of the third vector, the fourth matrix, and the fourth Boolean matrix. Wherein, the product of the fourth matrix and the fourth Boolean matrix is equal to the third submatrix, the third submatrix is a submatrix of the first parity check matrix, and the number of non-zero elements in the fourth matrix is less than the number of non-zero elements in the third submatrix.
13. The method as described in claim 12, characterized in that, The elements in the target row or target column of the fourth matrix are a set of linearly independent elements in the multidimensional space.
14. A decoding device, characterized in that, The device includes: The acquisition module is used to acquire the first encoded data; The verification module is used to verify the first encoded data using a first verification matrix, wherein the elements of the target row or target column in the first verification matrix include all elements in a multidimensional space, the multidimensional space being a linear space V of a finite field or a translation of a linear space V of a finite field.
15. The apparatus as claimed in claim 14, characterized in that, The acquisition module is also used for: The first check matrix is obtained based on the second check matrix, wherein the first encoded data is obtained based on the second check matrix.
16. The apparatus as claimed in claim 14 or 15, characterized in that, The element α in the j-th column of the target row j satisfy: Where a is a constant, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on the linear space V, where the linear space V is a finite field GF(2). n The subspace of ).
17. The apparatus as claimed in claim 14 or 15, characterized in that, The element α in the j-th row of the target column j satisfy: Where a is a constant, (j0,j1,…,j m-1 ) is j∈[0,2 m The binary representation of ω0, ω1, ..., ω1] m-1 It is a set of linearly independent elements on the linear space V, where the linear space V is a finite field GF(2). n The subspace of ).
18. The apparatus according to any one of claims 14 to 17, characterized in that, The verification module is used for: Calculate the product of the first parity check matrix and the second encoded data, wherein the second encoded data is determined based on the first encoded data; Calculating the product of the first parity check matrix and the second encoded data includes: calculating the product of the first matrix, the first Boolean matrix, and the second encoded data; The product of the first matrix and the first Boolean matrix is the first parity check matrix, and the number of non-zero elements in the first matrix is less than the number of non-zero elements in the first parity check matrix.
19. The apparatus as claimed in claim 18, characterized in that, The elements in the target row or target column of the first matrix are a set of linearly independent elements in the multidimensional space.
20. The apparatus as claimed in claim 18 or 19, characterized in that, The second encoded data is a subset of the first encoded data or is data obtained by padding the first encoded data with zeros.
21. The apparatus according to any one of claims 14 to 20, characterized in that, The device further includes a search module, the search module being used for: If the first encoded data fails verification, a money search is performed on the first vector, the money search including calculating the product of the first vector, the second matrix, and the second Boolean matrix; Wherein, the product of the second matrix and the second Boolean matrix is the first submatrix, the first submatrix is a submatrix of the first parity check matrix, and the number of non-zero elements in the second matrix is less than the number of non-zero elements in the first submatrix.
22. The apparatus as claimed in claim 21, characterized in that, The elements in the target row or target column of the second matrix are a set of linearly independent elements in the multidimensional space.
23. The apparatus according to any one of claims 14 to 20, characterized in that, The device further includes a search module, the search module being configured to: If the first encoded data fails verification, a money search is performed on the first vector, the money search including calculating the product of the first vector and the first submatrix; The product of the first vector and the first submatrix is converted into the product of the second vector and the second submatrix, wherein the second submatrix is a submatrix of the first check matrix, and the proportion of elements in the second submatrix whose powers of 2 are greater than a preset proportion. Calculate the product of the second vector, the third matrix, and the third Boolean matrix, wherein the second submatrix is equal to the product of the third matrix and the third Boolean matrix, and the number of non-zero elements in the third matrix is less than the number of non-zero elements in the second submatrix.
24. The apparatus as claimed in claim 23, characterized in that, The second submatrix is the Moore matrix.
25. The apparatus according to any one of claims 14 to 24, characterized in that, The device further includes a computing module, the computing module being used for: If the first encoded data fails verification, Forney value calculation is performed on the third vector. The Forney value calculation includes calculating the product of the third vector, the fourth matrix, and the fourth Boolean matrix. Wherein, the product of the fourth matrix and the fourth Boolean matrix is equal to the third submatrix, the third submatrix is a submatrix of the first parity check matrix, and the number of non-zero elements in the fourth matrix is less than the number of non-zero elements in the third submatrix.
26. The apparatus as claimed in claim 25, characterized in that, The elements in the target row or target column of the fourth matrix are a set of linearly independent elements in the multidimensional space.
27. A computing device, characterized in that, The computing device includes a processor and memory; The memory is used to store computer program instructions; The processor executes computer program instructions in the memory to perform the method as described in any one of claims 1 to 13.
28. A computer-readable storage medium, characterized in that, When the computer-readable storage medium is executed by a computing device, the computing device performs the method according to any one of claims 1 to 13.
