LDPC coding method and device, network equipment and storage medium

By using storage and calculation integrated array technology for LDPC coding in the 5G base station, and using the cross array to achieve matrix-vector multiplication, the problems of insufficient computing power, low coding efficiency and high power consumption are solved, and the computing performance and network depth of the 5G base station are improved. Fusion.

CN118740168AActive Publication Date: 2024-10-01CHINA MOBILE COMM LTD RES INST +1

Patent Information

Application Number
CN202310326586.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

LDPC coding in 5G base stations has the problems of insufficient computing power, low coding efficiency and high power consumption, making it difficult to meet the needs for large bandwidth and high-speed data transmission.

Method used

Adopting storage and calculation integrated array technology based on LDPC check matrix, matrix-vector multiplication is realized through cross array, which improves coding computing power and coding efficiency, reduces dependence on memory, and reduces power consumption.

Benefits of technology

It effectively improves the computing power and coding efficiency of LDPC coding, solves the problem of high power consumption, and improves the computing performance and deep network integration of 5G base stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740168A_ABST
    Figure CN118740168A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an LDPC (Low Density Parity Check) coding method and device, network equipment and a storage medium. The method comprises the following steps: performing digital-to-analog conversion on to-be-coded information to obtain voltage coded data of the to-be-coded information; according to an LDPC check matrix and the voltage coding data, calculating by using a storage and calculation integrated array to obtain check data for coding the to-be-coded information; performing binary parameter mapping on the check data to obtain a check code corresponding to the to-be-coded information; and according to the to-be-coded information and the check code, generating LDPC coded data of the to-be-coded information. By adopting the method, based on the LDPC check matrix, LDPC coding is carried out by using the storage and calculation integrated array, a large number of model parameters do not need to be repeatedly read from a memory in the whole operation process, the coding calculation power and the coding efficiency can be effectively improved, and the problem of relatively high power consumption existing in LDPC coding in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an LDPC encoding method, device, network equipment and storage medium. Background Art

[0002] Communication coding and decoding is an important part of wireless communication. The application of communication coding and decoding can effectively improve the quality of signal transmission. Compared with 4G, 5G can greatly increase the data transmission rate to about 10Gb / s, so it puts forward higher requirements for channel coding technology. Since the performance of Low Density Parity Check Code (LDPC) is close to the Shannon limit, it is selected as the 5G communication coding and decoding technology for channel coding.

[0003] However, the chips in current 5G base stations are based on the "von Neumann" architecture with separate storage units and computing units. In large-bandwidth, high-speed scenarios, the transmission and processing of massive amounts of data, LDPC communication encoding and decoding tasks have problems such as insufficient computing power, low coding efficiency, and high power consumption. Therefore, it is urgent to make efforts in both computing performance and autonomous controllability, build a new domestic computing power technology ecosystem, improve the LDPC coding capabilities of 5G base stations, improve the computing performance of base station equipment, and promote the deep integration of computing power and networks. Summary of the invention

[0004] The technical solution of the present invention aims to provide an LDPC coding method, apparatus, network equipment and storage medium, which are used to solve the problems of insufficient computing power, low coding efficiency and high power consumption in the prior art LDPC coding.

[0005] The embodiment of the present invention provides a low-density parity check code LDPC encoding method, which includes:

[0006] Performing digital-to-analog conversion on the information to be encoded to obtain voltage encoding data of the information to be encoded;

[0007] According to the LDPC check matrix and the voltage coded data, a calculation is performed using a storage-computation integrated array to obtain check data for encoding the information to be encoded;

[0008] Performing binary parameter mapping on the verification data to obtain a verification code corresponding to the information to be encoded;

[0009] Generate LDPC coded data of the information to be encoded according to the information to be encoded and the check code.

[0010] Optionally, the LDPC encoding method, wherein, according to the LDPC check matrix and the voltage coded data, a storage-computation-in-one array is used to perform calculations to obtain check data for encoding the information to be encoded, comprises:

[0011] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array in which a plurality of sub-matrices are deployed, and performing calculations with the plurality of sub-matrices to obtain the verification data;

[0012] The plurality of sub-matrices are generated by dividing the LDPC check matrix into blocks.

[0013] Optionally, the LDPC encoding method, wherein the transposed matrix of the voltage-encoded data is input into the storage-computation-in-one array in which a plurality of sub-matrices are deployed, and the calculation is performed with the plurality of sub-matrices to obtain the check data, comprises:

[0014] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first part of the sub-matrices in the plurality of sub-matrices to obtain the first verification data in the verification data;

[0015] Calculating the transposed matrix of the voltage coding data with a second part of the sub-matrices in the plurality of the sub-matrices, and calculating the first verification data with a third part of the sub-matrices in the plurality of the sub-matrices, to obtain second verification data in the verification data;

[0016] The first partial sub-matrix is ​​located in a first block row, the second partial sub-matrix and the third partial sub-matrix are located in a second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row.

[0017] Optionally, the LDPC encoding method, wherein the transposed matrix of the voltage-coded data is input into the storage-computation-in-one array, and is calculated with a first part of the sub-matrices in the plurality of sub-matrices to obtain the first verification data in the verification data, comprises:

[0018] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first sub-matrix in the first partial sub-matrix to obtain first calculation data;

[0019] Performing analog-to-digital conversion and digital-to-analog conversion on the first calculated data in sequence to obtain a first voltage signal of the first calculated data;

[0020] The first voltage signal is calculated in the storage-computation integrated array with the inverse matrix of the second submatrix in the first partial submatrix to obtain second calculation data;

[0021] Performing analog-to-digital conversion on the second calculation data to obtain the first verification data;

[0022] The first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

[0023] Optionally, the LDPC encoding method, wherein the transposed matrix of the voltage coded data is calculated with a second part of the sub-matrices in the plurality of the sub-matrices, and the first check data is calculated with a third part of the sub-matrices in the plurality of the sub-matrices to obtain the second check data in the check data, comprises:

[0024] Calculate the transposed matrix of the voltage coding data and the second part of the sub-matrices in the plurality of sub-matrices to obtain third calculated data;

[0025] Performing digital-to-analog conversion on the first verification data to obtain a second voltage signal;

[0026] Calculate the transposed matrix of the second voltage signal and a third part of the sub-matrices in the plurality of sub-matrices to obtain fourth calculated data;

[0027] Performing analog-to-digital conversion on the third calculated data to obtain first signal data, and performing analog-to-digital conversion on the fourth calculated data to obtain second signal data;

[0028] The first signal data and the second signal data are added to obtain the second verification data.

[0029] Optionally, the LDPC encoding method, wherein performing binary parameter mapping on the check data to obtain a check code corresponding to the information to be encoded, includes:

[0030] Perform parity judgment on each data bit of the check data in turn. When the data bit of the check data is an even number, determine to perform binary parameter mapping on the check data, and the value of the corresponding bit of the mapped check code is 0; when the data bit of the check data is an odd number, determine to perform binary parameter mapping on the check data, and the value of the corresponding bit of the mapped check code is 1.

[0031] Optionally, the LDPC encoding method further comprises:

[0032] Divide the LDPC check matrix into blocks to generate multiple sub-matrices;

[0033] Deploy each of the sub-matrices in a sub-array area of ​​the storage-computation-in-one array;

[0034] The number of rows and columns in the sub-array region matches the number of rows and columns of the deployed sub-matrix.

[0035] Optionally, the LDPC encoding method, wherein each of the sub-matrices is respectively deployed in a sub-array area of ​​the storage-computation-in-one array, comprises:

[0036] Deploy a first sub-matrix of a first part of the sub-matrices in the plurality of sub-matrices in a first sub-array region in the storage-computation-in-one array, and deploy an inverse matrix of a second sub-matrix of a first part of the sub-matrixes in the plurality of sub-matrices in a second sub-array region in the storage-computation-in-one array;

[0037] Deploy a second part of the sub-matrices among the plurality of the sub-matrices in a third sub-array region in the storage-computing-in-one array, and deploy a third part of the sub-matrices among the plurality of the sub-matrices in a fourth sub-array region in the storage-computing-in-one array;

[0038] Among them, the first partial sub-matrix is ​​located in the first block row, the second partial sub-matrix and the third partial sub-matrix are located in the second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row; the first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

[0039] Optionally, in the LDPC encoding method, the first subarray area and the second subarray area are arranged from left to right in the storage-computing integrated array, the third subarray area and the fourth subarray area are arranged from left to right in the storage-computing integrated array, and the first subarray area and the third subarray area are arranged from top to bottom in the storage-computing integrated array.

[0040] Optionally, the LDPC encoding method, wherein performing binary parameter mapping on the check data to obtain a corresponding check code, includes:

[0041] Performing binary parameter mapping on first verification data in the verification data to obtain a corresponding first verification code;

[0042] Perform binary parameter mapping on the second verification data in the verification data to obtain a corresponding second verification code.

[0043] Optionally, the LDPC encoding method, wherein obtaining LDPC encoding data of the information to be encoded according to the information to be encoded and the check code, comprises:

[0044] The information to be encoded is combined with the first check code and the second check code to obtain the LDPC encoded data.

[0045] The embodiment of the present invention further provides a low-density parity check code LDPC encoding device, which includes:

[0046] A data processing unit, used for performing digital-to-analog conversion on the information to be encoded to obtain voltage encoding data of the information to be encoded;

[0047] A calculation unit, configured to calculate, according to an LDPC check matrix and the voltage-coded data, using a storage-computation-in-one array to obtain check data for encoding the information to be encoded;

[0048] A mapping unit, used to perform binary parameter mapping on the verification data to obtain a verification code corresponding to the information to be encoded;

[0049] A processing unit is used to generate LDPC coded data of the information to be encoded according to the information to be encoded and the check code.

[0050] An embodiment of the present invention further provides a network device, which includes: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the LDPC encoding method as described in any one of the above items when executed by the processor.

[0051] An embodiment of the present invention further provides a readable storage medium, wherein a program is stored on the readable storage medium, and when the program is executed by a processor, the steps in the LDPC encoding method as described in any one of the above items are implemented.

[0052] At least one of the above technical solutions of the present invention has the following beneficial effects:

[0053] The LDPC encoding method described in the embodiment of the present invention is based on the LDPC check matrix and uses a storage-computation integrated array to perform LDPC encoding. In this way, the method uses the storage-computation integrated array to use a cross array to realize matrix-vector multiplication, and realizes the characteristics of multiplication operations in multiple dimensions. Since the entire operation process does not need to repeatedly read a large number of model parameters from the memory, it can effectively improve the encoding computing power and encoding efficiency, and solve the problem of high power consumption in the prior art LDPC encoding. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of a flow chart of an encoding method according to an embodiment of the present invention;

[0055] Figure 2 This is a schematic diagram of the principle of computing using a storage-computing integrated array;

[0056] Figure 3 A schematic diagram of one implementation method of dividing an LDPC check matrix into blocks;

[0057] Figure 4A schematic diagram of a flow chart of one implementation of the encoding method according to an embodiment of the present invention;

[0058] Figure 5 A schematic diagram of a flow chart of another implementation of the encoding method according to an embodiment of the present invention;

[0059] Figure 6 It is a schematic diagram of the structure of the encoding device described in an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0061] In order to solve the problems of insufficient computing power, low coding efficiency and high power consumption in the prior art LDPC coding, an embodiment of the present invention provides an LDPC coding method, which is based on the LDPC check matrix and uses a storage-computation integrated array to perform LDPC coding. In this way, the method uses the storage-computation integrated array to use a cross array to realize matrix-vector multiplication, and realizes the characteristics of multiplication operations in multiple dimensions. Since the computing unit and the storage unit are combined in the entire operation process, there is no need to repeatedly read a large number of model parameters from the memory, thereby effectively improving the coding computing power and coding efficiency, and solving the problem of high power consumption in the prior art LDPC coding.

[0062] One embodiment of the present invention provides a low-density parity check code LDPC encoding method, such as Figure 1 As shown, the method includes:

[0063] S110, performing digital-to-analog conversion on the information to be encoded to obtain voltage encoding data of the information to be encoded;

[0064] S120, performing calculations using a storage-computation-in-one array according to an LDPC check matrix and the voltage-coded data to obtain check data for encoding the information to be encoded;

[0065] S130, performing binary parameter mapping on the verification data to obtain a verification code corresponding to the information to be encoded;

[0066] S140, generating LDPC coded data of the information to be coded according to the information to be coded and the check code.

[0067] By adopting the LDPC encoding method described in the embodiment of the present invention, calculation is performed using a storage-computation integrated array according to the LDPC check matrix and the information to be encoded, which can effectively improve the encoding computing power and encoding efficiency of the LDPC encoding.

[0068] In order to clearly illustrate the specific implementation of the LDPC encoding method described in the embodiment of the present invention, the principle of the LDPC encoding described in the embodiment of the present invention is first described below.

[0069] LDPC code can be represented by (n, k), where n represents the code length, k represents the number of information bits, and m=nk represents the number of check bits. The LDPC code encoding principle is to map the input k-bit information through a generator matrix G to obtain n-bit information c and output it, that is, sG=c. For the generator matrix G, there is a sparse parity check matrix H that is completely equivalent. All codeword sequences c constitute the null space of H, that is, Hc T = 0. The check matrix H consists of 0 and 1. Quasi-cyclic LDPC codes (QC-LDPC) have quasi-cyclic characteristics compared to general LDPC codes.

[0070] Currently, by providing a QC-LDPC check matrix H, QC-LDPC coding can be implemented based on the check matrix H.

[0071] The existing LDPC coding methods include:

[0072] 1) Matrix multiplication and addition coding algorithm based on LDPC check matrix H

[0073] The algorithm directly uses the LDPC check matrix H for encoding, where the LDPC check matrix H has the following structure. Then, using Hc T = 0, encoding is performed based on the sub-matrices A, B, C, and D after block division. The core operation in this method is XY T Matrix multiply-add structure.

[0074]

[0075] Specifically, using Hc T =0, we can get the following formula:

[0076] Formula 1:

[0077]

[0078] Formula 2:

[0079]

[0080] Where s is the information to be encoded, and p1 and p2 are the check codes of the LDPC code. This is also the solution part of the LDPC code. The combination of s, p1, and p2 is c = [s p1 p2] to obtain the encoded information c.

[0081] 2) Coding algorithm based on storage and computing technology

[0082] The storage-computation integration technology is a technology that uses a memory cross array to implement matrix-vector multiplication. By presetting weight parameters to the storage array and inputting source data, the in-situ calculation is performed in the storage unit to obtain the required calculation results. In the embodiment of the present invention, the calculation principle of the storage-computation integration is introduced by taking a new type of non-volatile memory device, a memristor, as an example, but it is not limited to this.

[0083] Combination Figure 2 As shown, the memory-computing integration based on the memristor utilizes the non-volatile resistance of the device to encode the data matrix into the resistance value of the device, such as G 11 , G 21 、····、G n3 , using Ohm's law, by applying voltage on one side of the device, such as v1, v2, v3, and reading the current on the other side, a multiplication operation between voltage and conductance is completed, that is, the following calculation can be completed through the storage and calculation integrated array:

[0084]

[0085] Using this principle, a memristor can be equivalent to the superposition of an adder, a multiplier and a memory.

[0086] According to the above calculation principle, in the matrix multiplication and addition operation based on the storage-computation technology, only one voltage operation is required, and then the output current signal of each column is collected to obtain the result of a matrix-vector multiplication operation. This process can be completed within one clock cycle. Since the entire operation process no longer needs to repeatedly read a large number of model parameters from the memory, it bypasses the bottleneck of the von Neumann architecture based on the separation of storage units and computing units in the existing technology, so the energy efficiency ratio is significantly improved, which has obvious advantages in memory-intensive computing scenarios such as AI computing, communication encoding and decoding, and video encoding and decoding.

[0087] The LDPC encoding method described in the embodiment of the present invention utilizes the above-mentioned advantages of encoding with the integrated storage and computing technology, is based on the LDPC check matrix, and uses the integrated storage and computing array to perform LDPC encoding. In this way, by using this method, the computing unit and the storage unit are combined in the entire calculation process, and there is no need to repeatedly read a large number of model parameters from the memory. Therefore, it can effectively improve the coding computing power and coding efficiency, and solve the problem of high power consumption in the prior art LDPC coding.

[0088] In the embodiment of the present invention, optionally, in step S120, according to the LDPC check matrix and the voltage coded data, a storage-computation-in-one array is used to perform calculation to obtain check data for encoding the information to be encoded, including:

[0089] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array in which a plurality of sub-matrices are deployed, and performing calculations with the plurality of sub-matrices to obtain the verification data;

[0090] The plurality of sub-matrices are generated by dividing the LDPC check matrix into blocks.

[0091] Optionally, the method further comprises:

[0092] Divide the LDPC check matrix into blocks to generate multiple sub-matrices;

[0093] Deploy each of the sub-matrices in a sub-array area of ​​the storage-computation-in-one array;

[0094] The number of rows and columns in the sub-array region matches the number of rows and columns of the deployed sub-matrix.

[0095] Specifically, each of the sub-matrices is respectively deployed in a sub-array area of ​​the storage-computing integrated array, including:

[0096] Deploy a first sub-matrix of a first part of the sub-matrices in the plurality of sub-matrices in a first sub-array region in the storage-computation-in-one array, and deploy an inverse matrix of a second sub-matrix of a first part of the sub-matrixes in the plurality of sub-matrices in a second sub-array region in the storage-computation-in-one array;

[0097] Deploy a second part of the sub-matrices among the plurality of the sub-matrices in a third sub-array region in the storage-computing-in-one array, and deploy a third part of the sub-matrices among the plurality of the sub-matrices in a fourth sub-array region in the storage-computing-in-one array;

[0098] Among them, the first partial sub-matrix is ​​located in the first block row, the second partial sub-matrix and the third partial sub-matrix are located in the second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row; the first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

[0099] Among them, the first sub-array area and the second sub-array area are arranged from left to right in the storage and computing integrated array, the third sub-array area and the fourth sub-array area are arranged from left to right in the storage and computing integrated array, and the first sub-array area and the third sub-array area are arranged from top to bottom in the storage and computing integrated array.

[0100] Specifically, each of the sub-matrices is respectively deployed in one of the sub-array areas of the storage-computing integrated array, including:

[0101] The first submatrix of the first part of the submatrices among the plurality of the submatrices is deployed at the corresponding positions of the 0th to m-1th rows and the 0th to g-1th columns in the storage-computation integrated array (first subarray region), and the inverse matrix of the second submatrix of the first part of the submatrix among the plurality of the submatrices is deployed at the corresponding positions of the 0th to m-1th rows and the gth to g+m-1th columns in the storage-computation integrated array (second subarray region);

[0102] Deploy a second part of the plurality of sub-matrices at corresponding positions of the mth to m+t-1th rows and the 0th to g-1th columns in the integrated storage and computing array (a third sub-array region), and deploy a third part of the plurality of sub-matrices at corresponding positions of the mth to m+t-1th rows and the gth to g+m-1th columns in the integrated storage and computing array (a fourth sub-array region);

[0103] Among them, the first partial submatrix is ​​located in the first block row, the second partial submatrix and the third partial submatrix are located in the second block row, and the second partial submatrix and the third partial submatrix are arranged from left to right in the second block row; the first submatrix and the second submatrix are arranged from left to right in the first block row; the first submatrix has m rows and g columns; the second submatrix has m rows and m columns; the second partial submatrix has t rows and g columns; the third partial submatrix has t rows and m columns;

[0104] Wherein, m, g, and t are integers greater than or equal to 1.

[0105]

[0106] For example, combining Figure 3 As shown, when the LDPC check matrix H is divided into blocks, the obtained matrix structure can be as follows: Specifically, the multiple sub-matrices divided by the LDPC check matrix H include matrix A, matrix B, matrix C and matrix D. Among them, matrix A and matrix B form a first partial sub-matrix, located in the first block row, matrix A is the first sub-matrix, and matrix B is the second sub-matrix; matrix C forms a second partial sub-matrix, and matrix D forms a third partial sub-matrix, located in the second block row, and matrix C and matrix D are arranged from left to right in the second block row. The first block row and the second block row are arranged up and down.

[0107] In this implementation, matrix A is deployed in the 0th to m-1th rows and the 0th to g-1th columns of the storage-computation integrated array; where m is the number of rows of matrix A and g is the number of columns of matrix A;

[0108] Calculate the inverse matrix B of matrix B in advance -1 , the inverse matrix B of matrix B-1 Deployed in the 0th to m-1th rows and the gth to g+m-1th columns of the storage and computing integrated array; where m is the inverse matrix B -1 The number of rows and columns;

[0109] Deploy the matrix C in the mth to m+t-1th rows and the 0th to g-1th columns of the storage-computation integrated array; where t is the number of rows of the matrix C and g is the number of columns of the matrix C;

[0110] Deploy the matrix D in the mth to m+t-1th rows and the gth to g+m-1th columns of the storage and computing integrated array; where t is the number of rows of the matrix D and m is the number of columns of the matrix D.

[0111] By adopting the LDPC encoding method described in this embodiment, based on the LDPC check matrix deployed by the storage and computing integrated array, according to the above-mentioned formulas 1 and 2, after performing analog-to-digital conversion on the information to be encoded and obtaining the voltage encoding data of the information to be encoded, the transposed matrix of the voltage encoding data is input into the storage and computing integrated array, and calculated with multiple sub-matrices to obtain the check data for encoding the information to be encoded.

[0112] Specifically, the transposed matrix of the voltage coding data is input into the storage-computation integrated array, and is calculated with the plurality of sub-matrices to obtain the verification data, including:

[0113] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first part of the sub-matrices in the plurality of sub-matrices to obtain the first verification data in the verification data;

[0114] Calculating the transposed matrix of the voltage coding data with a second part of the sub-matrices in the plurality of the sub-matrices, and calculating the first verification data with a third part of the sub-matrices in the plurality of the sub-matrices, to obtain second verification data in the verification data;

[0115] The first partial sub-matrix is ​​located in a first block row, the second partial sub-matrix and the third partial sub-matrix are located in a second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row.

[0116] Specifically, combined Figure 4 As shown, the LDPC encoding method described in the embodiment of the present invention includes the following steps:

[0117] S410, start;

[0118] S420, dividing the LDPC check matrix H into blocks, generating multiple sub-matrices, such as generating sub-matrices A, B, C and D, and deploying the multiple sub-matrices to a storage-computation integrated array;

[0119] S430, transform the transposed matrix S of the voltage coded data S T Input into the storage-computing integrated array, calculate based on the matrix A and the matrix B (the first partial sub-matrix) deployed in the storage-computing integrated array, and obtain the first verification data p1';

[0120] S440, convert the transposed matrix S of the voltage coded data S T Calculate the first verification data p1' with a matrix C (a second part of the submatrix) in the plurality of submatrices, and calculate the first verification data p1' with a matrix D (a third part of the submatrix) in the plurality of submatrices to obtain second verification data p2' in the verification data;

[0121] S450, performing parity determination on the first check data p1' and the second check data p2' respectively, and performing binary parameter mapping to obtain corresponding check codes p1 and p2;

[0122] S460, combining the information to be encoded with the check codes p1 and p2 to obtain LDPC encoded data of the information to be encoded;

[0123] S470, end.

[0124] In the embodiment of the present invention, optionally, the LDPC encoding method inputs the transposed matrix of the voltage coded data into the storage-computation integrated array, and performs calculation with a first part of the sub-matrices in the plurality of sub-matrices to obtain the first check data in the check code, including:

[0125] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first sub-matrix in the first partial sub-matrix to obtain first calculation data;

[0126] Performing analog-to-digital conversion and digital-to-analog conversion on the first calculated data in sequence to obtain a first voltage signal of the first calculated data;

[0127] The first voltage signal is calculated in the storage-computation integrated array with the inverse matrix of the second submatrix in the first partial submatrix to obtain second calculation data;

[0128] Performing analog-to-digital conversion on the second calculation data to obtain the first verification data;

[0129] The first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

[0130] Optionally, calculating the transposed matrix of the voltage coded data with a second part of the sub-matrices in the plurality of the sub-matrices, and calculating the first check code with a third part of the sub-matrices in the plurality of the sub-matrices to obtain second check data in the check data includes:

[0131] Calculate the transposed matrix of the voltage coding data and the second part of the sub-matrices in the plurality of sub-matrices to obtain third calculated data;

[0132] Performing digital-to-analog conversion on the first verification data to obtain a second voltage signal;

[0133] Calculate the transposed matrix of the second voltage signal and a third part of the sub-matrices in the plurality of sub-matrices to obtain fourth calculated data;

[0134] Performing analog-to-digital conversion on the third calculated data to obtain first signal data, and performing analog-to-digital conversion on the fourth calculated data to obtain second signal data;

[0135] The first signal data is added to the second signal data to obtain the second verification data. Figure 5 As shown, the LDPC encoding method according to the embodiment of the present invention includes the following implementation steps:

[0136] S501, input of information to be encoded;

[0137] S502, performing digital-to-analog conversion DAC on the information to be encoded, that is, converting the information to be encoded input as a digital signal into a voltage signal, and obtaining voltage encoding data of the information to be encoded, such as the voltage encoding data can be represented as S; optionally, the voltage encoding data can be stored in a storage-computing integrated array;

[0138] S503, transform the transposed matrix S of the voltage coded data S T Calculate with the first sub-matrix (matrix A) in the first part of the sub-matrix to obtain the first calculation data As T ;

[0139] S504, the first calculation data As T Perform analog-to-digital conversion ADC and digital-to-analog conversion DAC in sequence to obtain a first voltage signal of the first calculation data; that is, convert the first calculation data As T The calculation result is converted into a first voltage signal and input into the next step of calculation;

[0140] S505: the first voltage signal is compared with the inverse matrix (B) of the second sub-matrix (matrix B) in the first partial sub-matrix in the storage-computation integrated array. -1 ) to calculate and obtain the second calculation data, that is, to complete B-1 AS T The calculation process of

[0141] S506, calculating the second data B -1 AS T Perform analog-to-digital conversion ADC to obtain first verification data p1';

[0142] S507, convert the transposed matrix S of the voltage coded data S T Calculate with the second part of the sub-matrices (matrix C) in the plurality of sub-matrices to obtain third calculation data; that is, complete Cs T Operation;

[0143] S508, calculating the third data Cs T Performing analog-to-digital conversion ADC to obtain first signal data;

[0144] S509, performing digital-to-analog conversion DAC on the first verification data p1' obtained in step S506 to obtain a second voltage signal, so that the first verification data p1' is converted into an input voltage;

[0145] S510: Transpose the second voltage signal into a matrix p1 ’T Calculate with the third part of the sub-matrices (matrix D) in the plurality of sub-matrices to obtain fourth calculation data; that is, complete Dp1 ’T Operation;

[0146] S511, the fourth calculation data Dp1 ’T Performing analog-to-digital conversion to obtain second signal data;

[0147] S512, adding the first signal data obtained in step S508 and the second signal data obtained in step S511 to obtain second verification data p2'=CS T +Dp1 ’T ;

[0148] S513, performing parity judgment and binary parameter mapping on the first verification data p1' to obtain a first verification code p1; and performing parity judgment and binary parameter mapping on the second verification data p2' to obtain a second verification code p2;

[0149] Among them, parity judgment is performed on each data bit of the verification data in turn. When the data bit of the verification data is an even number, it is determined to perform binary parameter mapping on the verification data, and the value of the corresponding bit of the mapped verification code is 0; when the data bit of the verification data is an odd number, it is determined to perform binary parameter mapping on the verification data, and the value of the corresponding bit of the mapped verification code is 1.

[0150] Specifically, the first check data p1' is subjected to parity judgment. If one of the data bits is an even number, the corresponding mapping bit of the first check code p1 is 0; if one of the data bits is an odd number, the corresponding mapping bit of the first check code p1 is 1. For example, if the first check data p1' is [3, 2, 6, 5, 7], after the parity judgment and binary parameter mapping, the mapped first check code p1 is [1, 0, 0, 1, 1]. In this way, after the parity judgment is completed, the first check code p1 is obtained;

[0151] Similarly, the second check data p2' is subjected to parity judgment. If one of the data bits is an even number, the corresponding mapping bit of the second check code p2 is 0; if one of the data bits is an odd number, the corresponding mapping bit of the second check code p2 is 1. In this way, after the parity judgment is completed, the second check code p2 is obtained.

[0152] The first check code p1 and the second check code p2 are combined to form a corresponding check code, that is, a check code of the information to be encoded.

[0153] S514: Obtain LDPC coded data of the information to be encoded according to the information to be encoded and the check code.

[0154] Specifically, the information to be encoded is combined with the first check code and the second check code to obtain the LDPC encoded data.

[0155] Taking the information to be encoded as S1 as an example, the combination with the first check code p1 and the second check code p2 can be expressed as c=[s1 p1 p2], and LDPC encoded data c is obtained after LDPC encoding of the information to be encoded.

[0156] By using the LDPC coding method described in the embodiment of the present invention, some calculation processes in the calculation of the first check code and the second check code can be performed in parallel, which can achieve the effect of improving the calculation efficiency. In addition, by using this method, it is only necessary to perform parity judgment when binary parameter mapping is performed on the check data, and it is not necessary to perform parity judgment in each step, so as to achieve the effect of further improving the coding efficiency.

[0157] One embodiment of the present invention further provides a low density parity check code LDPC encoding device, such as Figure 6 As shown, including:

[0158] The data processing unit 610 is used to perform digital-to-analog conversion on the information to be encoded to obtain voltage encoding data of the information to be encoded;

[0159] A calculation unit 620, configured to perform calculations using a storage-computation-in-one array according to an LDPC check matrix and the voltage-coded data to obtain check data for encoding the information to be encoded;

[0160] A mapping unit 630 is used to perform binary parameter mapping on the check data to obtain a check code corresponding to the information to be encoded;

[0161] The processing unit 640 is configured to generate LDPC coded data of the information to be coded according to the information to be coded and the check code.

[0162] Optionally, in the LDPC encoding device, the calculation unit 620 performs calculations using a storage-computation-in-one array according to the LDPC check matrix and the voltage-coded data to obtain check data for encoding the information to be encoded, including:

[0163] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array in which a plurality of sub-matrices are deployed, and performing calculations with the plurality of sub-matrices to obtain the verification data;

[0164] The plurality of sub-matrices are generated by dividing the LDPC check matrix into blocks.

[0165] Optionally, in the LDPC encoding device, the calculation unit 620 inputs the transposed matrix of the voltage encoding data into the storage-computation-in-one array in which a plurality of sub-matrices are deployed, and performs calculations with the plurality of sub-matrices to obtain the check data, including:

[0166] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first part of the sub-matrices in the plurality of sub-matrices to obtain the first verification data in the verification data;

[0167] Calculating the transposed matrix of the voltage coding data with a second part of the sub-matrices in the plurality of the sub-matrices, and calculating the first verification data with a third part of the sub-matrices in the plurality of the sub-matrices, to obtain second verification data in the verification data;

[0168] The first partial sub-matrix is ​​located in a first block row, the second partial sub-matrix and the third partial sub-matrix are located in a second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row.

[0169] Optionally, in the LDPC encoding device, the calculation unit 620 inputs the transposed matrix of the voltage coding data into the storage-computation integrated array, and performs calculation with a first part of the sub-matrices in the plurality of sub-matrices to obtain the first check data in the check data, including:

[0170] Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first sub-matrix in the first partial sub-matrix to obtain first calculation data;

[0171] Performing analog-to-digital conversion and digital-to-analog conversion on the first calculated data in sequence to obtain a first voltage signal of the first calculated data;

[0172] The first voltage signal is calculated in the storage-computation integrated array with the inverse matrix of the second submatrix in the first partial submatrix to obtain second calculation data;

[0173] Performing analog-to-digital conversion on the second calculation data to obtain the first verification data;

[0174] The first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

[0175] Optionally, in the LDPC encoding device, the calculation unit 620 calculates the transposed matrix of the voltage coded data with a second part of the sub-matrices in the plurality of sub-matrices, and calculates the first check data with a third part of the sub-matrices in the plurality of sub-matrices to obtain the second check data in the check data, including:

[0176] Calculate the transposed matrix of the voltage coding data and the second part of the sub-matrices in the plurality of sub-matrices to obtain third calculated data;

[0177] Performing digital-to-analog conversion on the first verification data to obtain a second voltage signal;

[0178] Calculate the transposed matrix of the second voltage signal and a third part of the sub-matrices in the plurality of sub-matrices to obtain fourth calculated data;

[0179] Performing analog-to-digital conversion on the third calculated data to obtain first signal data, and performing analog-to-digital conversion on the fourth calculated data to obtain second signal data;

[0180] The first signal data and the second signal data are added to obtain the second verification data.

[0181] Optionally, in the LDPC encoding device, the mapping unit 630 performs binary parameter mapping on the check data to obtain a corresponding check code, including:

[0182] Perform parity judgment on each data bit of the check data in turn. When the data bit of the check data is an even number, determine to perform binary parameter mapping on the check data, and the value of the corresponding bit of the mapped check code is 0; when the data bit of the check data is an odd number, determine to perform binary parameter mapping on the check data, and the value of the corresponding bit of the mapped check code is 1.

[0183] Optionally, in the LDPC encoding device, the calculation unit 620 is further used for:

[0184] Divide the LDPC check matrix into blocks to generate multiple sub-matrices;

[0185] Deploy each of the sub-matrices in a sub-array area of ​​the storage-computation-in-one array;

[0186] The number of rows and columns in the sub-array region matches the number of rows and columns of the deployed sub-matrix.

[0187] Optionally, in the LDPC encoding device, the computing unit 620 deploys each of the sub-matrices in a sub-array region of the storage-computation-in-one array, including:

[0188] Deploy a first sub-matrix of a first part of the sub-matrices in the plurality of sub-matrices in a first sub-array region in the storage-computation-in-one array, and deploy an inverse matrix of a second sub-matrix of a first part of the sub-matrixes in the plurality of sub-matrices in a second sub-array region in the storage-computation-in-one array;

[0189] Deploy a second part of the sub-matrices among the plurality of the sub-matrices in a third sub-array region in the storage-computing-in-one array, and deploy a third part of the sub-matrices among the plurality of the sub-matrices in a fourth sub-array region in the storage-computing-in-one array;

[0190] Among them, the first partial sub-matrix is ​​located in the first block row, the second partial sub-matrix and the third partial sub-matrix are located in the second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row; the first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

[0191] Optionally, the LDPC encoding device, wherein the first subarray area and the second subarray area are arranged from left to right in the storage-computing integrated array, the third subarray area and the fourth subarray area are arranged from left to right in the storage-computing integrated array, and the first subarray area and the third subarray area are arranged from top to bottom in the storage-computing integrated array.

[0192] Optionally, in the LDPC encoding device, the mapping unit 630 performs binary parameter mapping on the check data to obtain a corresponding check code, including:

[0193] Performing binary parameter mapping on first verification data in the verification data to obtain a corresponding first verification code;

[0194] Perform binary parameter mapping on the second verification data in the verification data to obtain a corresponding second verification code.

[0195] Optionally, in the LDPC encoding device, the processing unit 640 obtains LDPC encoding data of the information to be encoded according to the information to be encoded and the check code, including:

[0196] The information to be encoded is combined with the first check code and the second check code to obtain the LDPC encoded data.

[0197] Another embodiment of the present invention further provides a network device, which includes: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the LDPC encoding method as described in any one of the above items when executed by the processor.

[0198] Specifically, the network device is a device for implementing the above-mentioned LDPC encoding method. The LDPC encoding method implemented when the corresponding processor is executed can refer to the above detailed description, which will not be repeated here.

[0199] In addition, a specific embodiment of the present invention further provides a readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the steps in the LDPC encoding method as described above are implemented.

[0200] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0201] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0202] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0203] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A low-density parity check code LDPC encoding method, characterized in that: include: Performing digital-to-analog conversion on the information to be encoded to obtain voltage encoding data of the information to be encoded; According to the LDPC check matrix and the voltage coded data, a calculation is performed using a storage-computation integrated array to obtain check data for encoding the information to be encoded; Performing binary parameter mapping on the verification data to obtain a verification code corresponding to the information to be encoded; Generate LDPC coded data of the information to be encoded according to the information to be encoded and the check code.

2. The LDPC encoding method according to claim 1, characterized in that: According to the LDPC check matrix and the voltage coded data, a storage-computation integrated array is used to perform calculations to obtain check data for encoding the information to be encoded, including: Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array in which a plurality of sub-matrices are deployed, and performing calculations with the plurality of sub-matrices to obtain the verification data; The plurality of sub-matrices are generated by dividing the LDPC check matrix into blocks.

3. The LDPC encoding method according to claim 2, characterized in that: Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array in which a plurality of sub-matrices are deployed, and performing calculations with the plurality of sub-matrices to obtain the verification data, comprises: Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first part of the sub-matrices in the plurality of sub-matrices to obtain the first verification data in the verification data; Calculating the transposed matrix of the voltage coding data with a second part of the sub-matrices in the plurality of the sub-matrices, and calculating the first verification data with a third part of the sub-matrices in the plurality of the sub-matrices, to obtain second verification data in the verification data; The first partial sub-matrix is ​​located in a first block row, the second partial sub-matrix and the third partial sub-matrix are located in a second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row.

4. The LDPC encoding method according to claim 3, characterized in that: Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with a first part of the sub-matrices in the plurality of sub-matrices to obtain the first verification data in the verification data, comprising: Inputting the transposed matrix of the voltage coding data into the storage-computation integrated array, and performing calculation with the first sub-matrix in the first partial sub-matrix to obtain first calculation data; Performing analog-to-digital conversion and digital-to-analog conversion on the first calculated data in sequence to obtain a first voltage signal of the first calculated data; The first voltage signal is calculated in the storage-computation integrated array with the inverse matrix of the second submatrix in the first partial submatrix to obtain second calculation data; Performing analog-to-digital conversion on the second calculation data to obtain the first verification data; The first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

5. The LDPC encoding method according to claim 3, characterized in that: Calculating the transposed matrix of the voltage coding data with a second part of the sub-matrices in the plurality of the sub-matrices, and calculating the first verification data with a third part of the sub-matrices in the plurality of the sub-matrices to obtain second verification data in the verification data, comprising: Calculate the transposed matrix of the voltage coding data and the second part of the sub-matrices in the plurality of sub-matrices to obtain third calculated data; Performing digital-to-analog conversion on the first verification data to obtain a second voltage signal; Calculate the transposed matrix of the second voltage signal and a third part of the sub-matrices in the plurality of sub-matrices to obtain fourth calculated data; Performing analog-to-digital conversion on the third calculated data to obtain first signal data, and performing analog-to-digital conversion on the fourth calculated data to obtain second signal data; The first signal data and the second signal data are added to obtain the second verification data.

6. The LDPC encoding method according to claim 1, characterized in that: Performing binary parameter mapping on the check data to obtain a check code corresponding to the information to be encoded includes: Perform parity judgment on each data bit of the check data in turn. When the data bit of the check data is an even number, determine to perform binary parameter mapping on the check data, and the value of the corresponding bit of the mapped check code is 0; when the data bit of the check data is an odd number, determine to perform binary parameter mapping on the check data, and the value of the corresponding bit of the mapped check code is 1.

7. The LDPC encoding method according to claim 2, characterized in that: The method further comprises: Divide the LDPC check matrix into blocks to generate multiple sub-matrices; Deploy each of the sub-matrices in a sub-array area of ​​the storage-computation-in-one array; The number of rows and columns in the sub-array region matches the number of rows and columns of the deployed sub-matrix.

8. The LDPC encoding method according to claim 7, characterized in that: Each of the sub-matrices is respectively deployed in a sub-array area of ​​the storage-computation-in-one array, including: Deploy a first sub-matrix of a first part of the sub-matrices in the plurality of sub-matrices in a first sub-array region in the storage-computation-in-one array, and deploy an inverse matrix of a second sub-matrix of a first part of the sub-matrixes in the plurality of sub-matrices in a second sub-array region in the storage-computation-in-one array; Deploy a second part of the sub-matrices among the plurality of the sub-matrices in a third sub-array region in the storage-computing-in-one array, and deploy a third part of the sub-matrices among the plurality of the sub-matrices in a fourth sub-array region in the storage-computing-in-one array; Among them, the first partial sub-matrix is ​​located in the first block row, the second partial sub-matrix and the third partial sub-matrix are located in the second block row, and the second partial sub-matrix and the third partial sub-matrix are arranged from left to right in the second block row; the first sub-matrix and the second sub-matrix are arranged from left to right in the first block row.

9. The LDPC encoding method according to claim 8, characterized in that: The first sub-array area and the second sub-array area are arranged from left to right in the storage and computing integrated array, the third sub-array area and the fourth sub-array area are arranged from left to right in the storage and computing integrated array, and the first sub-array area and the third sub-array area are arranged from top to bottom in the storage and computing integrated array.

10. The LDPC encoding method according to claim 3, characterized in that: Performing binary parameter mapping on the verification data to obtain a corresponding verification code includes: Performing binary parameter mapping on first verification data in the verification data to obtain a corresponding first verification code; Perform binary parameter mapping on the second verification data in the verification data to obtain a corresponding second verification code.

11. The LDPC encoding method according to claim 10, characterized in that: Obtaining LDPC coded data of the information to be coded according to the information to be coded and the check code, including: The information to be encoded is combined with the first check code and the second check code to obtain the LDPC encoded data.

12. A low-density parity check code LDPC encoding device, characterized in that: include: A data processing unit, used for performing digital-to-analog conversion on the information to be encoded to obtain voltage encoding data of the information to be encoded; A calculation unit, configured to calculate, according to an LDPC check matrix and the voltage-coded data, using a storage-computation-in-one array to obtain check data for encoding the information to be encoded; A mapping unit, used to perform binary parameter mapping on the verification data to obtain a verification code corresponding to the information to be encoded; A processing unit is used to generate LDPC coded data of the information to be encoded according to the information to be encoded and the check code.

13. A network device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the LDPC encoding method according to any one of claims 1 to 11 is implemented.

14. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by a processor, the steps in the LDPC encoding method according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • LDPC code coding method and device, network equipment and storage medium

    CN114257250A

  • Method of LDPC encoding using a parity check matrix

    KR1020080045020A

  • Efficient construction of LDPC (Low Density Parity Check) codes with corresponding parity check matrix having CSI (Cyclic Shifted Identity) sub-matrices

    US20070033497A1

  • Method for generating non-binary structured low density parity check code

    US20080250305A1

Cited By

  • LDPC code coding circuit for improving coding efficiency based on 5G communication system

    CN119814044A

  • LDPC Code Encoding Circuit for Improving Coding Efficiency Based on 5G Communication System

    CN119814044B

  • Three-code-in-one interpretation method and device of probability domain based on storage and calculation all-in-one device

    CN121124825A

  • A three-code-in-one interpretation method and device based on a probability domain of a memory-computing integrated device

    CN121124825B