A decoding method, decoding device, equipment and storage device
By dynamically adjusting the adjoint vector calculation and flipping threshold in the LDPC code decoding method, the problem of low decoding efficiency in the BF decoding method is solved, and rapid convergence and efficient decoding are achieved.
Patent Information
- Application Number
- CN202110889582.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-08-03
AI Technical Summary
The existing bit flip (BF) decoding method can correct a limited number of bits under a limited number of iterations, and the algorithm converges slowly, resulting in low decoding efficiency.
By performing preset processing on the code words to be decoded, calculating the adjoint vector, and dynamically adjusting the flip threshold according to the number of consecutive unflipped or flipped bits, the bits can be flipped uniformly, and the number of iterations and decoding efficiency can be improved.
The decoding efficiency is improved, the algorithm converges quickly, the decoding accuracy is taken into account, and the amount of calculation is reduced.
Smart Images

Figure CN114629505B
Abstract
Description
Technical Field
[0001] The present application relates to the field of coding and decoding technology, and specifically to a decoding method, a decoding device, a device and a storage device. Background Art
[0002] Low-density parity check (LDPC) codes are a type of linear codes defined by a check matrix and have been widely used in deep space communications, fiber-optic communications, satellite digital video and audio broadcasting, and other fields.
[0003] Bit flipping (BF) decoding is a hard decision decoding method proposed by Gallager and is applied to LDPC code decoding. In each iteration, this decoding method only flips one bit with the largest flipping weight. With a limited number of iterations, the number of bits that can be corrected by BF decoding is very limited, and the algorithm converges slowly, resulting in low decoding efficiency. Summary of the invention
[0004] In view of this, the present application provides a decoding method, a decoding device, an equipment and a storage medium to solve the problem of low decoding efficiency of the existing decoding method.
[0005] A decoding method provided in an embodiment of the present application includes:
[0006] After the codeword to be decoded is processed by default, the hard decision sequence z = [z0, z1, ..., z N-1 ];
[0007] According to the hard decision sequence and the check matrix H of the codeword to be decoded, a syndrome vector S is calculated, where H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix, m=0, 1, ...M-1, n=0, 1, ...N-1;
[0008] S=(S0,S1,...,S M-1 ) T ;
[0009]
[0010] If the syndrome vector is equal to the all-zero vector, the hard decision sequence is output; otherwise, the statistics and element h m,n =1 corresponding to bit z n Participate in calculations and make S m The number of ≠0 n ;
[0011] If f nis greater than or equal to the flip threshold, then the bit z n The level of the bit sequence is flipped to obtain a new hard decision sequence, wherein the flip threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits;
[0012] The number of iterations is increased by 1, and the process returns to the check matrix H based on the hard decision sequence and the codeword to be decoded, and the syndrome vector S is calculated; so that the updated hard decision sequence is subjected to the next round of iterative calculation.
[0013] Optionally, the flip threshold is adjusted according to the number of consecutive unflipped bits, including:
[0014] If the number of consecutive unflipped bits is greater than or equal to a first preset threshold, the flip threshold is reduced.
[0015] Optionally, if the number of consecutive unflipped bits is greater than or equal to a first preset threshold, reducing the flip threshold includes:
[0016] If the number of consecutive unflipped bits is greater than or equal to a first preset threshold, the flip threshold is reduced by 1.
[0017] Optionally, the flip threshold is adjusted according to the number of bits flipped continuously, further comprising:
[0018] If the number of continuously flipped bits is greater than or equal to the second preset threshold, the flip threshold is increased.
[0019] Optionally, if the number of continuously flipped bits is greater than or equal to a second preset threshold, increasing the flip threshold includes:
[0020] If the number of continuously flipped bits is greater than or equal to the second preset threshold, the flip threshold is increased by 1.
[0021] Optionally, the check matrix includes multiple circulant matrices, wherein the circulant matrices are obtained by cyclically shifting elements in a base matrix, and the elements in the base matrix are obtained by shifting a unit matrix.
[0022] Optionally, the step of obtaining a hard decision sequence after performing a preset process on the codeword to be decoded includes:
[0023] Modulating the codeword to be decoded to obtain a first sequence;
[0024] Acquire a second sequence after the first sequence is processed by a channel;
[0025] The hard decision sequence is obtained according to the second sequence.
[0026] The present application also provides a decoding device, including:
[0027] The preprocessing module is used to obtain a hard decision sequence z=[z0, z1, ..., z N-1 ];
[0028] A calculation module is used to calculate a syndrome vector S according to the hard decision sequence and the check matrix H of the codeword to be decoded, wherein H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix, m=0, 1, ...M-1, n=0, 1, ...N-1;
[0029] S=(S0,S1,...,S M-1 ) T ;
[0030]
[0031] A statistical module is used to output the hard decision sequence if the syndrome vector is equal to the all-zero vector; otherwise, the statistics and element h m,n =1 corresponding to bit z n Participate in calculations and make S m The number of ≠0 n ;
[0032] Flip module, used for n is greater than or equal to the flip threshold, then the bit z n The level of the bit sequence is flipped to obtain a new hard decision sequence, wherein the flip threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits;
[0033] The counting module is used to add 1 to the number of iterations and return to the check matrix H according to the hard decision sequence and the codeword to be decoded to calculate the syndrome vector S; so as to perform the next round of iterative calculation on the updated hard decision sequence.
[0034] An embodiment of the present application further provides a device, comprising: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the process in the decoding method provided in the present application is implemented.
[0035] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the decoding method provided in the present application.
[0036] As described above, the decoding method of the embodiment of the present application flips all bits that reach the flip threshold, the algorithm converges quickly, and the decoding efficiency is high. In addition, since the flip threshold of the embodiment of the present application is dynamically adjusted according to the number of consecutive unflipped bits or the number of consecutively flipped bits, under this adjustment strategy, the flip threshold can be adjusted in real time according to the contamination of each segment of the codeword to be decoded, while improving the decoding efficiency, the decoding accuracy is taken into account, and there is no need to judge whether to adjust the flip threshold once for the number of flips of each group of bits, which reduces the amount of calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 It is a flowchart of a decoding method according to an embodiment of the present application;
[0039] Figure 2 It is a schematic diagram of the decoding process;
[0040] Figure 3 It is a decoding principle diagram;
[0041] Figure 4 is a flowchart of another decoding method according to an embodiment of the present application;
[0042] Figure 5 is a threshold adjustment schematic diagram of a decoding method in an embodiment of the present application;
[0043] Figure 6 is a comparison diagram of the effects of a decoding method according to an embodiment of the present application and a traditional decoding method;
[0044] Figure 7 is a schematic structural diagram of a decoding device according to an embodiment of the present application;
[0045] Figure 8 It is a structural schematic diagram of a device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] The technical solution of the present application is described clearly and completely below through embodiments. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. In the absence of conflict, the following embodiments and their technical features can be combined with each other.
[0047] The present application provides a decoding method for LDPC code decoding. The flowchart is as follows: Figure 1 As shown, the decoding method includes:
[0048] S101, after performing preset processing on the codeword to be decoded, a hard decision sequence z=[z0, z1, ..., z N-1 ].
[0049] As a type of linear block code, LDPC code is a binary codeword. During the transmission process of the codeword to be decoded, the channel will preprocess it, and in the process of preprocessing, the codeword to be decoded will be contaminated by noise to varying degrees.
[0050] In one embodiment, a hard decision is performed on the sequence output by the channel. For example, in the output sequence, elements greater than 0 are judged as 1, and elements less than 0 are judged as 0, thereby obtaining a hard decision sequence z=[z0, z1, ..., z N-1 ]. It can be understood that the hard decision sequence is a binary sequence.
[0051] S102, calculating the syndrome vector S according to the hard decision sequence and the check matrix H of the codeword to be decoded, where H = [h m,n ] M×N ,h m,n is the element in the m-th row and n-th column of the check matrix, m=0, 1, ...M-1; n=0, 1, ...N-1.
[0052] S=(S0,S1,...,S M-1 ) T ;
[0053]
[0054] The composition of LDPC code is as follows Figure 2 As shown, the transmitted N-bit LDPC codeword C to be decoded is composed of information bits (K-bit information symbols) and check bits (M-bit check symbols). The receiving end uses the rules between the check bits and the information bits to perform error correction and decoding.
[0055] The LDPC code is determined by its sparse check matrix H, the dimension of which is M×N, i.e. H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix, where each column of H has γ "1s", each row has ρ "1s", and the remaining elements are all "0s", that is, the column weight of the check matrix H is γ and the row weight is ρ. Each row of the check matrix H represents a check constraint equation, and the number of rows represents the number of check equations.
[0056] If the length of an LDPC code is several thousand bits or even longer, then the check matrix needs to occupy a large storage space, so the check matrix needs to be constructed. In some embodiments, the check matrix can be constructed by the Gallager random construction method, specifically using a sparse matrix with a certain fixed row weight and column weight to randomly permute and combine to construct the check matrix of the LDPC code. The check matrix can also be constructed using a quasi-cyclic construction method, specifically using a set of cyclic matrices to construct the check matrix of the LDPC code, for example, the unit matrix is selected as a quasi-cyclic LDPC code (QC-LDPC). In one embodiment, the base matrix is obtained by shifting the elements of the unit matrix, and then the base matrix is cyclically shifted to the left to form a cyclic matrix. Each cyclic matrix constitutes the final check matrix, and only the base matrix needs to be stored, which greatly reduces the storage space. If the dimension of each submatrix is D×D, the column weight of the check matrix is γ, and the row weight is ρ, then the dimension of the check matrix is M=D×γ, N=D×ρ.
[0057] An LDPC code iterative decoding process can be used Figure 3 The Tanner graph shown in the figure shows that the check codeword and the information codeword are continuously iterated between the variable node and the check node through the aforementioned check equation. The sequence obtained after each iterative error correction is the new hard decision sequence. If the correct codeword is not obtained after one decoding, the new hard decision sequence obtained this time is iterated for the next round until a codeword that satisfies z*H is found. T =0 T (all-0 vector), that is, the codeword satisfies all the check equations, then the output information z is the decoded codeword.
[0058] In one embodiment, the iterative calculation process is as follows: According to the hard decision sequence z=[z0, z1, ..., z N-1 ] and the check matrix H of the LDPC code, calculate the syndrome vector S. Check matrix H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix;
[0059] S=(S0,S1,...,S M-1 ) T =zH T
[0060] Among them, S m The specific calculation method is as follows:
[0061]
[0062] That is, the value S of each element in the companion vector S m, which is equal to the row vector (the mth row) corresponding to the hard decision sequence z and the check matrix H [h m,1 ,h m,2 , ..., h m,n ] is divided by 2 and the elements in the syndrome vector S are either 0 or 1.
[0063] S103, if the syndrome vector is equal to the all-zero vector, then output the hard decision sequence; otherwise, statistically analyze the element h m,n =1 corresponding to bit z n Participate in calculations and make S m The number of ≠0 n .
[0064] S m The calculation result of represents whether the mth verification equation is satisfied. If S m = 0, it means that the hard decision sequence z satisfies the mth check equation. If S m ≠0, it means that the hard decision sequence z does not satisfy the mth check equation. T When , that is, when the calculation result of the syndrome vector S is an all-zero vector, the hard decision sequence z satisfies all constraints in the check matrix, indicating that the decoding is successful and the hard decision sequence z can be output.
[0065] When S appears in the companion vector S m ≠0, and there may be multiple elements in the syndrome vector S that are not equal to 0. Count each bit z in the hard decision sequence n Participate in calculations and make S m The number of ≠0 n ;
[0066]
[0067] For example, if S 10 ≠0, and the elements n=3 and n=5 in the 10th row of the check matrix are both 1, then z3 and z5 in the hard decision sequence z participate in the calculation of S 10 , the corresponding f3 and f5 are increased by 1 respectively. 15 ≠0, and the element n=3 in the 15th row of the check matrix is 1, then z3 participates in the calculation of S 15 , the corresponding f3 continues to increase by 1. At this time, the number of verification equations that z3 does not satisfy is f3=2, which are the 10th and 15th verification equations, respectively, and the number of verification equations that z5 does not satisfy is f5=1, which is the 10th verification equation.
[0068] S104, if f n If it is greater than or equal to the flip threshold, bit z nThe level of the bit is flipped to obtain a new hard decision sequence, wherein the flip threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits.
[0069] Bitz n Participate in calculations and make S m The number of ≠0 n Compared with the flip threshold T1, if f n If it is greater than or equal to the flip threshold, bit z n The level of the bit is flipped. After the flipping is completed according to the flipping rule, a new hard decision sequence is obtained. The flipping threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits.
[0070] For example, when the number of consecutively flipped bits is relatively large, such as greater than or equal to the second preset threshold, the sensitivity can be reduced and the flip threshold can be appropriately increased to avoid false flips and improve the decoding accuracy; for another example, when the number of consecutively flipped bits is less than the second preset threshold, the current flip threshold can be kept unchanged; for another example, if the number of consecutively unflipped bits is greater than or equal to the first preset threshold, the flip threshold can be reduced in a predetermined manner, thereby increasing the convergence speed and improving the decoding efficiency. In other embodiments, if the number of consecutively unflipped bits is less than the first preset threshold, the current flip threshold can be kept unchanged.
[0071] In a specific embodiment, for example, bit z 75 Multiple check equations are calculated, that is, the 74th column (n=75) in the check matrix contains multiple elements 1, among which the calculation results of the 1st, 5th, 19th, 31st, 55th and 89th check equations are S1, S5, S 19 , S 31 , S 55 , S 89 is not equal to zero, then z 75 The number of verification equations that are not satisfied f n =6, if the current flip threshold T1 = 5, that is, f n >T1, then flip bit z 75 , flip 1 to 0. According to this method, if z 75 ~z 85 All of them have undergone level flipping, that is, the number of continuously flipped bits is 11. If the second preset value threshold is 10, and the number of continuously flipped bits is greater than the second preset threshold, the flip threshold T1=5 is increased, for example, T1 can be increased by 1.
[0072] S105, adding 1 to the number of iterations, and returning to S102 to perform the next round of iterative calculation on the updated hard decision sequence.
[0073] After the hard decision sequence z is flipped to obtain a new hard decision sequence, return to S102 and substitute the new hard decision sequence into the verification equation S m Perform a new round of iterative calculation.
[0074] In one embodiment, if the number of iterations k is less than a preset number of iterations threshold k max , then set k = k + 1, return to S102, and perform a new round of iterative calculation. max , you can terminate the decoding, indicating that the decoding failed.
[0075] In the iterative decoding process, only flipping one bit with the maximum flip weight will result in a very limited number of bits that can be corrected by flip decoding under a limited number of iterations, and the algorithm converges slowly, resulting in low decoding efficiency. The decoding method of the embodiment of the present application flips all bits that reach the flip threshold, and the algorithm converges quickly and has high decoding efficiency. And because the flip threshold of the embodiment of the present application is dynamically adjusted according to the number of consecutive unflipped bits or the number of consecutively flipped bits, under this adjustment strategy, the flip threshold can be adjusted in real time according to the contamination of each segment of the codeword to be decoded, while improving the decoding efficiency, the decoding accuracy is taken into account, and there is no need to judge whether to adjust the flip threshold once for each group of bit flips, which reduces the amount of calculation.
[0076] The present application embodiment provides another decoding method, the flow chart is as follows Figure 4 As shown, the decoding method includes:
[0077] S401, modulate the codeword to be decoded to obtain a first sequence.
[0078] refer to Figure 2 , a binary codeword c = [c0, c1, ..., c N-1 In one embodiment, the channel has a mean of 0 and a variance of σ 2 =N0 / 2 additive white Gaussian noise channel (AWGN), the modulation mode is binary phase shift keying (BPSK) modulation. The first sequence x = [x0, x1, ..., x N-1 ], where x n =1-2c n , 0≤n≤N-1.
[0079] S402, obtaining a second sequence after the first sequence is processed by the channel.
[0080] In one embodiment, the first sequence x is contaminated by Gaussian noise after being transmitted through the channel. If the Gaussian noise variable is v n, then the first sequence x passes through the additive white Gaussian noise channel to output the second sequence r = [r0, r1, ..., r N-1 ], where r n =x n +v n , 0≤n≤N-1.
[0081] S403, obtaining a hard decision sequence according to the second sequence, and dividing the bits in the hard decision sequence into Q groups in sequence with reference to the structure of a check matrix, where Q≥2.
[0082] A hard decision is made on the second sequence. In one embodiment, the hard decision rule is: n ≥0, then z n =0, if r n <0, then z n =1, 0≤n≤N-1, the second sequence is subjected to hard decision to obtain a hard decision sequence z=[z0, z1, ..., z N-1 ].
[0083] In one embodiment, the LDPC codeword c may be grouped in advance, for example, into Q groups, and after the LDPC codeword c is output by the channel and undergoes hard decision, a Q group of hard decision sequences z including a corresponding order are obtained. For example, the bit lengths of the first Q-1 groups may be the same, all L0, and the bit length of the last group may be N-(Q-1)L0.
[0084] S404, initialize the number of iterations and the flip threshold, set the iteration number threshold, and set a first preset threshold T2 corresponding to the number of consecutive unflipped bits and a second preset threshold T3 corresponding to the number of consecutive flipped bits.
[0085] In one embodiment, the initial number of iterations can be set to k=1, and the maximum number of iterations threshold k max =50, the initial flip threshold T1=5, the first preset threshold T2=35, and the second preset threshold T3=30 can be set.
[0086] S405, according to the hard decision sequence z=[z0, z1, ..., z N-1 ] and the check matrix H, calculate the syndrome vector S, H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix.
[0087] This step may refer to S102 and will not be described in detail in this embodiment.
[0088] S406, if the syndrome vector is equal to the all-zero vector, then output the hard decision sequence; otherwise, statistically analyze the element h m,n =1 corresponding to bit z nParticipate in calculations and make S m The number of ≠0 n .
[0089] This step may refer to S103 and will not be described in detail in this embodiment.
[0090] S407, if f n If it is greater than or equal to the flip threshold, bit z n The level of the bit is flipped to obtain a new hard decision sequence, wherein the flip threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits in the hard decision sequence.
[0091] The elements in the hard decision sequence are checked in sequence, the bits meeting the flipping condition are flipped, and the number of consecutively flipped bits N1 and the number of consecutively unflipped bits N2 are counted in real time.
[0092] In one embodiment, when the number of consecutive unflipped bits is greater than or equal to a first preset threshold, the flip threshold is reduced by 1, and the flip threshold after reduction by 1 is used as the flip threshold for subsequent bit verification; in one embodiment, when the number of consecutive flipped bits is greater than or equal to a second preset threshold, the flip threshold is increased by 1, and the flip threshold after increase by 1 is used as the flip threshold for subsequent bit verification; in one embodiment, when the number of consecutive unflipped bits is less than the first preset threshold, or the number of consecutive flipped bits is less than the second preset threshold, the flip threshold can be kept unchanged, and the same flip threshold is used for subsequent bit verification.
[0093] S408, the number of iterations is increased by 1, and the process returns to step S405 to iteratively calculate the new hard decision sequence.
[0094] This step may refer to step S105 and will not be described in detail in this embodiment.
[0095] The decoding method of the embodiment of the present application groups the codewords or hard decision sequences to be decoded according to the structure of the check matrix in order to increase the storage space. In the process of checking and iterating the hard decision sequence, the flip threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits, so that the flip threshold is in dynamic adjustment in each round of iteration. Each round of iteration can flip the corresponding bits in a better way. Not only does the algorithm converge quickly, but also the decoding efficiency and decoding accuracy are high. At the same time, the method does not need to judge whether to adjust the flip threshold once according to the flip number of each group of bits, thereby reducing the amount of calculation.
[0096] The present application is further described in detail below with reference to a specific embodiment.
[0097] Take the check matrix H containing 4×40 sub-matrices as an example, where the sub-matrix dimension is 45×45, then the dimension of H is: M=4×45=180, N=40×45=1800, the binary LDPC codeword length is 1800, the number of check equations M=180, and the decoding process is as follows:
[0098] S501, initialization, current iteration number k=1, maximum iteration number k max =50, flip threshold T1=5, first preset threshold T2=35, second preset threshold T3=30.
[0099] S502, the initial hard decision sequence z 1 =[z0,z1,…,z 1800 ] is divided into 40 groups in sequence, each with 45 bits, and the initial hard decision sequence is iteratively decoded.
[0100] S502, calculate the companion vector S, if S 1 =0 T , then the decoding is successful and the output is z 1 Otherwise, execute S503.
[0101] S503, count each bit z n Participate in calculations and make S m The number of ≠0 n ,refer to Figure 5 , the horizontal axis represents the bit length, the vertical axis represents the threshold, and each peak in the figure represents a bit flip. It is only a schematic diagram. In this embodiment, the specific number of bit flips is not consistent with the number of peaks.
[0102] For each bit, if f n ≥5, the bit is flipped. Starting from z0, the number of consecutive unflipped bits N1 is initialized to 0, and the number of consecutive flipped bits N2 is initialized to 0. When z5 is the first bit to be flipped, the number of consecutive unflipped bits N1 changes from 5 (z0~z4 are not flipped) to 0, and the counting starts again. The number of consecutive flipped bits N2 changes from 0 to 1, and when z6~z 15 All need to be flipped, then N2 gradually increases from 1 to 11, and at z 16 When not flipped, N2 changes from 11 to 0, and N1 changes from 0 to 1.
[0103] exist Figure 5 Point A (if it corresponds to z 85 ), since the number of consecutive unflipped bits does not exceed the first preset threshold 35, and the number of consecutive flipped bits does not exceed the second preset threshold 30, the flip threshold T1=5 remains unchanged. 87The bit number that has not been flipped and has not been flipped continuously reaches 35. At this time, the flip threshold is reduced by 1, and T1=4.
[0104] According to the above rules, Figure 5 Point B (if it corresponds to z 186 ), the number of consecutive unflipped bits reaches 35, at this time, the flip threshold is reduced by 1, T1 = 3; Figure 5 Point C (if it corresponds to z 231 ), the number of consecutive flips reaches 30, the flip threshold is increased by 1, T1=4.
[0105] By analogy, the remaining groups are decoded and the flipped new hard decision sequence z is output. 2 .
[0106] S504, execute k=k+1=2, return to step S502, and replace the hard decision sequence z 2 Substitute into the formula for the next iterative decoding.
[0107] The decoding method of the present application is compared with the traditional method with fixed flip threshold. Figure 6 As shown, with the same number of iterations, this method can correct more bits and has higher decoding efficiency. In addition, the flip threshold is adjusted according to the number of consecutively flipped bits or the number of consecutively unflipped bits. The change of the flip threshold may occur in each group, not necessarily at the last bit of each group. The flip threshold adjustment is more real-time. Since it is not necessary to determine whether to adjust the flip threshold once for the number of flips of each group of bits, the amount of calculation can be reduced.
[0108] The present application also provides a decoding device 700, such as Figure 7 As shown, the code decoding device 700 includes a preprocessing module 701 , a calculation module 702 , a statistics module 703 , a flip module 704 and a counting module 705 .
[0109] The preprocessing module 701 is used to obtain a hard decision sequence z=[z0, z1, ..., z N-1 ];
[0110] The calculation module 702 is used to calculate the syndrome vector S according to the hard decision sequence and the check matrix H of the codeword to be decoded, where H = [h m,n ]M ×N ,h m,n is the element in the mth row and nth column of the check matrix, m=0, 1, ...M-1, n=0, 1, ...N-1;
[0111] S=(S0,S1,...,S M-1 ) T ;
[0112]
[0113] The statistical module 703 is used to output the hard decision sequence if the syndrome vector is equal to the all-zero vector; otherwise, the statistics and element h m,n =1 corresponding to bit z n Participate in calculations and make S m The number of ≠0 n ;
[0114] Flip module 704, used if f n is greater than or equal to the flip threshold, then the bit z n The level of the bit sequence is flipped to obtain a new hard decision sequence, wherein the flip threshold is adjusted according to the number of consecutive unflipped bits or the number of consecutive flipped bits;
[0115] The counting module 705 is used to add 1 to the number of iterations and return to the step of calculating the syndrome vector S according to the hard decision sequence and the check matrix H of the codeword to be decoded, so as to perform the next round of iterative calculation on the updated hard decision sequence.
[0116] The present application also provides a device, the structural diagram of which is as follows: Figure 8 As shown, the device 800 includes: a memory 801 and a processor 802, wherein the memory 801 stores a computer program, and when the computer program is executed by the processor 802, the process in the decoding method provided in this embodiment is implemented.
[0117] An embodiment of the present application further provides a readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the decoding method provided in the present application.
[0118] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structural or equivalent process transformations made using the contents of the specification and drawings of the present application, such as the mutual combination of technical features between the embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A decoding method, characterized in that: include: Modulating the codeword to be decoded to obtain a first sequence; Acquire a second sequence after the first sequence is processed by a channel; According to the second sequence, a hard decision sequence z=[z0, z1, …, z N-1 ]; According to the hard decision sequence and the check matrix H of the codeword to be decoded, a syndrome vector S is calculated, where H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix, m=0, 1, ...M-1, n=0, 1, ...N-1; S=(S0,S1,…,S M-1 ) T ; If the syndrome vector is equal to the all-zero vector, the hard decision sequence is output; otherwise, the statistics and element h m,n =1 corresponding to bit z n Participate in calculations and make S m The number of ≠0 n ; If f n is greater than or equal to the flip threshold, then the bit z n The level of the bit sequence is flipped to obtain a new hard decision sequence, wherein the flip threshold is adjusted according to the number of bits that have not been flipped continuously or the number of bits that have been flipped continuously; the flip threshold is adjusted according to the number of bits that have not been flipped continuously, including: if the number of bits that have not been flipped continuously is greater than or equal to a first preset threshold, the flip threshold is reduced; the flip threshold is adjusted according to the number of bits that have been flipped continuously, including: if the number of bits that have been flipped continuously is greater than or equal to a second preset threshold, the flip threshold is increased; The number of iterations is increased by 1, and the process returns to the check matrix H based on the hard decision sequence and the codeword to be decoded, and the syndrome vector S is calculated; so that the updated hard decision sequence is subjected to the next round of iterative calculation.
2. The decoding method according to claim 1, characterized in that: If the number of consecutive bits that have not been flipped is greater than or equal to a first preset threshold, reducing the flip threshold includes: If the number of consecutive unflipped bits is greater than or equal to a first preset threshold, the flip threshold is reduced by 1.
3. The decoding method according to claim 1, characterized in that: If the number of continuously flipped bits is greater than or equal to a second preset threshold, increasing the flip threshold includes: If the number of continuously flipped bits is greater than or equal to the second preset threshold, the flip threshold is increased by 1.
4. The decoding method according to claim 1, characterized in that: The check matrix includes a plurality of circulant matrices, wherein the circulant matrices are obtained by cyclically shifting elements in a base matrix, and the elements in the base matrix are obtained by shifting a unit matrix.
5. A decoding device, characterized in that: include: A preprocessing module, used for modulating the codeword to be decoded to obtain a first sequence; and for obtaining a second sequence after the first sequence is processed by a channel; and for obtaining a hard decision sequence z=[z0, z1, ..., z N-1 ]; A calculation module is used to calculate a syndrome vector S according to the hard decision sequence and the check matrix H of the codeword to be decoded, wherein H = [h m,n ] M×N ,h m,n is the element in the mth row and nth column of the check matrix, m=0, 1, ...M-1, n=0, 1, ...N-1; s=(S0,S1,…,S M-1 ) T ; A statistical module is used to output the hard decision sequence if the syndrome vector is equal to the all-zero vector; otherwise, the statistics and element h m,n =1 corresponding to bit z n Participate in calculations and make S m The number of ≠0 n ; Flip module, used for n is greater than or equal to the flip threshold, then the bit z n The level of the bit sequence is flipped to obtain a new hard decision sequence, and the flip threshold is adjusted according to the number of bits that have not been flipped continuously or the number of bits that have been flipped continuously; the flip threshold is adjusted according to the number of bits that have not been flipped continuously, including: if the number of bits that have not been flipped continuously is greater than or equal to a first preset threshold, the flip threshold is reduced; the flip threshold is adjusted according to the number of bits that have been flipped continuously, including: if the number of bits that have been flipped continuously is greater than or equal to a second preset threshold, the flip threshold is increased; The counting module is used to add 1 to the number of iterations and return to the check matrix H according to the hard decision sequence and the codeword to be decoded to calculate the syndrome vector S; so as to perform the next round of iterative calculation on the updated hard decision sequence.
6. A device, characterized in that: The device comprises: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the decoding method according to any one of claims 1 to 4 is implemented.
7. A storage device, characterized in that: The storage device includes the decoding device according to claim 5, or performs the decoding method according to any one of claims 1-4.
