WO2012037749A1 - Encoding method for low density parity check code and apparatus thereof - Google Patents

Encoding method for low density parity check code and apparatus thereof Download PDF

Info

Publication number
WO2012037749A1
WO2012037749A1 PCT/CN2010/079103 CN2010079103W WO2012037749A1 WO 2012037749 A1 WO2012037749 A1 WO 2012037749A1 CN 2010079103 W CN2010079103 W CN 2010079103W WO 2012037749 A1 WO2012037749 A1 WO 2012037749A1
Authority
WO
WIPO (PCT)
Prior art keywords
matrix
bits
code
codeword
unit
Prior art date
Application number
PCT/CN2010/079103
Other languages
French (fr)
Chinese (zh)
Inventor
龚贤卫
袁志锋
徐俊
李长兴
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012037749A1 publication Critical patent/WO2012037749A1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/11Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits using multiple parity bits
    • H03M13/1102Codes on graphs and decoding on graphs, e.g. low-density parity check [LDPC] codes
    • H03M13/1148Structural properties of the code parity-check or generator matrix
    • H03M13/116Quasi-cyclic LDPC [QC-LDPC] codes, i.e. the parity-check matrix being composed of permutation or circulant sub-matrices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/63Joint error correction and other techniques
    • H03M13/635Error control coding in combination with rate matching
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/65Purpose and implementation aspects
    • H03M13/6508Flexibility, adaptability, parametrability and configurability of the implementation
    • H03M13/6516Support of multiple code parameters, e.g. generalized Reed-Solomon decoder for a variety of generator polynomials or Galois fields
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/65Purpose and implementation aspects
    • H03M13/6522Intended application, e.g. transmission or communication standard
    • H03M13/6527IEEE 802.11 [WLAN]
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/65Purpose and implementation aspects
    • H03M13/6577Representation or format of variables, register sizes or word-lengths and quantization
    • H03M13/658Scaling by multiplication or division
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/65Purpose and implementation aspects
    • H03M13/6577Representation or format of variables, register sizes or word-lengths and quantization
    • H03M13/6591Truncation, saturation and clamping

Definitions

  • the present invention relates to the field of digital communications, and in particular, to a method and apparatus for encoding a Low Density Parity Check (LDPC) code.
  • LDPC Low Density Parity Check
  • the digital communication system is composed of a transmitting end, a channel, and a receiving end, where the transmitting end usually includes a source, a source encoder, a channel encoder, and a modulator (or a writing unit); Typically, a demodulator (or readout unit), a channel decoder, a source decoder, and a sink are included; there is a channel (or storage medium) between the transmitting end and the receiving end, and a noise source is present in the channel.
  • the channel coding link (including channel coding and decoding, modulation and demodulation, etc.) is the most critical technology of the entire digital communication physical layer, which determines the effectiveness and reliability of the underlying transmission of the digital communication system.
  • the channel encoder is designed to combat a variety of noises and interferences during transmission. By artificially adding redundant information, the system has the ability to automatically correct errors, thereby ensuring the reliability of information transmission.
  • LDPC code is a kind of linear block code that can be defined by a very sparse parity check matrix or bipartite graph. It is the sparsity of its check matrix that can realize low complexity compiling code, which makes LDPC practical. .
  • An MxN parity check matrix H defines a constraint that each N-bit codeword satisfies M parity sets, that is, the encoded N-bit codeword has an M-bit check bit, N - M Bit information bit.
  • the parity check matrix H of the LDPC code be a matrix of (3 ⁇ 4 x z )x( xz), which is composed of 3 ⁇ 4 X block matrices, each of which is a different power of the basic permutation matrix of zxz
  • the basic permutation matrix is an identity matrix, they are all cyclic shift matrices of the identity matrix, as shifted to the right, with the following form:
  • each block matrix can be uniquely identified.
  • the power of the unit matrix can be represented by 0, and the power of the zero matrix is represented by -1.
  • a power matrix is obtained.
  • the definition here is the basic matrix of H, and the extension matrix called H.
  • the encoder of the LDPC code is uniquely generated from the fundamental matrix, the spreading factor z, and the basic permutation matrix.
  • LDPC uses a basic matrix for each different spreading factor, then for each different code length, the codec of the LDPC code needs to store a basic matrix. When the code length is very large, it needs to store a lot. The basic matrix needs to consider storage and other issues. Therefore, when the variable code length needs to be realized, the LDPC code of a plurality of code lengths within a certain range of the same code rate will use the same matrix of the basic matrix. We refer to this matrix as a unified base matrix.
  • the correction is to use a spreading factor of different code lengths to correct non-negative values in the base matrix or the unified base matrix HTM such that the corrected element value is smaller than the spreading factor value under the code length.
  • the elements in the TM represent the power of the basic permutation matrix, and the basic permutation matrix, that is, the unit matrix of zxz, once per cycle, is equivalent to shifting the unit matrix to the right by one bit, that is, the unit matrix is shifted to the right by one column.
  • the basic cyclic matrix is cyclically shifted by at most z-1 times; if it is repeated, the obtained unit matrix is equal to no cyclic shift.
  • modulo (mod) round (floor) or round (round+round), etc.
  • the base matrix H, the non-i-th row and the j-th column.
  • the negative element which is the non-negative element of the i-th row and the j-th column in the corrected base moment, has:
  • the LDPC code of the specific code rate variable code length has the same form of the basic matrix, it is entirely possible to use an encoder/decoder, and the same form of the basic matrix can also be called a unified basic matrix.
  • the code rate supported by the LDPC code is 1/2, 2/3, 3/4, 5/6.
  • the LDPC coding matrix with different mother code rate is usually used.
  • H to ensure that the LDPC code has a certain degree of flexible bit rate and performance, at this time, there will be four basic matrices requiring multiple LDPC codecs in hardware, which will greatly increase the hardware implementation cost; or use an adaptable
  • a variety of mother code rate encoders/decoders are used to implement different code rate codecs, but the hardware design can be very complicated, which also increases the cost of hardware implementation. Summary of the invention
  • a method for encoding a low-density parity check LDPC code comprising the steps of: comparing a mother code rate and a transmission code rate supported by a unified base matrix, and determining a length K of the input information packet bit according to the comparison result ,;
  • the obtained mother code code word bits are processed to obtain code word bits to be transmitted.
  • the method further includes: setting a unified base matrix and an expansion factor of the LDPC code.
  • the comparing the mother code rate and the transmission code rate supported by the unified basic matrix further includes: receiving the current transmission code rate;
  • the determining the length K of the input information packet bit according to the comparison result is:
  • R m is the mother code rate
  • m b respectively is the number of rows and columns of the unified base matrix
  • Z is the expansion factor
  • j C (x) is the integer from the X up, down An integer or rounding takes one of the integers.
  • Determining, according to the unified basic matrix and the spreading factor, the coding matrix of the LDPC code is: modifying the unified basic matrix, and expanding the modified basic matrix by using the unit matrix of zxz according to the spreading factor z to obtain an encoding matrix of the LDPC code .
  • the information packet bit of the length K is received, and the information bit to be encoded is determined as: At that time, the received information packet length of length K is directly used as the information bit to be encoded; A padding bit is added to the information packet bit to form an information bit to be encoded of length .
  • the processing of the encoded mother code codeword bits is performed as follows:
  • the mother code codeword obtained by the coding is rearranged, wherein the mother code codeword bits before the rearrangement are, ⁇ , -, ⁇ , and the rearranged mother code codeword bits are n.., ⁇ rearrangement formula is : ! S PV denotes a codeword rearrangement vector whose element set is m 6 +l, - +2 ⁇ , -1 ⁇ , PV(x) denotes an element of the PV vector index x, and X is a non-negative integer; When R ⁇ R m , the rearranged mother code codeword bits A ⁇ C ⁇ - ⁇ are taken f_[/] bits from the smallest to the largest, as the codeword bits to be transmitted;
  • the y ⁇ xz- padding bits to be added are rearranged from the mother code codeword bits.
  • the system bits in A, ⁇ ⁇ ⁇ , are deleted, and the remaining mother code codeword bits are used as codeword bits to be transmitted.
  • the encoding matrix for determining the LDPC code is:
  • the extension matrix is used as the coding matrix of the LDPC code; when ⁇ , the X ⁇ xz/ G_" column on the right side of the extension matrix is intercepted, and the truncated matrix is used as the coding matrix of the LDPC code; or
  • the unified base matrix is corrected to obtain a modified base ⁇ -R a base matrix
  • the modified base matrix is extended by the unit matrix of zxz to obtain the coding matrix of the LDPC code;
  • ⁇ ? m the + ⁇ column to the right of the modified basic matrix is intercepted,
  • the matrix obtained by the truncation is expanded by using the unit matrix of ZXZ to obtain an encoding matrix of the LDPC code.
  • the information packet bit whose length is K is received, and the information bits to be encoded are determined as follows:
  • the information packet bit of length K is directly used as the information bit to be encoded.
  • the processing of the encoded mother code codeword bits is performed as follows:
  • the coded mother code codewords are rearranged, wherein the mother code codeword bits before the rearrangement are ⁇ , -, ⁇ , and the rearranged mother code codeword bits are ⁇ 0 ⁇ ⁇ , ⁇ ⁇ , —,
  • the rearranged mother code codeword bits, A, ⁇ ⁇ ⁇ , ⁇ ⁇ , - are taken from the smallest to the largest in order to take C C J J bits as the code word bits to be transmitted;
  • An apparatus for encoding an LDPC code comprising: a coding unit, the apparatus further comprising: a comparison unit, a packet bit determining unit, an encoding matrix determining unit, an information bit determining unit, and a codeword processing unit;
  • a comparison unit configured to compare a size of a mother code rate and a transmission code rate supported by the unified base matrix
  • a packet bit determining unit configured to determine a length of the input information packet bit according to the comparison result of the comparison unit ;';
  • An encoding matrix determining unit configured to determine an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor
  • An information bit determining unit configured to receive an information packet bit having a length of ⁇ , and determine an information bit to be encoded, and transmit the information bit to the coding unit;
  • a codeword processing unit configured to process the mother codeword obtained by performing LDPC encoding on the coding unit, to obtain a codeword bit to be transmitted.
  • the apparatus further includes: a setting unit configured to set a unified basic matrix of the LDPC code and an extension factor.
  • the device also includes an input unit for receiving a current transmission code rate
  • the coding matrix determining unit is specifically configured to modify the unified basic matrix, and according to the spreading factor Z, use the unit matrix of Z X Z to extend the modified basic matrix to obtain
  • the coding matrix of the LDPC code The information packet length of the received length K is directly used as the information bit to be encoded; when the comparison result of the comparison unit is ? tt ⁇ ? m , the padding bit is added to the information packet bit of length K to form a length.
  • the information bits to be encoded are directly used as the information bit to be encoded; when the comparison result of the comparison unit is ? tt ⁇ ? m , the padding bit is added to the information packet bit of length K to form a length.
  • the comparison result of the comparison unit is R ⁇ R m
  • the rearranged mother code code word bit ⁇ is used. , ..., ⁇ — ⁇ to take the index from small to large in order to take _1 ⁇ 2 c ( / ? J bits as the codeword bits to be transmitted;
  • the coding matrix determining unit is specifically configured to modify the unified basic matrix, and expand the modified basic matrix by using the unit matrix of z X z according to the spreading factor z to obtain the LDPC.
  • the spreading matrix of the code when the comparison result of the comparison unit is ⁇ ? m , the extended matrix is used as the coding matrix of the LDPC code; when the comparison result of the comparison unit is ⁇ ? m , the _1 ⁇ 2 3 ⁇ 4 ⁇ /(1 of the right side of the extended matrix is intercepted - ⁇ column, the truncated matrix is used as the coding matrix of the LDPC code; or when k b ' is a positive integer, the unified basic matrix is corrected to obtain the modified basic matrix;
  • the modified base matrix is expanded by the unit matrix of ZXZ to obtain the coding matrix of the LDPC code;
  • the comparison result of the comparison unit is ⁇ ? m
  • the + ⁇ column on the right side of the modified basic matrix is intercepted, and according to the spreading factor z, the matrix obtained by the truncation is expanded by the unit matrix of ⁇ ⁇ , to obtain the coding matrix of the LDPC code.
  • the information bit determining unit is specifically configured to directly use the received information packet bit of length K as the information bit to be encoded.
  • the codeword processing unit is specifically configured to rearrange the mother codewords obtained by the coding unit, wherein the mother codeword bits before the rearrangement are 4, 4, . . . , 4 + i, the rearranged mother Code code word bit is
  • PV represents the codeword rearrangement vector, its element set is ⁇ " /z,, " /z, + l, " / ⁇ , + 2 ⁇ , " + 1 ⁇ , PV (x) represents the index in the PV vector
  • X is a non-negative integer
  • the comparison result of the comparison unit is R ⁇ R m
  • the rearranged mother code code word bits ⁇ ..., ⁇ + ⁇ - i are taken from the smallest to the largest in order to take _1 ⁇ 2 C ( / ? J bits, as Transmitted codeword bits;
  • the LDPC code encoding method and apparatus determine a basic matrix and a spreading factor, and perform processing of determining an input information packet length or a coding matrix according to the received transmission code rate to obtain a codeword that satisfies the foregoing transmission code rate.
  • the variability of the code rate is realized on the basis of the optimal performance, the complexity of the hardware design for realizing different code rates is reduced, and the implementation cost is low.
  • 1 is a structural block diagram of a digital communication system
  • FIG. 2 is a schematic flowchart of an implementation of an LDPC code encoding method according to the present invention
  • FIG. 3 is a schematic flowchart of a first embodiment of an LDPC code encoding method according to the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for encoding an LDPC code according to the present invention.
  • the basic idea of the present invention is: comparing the mother code rate and the transmission code rate supported by the unified basic matrix, determining the length K of the input information packet bit according to the comparison result, and determining the coding of the LDPC code according to the unified basic matrix and the spreading factor a matrix; determining, by the received information packet bit of length K, the information bits to be encoded; performing LDPC encoding on the information bits to be encoded by using the coding matrix, and processing the encoded codeword bits of the encoded code to obtain The transmitted codeword bits.
  • FIG. 2 shows a flow of a method for encoding an LDPC code provided by the present invention. As shown in FIG. 2, the method includes the following steps:
  • the system can determine a unified base moment of size m fi x according to actual needs.
  • K can be, but is not limited to, the following formula:
  • S204 determining, by the received information packet bit of length K, the information bit to be encoded; specifically, processing the information packet bit according to the size of the coding matrix and the comparison result of R t oR m to obtain information to be encoded Bit.
  • S205 Perform LDPC encoding on the information bits to be encoded by the coding matrix H fe to obtain a mother code codeword bit, and process the mother code codeword bits to obtain a codeword bit to be transmitted.
  • the length of the codeword bit to be transmitted may be determined according to the transmission code rate, and the codeword bits to be transmitted are rearranged, shortened, or punctured according to the determined length of the codeword bit to be transmitted.
  • the method includes the following steps:
  • the spreading factor z is determined to be a fixed constant according to the code length required for transmission in the digital communication system.
  • the spreading factor z is generally 2 A power of a power or a positive integer multiple of a power of 2.
  • the information packet bit of the received length K is directly used as the information bit to be encoded; when ? tt ⁇ ? m , padding is added to the information packet bit of length K.
  • ⁇ ( ⁇ ⁇ ) encoding matrix ⁇ 2 treats information bits encoded by 3 ⁇ 4 ⁇ ⁇ ) LDPC encoding, to give mother code word bits of the mother code word bits, to give the codeword bits to be transmitted ;
  • the codewords of the obtained mother code codeword bits may be first rearranged, and the codeword bits of the mother code before the rearrangement are assumed to be ⁇ , ..., ⁇ , after the codewords are rearranged.
  • Mother code The word bit is S. , A, ⁇ ⁇ ⁇ , , then the codeword rearrangement is represented by the following formula:
  • PV represents a codeword rearrangement vector
  • PV includes a different element whose element set is ⁇ n b -m b , n b -m b + n b - m b +2, ⁇ , - 1 ⁇ , And each element is different from each other, PV(x) means
  • the puncturing operation is performed, that is, the mother code code word bits obtained after rearranging
  • the shortening operation is performed, and the y ⁇ xz- padding bits added in S307 are rearranged from the mother code codeword bits ⁇ . , ..., ⁇ - i is deleted from the system bits (for the purpose of the deletion operation here, therefore, the padding bits are preferably all 0s or all 1 bits in S307), and the remaining mother code codeword bits are used as the code to be transmitted. Word bits.
  • Example 1 The first embodiment of the encoding method of the LDPC code is specifically described below with reference to an example:
  • Example 1 The first embodiment of the encoding method of the LDPC code is specifically described below with reference to an example:
  • the codeword rearrangement is performed on the mother code codeword bits, and it is assumed that the mother code codeword bits before the rearrangement are A0 , A-, A2im , and the mother code codeword bits after the codeword rearrangement are ⁇ , ⁇ ⁇ , then the codeword rearrangement is represented by the following formula:
  • PV the codeword rearrangement vector
  • PV ⁇ 20, 21, 22, 23 ⁇ .
  • 0.78 ⁇ 0.833 that is, ⁇ i? m .
  • the mother code codeword bits obtained by rearranging 558 all 0 bits in front of the information packet bits are rearranged. , 1 ,..., .
  • the system bits in 3 are deleted, and the remaining mother code code words are S 558 , 9 , ⁇ , . 3 as the codeword bit to be transmitted.
  • the first 1280 bits are system bits, and the last 256 bits are parity bits.
  • the codeword rearrangement is performed on the mother code codeword bits, and it is assumed that the mother code codeword bits before the rearrangement are ⁇ ,..., ⁇ , and the mother code codeword bits after the codeword rearrangement are ⁇ , ⁇ , ⁇ , ⁇ 535 , then the codeword rearrangement is represented by the following formula: A k ⁇ 1280
  • the spreading factor z is determined to be a fixed constant according to the code length of the digital communication system in the transmission.
  • the expansion factor z - is a power of 2 or a positive integer multiple of a power of 2.
  • the size of the coding matrix of the LDPC code at this time is ( x z )x( + ⁇ xz).
  • the corrected basis may also be obtained according to the comparison result of 1 ⁇ and R m .
  • the matrix is processed, it is expanded by the spreading factor z to obtain an encoding matrix H fe of the LDPC code.
  • the modified base matrix is expanded, and the coding matrix is specifically the same as the method of obtaining the coding matrix by the above method, and will not be described again;
  • ⁇ ⁇ by intercepting ⁇ right
  • the k b '+m b column gives a matrix H fi m ° di/M - of size ⁇ x( + ); and the expansion factor z, the extension gives ( WFI X Z )X(( + )XZ
  • K ' is a positive integer, so you can get K ' +M , ie l_i? tt lR ⁇
  • the size is also (m b xz x(K, +m b xz .
  • the first bit of the mother code codeword bit is a systematic bit
  • the last m fi xz bits are check bits
  • the codeword rearrangement of the obtained mother code codeword bits is first performed, and the mother code codeword bits before the rearrangement are ⁇ , ..., ⁇ + ⁇ , the codeword weight
  • the codeword rearrangement is represented by the following formula:
  • PV represents the codeword rearrangement vector
  • PV contains ⁇ different elements, and its element set is ⁇ " /z], " /z] + l, " /z ] + 2, —, " / ⁇ ] + ⁇ _1 ⁇ , and each element is different from each other.
  • PV(x) represents an element of the PV vector indexed by X, where X is a non-negative integer.
  • the puncturing operation is performed, that is, the mother code code word bits ⁇ , ⁇ ..., ⁇ obtained after the rearrangement are taken as / C ( / ? tt ) bits according to the index from small to large, As to be transmitted
  • the codeword bits, ie, ⁇ , ..., ⁇ , ⁇ - i are the codeword bits to be transmitted.
  • Xx) can represent an integer that takes an integer from X, an integer down, or a rounded integer. Specifically, an appropriate operation can be selected for /IfflC(X) according to the actual application.
  • the mother code codeword bits, ⁇ ..., ⁇ obtained after the rearrangement can be used as the codeword bits to be transmitted.
  • the LDPC matrix ⁇ ⁇ of (6x96)x(24x96) is obtained, and 0.9>0.75, then the matrix ⁇ ⁇ is used as the coding matrix H bz of the LDPC code.
  • the codewords are rearranged for the mother codeword bits, assuming that the mother codeword bits before the rearrangement are 4, -, 3 ⁇ 3 'the codeword bits after the codeword rearrangement are 3 ⁇ 4, ..., . 3 , then the codeword rearrangement is represented by the following formula:
  • PV represents the codeword rearrangement vector
  • PV ⁇ 18,19,20,21,22,23 ⁇ admirands since 0.9>0.75
  • the information packet bit of length K is received, and the information packet bit of length 576 is directly used as the information bit to be encoded.
  • 576 bits are system bits and the last 384 bits are parity bits.
  • PV represents the codeword rearrangement vector
  • PV ⁇ 9,10,11, 12,13, 14 ⁇ .
  • ie R ⁇ R m since the interception operation has been performed in the process of obtaining the coding matrix in 3, the mother code code word bits obtained after the rearrangement, ⁇ , . . . , 59 can be used as the code word bits to be transmitted.
  • FIG. 5 shows the structure of an apparatus for encoding an LDPC code provided by the present invention.
  • the apparatus includes: an encoding unit 10, a comparing unit 20, a packet bit determining unit 30, an encoding matrix determining unit 40, and information bits.
  • a determining unit 50 and a codeword processing unit 60 wherein the comparing unit 20 is configured to compare the size of the mother code rate and the transmission code rate supported by the unified base matrix; the grouping bit determining unit 30 is configured to determine according to the comparison result of the comparing unit 20 The length of the input information packet bit ⁇ , the encoding matrix determining unit 40 is configured to determine an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor; the information bit determining unit 50 is configured to receive the input information bit, and determine according to the packet bit determining unit 30.
  • the information packet bit length is obtained, the information packet bit of length K is obtained, and the information bits to be encoded are determined and transmitted to the coding unit 10; the codeword processing unit 60 is used to perform LDPC coding on the coding unit 10 The codeword word is processed to obtain the codeword bits to be transmitted.
  • the apparatus further includes a setting unit 70 configured to set a unified base matrix and an expansion factor of the LDPC code.
  • the device further includes an input unit 80, configured to receive a current transmission code rate
  • the expansion factor, /ifflc c) is an integer that takes an integer up to x, an integer down or rounds to an integer.
  • the coding matrix determining unit 40 is specifically configured to modify the unified basic matrix, and according to the spreading factor
  • the information bit determining unit 50 is specifically configured to: when the comparison result of the comparing unit 20 is ⁇ , the information packet bit of the received length K is directly used as the information bit to be encoded; when the comparison result of the comparing unit 20 is When ⁇ m , a padding bit is added to the information packet bit of length K to form an information bit to be encoded of length ⁇ xz, wherein the padding bit is all 0 bits or all 1 bit.
  • the codeword processing unit 60 is specifically configured to rearrange the mother codewords obtained by the encoding unit 10, wherein the mother codeword bits before the rearrangement are, ⁇ , ..., ⁇ , rearranged mother
  • the codeword bits are BoU ⁇ and the rearrangement formula is:
  • the information bit determining unit 50 is specifically configured to directly use the received information packet bit of length K as the information bit to be encoded.
  • the codeword processing unit 60 is specifically configured to rearrange the mother codewords obtained by the encoding unit 10, wherein the mother codeword bits before the rearrangement are ⁇ ), ⁇ , ..., ⁇ , rearranged mother
  • the code word bits are ⁇ 0 ⁇ , ⁇ , ⁇ ⁇ ,— , and the rearrangement formula is:
  • PV represents the codeword rearrangement vector, its element set is ⁇ " /z,, " /z, + l, " /z, + 2, ⁇ , " + 1 ⁇ , PV (x) represents the index in the PV vector X is a non-negative integer for the element of x;
  • the comparison result of the comparison unit 20 is ⁇ ? m
  • the rearranged mother code codeword bits ⁇ 0 ⁇ , ⁇ ⁇ , - are indexed from small to large in order Taking f K, IRJ bits as the codeword bits to be transmitted; when the comparison result of the comparison unit 20 is ⁇ ⁇ , the mother code codeword bits will be directly rearranged.
  • the encoding and decoding are mutually corresponding. Therefore, the encoding method and apparatus for the LDPC code provided by the present invention have corresponding inverse operations on the decoding method and the decoding device, and are not described again.

Landscapes

  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Error Detection And Correction (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

An encoding method for Low Density Parity Check (LDPC) code and the apparatus thereof are provided by the present invention. The method includes: comparing the code rate of a mother code supported by an unified base matrix with a transmission code rate and determining the length K' of input information packet bits based on the result of comparison; determining an encoding matrix of the LDPC code based on the unified base matrix and an expanding factor; determining the information bits to be encoded according to the received information packet bits with the length of K'; by using the encoding matrix, implementing the LDPC encoding for the information bits to be encoded and processing the encoded codeword bits of the mother code to obtain the codeword bits to be transmitted. The encoding method for LDPC code and the apparatus thereof provided by the present invention determine the base matrix and the expanding factor, determine the length of the input information packet or process the encoding matrix based on the received transmission code rate, obtain the codeword meeting the preceding transmission code rate, realize the variability of the code rate on the basis of optimal performance, reduce the hardware design complexity, and has a low cost.

Description

一种低密度奇偶校验码的编码方法及装置 技术领域  Method and device for encoding low density parity check code
本发明涉及数字通信领域,尤其涉及一种低密度奇偶校验( Low Density Parity Check, LDPC )码的编码方法及装置。 背景技术  The present invention relates to the field of digital communications, and in particular, to a method and apparatus for encoding a Low Density Parity Check (LDPC) code. Background technique
目前, 数字通信系统是常用的通信系统。 如图 1 所示, 数字通信系统 由发射端、 信道和接收端组成, 其中, 发射端通常包括信源、 信源编码器、 信道编码器和调制器 (或写入单元)等部分; 接收端通常包括解调器 (或 读出单元)、 信道译码器、 信源译码器和信宿; 发射端和接收端之间存在信 道(或存储介质), 并且信道中存在噪声源。 其中, 信道编码链路(包括信 道编译码、 调制解调等)是整个数字通信物理层的最关键技术, 其决定了 数字通信系统底层传输的有效性和可靠性。  Currently, digital communication systems are commonly used communication systems. As shown in FIG. 1, the digital communication system is composed of a transmitting end, a channel, and a receiving end, where the transmitting end usually includes a source, a source encoder, a channel encoder, and a modulator (or a writing unit); Typically, a demodulator (or readout unit), a channel decoder, a source decoder, and a sink are included; there is a channel (or storage medium) between the transmitting end and the receiving end, and a noise source is present in the channel. Among them, the channel coding link (including channel coding and decoding, modulation and demodulation, etc.) is the most critical technology of the entire digital communication physical layer, which determines the effectiveness and reliability of the underlying transmission of the digital communication system.
信道编码器是为了抗击传输过程中各种各样的噪声和干扰, 通过人为 地增加冗余信息, 使得系统具有自动纠正差错的能力, 从而保证信息传输 的可靠性。 LDPC码是一类可以用非常稀疏的奇偶校验矩阵或者二分图定义 的线性分组码, 正是利用它的校验矩阵的稀疏性, 才能实现低复杂度的编 译码, 从而使得 LDPC走向实用化。  The channel encoder is designed to combat a variety of noises and interferences during transmission. By artificially adding redundant information, the system has the ability to automatically correct errors, thereby ensuring the reliability of information transmission. LDPC code is a kind of linear block code that can be defined by a very sparse parity check matrix or bipartite graph. It is the sparsity of its check matrix that can realize low complexity compiling code, which makes LDPC practical. .
一个 MxN的奇偶校验矩阵 H定义了每个具有 N比特的码字满足 M个 奇偶校验集的约束, 即编码得到的 N比特码字中, 具有 M比特的校验位, N - M比特的信息位。 设 LDPC码的奇偶校验矩阵 H为(《¾ xz)x( xz)的矩 阵, 它是由《¾ X 个分块矩阵构成, 每个分块矩阵都是 zxz的基本置换矩阵 的不同幂次, 基本置换矩阵为单位矩阵时, 它们都是单位矩阵的循环移位 矩阵, 如右移, 具有如下形式:
Figure imgf000004_0001
An MxN parity check matrix H defines a constraint that each N-bit codeword satisfies M parity sets, that is, the encoded N-bit codeword has an M-bit check bit, N - M Bit information bit. Let the parity check matrix H of the LDPC code be a matrix of (3⁄4 x z )x( xz), which is composed of 3⁄4 X block matrices, each of which is a different power of the basic permutation matrix of zxz When the basic permutation matrix is an identity matrix, they are all cyclic shift matrices of the identity matrix, as shifted to the right, with the following form:
Figure imgf000004_0001
通过这样的幂次 就可以唯一标识每一个分块矩阵, 单位矩阵的幂次 可用 0表示, 零矩阵的幂次用 - 1表示。 这样, 如果将 H的每个分块矩阵 都用它的幂次代替, 就得到一个 的幂次矩阵 。 这里定义 是 H的 基础矩阵, H称为 的扩展矩阵。 在实际编码时, z=码长 /基础矩阵的列数 =N/nb, 称为扩展因子。 例如, 矩阵 Through such a power, each block matrix can be uniquely identified. The power of the unit matrix can be represented by 0, and the power of the zero matrix is represented by -1. Thus, if each block matrix of H is replaced by its power, a power matrix is obtained. The definition here is the basic matrix of H, and the extension matrix called H. In actual coding, z = code length / number of columns of the base matrix = N / n b , called the spreading factor. For example, matrix
H
Figure imgf000004_0002
H
Figure imgf000004_0002
可以用下面的参数 z、 一个 2x4的基础矩阵 和基本置换矩阵即一个 zxz的单位矩阵扩展得到, Can be obtained by the following parameter z , a 2x4 base matrix and a basic permutation matrix, ie a zxz unit matrix extension,
0 1 0 -1 0 1 0 -1
z=3和 =  z=3 and =
2 1 2 1 因此, 也可以说 LDPC码的编码器是由基础矩阵 、 扩展因子 z及基 本置换矩阵唯一生成。  2 1 2 1 Therefore, it can also be said that the encoder of the LDPC code is uniquely generated from the fundamental matrix, the spreading factor z, and the basic permutation matrix.
如果对于每个不同的扩展因子, LDPC都釆用一个基础矩阵, 那么对于 每个不同的码长, LDPC码的编译码器都需要存储一个基础矩阵, 当码长很 多种时, 就需要存储很多基础矩阵, 就需要考虑存储等问题。 因此, 需要 实现变码长的时候, 同一码率的一定范围内多种码长的 LDPC码会使用同 一形式的基础矩阵,我们把这个矩阵称为统一基础矩阵 。不同码长时, If LDPC uses a basic matrix for each different spreading factor, then for each different code length, the codec of the LDPC code needs to store a basic matrix. When the code length is very large, it needs to store a lot. The basic matrix needs to consider storage and other issues. Therefore, when the variable code length needs to be realized, the LDPC code of a plurality of code lengths within a certain range of the same code rate will use the same matrix of the basic matrix. We refer to this matrix as a unified base matrix. When different code lengths,
H, 进行修正和扩展, 可以得到奇偶校验矩阵 H, 使得生成的编译码 可以适用于码长可变的场合。 其中, 修正是利用不同码长的扩展因子对基础矩阵 或统一基础矩阵 H ™中的非负值进行修正, 使得修正后元素值小于该码长下的扩展因子 值。这是因为 或 ™中的元素代表了基本置换矩阵的幂次, 而基本置换 矩阵, 即 z x z的单位矩阵, 每循环一次, 相当于单位矩阵循环右移一位, 即单位矩阵循环右移一列, 因此基础循环矩阵最多循环移位 z-1 次; 如果 循环 次, 得到的还是单位矩阵, 等于没有进行循环移位。 修正算法有很 多种,例如,可以釆用取模 ( mod )、取整( scale+floor )或舍入( scale+round ) 等, 设 ^为基础矩阵 H,中第 i行第 j列的非负元素, 为修正后的基础矩 中第 i行第 j列的非负元素, 有: 对于取模 ( mod )算法: 三 Ρ„ mod z三 PH 对于取整(scale+floor )算法: Pf:H, for correction and extension, can get the parity check matrix H, so that the generated compiled code Can be applied to occasions where the code length is variable. Wherein, the correction is to use a spreading factor of different code lengths to correct non-negative values in the base matrix or the unified base matrix HTM such that the corrected element value is smaller than the spreading factor value under the code length. This is because or the elements in the TM represent the power of the basic permutation matrix, and the basic permutation matrix, that is, the unit matrix of zxz, once per cycle, is equivalent to shifting the unit matrix to the right by one bit, that is, the unit matrix is shifted to the right by one column. Therefore, the basic cyclic matrix is cyclically shifted by at most z-1 times; if it is repeated, the obtained unit matrix is equal to no cyclic shift. There are many correction algorithms. For example, you can use modulo (mod), round (floor) or round (round+round), etc., and set ^ as the base matrix H, the non-i-th row and the j-th column. The negative element, which is the non-negative element of the i-th row and the j-th column in the corrected base moment, has: For the modulo (mod) algorithm: three Ρ mod z three P H for rounding (floor+floor) algorithm: P f :
Figure imgf000005_0001
Figure imgf000005_0001
N  N
对于舍入 ( scale+round ) 算法: .' = Round E x— = Round 其中, Z为当前码长对应的扩展因子,即分块方阵的行数或者列数, 为最大支持码长 Nmax对应的扩展因子。 mod为取模操作, 」为下取整操作, Round为四舍五入操作。 例如, 对于码长 1152比特的 LDPC码,设其基础矩阵 的某个非负元 素为 93 , 设其支持的最大码长为 2304, 基础矩阵的大小为 12x24, 对其进 行修正的结果为: 对于取模 ( mod )算法: = 93 mod 48 = 45;For rounding (scale+round) algorithm: .' = Round E x— = Round where Z is the expansion factor corresponding to the current code length, ie the number of rows or columns of the block square matrix, which is the maximum support code length N max Corresponding expansion factor. Mod is the modulo operation, and the round is rounded off. For example, for an LDPC code with a code length of 1152 bits, set a non-negative element of the base matrix to 93, and set its maximum supported code length to 2304, and the size of the base matrix to be 12x24. The result of the correction is: Modulo (mod) algorithm: = 93 mod 48 = 45;
Figure imgf000005_0002
Figure imgf000005_0002
1152  1152
对于取整(scale+floor )算法: 93 X 6.5  For the rounding/floor algorithm: 93 X 6.5
2304 丄 4 」 = 46 ; 对于舍入 ( scale+round ) 算法: Round(93x ) = Round(46.5) = 47。 2304 丄 4 ” = 46 ; For rounding (round+round) algorithm: Round(93x) = Round(46.5) = 47.
2304  2304
这种特定码率可变码长的 LDPC码由于具有同一形式的基础矩阵, 所 以完全可以用一个编码器 /译码器, 其中其同一形式的基础矩阵也可以叫做 统一基础矩阵 。  Since the LDPC code of the specific code rate variable code length has the same form of the basic matrix, it is entirely possible to use an encoder/decoder, and the same form of the basic matrix can also be called a unified basic matrix.
假设一个 LDPC码的奇偶校验矩阵 H的大小为 mb x z)x (nb x z) , 统一基 础矩阵 的大小为 x ,则该 LDPC码支持的母码码率 Rm = (nb - mb ) / nb ; 如果输入的信息分组长度为 K,,经过一系列处理后得到长度为 Ν,的待传输 码字比特, 则称传输码率 R^ K 'I N '。 Assuming that the size of the parity check matrix H of an LDPC code is m b xz)x (n b xz) and the size of the unified base matrix is x, the mother code rate supported by the LDPC code is R m = (n b - mb / n b ; If the input information packet length is K, after a series of processing to obtain a codeword bit to be transmitted of length Ν, the transmission code rate R^ K 'IN ' is called.
在 IEEE802.16e中, LDPC码支持的码率为 1/2、 2/3、 3/4、 5/6, 现有 LDPC码的编码方案中,通常釆用不同母码码率的 LDPC编码矩阵 H, 以保 证 LDPC码具有一定程度灵活的码率和性能, 此时, 就会出现四个基础矩 阵 在硬件上需要多个 LDPC编译码器, 会大量增加硬件的实现成本; 或者用一个可适应多种母码码率的编码器 /译码器来实现不同码率的编译 码, 但是硬件设计会非常复杂, 同样会大量增加硬件实现的成本。 发明内容  In IEEE802.16e, the code rate supported by the LDPC code is 1/2, 2/3, 3/4, 5/6. In the existing LDPC code coding scheme, the LDPC coding matrix with different mother code rate is usually used. H, to ensure that the LDPC code has a certain degree of flexible bit rate and performance, at this time, there will be four basic matrices requiring multiple LDPC codecs in hardware, which will greatly increase the hardware implementation cost; or use an adaptable A variety of mother code rate encoders/decoders are used to implement different code rate codecs, but the hardware design can be very complicated, which also increases the cost of hardware implementation. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种 LDPC码的编码方法和装 置, 实现了任意可变码率的 LDPC码的编码。  In view of the above, it is a primary object of the present invention to provide an encoding method and apparatus for an LDPC code that implements encoding of an LDPC code of any variable rate.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种低密度奇偶校验 LDPC码的编码方法, 所述方法包括下述步骤: 比较统一基础矩阵支持的母码码率与传输码率的大小, 根据比较结果, 确定输入信息分组比特的长度 K,;  A method for encoding a low-density parity check LDPC code, the method comprising the steps of: comparing a mother code rate and a transmission code rate supported by a unified base matrix, and determining a length K of the input information packet bit according to the comparison result ,;
根据统一基础矩阵及扩展因子确定 LDPC码的编码矩阵;  Determining an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor;
由接收的长度为 K,的信息分组比特, 确定待编码的信息比特; 利用所述编码矩阵对待编码的信息比特进行 LDPC编码, 并对编码得 到的母码码字比特进行处理, 得到待传输的码字比特。 Determining information bits to be encoded by receiving information packet bits of length K, performing LDPC coding on the information bits to be encoded by using the coding matrix, and encoding the information bits The obtained mother code code word bits are processed to obtain code word bits to be transmitted.
所述方法还包括: 设置 LDPC码的统一基础矩阵及扩展因子。  The method further includes: setting a unified base matrix and an expansion factor of the LDPC code.
所述比较统一基础矩阵支持的母码码率与传输码率的大小之前还包 括: 接收当前的传输码率;  The comparing the mother code rate and the transmission code rate supported by the unified basic matrix further includes: receiving the current transmission code rate;
所述根据比较结果, 确定输入信息分组比特的长度 K,为:  The determining the length K of the input information packet bit according to the comparison result is:
当 ?tt≥ ?m时, 确定信息分组的长度〖'为( _^ 2; 当 ?tt<^时, 确定 信 息 分 组 比 特 的 长 度 为 K' = func(nbxZxRtx /(\— R ) 、 或 K' = func(mb Xz/(l-Rtx))-mbXz , 或 = func(func(mb z /(\- Rtx))xRtx); When ? tt ≥ ? m , determine the length of the information packet 〖' is ( _^ 2 ; when ? tt <^, determine the length of the information packet bit is K' = func(n b x Z xR tx /(\- R ) , or K' = func(m b Xz/(lR tx ))-m b Xz , or = func(func(m b z /(\- R tx ))xR tx );
其中, 为传输码率, Rm为母码码率, mb、 分别为统一基础矩阵的 行数和列数, Z为扩展因子, jC(x)为对 X向上取整数、 向下取整数或舍入 取整数的一种。 Wherein, for the transmission rate, R m is the mother code rate, m b , respectively is the number of rows and columns of the unified base matrix, Z is the expansion factor, and j C (x) is the integer from the X up, down An integer or rounding takes one of the integers.
所述根据统一基础矩阵及扩展因子, 确定 LDPC码的编码矩阵为: 对统一基础矩阵进行修正, 根据扩展因子 z, 利用 zxz的单位矩阵对 修正得到的基础矩阵进行扩展, 得到 LDPC码的编码矩阵。  Determining, according to the unified basic matrix and the spreading factor, the coding matrix of the LDPC code is: modifying the unified basic matrix, and expanding the modified basic matrix by using the unit matrix of zxz according to the spreading factor z to obtain an encoding matrix of the LDPC code .
所述由接收的长度为 K,的信息分组比特, 确定待编码的信息比特为: 当 时, 将接收到的长度为 K,的信息分组比特直接作为待编码的 信息比特; 当 时, 向长度为 Κ,的信息分组比特中加入填充比特, 形 成长度为 ^χζ的待编码的信息比特。  The information packet bit of the length K is received, and the information bit to be encoded is determined as: At that time, the received information packet length of length K is directly used as the information bit to be encoded; A padding bit is added to the information packet bit to form an information bit to be encoded of length .
所述对编码得到的母码码字比特进行处理为:  The processing of the encoded mother code codeword bits is performed as follows:
对编码得到的母码码字进行重排, 其中重排前的母码码字比特为 ,Α,-,Α^, 重排后的母码码字比特为 n ..,^ 重排公式为:
Figure imgf000007_0001
!S PV表示 码字重排向量, 它的元素集合为 m6+l, - +2 ··, -1} , PV(x) 表示 PV向量中索引为 x的元素, X为非负整数; 当 R ≥Rm时,把重排后的母码码字比特 A^C^— ^要照索引从小到大 依次取 f K '/ )个比特, 作为待传输的码字比特;
The mother code codeword obtained by the coding is rearranged, wherein the mother code codeword bits before the rearrangement are, Α, -, Α^, and the rearranged mother code codeword bits are n.., ^ rearrangement formula is :
Figure imgf000007_0001
! S PV denotes a codeword rearrangement vector whose element set is m 6 +l, - +2 ···, -1} , PV(x) denotes an element of the PV vector index x, and X is a non-negative integer; When R ≥ R m , the rearranged mother code codeword bits A^C^-^ are taken f_[/] bits from the smallest to the largest, as the codeword bits to be transmitted;
^R <Rm时,将加入的所述 y^xz- 个填充比特从重排后的母码码字比 特 。, A, · · ·, 里的系统比特中删除掉,剩余的母码码字比特作为待传输的 码字比特。 When ^R <R m , the y^xz- padding bits to be added are rearranged from the mother code codeword bits. The system bits in A, · · ·, are deleted, and the remaining mother code codeword bits are used as codeword bits to be transmitted.
所述确定 LDPC码的编码矩阵为:  The encoding matrix for determining the LDPC code is:
对统一基础矩阵进行修正, 根据扩展因子 z, 利用 z x z的单位矩阵对 修正得到的基础矩阵进行扩展, 得到 LDPC码的扩展矩阵;  Correcting the unified basic matrix, according to the spreading factor z, using the unit matrix of z x z to extend the modified basic matrix to obtain an extended matrix of the LDPC code;
当 ^时, 将扩展矩阵作为 LDPC码的编码矩阵; 当 ^时, 截 取扩展矩阵右边的 X^xz/G_ 》列, 将截取得到的矩阵作为 LDPC码的 编码矩阵; 或者, When ^, the extension matrix is used as the coding matrix of the LDPC code; when ^, the X^ xz/ G_" column on the right side of the extension matrix is intercepted, and the truncated matrix is used as the coding matrix of the LDPC code; or
当 = ^¾为正整数时, 对统一基础矩阵进行修正, 得到修正后的基 \-Ra 础矩阵; When = ^3⁄4 is a positive integer, the unified base matrix is corrected to obtain a modified base \-R a base matrix;
当 ≥ ?m时, 根据扩展因子 Z, 利用 z x z的单位矩阵对修正后的基础 矩阵进行扩展, 得到 LDPC码的编码矩阵; 当 < ?m时, 截取修正后的基 础矩阵右边的 +^列,根据扩展因子 Z,利用 Z X Z的单位矩阵将截取得到 的矩阵进行扩展, 得到 LDPC码的编码矩阵。 When ≥ m , according to the expansion factor Z, the modified base matrix is extended by the unit matrix of zxz to obtain the coding matrix of the LDPC code; when <? m , the +^ column to the right of the modified basic matrix is intercepted, According to the spreading factor Z, the matrix obtained by the truncation is expanded by using the unit matrix of ZXZ to obtain an encoding matrix of the LDPC code.
所述由接收的长度为 K,的信息分组比特, 确定待编码的信息比特为: 将长度为 K,的信息分组比特直接作为待编码的信息比特。  The information packet bit whose length is K is received, and the information bits to be encoded are determined as follows: The information packet bit of length K is directly used as the information bit to be encoded.
所述对编码得到的母码码字比特进行处理为:  The processing of the encoded mother code codeword bits is performed as follows:
对编码得到的母码码字进行重排, 其中重排前的母码码字比特为 Λ,-, ^, 重排后的母码码字比特为 Β0Α ··,ΒΚ,—, 重排公式为: · , 其 中 ,
Figure imgf000008_0001
Otherwise nPad = [K'/z^z-K' , PV 表示码字重排向量, 它的元素集合为 {「 /z,,「 /z, + l,「 /z, + 2,〜,「 + 1} , PV(x)表示 PV向量中索引为 x 的元素, X为非负整数, 其中「^表示对 X向上取整数;
The coded mother code codewords are rearranged, wherein the mother code codeword bits before the rearrangement are Λ, -, ^, and the rearranged mother code codeword bits are Β 0 Α ··, Β Κ , —, The rearrangement formula is: · , where,
Figure imgf000008_0001
Otherwise nPad = [K'/z^zK' , PV represents the codeword rearrangement vector, its element set is {" /z,, " /z, + l, " /z, + 2, ~, " + 1} , PV(x) represents an element of index x in the PV vector, and X is a non-negative integer, where "^ represents an integer up to X;
当 ≥ ^时,把重排后的母码码字比特 , A, · · ·, Βκ,—按照索引从小到 大依次取 _½CC ?J个比特, 作为待传输的码字比特; When ≥ ^, the rearranged mother code codeword bits, A, · · ·, Β κ , - are taken from the smallest to the largest in order to take C C J J bits as the code word bits to be transmitted;
当^ <Rm时,直接将从重排后的母码码字比特 ,Α,···, ,+Β¾ΧΖ_^ 为待传 输的码字比特。 When ^ < R m , the codeword bits of the mother code will be directly rearranged, Α,···, , +Β3⁄4ΧΖ _^ as the codeword bits to be transmitted.
一种 LDPC码的编码装置, 包括编码单元, 所述装置还包括: 比较单 元、 分组比特确定单元、 编码矩阵确定单元、 信息比特确定单元以及码字 处理单元; 其中,  An apparatus for encoding an LDPC code, comprising: a coding unit, the apparatus further comprising: a comparison unit, a packet bit determining unit, an encoding matrix determining unit, an information bit determining unit, and a codeword processing unit;
比较单元, 用于比较统一基础矩阵支持的母码码率与传输码率的大小; 分组比特确定单元, 用于根据比较单元的比较结果, 确定输入信息分 组比特的长度 Κ';  a comparison unit, configured to compare a size of a mother code rate and a transmission code rate supported by the unified base matrix; a packet bit determining unit, configured to determine a length of the input information packet bit according to the comparison result of the comparison unit ;';
编码矩阵确定单元, 用于根据统一基础矩阵及扩展因子确定 LDPC码 的编码矩阵;  An encoding matrix determining unit, configured to determine an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor;
信息比特确定单元, 用于接收得到长度为 Κ,的信息分组比特, 并确定 待编码的信息比特, 将其传输给编码单元;  An information bit determining unit, configured to receive an information packet bit having a length of Κ, and determine an information bit to be encoded, and transmit the information bit to the coding unit;
码字处理单元, 用于对编码单元进行 LDPC编码得到的母码码字进行 处理, 得到待传输的码字比特。  And a codeword processing unit, configured to process the mother codeword obtained by performing LDPC encoding on the coding unit, to obtain a codeword bit to be transmitted.
所述装置还包括: 设置单元, 用于设置 LDPC码的统一基础矩阵及扩 展因子。  The apparatus further includes: a setting unit configured to set a unified basic matrix of the LDPC code and an extension factor.
所述装置还包括输入单元, 用于接收当前的传输码率; The device also includes an input unit for receiving a current transmission code rate;
Figure imgf000009_0001
≥Wm时, 确定信息分组比特的长度 K,为 (nb -mb)xz; 当比较单元的比较结果为 < Rm 时, 确定信息分组比特的长度为 K' =
Figure imgf000009_0002
R ) 、 或 K' = funcim^zlil-R^-m^z ,或 = func(func(mbxz /(l-R^xR ;其中, ^为 传输码率, Rm为母码码率, mb、 分别为统一基础矩阵的行数和列数, z 为扩展因子, /ifflc c)为对 X向上取整数、 向下取整数或舍入取整数的一种。
Figure imgf000009_0001
≥W m , the length K of the information packet bit is determined as (n b -m b )xz; when the comparison result of the comparison unit is < R m , the length of the information packet bit is determined to be K' =
Figure imgf000009_0002
R), or K' = funcim^zlil-R^-m^z , or = func(func(m b xz /(lR^xR ; where ^ is the transmission code rate, Rm is the mother code rate, mb , respectively, a unified basis The number of rows and columns of the matrix, z is the expansion factor, and /ifflc c) is an integer that takes an integer from X, an integer down, or a rounded integer.
所述编码矩阵确定单元具体用于对所述统一基础矩阵进行修正, 根据 扩展因子 Z, 利用 Z X Z的单位矩阵对修正得到的基础矩阵进行扩展, 得到 The coding matrix determining unit is specifically configured to modify the unified basic matrix, and according to the spreading factor Z, use the unit matrix of Z X Z to extend the modified basic matrix to obtain
LDPC码的编码矩阵。 将接收到的长度为 K,的信息分组比特直接作为待编码的信息比特; 当比较 单元的比较结果为 ?tt< ?m时,向长度为 K,的信息分组比特中加入填充比特, 形成长度为 ^χζ的待编码的信息比特。 The coding matrix of the LDPC code. The information packet length of the received length K is directly used as the information bit to be encoded; when the comparison result of the comparison unit is ? tt <? m , the padding bit is added to the information packet bit of length K to form a length. The information bits to be encoded.
排, 其中重排前的母码码字比特为 ,^,…,^^, 重排后的母码码字比特为 B0A, ,BnbXz― , 重排公式为:
Figure imgf000010_0001
!S PV表示 码字重排向量, 它的元素集合为 ^+1, - +2,…, - 1} , PV(x) 表示 PV向量中索引为 X的元素, X为非负整数;
Row, where the mother code codeword bits before the rearrangement are, ^,...,^^, the rearranged mother code codeword bits are B 0 A, , B nbXz ― , and the rearrangement formula is:
Figure imgf000010_0001
! S PV denotes a codeword rearrangement vector whose element set is ^+1, - +2,..., - 1} , PV(x) denotes an element of index X in the PV vector, and X is a non-negative integer;
当比较单元的比较结果为 R ≥Rm时, 把重排后的母码码字比特 ^。, …, ^— ^要照索引从小到大依次取 _½c( / ?J个比特, 作为待传输的码 字比特; When the comparison result of the comparison unit is R ≥ R m , the rearranged mother code code word bit ^ is used. , ..., ^— ^ to take the index from small to large in order to take _1⁄2 c ( / ? J bits as the codeword bits to be transmitted;
当比较单元的比较结果为 < ?m时,将加入的所述 kbxz_K,个填充比特 从重排后的母码码字比特 ^。, …, ^— i里的系统比特中删除掉,剩余的母码 码字比特作为待传输的码字比特。 When the comparison result of the comparing unit <? M, the added the k b xz_K, mother code codeword bits after rearrangement ^ padding bits. , ..., ^— The system bits in i are deleted, and the remaining mother codeword bits are used as codeword bits to be transmitted.
所述编码矩阵确定单元具体用于对统一基础矩阵进行修正, 根据扩展 因子 z,利用 z X z的单位矩阵对修正得到的基础矩阵进行扩展,得到 LDPC 码的扩展矩阵; 当比较单元的比较结果为 ≥ ?m时,将扩展矩阵作为 LDPC 码的编码矩阵; 当比较单元的比较结果为 < ?m时, 截取扩展矩阵右边的 _ ½ ¾χζ/(1- 》列, 将截取得到的矩阵作为 LDPC 码的编码矩阵; 或在 kb' 为正整数时,对统一基础矩阵进行修正,得到修正后的基础矩阵;The coding matrix determining unit is specifically configured to modify the unified basic matrix, and expand the modified basic matrix by using the unit matrix of z X z according to the spreading factor z to obtain the LDPC. The spreading matrix of the code; when the comparison result of the comparison unit is ≥? m , the extended matrix is used as the coding matrix of the LDPC code; when the comparison result of the comparison unit is <? m , the _1⁄2 3⁄4χζ/(1 of the right side of the extended matrix is intercepted - 》 column, the truncated matrix is used as the coding matrix of the LDPC code; or when k b ' is a positive integer, the unified basic matrix is corrected to obtain the modified basic matrix;
\-Ra 当比较单元的比较结果为 ≥ 时, 根据扩展因子 Z, 利用 Z X Z的单位矩 阵对修正得到的基础矩阵进行扩展, 得到 LDPC码的编码矩阵; 当比较单 元的比较结果为 < ?m时, 截取修正后的基础矩阵右边的 +^列, 根据扩 展因子 z, 利用 ζ χ ζ的单位矩阵将截取得到的矩阵进行扩展, 得到 LDPC 码的编码矩阵。 \-R a When the comparison result of the comparison unit is ≥, according to the expansion factor Z, the modified base matrix is expanded by the unit matrix of ZXZ to obtain the coding matrix of the LDPC code; when the comparison result of the comparison unit is <? m Then, the +^ column on the right side of the modified basic matrix is intercepted, and according to the spreading factor z, the matrix obtained by the truncation is expanded by the unit matrix of ζ ζ , to obtain the coding matrix of the LDPC code.
所述信息比特确定单元具体用于将接收到的长度为 K,的信息分组比特 直接作为待编码的信息比特。  The information bit determining unit is specifically configured to directly use the received information packet bit of length K as the information bit to be encoded.
所述码字处理单元具体用于对编码单元得到的母码码字进行重排, 其 中重排前的母码码字比特为 4,4,···,4 + i , 重排后的母码码字比特为 The codeword processing unit is specifically configured to rearrange the mother codewords obtained by the coding unit, wherein the mother codeword bits before the rearrangement are 4, 4, . . . , 4 + i, the rearranged mother Code code word bit is
Β0,Β ...,Βκ,^ , 重排公式为: Β 0 , Β ..., Β κ , ^ , rearrangement formula is:
「 Ak k < Κ' ^ , B = . , 其 中 , ηΡαά =
Figure imgf000011_0001
, PV 表示码字重排向量, 它的元素集合为 {「 /z,,「 /z, + l,「 /ζ, + 2 ··,「 + 1} , PV(x)表示 PV向量中索引为 x 的元素, X为非负整数;
" A k k <Κ' ^ , B = . , where ηΡαά =
Figure imgf000011_0001
, PV represents the codeword rearrangement vector, its element set is {" /z,, " /z, + l, " /ζ, + 2 ··, " + 1} , PV (x) represents the index in the PV vector For an element of x, X is a non-negative integer;
当比较单元的比较结果为 R ≥Rm时, 把重排后的母码码字比特 ^ …,^+^— i按照索引从小到大依次取 _½C( / ?J个比特, 作为待传输的 码字比特; When the comparison result of the comparison unit is R ≥ R m , the rearranged mother code code word bits ^ ..., ^ + ^ - i are taken from the smallest to the largest in order to take _1⁄2 C ( / ? J bits, as Transmitted codeword bits;
当比较单元的比较结果为 < ?m时, 直接将从重排后的母码码字比特 ^。,^…,^ ^作为待传输的码字比特。 本发明提供的 LDPC码的编码方法及装置, 确定一个基础矩阵和扩展 因子, 根据接收到的传输码率进行输入信息分组长度的确定或编码矩阵的 处理, 得到满足前述传输码率的码字, 在性能最优的基础上实现了码率的 可变性, 降低了为实现不同码率时硬件设计的复杂度, 且实现成本较低。 附图说明 When the comparison result of the comparison unit is <? m , the mother code codeword bit ^ will be directly rearranged. , ^..., ^ ^ as the codeword bits to be transmitted. The LDPC code encoding method and apparatus provided by the present invention determine a basic matrix and a spreading factor, and perform processing of determining an input information packet length or a coding matrix according to the received transmission code rate to obtain a codeword that satisfies the foregoing transmission code rate. The variability of the code rate is realized on the basis of the optimal performance, the complexity of the hardware design for realizing different code rates is reduced, and the implementation cost is low. DRAWINGS
图 1为数字通信系统的结构框图;  1 is a structural block diagram of a digital communication system;
图 2为本发明提供的 LDPC码的编码方法的实现流程示意图; 图 3为本发明提供的 LDPC码的编码方法的实施例一的流程示意图; 图 4为本发明提供的 LDPC码的编码方法的实施例二的流程示意图; 图 5为本发明提供的 LDPC码的编码装置的结构框图。 具体实施方式  2 is a schematic flowchart of an implementation of an LDPC code encoding method according to the present invention; FIG. 3 is a schematic flowchart of a first embodiment of an LDPC code encoding method according to the present invention; FIG. 5 is a schematic structural diagram of an apparatus for encoding an LDPC code according to the present invention. Detailed ways
本发明的基本思想为: 比较统一基础矩阵支持的母码码率与传输码率 的大小, 根据比较结果, 确定输入信息分组比特的长度 K,; 根据统一基础 矩阵及扩展因子确定 LDPC码的编码矩阵; 由接收的长度为 K,的信息分组 比特, 确定待编码的信息比特; 利用所述编码矩阵对待编码的信息比特进 行 LDPC编码, 并对编码得到的母码码字比特进行处理, 得到待传输的码 字比特。  The basic idea of the present invention is: comparing the mother code rate and the transmission code rate supported by the unified basic matrix, determining the length K of the input information packet bit according to the comparison result, and determining the coding of the LDPC code according to the unified basic matrix and the spreading factor a matrix; determining, by the received information packet bit of length K, the information bits to be encoded; performing LDPC encoding on the information bits to be encoded by using the coding matrix, and processing the encoded codeword bits of the encoded code to obtain The transmitted codeword bits.
为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
图 2示出了本发明提供的 LDPC码的编码方法的流程, 如图 2所示, 所述方法包括下述步骤:  FIG. 2 shows a flow of a method for encoding an LDPC code provided by the present invention. As shown in FIG. 2, the method includes the following steps:
S201 ,确定一个固定大小的 LDPC码的统一基础矩阵 ^ 和扩展因子 z;  S201, determining a unified basic matrix ^ and a spreading factor z of a fixed-size LDPC code;
本步骤中, 系统可以根据实际需求确定一个大小为 mfi x 的统一基础矩 阵 一和最大扩展因子2 其中 ^ 为正整数, 令 = - ^, 则得到 e支持的母码码率为 κ =κ ;并根据数字通信系统 在传输中的编码码长确定扩展因子 ζ为一个固定常数, 般地, 为了便于 硬件实现, 扩展因子 ζ—般为 2的幂或 2的幂的正整数倍。 In this step, the system can determine a unified base moment of size m fi x according to actual needs. Array 1 and maximum spreading factor 2, where ^ is a positive integer, let = - ^, then the mother-coded rate supported by e is κ = κ; and the spreading factor is determined according to the length of the encoding code in the transmission of the digital communication system. Fixed constants, in general, to facilitate hardware implementation, the spreading factor is generally a power of two or a positive integer multiple of a power of two.
S202, 接收当前传输码率 Rtx, 比较 Rt5^oRm的大小, 根据比较结果, 确定输入信息分组比特的长度 K,; S202, receiving a current transmission code rate R tx , comparing a size of R t5 ^oR m , and determining a length K of the input information packet bit according to the comparison result;
本步骤中, 当 ?tt≥ ?m时, 则信息分组的长度 = ^Xz = ( - )Xz ; 当 时, 则编码生成的 的校验比特都会被传输, 因此信息分组长度 Κ,可由校验比特长度 mfixz和传输码率 Rtx确定, 因此 K mfixz和 Rtx的关 系可以但不限于用以下公式表示: ^― ^ = R^ ,K'+mbxz = func(^^), In this step, when ? tt ≥ ? m , the length of the information packet = ^Xz = (-)Xz; at that time, the parity bits generated by the encoding are transmitted, so the information packet length is Κ, and the parity bit can be The length m fi xz and the transmission code rate R tx are determined, so the relationship of K m fi xz and R tx can be, but is not limited to, expressed by the following formula: ^― ^ = R^ , K'+m b xz = func(^^) ,
K'+mbxz l-i?tt 或 = func(^^ ; 因 此, K,可以但不限于如下公式表示: K'+m b xz li? tt or = f unc (^^ ; Therefore, K, can be, but is not limited to, the following formula:
K' = func(mb xzxRa/(l- Ra )) 、 或 K' = func(mbx z /(I— — mbx z 、 或 K' = func(func(mb Xz/(l-R )xR ; 其中/ IOTC(JC)可以表示对 x向上取整数、 向 下取整数或舍入取整数的一种。 S203, 根据扩展因子 z和 , 确定 LDPC码的编码矩阵 Hfe; 本步骤中, 首先利用上述修正算法和 z对 进行修正, 得到修正后 一 . 的基础矩阵 A , 根据 和 z 以及 ζ χ ζ 的单位矩阵扩展得到 X z) X X z)的 LDPC矩阵 H p , 本发明中既可以将 Hrp作为 LDPC码的 编码矩阵 Hfe , 也可以根据 1^和 Rm的比较结果, 对 进行截取, 得到 LDPC码的编码矩阵 Hbz K' = func(m b xzxR a /(l- R a )) , or K' = func(m b xz /(I— m b xz , or K' = func(func(m b Xz/(lR xR; where /IOTC(JC) may represent an integer that takes an integer from x, an integer down, or a rounded integer. S203, determining an encoding matrix Hfe of the LDPC code according to the spreading factor z and ; First, the above correction algorithm and the z pair are used to correct, and the base matrix A of the modified one is obtained, and the LDPC matrix H p of X z) XX z) is obtained according to the unit matrix of z and ζ χ , , which is both in the present invention. Hr p can be used as the coding matrix H fe of the LDPC code, or can be intercepted according to the comparison result of 1^ and R m to obtain the coding matrix H bz of the LDPC code.
S204, 由接收的长度为 K,的信息分组比特, 确定待编码的信息比特; 具体地, 根据编码矩阵 的大小及 Rt oRm的比较结果, 对信息分组 比特进行处理, 得到待编码的信息比特。 S205, 通过编码矩阵 Hfe对待编码的信息比特进行 LDPC编码, 得到母 码码字比特, 对母码码字比特进行处理, 得到待传输的码字比特; S204, determining, by the received information packet bit of length K, the information bit to be encoded; specifically, processing the information packet bit according to the size of the coding matrix and the comparison result of R t oR m to obtain information to be encoded Bit. S205: Perform LDPC encoding on the information bits to be encoded by the coding matrix H fe to obtain a mother code codeword bit, and process the mother code codeword bits to obtain a codeword bit to be transmitted.
具体地, 根据传输码率 可以确定待传输的码字比特的长度, 根据确 定的待传输的码字比特的长度, 对母码码字进行重排、 缩短或者删余得到 待传输的码字比特。 如图 3所示, 所述方法包括下述步骤:  Specifically, the length of the codeword bit to be transmitted may be determined according to the transmission code rate, and the codeword bits to be transmitted are rearranged, shortened, or punctured according to the determined length of the codeword bit to be transmitted. . As shown in FIG. 3, the method includes the following steps:
S301-S302, 确定一个固定大小的 LDPC码的统一基础矩阵 和最 大扩展因子 zmax ,并根据所需要的编码码长确定扩展因子 Z为一个固定常数, 然后执行 S305; S301-S302, determining a unified base matrix of a fixed-size LDPC code and a maximum spreading factor z max , and determining the expansion factor Z as a fixed constant according to the required code length, and then executing S305;
本步骤中, 系统可以根据实际需求确定一个大小为 mfix 的统一基础矩 阵 一和最大扩展因子2皿 , 其中 ^、 、 Zmax为正整数, 令 = - ^, 则得到 e支持的母码码率为 κ -m ln b =κ inb .并根据数字通信系统 在传输中所需要的编码码长确定扩展因子 z为一个固定常数, 一般地, 为 了便于硬件实现, 扩展因子 z—般为 2的幂或 2的幂的正整数倍。 In this step, the system can determine a unified base matrix of size m fi x and a maximum expansion factor of 2 according to actual needs, where ^, and Zmax are positive integers, and = - ^, then the mother code code supported by e is obtained. The rate is κ - m ln b = κ in b . And the spreading factor z is determined to be a fixed constant according to the code length required for transmission in the digital communication system. Generally, in order to facilitate hardware implementation, the spreading factor z is generally 2 A power of a power or a positive integer multiple of a power of 2.
S303-S304 , 接收当前传输码率 Rtx, 比较 Rtx和 Rm的大小, 根据比较 结果, 确定输入信息分组比特的长度 K,; S303-S304, receiving the current transmission code rate R tx , comparing the magnitudes of R tx and R m , and determining the length K of the input information packet bit according to the comparison result;
本步骤中, 当 ≥ ^时, 则信息分组比特的长度 = ^Xz = ( - )Xz ; 当 < ?m时, 则编码生成的 ^Χζ的校验比特都会被传输, 因此信息分组比 特的长度 Κ,可由校验比特长度 ^Χζ和传输码率 Rtx确定, 因此 K,、 mfiXz和 In this step, when ≥ ^, the length of the information packet bit = ^Xz = ( - )Xz ; when < ? m , the parity bit of the generated code is transmitted, so the length of the information packet bit Κ, can be determined by the check bit length ^ Χζ and the transmission code rate R tx , so K, m fi Xz and
Rtx 的关系可以但不限于用 以下公式表示: ^― ^ = Ra、 或 The relationship of R tx can be, but is not limited to, expressed by the following formula: ^ - ^ = R a , or
K'+mbxz K'+m b xz
K'+mbxz = func(^^),或 ^ = / C(^¾; 因此, K,可以但不限于如下公式 表示: K' = func(mb xzxRa/(l- Ra )) 、 或 K' = func(mb z R^-m^z 、 或 K' = func(func(mbXz/(l-R )xR ; 其中/ IOTC(JC)可以表示对 x向上取整数、 向 下取整数或舍入取整数的一种。 K'+m b xz = func(^^), or ^ = / C (^3⁄4; Therefore, K, can be, but is not limited to, the following formula: K' = func(m b xzxR a /(l- R a ) ), or K' = func(m b z R^-m^z , or K' = func(func(m b Xz/(lR )xR ; where / IOTC(JC) can represent an integer that takes an integer up to x, an integer down, or a rounded integer.
S305, 对统一基础矩阵 进行修正, 利用 z扩展得到 LDPC码的编 码矩阵 Hbz , 然后执行 S308; 本步骤中, 首先利用上述修正算法和 Z对 进行修正, 得到修正后 一 . 的基础矩阵 A , 根据 和 z 以及 ζ χ ζ 的单位矩阵扩展得到 (mb xz)x (nb x z)的 LDPC矩阵 , 并将矩阵 作为 LDPC码的编码矩阵 S305, correcting the unified basic matrix, obtaining the coding matrix H bz of the LDPC code by using z extension, and then performing S308; in this step, first correcting the modified algorithm and the Z pair to obtain the corrected base matrix A, Obtaining an LDPC matrix of (m b xz)x (n b xz) according to the unit matrix of z and ζ χ , and using the matrix as the coding matrix of the LDPC code
HbzH bz .
S306-S307, 由接收的长度为 K,的信息分组比特, 确定待编码的信息 比特;  S306-S307, determining, by the received information packet bit of length K, the information bits to be encoded;
具体地, 当 ?tt≥ ?m时, 将接收的长度为 K,的信息分组比特直接作为待 编码的信息比特; 当 ?tt < ?m时, 向长度为 K,的信息分组比特中加入填充比 特, 形成长度为 ^xz的待编码的信息比特, 其中加入填充比特的方法可以 为在信息分组比特前面、后面或者相间等方式,填充比特的长度为 kbXz-K,, 另外, 为了后续处理方便, 填充的 y^xz- 个比特优选为全 0比特, 也可以 为全 1比特。 Specifically, when ? tt ≥ ? m , the information packet bit of the received length K is directly used as the information bit to be encoded; when ? tt < ? m , padding is added to the information packet bit of length K. Bits, forming information bits to be encoded having a length of ^xz, wherein the method of adding padding bits may be before, after or between the information packet bits, and the length of the padding bits is k b Xz-K, and, in addition, The processing is convenient, and the filled y^xz- bits are preferably all 0 bits, or may be all 1 bit.
S308-S309, 通过 ¾χζ)χ( χζ)的编码矩阵 ^2对待编码的信息比特进 行 LDPC编码, 得到母码码字比特, 对母码码字比特进行处理, 得到待传 输的码字比特; S308-S309, χ (χ ζ ) encoding matrix ^ 2 treats information bits encoded by ¾χ ζ) LDPC encoding, to give mother code word bits of the mother code word bits, to give the codeword bits to be transmitted ;
具体地, 通过编码矩阵 Hfe进行 LDPC编码, 得到长度为 N = xz的母 码码字比特, 其中母码码字比特的前 ^xz个比特为系统比特, 后 mfixz个比 特为校验比特。 Specifically, LDPC coding is performed by using the coding matrix H fe to obtain a mother code codeword bit of length N = xz, wherein the first ^xz bits of the mother code codeword bits are system bits, and the last m fi xz bits are checksums. Bit.
为了提高码字传输的可靠性, 可以首先对得到的母码码字比特进行码 字重排, 假设重排前的母码码字比特为 ,^,…,^^, 码字重排后的母码码 字比特为 S。, A, · · ·, , 则码字重排由如下公式表示:
Figure imgf000016_0001
In order to improve the reliability of the codeword transmission, the codewords of the obtained mother code codeword bits may be first rearranged, and the codeword bits of the mother code before the rearrangement are assumed to be ^, ..., ^^, after the codewords are rearranged. Mother code The word bit is S. , A, · · ·, , then the codeword rearrangement is represented by the following formula:
Figure imgf000016_0001
其中, PV表示码字重排向量, PV 包括 个不同的元素, 其元素集合 为 {nb -mb,nb -mb + nb - mb+2, ···, - 1} , 并且每个元素互不相同, PV(x)表示Where PV represents a codeword rearrangement vector, and PV includes a different element whose element set is {n b -m b , n b -m b + n b - m b +2, ···, - 1} , And each element is different from each other, PV(x) means
PV向量中索引为 X的元素, 其中 X为非负整数。 An element of the PV vector indexed as X, where X is a non-negative integer.
当 ≥ ?m时, 进行删余操作, 即把重排后得到的母码码字比特When ≥ m m , the puncturing operation is performed, that is, the mother code code word bits obtained after rearranging
^。, …, ^— ^要照索引从小到大依次取 _½C( / ?tt)个比特, 作为待传输的码 字比特, 其中 /ifflC(X)可以表示对 X向上取整数、 向下取整数或舍入取整数 的一种, 具体可以根据实际的应用情况, 对/ i«C(x)选择合适的操作。 ^. , ..., ^— ^ According to the index from the smallest to the largest, take the C ( / ? tt ) bits as the codeword bits to be transmitted, where /iffl C (X) can represent the integer up and down for X. Take an integer or round to take an integer. You can select the appropriate operation for / i« C (x) according to the actual application.
当 < ?m时, 进行缩短操作, 将 S307中加入的 y^xz- 个填充比特从 重排后得到的母码码字比特 ^。, …, ^— i里的系统比特中删除掉(为了此处 删除操作的进行, 因此 S307中优选地填充比特为全 0或者全 1比特 ), 剩 余的母码码字比特作为待传输的码字比特。 When <? m , the shortening operation is performed, and the y^xz- padding bits added in S307 are rearranged from the mother code codeword bits ^. , ..., ^ - i is deleted from the system bits (for the purpose of the deletion operation here, therefore, the padding bits are preferably all 0s or all 1 bits in S307), and the remaining mother code codeword bits are used as the code to be transmitted. Word bits.
下面结合例子, 对 LDPC码的编码方法的实施例一进行具体说明: 例一:  The first embodiment of the encoding method of the LDPC code is specifically described below with reference to an example: Example 1:
1、 确定一个 4x24的 LDPC码的统一基础矩阵 和最大扩展因子 z max , ' 其 z、中 I z max =96, nb 如下 1所 '示: 1. Determine a unified basic matrix of 4x24 LDPC codes and a maximum spreading factor z max , 'where z, medium I z max = 96, nb is as follows 1 ':
1 2S 55 -t 47 4 -1 91 84 S 15 52 .53 5 0 ¾ 20 4 77 SO δ -ί -1 1 2S 55 -t 47 4 -1 91 84 S 15 52 .53 5 0 3⁄4 20 4 77 SO δ -ί -1
-1 6 -ί 3<5 4Q 47 12 79 47 -I 41 21 Π 71 72 0 44 49 0 Cs 0 Q -1-1 6 -ί 3<5 4Q 47 12 79 47 -I 41 21 Π 71 72 0 44 49 0 Cs 0 Q -1
51 8:1 S3 4 67 -1 21 -1 31 24 91 61 Si § 6 7S SO SS 67 15 -! -1 0 051 8:1 S3 4 67 -1 21 -1 31 24 91 61 Si § 6 7S SO SS 67 15 -! -1 0 0
-1 50 15 -1 13 16 Π 20 53 90 29 92 57 & S4 ©2 11 66 SO -I -I Q 可以得出 ^ =4, nb =2 , kb =nb -mb =24-4 = 20 , 支持的母码码率 为^ =20/24 = 5/6 = 0.833, 另为了便于实现及实际需求的 编码码长, 确定扩展因子 z=3x25=96。 -1 50 15 -1 13 16 Π 20 53 90 29 92 57 & S4 ©2 11 66 SO -I -IQ can be found ^ =4, n b =2 , k b =n b -m b =24-4 = 20 , the supported mother code rate is ^ = 20/24 = 5/6 = 0.833. In addition, in order to facilitate the realization and the actual required code length, the expansion factor z=3x2 5 =96 is determined.
2、 接收当前的传输码率 Rtx=0.78 , 比较 Rtx和 Rm的大小, 由于 0.78<0.833, 因此可以通过 ' = cez7(^xz/(1- ^xz, 求得 Κ,为 1362, 其 中 ce/(x)表示对 X向上取整数。 2. Receive the current transmission code rate R tx =0.78 and compare the sizes of R tx and R m due to 0.78<0.833, so it can be obtained by ' = cez7(^xz/(1- ^xz, Κ, 1362, where ce/(x) means taking an integer up to X.
3、通过取整( scale+floor )算法和扩展因子 z修正统一的基础矩阵 ,3. Correct the unified basic matrix by rounding the scale (scale+floor) algorithm and the expansion factor z.
. ■ γ τ modified ■ γ τ modified
得到修正后的基础矩阵 , 如下所示: Get the corrected base matrix as follows:
25 55 -I 47 4 -1 91 S4 S 52 S2 33 5 & 36 2:¾ 4 77 SO S -! -1 25 55 -I 47 4 -1 91 S4 S 52 S2 33 5 & 36 2:3⁄4 4 77 SO S -! -1
6 -I 36 40 4? 12 7 & 47 -1 41 21 Ώ 71 U 72 0 4 49 (3 0 9 -16 -I 36 40 4? 12 7 & 47 -1 41 21 Ώ 71 U 72 0 4 49 (3 0 9 -1
S1 S3 4 67 -1 21 Λ 31 24 91 61 SI 9 M 7S ω' S2 67 15 -I -1 0 0S1 S3 4 67 -1 21 Λ 31 24 91 61 SI 9 M 7S ω' S2 67 15 -I -1 0 0
-1 50 15 -1 36 13 IS 11 20 53 90 29 92 57 M M 92 11 66 m -1 -I Q 根据 和 z=96 以及 zx z 的单位矩阵扩展得到(4x96)x(24x96)的 LDPC矩阵 Η ρ , 并将矩阵 Η ρ作为 LDPC码的编码矩阵 Hbz-1 50 15 -1 36 13 IS 11 20 53 90 29 92 57 MM 92 11 66 m -1 -IQ Obtain an (4x96)x(24x96) LDPC matrix Η ρ according to the unit matrix expansion with z=96 and zx z And the matrix Η ρ is taken as the coding matrix H bz of the LDPC code.
4、 接收到长度为 K,的信息分组比特, 由于 0.78O.833, 即 ?tt< ?m, 将 长度为 ^xz- = 558个全 0比特填充到长度为 K,的信息分组比特的前面, 得到长度为 kbxz = 1920的待编码的信息比特。 4. Receive the information packet bit of length K, because 0.78O.833, ie tt < ? m , fill the length of ^xz- = 558 all 0 bits into the front of the information packet bit of length K. , the information bits to be encoded of length k b xz = 1920 are obtained.
5、 将(4 X 96) X (24 x 96)的 Hfe对长度为 x z = 1920的待编码的信息比特进 行 LDPC编码,得到长度为 N = nbxz = 2304的母码码字比特, 其中前 1920个 比特为系统比特, 后 384个比特为校验比特。 5. LDPC encoding the information bits to be encoded with a length of xz = 1920 by H fe of (4 X 96) X (24 x 96) to obtain a mother code codeword bit of length N = n b x z = 2304 , where the first 1920 bits are system bits and the last 384 bits are parity bits.
对母码码字比特进行码字重排, 假设重排前的母码码字比特为 A0,A -,A2im, 码字重排后的母码码字比特为 Α,^···^^, 则码字重排由如 下公式表示:
Figure imgf000017_0001
The codeword rearrangement is performed on the mother code codeword bits, and it is assumed that the mother code codeword bits before the rearrangement are A0 , A-, A2im , and the mother code codeword bits after the codeword rearrangement are Α, ^··· ^^, then the codeword rearrangement is represented by the following formula:
Figure imgf000017_0001
其中, PV表示码字重排向量, PV={20,21,22,23}。 又由于 0.78<0.833, 即 <i?m , 将 4中填充到信息分组比特前面的 558个全 0比特从重排后得 到的母码码字比特 。, 1,..., 。3里的系统比特中删除掉, 剩余的母码码字比 特 S5589,···, 。3作为待传输的码字比特。 Where PV represents the codeword rearrangement vector, PV = {20, 21, 22, 23}. Also, since 0.78 < 0.833, that is, <i? m , the mother code codeword bits obtained by rearranging 558 all 0 bits in front of the information packet bits are rearranged. , 1 ,..., . The system bits in 3 are deleted, and the remaining mother code code words are S 558 , 9 , ···, . 3 as the codeword bit to be transmitted.
例二: 1、 确定一个 4x24的 LDPC码的统一基础矩阵 和最大扩展因子 z max , ' 其 z、中 I z max =96, Mb 如下 1所 '示: Example 2: 1. Determine a unified base matrix of 4x24 LDPC codes and a maximum spreading factor z max , 'its z, medium I z max = 96, Mb is as follows 1 ':
1 25 55 -I 47 4 -1 91 U S 52 S2 33 5 & 36 2:¾ 4 77 SO S -! -1 1 25 55 -I 47 4 -1 91 U S 52 S2 33 5 & 36 2:3⁄4 4 77 SO S -! -1
-1 6 -I 36 40 4? 12 7 & 47 -1 41 21 O 71 14 72 0 44 49 (3 0 9 -1-1 6 -I 36 40 4? 12 7 & 47 -1 41 21 O 71 14 72 0 44 49 (3 0 9 -1
51 SI S3 4 67 -1 21 -1 31 24 91 61 SI 9 M 7S SO g£ 67 15 -! -1 0 051 SI S3 4 67 -1 21 -1 31 24 91 61 SI 9 M 7S SO g£ 67 15 -! -1 0 0
§S -1 15 -1 36 13 IS 11 20 53 90 29: θ2 57 M M 92 H 66 SO -1 -I Q 可以得到 fi =4 , nb =24, kb =nb-mb =24-4 = 20 , 支持的母码码率 为 ?m =20/24 = 5/6 = 0.833 , 另为了便于实现, 确定扩展因 子 ζ=26=64。 §S -1 15 -1 36 13 IS 11 20 53 90 29: θ2 57 MM 92 H 66 SO -1 -IQ can get fi = 4 , n b =24, k b =n b -m b =24-4 = 20 , The supported mother code rate is ? m = 20/24 = 5/6 = 0.833 , and for ease of implementation, the expansion factor ζ = 2 6 = 64 is determined.
2、 接收当前的传输码率 Rtx=0. 875, 比较 1^和 1^的大小, 由于 0. 875>0.833 , 因此信息分组长度 = kbxz = 1280。 2. Receive the current transmission code rate R tx =0. 875, compare the size of 1^ and 1^, since 0. 875>0.833, the information packet length = k b xz = 1280.
3、通过取整( scale+floor )算法和扩展因子 z修正统一的基础矩阵 , 得到修正后的基础矩阵 A , 如下所示: 3. Correct the unified base matrix by rounding the scale+floor algorithm and the expansion factor z to obtain the modified base matrix A as follows:
Q 16 36 -1 31 2 -1 6Θ 56 5 57 34 S 22 3 0 2 13 2 51 53 Θ -1 - 1 Q 16 36 -1 31 2 -1 6Θ 56 5 57 34 S 22 3 0 2 13 2 51 53 Θ -1 - 1
- 1 h -1 2 26 31 8 52 31 - 1 27 14 8 47 9 48 β 29 32 ø■ Θ & β -1- 1 h -1 2 26 31 8 52 31 - 1 27 14 8 47 9 48 β 29 32 ø■ Θ & β -1
34 54 55 2 Η -1 1¾ - 1 20 16 6Θ 40 54 6 57 52 48 58 44 10 -1 - 1 :ø■ β34 54 55 2 Η -1 13⁄4 - 1 20 16 6Θ 40 54 6 57 52 48 58 44 10 -1 - 1 :ø■ β
45 -1 33 10 -1 2 8 6 7 13 35 6β 19 61 38 2Θ 56 61 7 itU 53 - 1 -1 β 根据 和 z=64 以及 z x z 的单位矩阵扩展得到(4χ64)χ(24χ64)的 LDPC矩阵 Η ρ , 并将矩阵 Η ρ作为 LDPC码的编码矩阵 Hbz45 -1 33 10 -1 2 8 6 7 13 35 6β 19 61 38 2Θ 56 61 7 itU 53 - 1 -1 β According to the unit matrix of z=64 and zxz, an LDPC matrix of (4χ64)χ(24χ64) is obtained. Η ρ , and the matrix Η ρ is used as the coding matrix H bz of the LDPC code.
4、接收到长度为 K,=1280的信息分组比特, 由于 0.875>0.833, 将长度 ^}K' = kbxz = 1280信息分组比特直接作为待编码的信息比特。 4. The information packet bit of length K, =1280 is received. Since 0.875>0.833, the information packet bit of the length ^}K' = k b xz = 1280 is directly used as the information bit to be encoded.
5、将(4 X 64) X (24 x 64)的 Hbz对长度为 ' = x z = 1280的待编码的信息比特 进行 LDPC编码, 得到长度为 N = xz = 1536的母码码字比特, 其中前 1280 个比特为系统比特, 后 256个比特为校验比特。 5. LDPC encoding the information bits to be encoded with a length of ' = xz = 1280 by H bz of (4 X 64) X (24 x 64) to obtain a mother codeword bit of length N = xz = 1536, The first 1280 bits are system bits, and the last 256 bits are parity bits.
对母码码字比特进行码字重排, 假设重排前的母码码字比特为 ,^,…,^^, 码字重排后的母码码字比特为 Α,Α,···,Α535 , 则码字重排由如 下公式表示: Ak ^<1280The codeword rearrangement is performed on the mother code codeword bits, and it is assumed that the mother code codeword bits before the rearrangement are ^,...,^^, and the mother code codeword bits after the codeword rearrangement are Α,Α,··· , Α 535 , then the codeword rearrangement is represented by the following formula: A k ^<1280
Figure imgf000019_0001
otherwise 其中, PV表示码字重排向量, PV={20,21,22,23}。 又由于 0.875>0.833, 属于 ≥ ?m , 将重排得到的母码码字比特 S。, 按照索引从小到大依 次取 _¾or( / ) = 1462个比特, 即把 ¾,Α,···, 61作为待传输的码字比特, 其 中, r(X)表示对 X向下取整数。 如图 4所示, 所述方法包括下述步骤:
Figure imgf000019_0001
Otherwise where PV represents the codeword rearrangement vector, PV = {20, 21, 22, 23}. And because 0.875>0.833, which belongs to ≥? m , the mother code code word bit S will be rearranged. According to the index, the _3⁄4or( / ) = 1462 bits are taken from the smallest to the largest, that is, 3⁄4, Α, . . . , 61 is used as the codeword bit to be transmitted, where r ( X ) represents an integer from X downward. . As shown in FIG. 4, the method includes the following steps:
S401-S402, 确定一个固定大小的 LDPC码的统一基础矩阵 和最 大扩展因子 zmax ,并根据所需要的编码码长确定扩展因子 Z为一个固定常数; 本步骤中, 系统可以根据实际需求确定一个大小为 mfiX 的统一基础矩 阵 A 和最大扩展因子 zmax , 其中 ^、 、 zmax为正整数, 令 S401-S402, determining a unified basic matrix of a fixed-size LDPC code and a maximum spreading factor z max , and determining the expansion factor Z as a fixed constant according to the required code length; in this step, the system may determine one according to actual needs. a unified base matrix A of size m fi X and a maximum expansion factor z max , where ^, and z max are positive integers,
则得到 e支持的母码码率为 -m lr =K lnb .并根据数字通信系统 在传输中的编码码长确定扩展因子 z为一个固定常数, 一般地, 为了便于 硬件实现, 扩展因子 z—般为 2的幂或 2的幂的正整数倍。 Then, the mother code rate supported by e is -m lr =K ln b . And the spreading factor z is determined to be a fixed constant according to the code length of the digital communication system in the transmission. Generally, in order to facilitate hardware implementation, the expansion factor z - is a power of 2 or a positive integer multiple of a power of 2.
S403, 接收当前传输码率 Rtx, 然后分别执行 S404和 S405; S403, receiving the current transmission code rate R tx , and then performing S404 and S405 respectively;
S404, 比较 1^和1^的大小, 根据比较结果, 确定输入信息分组比特 的长度 Κ', 然后执行 S406;  S404, comparing the size of 1^ and 1^, according to the comparison result, determining the length of the input information packet bit Κ ', and then executing S406;
本步骤中, 当 ≥ ^时, 则信息分组比特的长度 = ^xz = ( - )xz; 当 < ?m时, 则编码生成的 ^χζ的校验比特都会被传输, 因此信息分组比 特的长度 Κ,可由校验比特长度 ^χζ和传输码率 Rtx确定, 因此 K,、 mfixz和 In this step, when ≥ ^, the length of the information packet bit = ^xz = ( - ) xz; when < ? m , the parity bits of the generated code are transmitted, so the length of the information packet bit Κ, can be determined by the check bit length ^ χζ and the transmission code rate R tx , so K, m fi xz and
Rtx 的关系可以但不限于用 以下公式表示: ^― ^ = Ra 、 或 The relationship of R tx can be, but is not limited to, expressed by the following formula: ^ - ^ = R a , or
K'+mbxz K'+m b xz
K'+mbxz = func(^^). 或 ^ = / C(^¾; 因此, K,可以但不限于如下公式 表示: K' = funcim^zxR^ /(I- Ray) 、 或 K' = func(mb z R^-m^z 、 或 K' = func(func(mbXz/(l-R )xR ; 其中/ IOTC(JC)可以表示对 x向上取整数、 向 下取整数或舍入取整数的一种。 K'+m b xz = func(^^). or ^ = / C (^3⁄4; Therefore, K, can be, but is not limited to, the following formula Represents: K' = funcim^zxR^ /(I- R a y) , or K' = func(m b z R^-m^z , or K' = func(func(m b Xz/(lR )xR ; / IOTC(JC) can represent an integer that takes an integer from x, an integer down, or a rounded integer.
 ,
S405, 对统一基础矩阵 进行修正, 确定 LDPC码的编码矩阵 Hfe, 然后执行 S407; 本步骤中, 首先利用上述修正算法和 z对 进行修正, 得到修正后 一 . 的基础矩阵 A , 根据 和 z 以及 ζ χ ζ 的单位矩阵扩展得到 (mbxz)x(nb xz)的 LDPC扩展矩阵 Η ρ; 当 ≥ ?m时,则将扩展矩阵 Η ρ作为 LDPC码的编码矩阵 Hbz;当 < ?m 时 , 通过截取 右边的 f腿 c(mbxz/(l_RJ) 歹^ , 得到 大小 为 S405, correcting the unified basic matrix, determining the coding matrix H fe of the LDPC code, and then performing S407; in this step, first correcting the modified algorithm and the z pair to obtain the corrected base matrix A, according to and And the unit matrix of ζ χ 扩展 is extended to obtain the LDPC extension matrix Η ρ of (m b xz)x(n b xz); when ≥ m m , the extension matrix Η ρ is used as the coding matrix H bz of the LDPC code; ? m , by intercepting the right f leg c (m b xz / (l_RJ) 歹 ^, the size is
(?¾χζ)χ_½ ¾χζ/(1- 的编码矩阵 。 又 K'+mbxz = func(^^) , 因此, (?3⁄4χζ)χ_1⁄2 3⁄4χζ/(1- The coding matrix. Also K'+m b xz = func(^^) , therefore,
1― 此时 LDPC码的编码矩阵 的大小为( xz)x( +^xz)。 另外, 当 =^¾为正整数时, 本步骤中在对统一基础矩阵 ∞7¾™进 l-Ra 行修正得到 后, 也可以根据 1^和 Rm的比较结果, 对修正后的基础 一 一 , 1 - The size of the coding matrix of the LDPC code at this time is ( x z )x( +^xz). In addition, when =^3⁄4 is a positive integer, after correcting the unified basic matrix ∞73⁄4 TM into the lR a row in this step, the corrected basis may also be obtained according to the comparison result of 1^ and R m .
矩阵 进行处理后, 利用扩展因子 z进行扩展, 得到 LDPC码的编码 矩阵 HfeAfter the matrix is processed, it is expanded by the spreading factor z to obtain an encoding matrix H fe of the LDPC code.
一 . 具体地, 当 ?tt≥ ?m时, 对修正后的基础矩阵 进行扩展, 得到编 码矩阵 具体与上述方法得到编码矩阵 的过程相同, 不再赘述; 当 < ^时,通过截取 δ 右逸的 kb'+mb列 ,得到大小为 ^ x( + )的 矩阵 Hfi m°di/M- ; 才艮据 — 和扩展因子 z, 扩展得到(WFIXZ)X(( + )XZ) 的 LDPC码的编码矩阵 。又 S404 , ^ Ra<R i, K'+mbxz = func(^^-) , Specifically, when ? tt ≥ ? m , the modified base matrix is expanded, and the coding matrix is specifically the same as the method of obtaining the coding matrix by the above method, and will not be described again; when < ^, by intercepting δ right The k b '+m b column gives a matrix H fi m ° di/M - of size ^ x( + ); and the expansion factor z, the extension gives ( WFI X Z )X(( + )XZ The coding matrix of the LDPC code. S404, ^ R a <R i, K'+m b xz = func(^^-) ,
1-^ 又 k' 为 正 整 数 , 因 此 可 得 到 K' +M
Figure imgf000021_0001
, 即 l_i?tt l-R^
1-^ And k ' is a positive integer, so you can get K ' +M
Figure imgf000021_0001
, ie l_i? tt lR^
(kb' +mb)xz = func^^- = K'+mbxz, 故此时, 得到的 LDPC码的编码矩阵 l_i?, (k b ' +m b )xz = func^^- = K'+m b xz, so at this time, the obtained coding matrix l_i? of the LDPC code,
的大小也为 (mbxz x(K,+mbxz 。 The size is also (m b xz x(K, +m b xz .
S406, 接收长度为 K,的信息分组比特, 并将信息分组比特直接作为待 编码的信息比特;  S406. Receive an information packet bit of length K, and directly use the information packet bit as the information bit to be encoded.
S407-S408, 通过编码矩阵 Hfe对待编码的信息比特进行 LDPC编码, 得到母码码字比特, 对母码码字比特进行处理, 得到待传输的码字比特。 S407-S408, performing LDPC encoding on the information bits to be encoded by the coding matrix Hfe , obtaining a mother code codeword bit, and processing the mother codewordword bits to obtain a codeword bit to be transmitted.
具体地, 当 ≥ ?m时, 通过大小为 X z) X X z)的 LDPC码的编码矩 阵矩阵 Hbz对待编码的信息比特进行 LDPC 编码, 得到长度为 N = + Xz = Xz的母码码字比特, 其中母码码字比特的前 个比特为系 统比特, 后 mfixz个比特为校验比特, 其中, 待编码的信息比特长度为Specifically, when ≥ m , the information bit to be encoded is LDPC-encoded by the coding matrix matrix Hbz of the LDPC code of size X z) XX z) to obtain a mother code codeword bit of length N = + Xz = Xz Wherein the first bit of the mother code codeword bit is a systematic bit, and the last m fi xz bits are check bits, wherein the length of the information bit to be encoded is
K' = kbXz = (nb -mb)xz。 K' = k b Xz = (n b -m b )xz.
为了提高码字传输的可靠性, 首先对得到的母码码字比特进行码字重 排, ^没重排前的母码码字比特为 ,^,…,^^+^^, 码字重排后的母码码字 比特为 ^, …,^ , 则码字重排由如下公式表示:
Figure imgf000021_0002
In order to improve the reliability of the codeword transmission, the codeword rearrangement of the obtained mother code codeword bits is first performed, and the mother code codeword bits before the rearrangement are ^, ..., ^^+^^, the codeword weight The rear coded codeword bits are ^, ...,^, then the codeword rearrangement is represented by the following formula:
Figure imgf000021_0002
其中, 《Λ¾ =「^/ζ]*ζ- , PV表示码字重排向量, PV包含 ^个不同 的元素, 其元素集合为 {「 /z],「 /z] + l,「 /z] + 2,—,「 /ζ] + ^_1} , 并且每 个元素互不相同, PV(x)表示 PV向量中索引为 X的元素, 其中 X为非负整 数。 Where "Λ3⁄4 = "^/ ζ ]*ζ- , PV represents the codeword rearrangement vector, PV contains ^ different elements, and its element set is {" /z], " /z] + l, " /z ] + 2, —, " /ζ] + ^_1} , and each element is different from each other. PV(x) represents an element of the PV vector indexed by X, where X is a non-negative integer.
当 ?tt≥ ?m时, 进行删余操作, 即把重排后得到的母码码字比特 ^,^…,^^^按照索引从小到大依次取 / C( / ?tt)个比特, 作为待传输的 码字比特, 即^, …, ^,^— i为待传输的码字比特。 其中 Xx)可以表示 对 X向上取整数、 向下取整数或舍入取整数的一种, 具体可以根据实际的 应用情况, 对/ IfflC(X)选择合适的操作。 When ? tt ≥ ? m , the puncturing operation is performed, that is, the mother code code word bits ^, ^..., ^^^ obtained after the rearrangement are taken as / C ( / ? tt ) bits according to the index from small to large, As to be transmitted The codeword bits, ie, ^, ..., ^, ^ - i are the codeword bits to be transmitted. Xx) can represent an integer that takes an integer from X, an integer down, or a rounded integer. Specifically, an appropriate operation can be selected for /IfflC(X) according to the actual application.
当 < ?m时, 由于 S405 中在得到编码矩阵 ^过程中已经进行了截取 操作,故可将重排后得到的母码码字比特 ,^…, ^^作为待传输的码字 比特。 When <? m , since the interception operation has been performed in the process of obtaining the coding matrix ^ in S405, the mother code codeword bits, ^..., ^^ obtained after the rearrangement can be used as the codeword bits to be transmitted.
下面结合例子, 对 LDPC码的编码方法的实施例二进行具体说明: 例三:  The second embodiment of the encoding method of the LDPC code is specifically described below with reference to an example: Example 3:
1、 确定一个 6x24的 LDPC码的统一基础矩阵 和最大扩展因子 z , ' 其、中 z =96, Mb 如下所示, : 1. Determine a unified basic matrix of 6x24 LDPC codes and a maximum spreading factor z, 'its, z = 96, Mb are as follows, :
6: 38 3 93 -1. -ί -1 30 70 -1 86 -1 37 38 4 11 -1 46 4S 0 -I -I -1 -1 62 94 19 S4 -1 92 7S -i :15 -1 -I 92 -1 45 24 32 30 -1 -1 0 0 -1 -I -1 6: 38 3 93 -1. -ί -1 30 70 -1 86 -1 37 38 4 11 -1 46 4S 0 -I -I -1 -1 62 94 19 S4 -1 92 7S -i :15 -1 -I 92 -1 45 24 32 30 -1 -1 0 0 -1 -I -1
71 -1 55 -I 12 66 45 ?9 -I 78 -1 -1 10 -1 22 5.5 ?0 B2 -i - 0 0 -1 -171 -1 55 -I 12 66 45 ?9 -I 78 -1 -1 10 -1 22 5.5 ?0 B2 -i - 0 0 -1 -1
3S 61. -1 66 9 ?3 47 64 -I 39 6J 43 -1 -1 -I -1 95 32 0 - -1 0 0 -13S 61. -1 66 9 ?3 47 64 -I 39 6J 43 -1 -1 -I -1 95 32 0 - -1 0 0 -1
-! -1 -1 -I 32 2 55 SO 95 2 6 51 24 90 44 2C -ί -I -1 - -1 -I 0 0-! -1 -1 -I 32 2 55 SO 95 2 6 51 24 90 44 2C -ί -I -1 - -1 -I 0 0
-i 63 3i SS 20 -t -1 -i 6 40 S6 !6 7i 53 -I -! 27 2.6 4S - -i -1 -1 0 可以得出?¾ =6 , nb =24, kb =nb-mb =24-6 = 18 , Mb 支持的母码码率 为 ?m =( — =^/¾ =18/24 = 3/4 = 0.75 ,另为了便于实现及实际需求的编 码码长, 确定扩展因子 z=3x25=96。 -i 63 3i SS 20 -t -1 -i 6 40 S6 !6 7i 53 -I -! 27 2.6 4S - -i -1 -1 0 Can you get? ¾ = 6, n b = 24 , k b = n b -m b = 24-6 = 18, Mb support mother code rate of m = (-? = ^ / ¾ = 18/24 = 3/4 = 0.75, and in order to facilitate the implementation and the actual required encoding code length, determine the expansion factor z = 3x2 5 = 96.
2、接收当前的传输码率 Rtx=0.9 ,比较 Rtx和 Rm的大小, 由于 0.9>0.75 , 因此信息分组长度 = X z = 1728。 2. Receive the current transmission code rate R tx =0.9 and compare the sizes of R tx and R m . Since 0.9>0.75, the information packet length = X z = 1728.
3、通过取整( scale+floor )算法和扩展因子 z修正统一的基础矩阵 ,3. Correct the unified basic matrix by rounding the scale (scale+floor) algorithm and the expansion factor z.
. ■ ττ ■ ττ
得到修正后的基础矩阵 A , 如下所示: Get the corrected base matrix A as follows:
6 s 93 -1. -I -1 3 70 -1 -1 38 4 11 -1 46 4S 0 -I -i -1 6 s 93 -1. -I -1 3 70 -1 -1 38 4 11 -1 46 4S 0 -I -i -1
62 94 19 S4 -1 92 ; -I 15 -1 -l 92 -1 45 24 2 30 -1 -1 0 0 -1 -162 94 19 S4 -1 92 ; -I 15 -1 -l 92 -1 45 24 2 30 -1 -1 0 0 -1 -1
71 -1 55 - i 12 66 45 ?9 -I -I -1 10 -1 ': 5 70 B2 -1 -1 0 0 -1 71 -1 55 - i 12 66 45 ?9 -I -I -1 10 -1 ': 5 70 B2 -1 -1 0 0 -1
61. -1 66 ?3 47 64 -I 39 61 43 -1 -1 -1 -1 o -I -1 0 0 -1 61. -1 66 ?3 47 64 -I 39 61 43 -1 -1 -1 -1 o -I -1 0 0 -1
- 1 -1 -1 2 SO 6 51 90 44 20 -i -1 -1 -1 — i -1 0 0- 1 -1 -1 2 SO 6 51 90 44 20 -i -1 -1 -1 — i -1 0 0
63 3i 8S 20 -1 6 40 S6 16 ?i 53 -1 2.6 S - -1 -1 0 ττ modified 63 3i 8S 20 -1 6 40 S6 16 ?i 53 -1 2.6 S - -1 -1 0 Ττ modified
根据 和 z=96 以及 z x z 的单位矩阵扩展得到(6x96)x(24x96)的 LDPC矩阵 Η ρ , 又 0.9>0.75 , 则将矩阵 Η ρ作为 LDPC码的编码矩阵 HbzAccording to the unit matrix expansion of z=96 and zxz, the LDPC matrix Η ρ of (6x96)x(24x96) is obtained, and 0.9>0.75, then the matrix Η ρ is used as the coding matrix H bz of the LDPC code.
4、接收到长度为 K,=1728的信息分组比特,并将长度为 =
Figure imgf000023_0001
= 1728 信息分组比特直接作为待编码的信息比特。
4. Receive the information packet bit of length K,=1728, and the length is =
Figure imgf000023_0001
= 1728 The information packet bit is directly used as the information bit to be encoded.
5、将(6x96)x(24x96)的 Hfe†长度为 K' = kbxz = m^的待编码的信息比特 进行 LDPC编码,得到长度为 N = +mfixz = xz = 2304的母码码字比特, 其 中前 1728个比特为系统比特, 后 576个比特为校险比特。 5. LDPC encoding the information bits to be encoded with (6x96)x(24x96) H fe † length K' = k b xz = m^, and obtain a length of N = +m fi x z = xz = 2304 The mother code code word bits, wherein the first 1728 bits are system bits, and the last 576 bits are school risk bits.
对母码码字比特进行码字重排, 假设重排前的母码码字比特为 ,4,-, 3ο3 ' 码字重排后的母码码字比特为¾, …, 。3, 则码字重排由如 下公式表示:
Figure imgf000023_0002
The codewords are rearranged for the mother codeword bits, assuming that the mother codeword bits before the rearrangement are 4, -, 3 ο3 'the codeword bits after the codeword rearrangement are 3⁄4, ..., . 3 , then the codeword rearrangement is represented by the following formula:
Figure imgf000023_0002
其 中 , "Λ¾ =「 '/ζ,*ζ- ' = 0 , PV 表示码字 重排向 量 , PV={18,19,20,21,22,23}„ 又由于 0.9>0.75, 属于 ?tt≥ ?m, 将重排得到的母码 码字比特 ¾, A, · · ·, Β2303按照索引从小到大依次取 cd K '/R = l 920个比特, 即 把 ,^…, 19作为待传输的码字比特, 其中, ce/(x)表示对 X向上取整数。 Where "Λ3⁄4 ="'/ζ,*ζ-' = 0 , PV represents the codeword rearrangement vector, PV={18,19,20,21,22,23}„ and since 0.9>0.75, belongs to? tt ≥ ? m , will be rearranged to get the mother code codeword bits 3⁄4, A, · · ·, Β 2303 according to the index from small to large, take cd K '/R = l 920 bits, that is, ^, ..., 19 as The codeword bits to be transmitted, where ce /(x) represents an integer up to X.
例四:  Example 4:
1、 确定一个 6x24的 LDPC码的统一基础矩阵 和最大扩展因子 z , ' 其、中 z =96, Mb 如下所示, : 1. Determine a unified basic matrix of 6x24 LDPC codes and a maximum spreading factor z, 'its, z = 96, Mb are as follows, :
6 38 ji -1 -1 -1 30 70 -1 S6 -1 37 4 11 -1 46 48 0 - i -1  6 38 ji -1 -1 -1 30 70 -1 S6 -1 37 4 11 -1 46 48 0 - i -1
62 94 19 84 -1. 92 78 -1 15 -1 -Ϊ 92 - 1 45 24 30 -1 -I 0 0 -1 -i "; -1 55 : 12 66 45 79 -I 7S -I -1 io -: 1 5 70 S2 -I -] 0 ■Q - 1 62 94 19 84 -1. 92 78 -1 15 -1 -Ϊ 92 - 1 45 24 30 -1 -I 0 0 -1 -i "; -1 55 : 12 66 45 79 -I 7S -I -1 io -: 1 5 70 S2 -I -] 0 ■Q - 1
38 1 -1 9 47 64 -I 39 61 43 -i - ί -i 95 32 0 -1 -1 G 038 1 -1 9 47 64 -I 39 61 43 -i - ί -i 95 32 0 -1 -1 G 0
-i - 1. -1 - 1 80 95 6 51 24 90 44 20 -1 - 1 - i -1 0-i - 1. -1 - 1 80 95 6 51 24 90 44 20 -1 - 1 - i -1 0
_1 63 31 2 -i -i -1 6 40 56 i 6 S3 -1 ― i 27 26 4 i -1 -i -1 可以得出 mb=6, = 24, 一 24- 6 = 18 支持的母码码率 R 、lnb =^/¾ =18/24 = 3/4 = 0.75 ,另为了便于实现及实际需求的编 码码长, 确定扩展因子 z=26=64。 _1 63 31 2 -i -i -1 6 40 56 i 6 S3 -1 ― i 27 26 4 i -1 -i -1 It can be found that m b =6, = 24, a 24-6 = 18 supported mother code rate R, ln b = ^ / ¾ = 18/24 = 3/4 = 0.75, and the other to achieve the actual needs in order to facilitate the provision The code length is long, and the expansion factor z = 2 6 = 64 is determined.
2、接收当前的传输码率 Rtx=0.6,比较 1^和1^的大小, 由于 0.6<0.75, 因此可以通过 = ce/(^xz/(l- D)- ?¾xz, 求得 K,为 576, 其中 ce/(;c)表示 对 X向上取整数。 2. Receive the current transmission code rate R tx =0.6, compare the size of 1^ and 1^, since 0.6<0.75, you can find K by = ce/(^xz/(l- D)- ?3⁄4xz, Is 576, where ce/(;c) represents an integer up to X.
3、通过取整(scale+floor )算法和扩展因子 z修正统一基础矩阵 ^ , 得到修正后的基础矩阵 A , 如下所示: 3. Correct the unified base matrix ^ by rounding the scale+floor algorithm and the expansion factor z to obtain the modified base matrix A as follows:
25 2 62 -1 -1 -1 20 46 -1 57 -1 2 25 2 7 -1 30 32 β -1 -1 -1 -1 25 2 62 -1 -1 -1 20 46 -1 57 -1 2 25 2 7 -1 30 32 β -1 -1 -1 -1
ΗΛ 62 12 56 -1 61 52 -1 10 -1 -1 61 -1 30 16 21 20 -1 -1 β β -1 -1 -1 i -1 36 -1 8 3Θ 52 -1 52 -1 -1 6 -1 14 36 46 Sh -1 -1 β β -1 -1ΗΛ 62 12 56 -1 61 52 -1 10 -1 -1 61 -1 30 16 21 20 -1 -1 β β -1 -1 -1 i -1 36 -1 8 3Θ 52 -1 52 -1 -1 6 -1 14 36 46 Sh -1 -1 β β -1 -1
25 -1 44 6 48 31 42 -1 26 4β 28 -1 -1 -1 -1 63 21 β -1 -1 β β -125 -1 44 6 48 31 42 -1 26 4β 28 -1 -1 -1 -1 63 21 β -1 -1 β β -1
-1 -1 -1 -1 21 34 36 53 63 14 h 3U 16 6β 2 13 -1 -1 -1 -1 -1 -1 β β-1 -1 -1 -1 21 34 36 53 63 14 h 3U 16 6β 2 13 -1 -1 -1 -1 -1 -1 β β
-1 2β 58 13 -1 -1 -1 h 26 37 10 47 35 -1 -1 18 17 32 -1 -1 -1 -1 β 根据 和 z=64 以及 zx z 的单位矩阵扩展得到(6χ64)χ(24χ64)的 LDPC 矩 阵 Η7 , 又 由 于 0.6<0.75 , 因 此截取 Η ρ 右 边的 ceil(mbxz/(l-R ) = 960列, 得到大小为(6x64)x960的编码矩阵 Hbz。 另外, 本步骤还可以这样处理: 得到修正后的基础矩阵 , 又由 于 0.6O.75, kb' =^^ = 9 , 截取 右边的 +^=9 + 6 = 15列, 得到大 小为 6x(9 + 6)的矩阵 d — ; 和 z=64以及 z z的单位矩 阵扩展得到(6x64)x(15x64)的 LDPC码的编码矩阵 ^。 -1 2β 58 13 -1 -1 -1 h 26 37 10 47 35 -1 -1 18 17 32 -1 -1 -1 -1 β According to the unit matrix expansion with z=64 and zx z (6χ64)χ The LDPC matrix (7 of (24χ64), and since 0.6<0.75, intercepts the ceil (m b xz/(lR ) = 960 columns to the right of Η ρ to obtain the coding matrix H bz of size (6x64) x960. In addition, this step It can also be processed as follows: Get the corrected base matrix, and since 0.6O.75, k b ' =^^ = 9 , intercept the right +^=9 + 6 = 15 columns, and get the size of 6x(9 + 6) The matrix d - ; and z = 64 and the unit matrix of zz are extended to obtain the coding matrix ^ of the (6x64) x (15x64) LDPC code.
4、 接收到长度为 K,的信息分组比特, 并将长度为 = 576的信息分组 比特直接作为待编码的信息比特。  4. The information packet bit of length K is received, and the information packet bit of length 576 is directly used as the information bit to be encoded.
5、 将(6x64)x(15x64)的 ^2对长度为 = 576的待编码的信息比特进行5. Perform (6x64)x(15x64)^ 2 pairs of information bits to be encoded with length = 576
LDPC 编码, 得到长度为 N = + xz = xz = 960的母码码字比特, 其中前LDPC coding, obtaining a mother code codeword bit of length N = + x z = xz = 960, where the former
576个比特为系统比特, 后 384个比特为校验比特。 576 bits are system bits and the last 384 bits are parity bits.
对母码码字比特进行码字重排, 假设重排前的母码码字比特为 ,4,-, 59 '码字重排后的母码码字比特为 Α,Α,···, 59,则码字重排由如下 公式表示:
Figure imgf000025_0001
Otherwise
Perform codeword rearrangement on the mother codeword word bits, assuming that the mother code codeword bits before the rearrangement are 4, -, 5 9 'the codeword rearranged mother code codeword bits are Α, Α, ··· , 59 , the codeword rearrangement is represented by the following formula:
Figure imgf000025_0001
Otherwise
其 中 , "Λ¾/ =「 '/ζ,*ζ- ' = 0 , PV 表示码字 重排向 量 , PV={9,10,11, 12,13, 14}。 又由于 0.6<0.75, 即 R <Rm , 由于 3中在得到编码 矩阵 过程中已经进行了截取操作, 故可将重排后得到的母码码字比特 。,Α,···, 59作为待传输的码字比特。 Where ",3⁄4/ ="'/ζ,*ζ-' = 0 , PV represents the codeword rearrangement vector, PV={9,10,11, 12,13, 14}. Also due to 0.6<0.75, ie R <R m , since the interception operation has been performed in the process of obtaining the coding matrix in 3, the mother code code word bits obtained after the rearrangement, Α, . . . , 59 can be used as the code word bits to be transmitted.
图 5示出了本发明提供的 LDPC码的编码装置的结构, 如图 5所示, 所述装置包括: 编码单元 10、 比较单元 20、 分组比特确定单元 30、 编码矩 阵确定单元 40、 信息比特确定单元 50以及码字处理单元 60; 其中, 比较 单元 20用于比较统一基础矩阵支持的母码码率与传输码率的大小; 分组比 特确定单元 30用于根据比较单元 20的比较结果, 确定输入信息分组比特 的长度 Κ,; 编码矩阵确定单元 40用于根据统一基础矩阵及扩展因子确定 LDPC码的编码矩阵; 信息比特确定单元 50用于接收输入的信息比特, 根 据分组比特确定单元 30确定的信息分组比特长度,得到长度为 K,的信息分 组比特, 并确定待编码的信息比特, 并将其传输给编码单元 10; 码字处理 单元 60用于对编码单元 10进行 LDPC编码得到的母码码字进行处理, 得 到待传输的码字比特。  FIG. 5 shows the structure of an apparatus for encoding an LDPC code provided by the present invention. As shown in FIG. 5, the apparatus includes: an encoding unit 10, a comparing unit 20, a packet bit determining unit 30, an encoding matrix determining unit 40, and information bits. a determining unit 50 and a codeword processing unit 60; wherein the comparing unit 20 is configured to compare the size of the mother code rate and the transmission code rate supported by the unified base matrix; the grouping bit determining unit 30 is configured to determine according to the comparison result of the comparing unit 20 The length of the input information packet bit Κ, the encoding matrix determining unit 40 is configured to determine an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor; the information bit determining unit 50 is configured to receive the input information bit, and determine according to the packet bit determining unit 30. The information packet bit length is obtained, the information packet bit of length K is obtained, and the information bits to be encoded are determined and transmitted to the coding unit 10; the codeword processing unit 60 is used to perform LDPC coding on the coding unit 10 The codeword word is processed to obtain the codeword bits to be transmitted.
进一步地, 所述装置还包括设置单元 70, 用于设置 LDPC码的统一基 础矩阵及扩展因子。  Further, the apparatus further includes a setting unit 70 configured to set a unified base matrix and an expansion factor of the LDPC code.
进一步地, 所述装置还包括输入单元 80, 用于接收当前的传输码率; 分组比特确定单元 30具体用于当比较单元 20的比较结果为 R ≥ 时, 确 定信息分组比特的长度 K,为 {nb -mb)xz;当比较单元 20的比较结果为 R <Rm 时, 确定信息分组比特的长度为 Κ, =
Figure imgf000025_0002
R ) 、 或 K' = func(mbXz / l-R^-m^z , ^K' = func(func(mb z /(I- R^ R^); 其中, R 为传输码率, 为母码码率, mb、 分别为统一基础矩阵的行数和列数, z 为扩展因子, /ifflc c)为对 x向上取整数、 向下取整数或舍入取整数的一种。 进一步地, 编码矩阵确定单元 40具体用于对所述统一基础矩阵进行修 正, 根据扩展因子 z, 利用 z x z的单位矩阵对修正得到的基础矩阵进行扩 展, 得到 LDPC码的编码矩阵。
Further, the device further includes an input unit 80, configured to receive a current transmission code rate, and the packet bit determining unit 30 is specifically configured to determine a length K of the information packet bit when the comparison result of the comparison unit 20 is R ≥ {n b -m b )xz; when the comparison result of the comparison unit 20 is R <R m , the length of the information packet bit is determined to be Κ, =
Figure imgf000025_0002
R ) , or K' = func(m b Xz / lR^-m^z , ^K' = func(func(m b z /(I- R^ R^); where R is the transmission code rate, Mother code rate, mb , respectively, the number of rows and columns of the unified base matrix, z For the expansion factor, /ifflc c) is an integer that takes an integer up to x, an integer down or rounds to an integer. Further, the coding matrix determining unit 40 is specifically configured to modify the unified basic matrix, and according to the spreading factor z, extend the modified basic matrix by using the unit matrix of zxz to obtain an encoding matrix of the LDPC code.
相应地, 信息比特确定单元 50具体用于当比较单元 20的比较结果为 ≥ 时, 将接收到的长度为 K,的信息分组比特直接作为待编码的信息比 特; 当比较单元 20的比较结果为 < ?m时, 向长度为 K,的信息分组比特中 加入填充比特,形成长度为 ^xz的待编码的信息比特, 其中填充比特为全 0 比特或者全 1比特。 Correspondingly, the information bit determining unit 50 is specifically configured to: when the comparison result of the comparing unit 20 is ≥, the information packet bit of the received length K is directly used as the information bit to be encoded; when the comparison result of the comparing unit 20 is When < m , a padding bit is added to the information packet bit of length K to form an information bit to be encoded of length ^xz, wherein the padding bit is all 0 bits or all 1 bit.
相应地, 码字处理单元 60具体用于对编码单元 10编码得到的母码码 字进行重排, 其中重排前的母码码字比特为 ,^,…,^^, 重排后的母码码 字 比 特 为 BoU ^ , 重 排 公 式 为 :
Figure imgf000026_0001
Correspondingly, the codeword processing unit 60 is specifically configured to rearrange the mother codewords obtained by the encoding unit 10, wherein the mother codeword bits before the rearrangement are, ^, ..., ^^, rearranged mother The codeword bits are BoU^ and the rearrangement formula is:
Figure imgf000026_0001
重排向量, 它的元素集合为 ^+1, - +2,…, - 1} , PV(x)表示 PV向量中索引为 X的元素, X为非负整数; 当比较单元 20的比较结果为 Ra≥Rm时,把重排后的母码码字比特 ^,^…,^^按照索引从小到大依次取 ½c( /D个比特, 作为待传输的码字比特; 当比较单元 20的比较结果为Rearrange the vector, its element set is ^+1, - +2,..., - 1} , PV(x) represents the element with the index X in the PV vector, X is a non-negative integer; when the comparison result of the comparison unit 20 When R a ≥R m , the rearranged mother code codeword bits ^, ^..., ^^ are taken from the smallest to the largest in order to take 1⁄2 c (/D bits as the codeword bits to be transmitted; The comparison result of unit 20 is
R <Rm时, 将加入的所述 y^xz- 个填充比特从重排后的母码码字比特 。,^···,^^里的系统比特中删除掉,剩余的母码码字比特作为待传输的码 字比特。 When R < R m , the added y^xz- padding bits are added from the rearranged mother code codeword bits. , ^···, ^^ is deleted from the system bits, and the remaining mother code codeword bits are used as codeword bits to be transmitted.
进一步地, 编码矩阵确定单元 40具体用于对统一基础矩阵进行修正, 根据扩展因子 Z, 利用 z x z的单位矩阵对修正得到的基础矩阵进行扩展, 得到 LDPC码的扩展矩阵; 当比较单元 20的比较结果为 ≥ ?m时, 将扩展 矩阵作为 LDPC码的编码矩阵; 当比较单元的比较结果为 < ?m时, 截取 扩展矩阵右边的 X^xz/(1— 》列, 将截取得到的矩阵作为 LDPC码的编 码矩阵; 或在 =^¾为正整数时, 对统一基础矩阵进行修正, 得到修正 Further, the coding matrix determining unit 40 is specifically configured to modify the unified basic matrix, and according to the spreading factor Z, the modified basic matrix is extended by using the unit matrix of zxz to obtain an extended matrix of the LDPC code; when comparing the comparison unit 20 When the result is ≥ m , the extended matrix is used as the coding matrix of the LDPC code; when the comparison result of the comparison unit is <? m , the interception is performed. Extend the X^ xz/(1 - 》 column on the right side of the matrix, and use the truncated matrix as the coding matrix of the LDPC code; or when the =^3⁄4 is a positive integer, correct the unified base matrix and get the correction.
\-Ra 后的基础矩阵; 当比较单元 20的比较结果为 ≥ 时, 根据扩展因子 z, 利用 z X z的单位矩阵对修正得到的基础矩阵进行扩展, 得到 LDPC码的编 码矩阵; 当比较单元 20的比较结果为 R <Rm时, 截取修正后的基础矩阵右 边的 +^列,根据扩展因子 z, 利用 zxz的单位矩阵将截取得到的矩阵进 行扩展, 得到 LDPC码的编码矩阵。 \ Base matrix after -R a; when the comparison result of the comparing unit is ≥ 20, according to the spreading factor Z, using z X z a unit matrix obtained by correcting the base matrix is extended to give the coding matrix of the LDPC code; when comparing When the comparison result of the unit 20 is R < R m , the +^ column on the right side of the corrected basic matrix is intercepted, and the truncated matrix is expanded by the unit matrix of zxz according to the spreading factor z to obtain an encoding matrix of the LDPC code.
相应地,信息比特确定单元 50具体用于将接收到的长度为 K,的信息分 组比特直接作为待编码的信息比特。  Correspondingly, the information bit determining unit 50 is specifically configured to directly use the received information packet bit of length K as the information bit to be encoded.
相应地, 码字处理单元 60具体用于对编码单元 10得到的母码码字进 行重排, 其中重排前的母码码字比特为 ^),^,…, ^, 重排后的母码码字 比特为 Β0Α,···,ΒΚ,— , 重排公式为: 中 ,
Figure imgf000027_0001
Correspondingly, the codeword processing unit 60 is specifically configured to rearrange the mother codewords obtained by the encoding unit 10, wherein the mother codeword bits before the rearrangement are ^), ^, ..., ^, rearranged mother The code word bits are Β 0 Α,···,Β Κ ,— , and the rearrangement formula is:
Figure imgf000027_0001
ηΡαά =
Figure imgf000027_0002
, PV 表示码字重排向量, 它的元素集合为 {「 /z,,「 /z, + l,「 /z, + 2,〜,「 + 1} , PV(x)表示 PV向量中索引为 x 的元素, X为非负整数; 当比较单元 20的比较结果为 ≥ ?m时, 把重排后 的母码码字比特 β0Ί··,βκ,—按照索引从小到大依次取 f K,IRJ个比 特, 作为待传输的码字比特; 当比较单元 20的比较结果为 < ^时, 直接 将从重排后的母码码字比特 。, A, · · ·, Βκ,—作为待传输的码字比特。
ΡΡαά =
Figure imgf000027_0002
, PV represents the codeword rearrangement vector, its element set is {" /z,, " /z, + l, " /z, + 2, ~, " + 1} , PV (x) represents the index in the PV vector X is a non-negative integer for the element of x; when the comparison result of the comparison unit 20 is ≥ ? m , the rearranged mother code codeword bits β 0 Ί··, β κ , - are indexed from small to large in order Taking f K, IRJ bits as the codeword bits to be transmitted; when the comparison result of the comparison unit 20 is < ^, the mother code codeword bits will be directly rearranged. A, · · · ·, Β κ , as the codeword bits to be transmitted.
另需要说明, 编码与解码是相互对应的, 因此本发明提供的 LDPC码 的编码方法及装置, 其解码方法与解码装置也有相应的逆运算, 不再赘述。  It should be noted that the encoding and decoding are mutually corresponding. Therefore, the encoding method and apparatus for the LDPC code provided by the present invention have corresponding inverse operations on the decoding method and the decoding device, and are not described again.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种低密度奇偶校验 LDPC码的编码方法, 其特征在于, 所述方法 包括下述步骤:  A method for encoding a low density parity check LDPC code, the method comprising the steps of:
比较统一基础矩阵支持的母码码率与传输码率的大小, 根据比较结果, 确定输入信息分组比特的长度 K,;  Comparing the mother code rate and the transmission code rate supported by the unified base matrix, and determining the length K of the input information packet bit according to the comparison result;
根据统一基础矩阵及扩展因子确定 LDPC码的编码矩阵;  Determining an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor;
由接收长度为 Κ,的信息分组比特, 确定待编码的信息比特;  Determining information bits to be encoded by receiving information packet bits of length Κ;
利用所述编码矩阵对待编码的信息比特进行 LDPC编码, 并对编码得 到的母码码字比特进行处理, 得到待传输的码字比特。  The information bits to be encoded are LDPC-encoded by the coding matrix, and the encoded mother code codeword bits are processed to obtain codeword bits to be transmitted.
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 设置 LDPC码的统一基础矩阵及扩展因子。  2. The method according to claim 1, wherein the method further comprises: setting a unified basic matrix and an expansion factor of the LDPC code.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述比较统一基础 矩阵支持的母码码率与传输码率的大小之前, 所述方法还包括: 接收当前 的传输码率;  The method according to claim 1 or 2, wherein before the comparing the code rate of the mother code and the size of the transmission code rate supported by the unified base matrix, the method further includes: receiving the current transmission code rate;
所述根据比较结果, 确定输入信息分组比特的长度 K,为:  The determining the length K of the input information packet bit according to the comparison result is:
当 ≥ ?m时, 确定信息分组的长度 K,为 - mb)xz; 当 < 时, 确定 信 息 分 组 比 特 的 长 度 为 K ' = funcimb X zx ^ /(\— R ) 、 或 K ' = func(mb x z /(1 - )) - mfi x z 或 = func(func(mb x z /(l - )) x ); When ≥ m , the length K of the information packet is determined as - m b )xz; when <, the length of the information packet bit is determined to be K ' = funcimb X zx ^ /(\- R ) , or K ' = func (m b xz /(1 - )) - m fi xz or = func(func(m b xz /(l - )) x );
其中, 为传输码率, Rm为母码码率, mb、 分别为统一基础矩阵的 行数和列数, Z为扩展因子, /ifflC(X)为对 X向上取整数、 向下取整数或舍入 取整数中的一种。 Wherein, for the transmission code rate, R m is the mother code rate, m b , respectively is the number of rows and columns of the unified base matrix, Z is the expansion factor, /iffl C (X) is the integer from X up, down Take an integer or round to take one of the integers.
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述根据统一基础 矩阵及扩展因子, 确定 LDPC码的编码矩阵为:  The method according to claim 1 or 2, wherein the determining an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor is:
对统一基础矩阵进行修正, 根据扩展因子 z, 利用 z x z的单位矩阵对 修正得到的基础矩阵进行扩展, 得到 LDPC码的编码矩阵。 Correcting the unified base matrix, using the unit matrix pair of zxz according to the expansion factor z The modified basic matrix is expanded to obtain an encoding matrix of the LDPC code.
5、根据权利要求 4所述的方法, 其特征在于, 所述由接收的长度为 K, 的信息分组比特, 确定待编码的信息比特为:  The method according to claim 4, wherein the information packet bits of the received length K are determined to be:
当 ≥ 时, 将接收到的长度为 Κ,的信息分组比特直接作为待编码的 信息比特; 当 < ?m时, 向长度为 K,的信息分组比特中加入填充比特, 形 成长度为 ^Χζ的待编码的信息比特。 When ≥, the received information packet length is 直接, and the information packet bit is directly used as the information bit to be encoded; when <? m , the padding bit is added to the information packet bit of length K to form a length of ^Χζ Information bits to be encoded.
6、 根据权利要求 5所述的方法, 其特征在于, 所述对编码得到的母码 码字比特进行处理为:  The method according to claim 5, wherein the processing of the encoded mother code codeword bits is performed as follows:
对编码得到的母码码字进行重排, 其中重排前的母码码字比特为 A„Ax,-,Anb^ 重排后的母码码字比特为 ^ …, ^, 重排公式为:
Figure imgf000029_0001
l», PV表示 码字重排向量, 它的元素集合为 ^+1, - +2,…, - 1} , PV(x) 表示 PV向量中索引为 X的元素, X为非负整数;
The coded mother code code words are rearranged, wherein the mother code code word bits before the rearrangement are A„A x , -, A nb ^ rearranged mother code code word bits are ^ ..., ^, rearrangement The formula is:
Figure imgf000029_0001
l », PV represents the codeword rearrangement vector, its element set is ^+1, - +2,..., - 1} , PV(x) represents the element of the PV vector index X, and X is a non-negative integer;
当 ≥ ^时,把重排后的母码码字比特 。, A, · · ·, 按照索引从小到大 依次取 个比特, 作为待传输的码字比特;  When ≥ ^, put the rearranged mother code code word bits. , A, · · ·, according to the index from small to large, take the bits in order, as the codeword bits to be transmitted;
当 < ^时,将加入的所述 kbXz— K,个填充比特从重排后的母码码字比 特 。, A, · · ·, 里的系统比特中删除掉,剩余的母码码字比特作为待传输的 码字比特。 When < ^, the k b Xz — K to be added, the padding bits are from the rearranged mother code codeword bits. The system bits in A, · · ·, are deleted, and the remaining mother code codeword bits are used as codeword bits to be transmitted.
7、 根据权利要求 3所述的方法, 其特征在于, 所述确定 LDPC码的编 码矩阵为:  The method according to claim 3, wherein the determining the coding matrix of the LDPC code is:
对统一基础矩阵进行修正, 根据扩展因子 z, 利用 zxz的单位矩阵对 修正得到的基础矩阵进行扩展, 得到 LDPC码的扩展矩阵;  Correcting the unified basic matrix, according to the expansion factor z, using the unit matrix of zxz to extend the modified basic matrix to obtain an extended matrix of the LDPC code;
当 ≥ ?m时, 将扩展矩阵作为 LDPC码的编码矩阵; 当 < ?m时, 截 取扩展矩阵右边的 Χ^χζ/(1_ 》列, 将截取得到的矩阵作为 LDPC码的 编码矩阵; 或者, When ≥ m , the extended matrix is used as the coding matrix of the LDPC code; when <? m , the Χ^ χζ/(1_ 》 column on the right side of the extended matrix is intercepted, and the truncated matrix is taken as the LDPC code. Encoding matrix; or,
当 = ^¾为正整数时, 对统一基础矩阵进行修正, 得到修正后的基 \-Ra 础矩阵; When = ^3⁄4 is a positive integer, the unified base matrix is corrected to obtain a modified base \-R a base matrix;
当 ≥ 时, 根据扩展因子 Z, 利用 Z X Z的单位矩阵对修正后的基础 矩阵进行扩展, 得到 LDPC码的编码矩阵; 当 < ?m时, 截取修正后的基 础矩阵右边的 +^列,根据扩展因子 Z,利用 Z X Z的单位矩阵将截取得到 的矩阵进行扩展, 得到 LDPC码的编码矩阵。 When ≥, according to the expansion factor Z, the modified base matrix is extended by the ZXZ unit matrix to obtain the coding matrix of the LDPC code; when <? m , the +^ column on the right side of the modified basic matrix is intercepted, according to the extension The factor Z is extended by the unit matrix of ZXZ to obtain the coding matrix of the LDPC code.
8、根据权利要求 7所述的方法, 其特征在于, 所述由接收的长度为 K, 的信息分组比特, 确定待编码的信息比特为: 将长度为 Κ,的信息分组比特 直接作为待编码的信息比特。  The method according to claim 7, wherein the information packet bit of the received length K is determined to be: the information packet bit of length Κ is directly used as the information packet to be encoded. Information bits.
9、 根据权利要求 8所述的方法, 其特征在于, 所述对编码得到的母码 码字比特进行处理为:  9. The method according to claim 8, wherein the processing of the encoded mother code codeword bits is performed as follows:
对编码得到的母码码字进行重排, 其中重排前的母码码字比特为 Λ,-, ^, 重排后的母码码字比特为 Β0Α ··,ΒΚ,—, 重排公式为:The coded mother code codewords are rearranged, wherein the mother code codeword bits before the rearrangement are Λ, -, ^, and the rearranged mother code codeword bits are Β 0 Α ··, Β Κ , —, The rearrangement formula is:
「 A k < K' ^ , B = . , 其 中 ," A k < K' ^ , B = . , where
( ηΡαά =
Figure imgf000030_0001
, PV 表示码字重排向量, 它的元素集合为 {「 /z,,「 /z, + l,「 /z, + 2,〜,「 + 1} , PV(x)表示 PV向量中索引为 x 的元素, X为非负整数, 其中「^表示对 X向上取整数;
( ηΡαά =
Figure imgf000030_0001
, PV represents the codeword rearrangement vector, its element set is {" /z,, " /z, + l, " /z, + 2, ~, " + 1} , PV (x) represents the index in the PV vector For an element of x, X is a non-negative integer, where "^ means taking an integer up to X;
当 ≥ ^时,把重排后的母码码字比特 。, A, · · ·, ΒΚ,—按照索引从小到 大依次取 0 )个比特, 作为待传输的码字比特; When ≥ ^, put the rearranged mother code code word bits. , A, · · · ·, Β Κ , - take 0) bits in order from the smallest to the largest, as the codeword bits to be transmitted;
当^ <Rm时,直接将从重排后的母码码字比特 。,Α,···, ,+Β¾ΧΖ_^ 为待传 输的码字比特。 When ^ < R m , the codeword bits of the mother code will be directly rearranged. , Α,···, , +Β3⁄4ΧΖ _^ is the codeword bit to be transmitted.
10、 一种 LDPC码的编码装置, 包括编码单元, 其特征在于, 所述装 置还包括: 比较单元、 分组比特确定单元、 编码矩阵确定单元、 信息比特 确定单元以及码字处理单元; 其中, 10. An encoding apparatus for an LDPC code, comprising: an encoding unit, wherein the loading The method further includes: a comparing unit, a grouping bit determining unit, an encoding matrix determining unit, an information bit determining unit, and a codeword processing unit; wherein
比较单元, 用于比较统一基础矩阵支持的母码码率与传输码率的大小; 分组比特确定单元, 用于根据比较单元的比较结果, 确定输入信息分 组比特的长度 Κ' ;  a comparison unit, configured to compare a size of a mother code rate and a transmission code rate supported by the unified base matrix; a packet bit determining unit, configured to determine a length of the input information packet bit according to a comparison result of the comparison unit;
编码矩阵确定单元, 用于根据统一基础矩阵及扩展因子确定 LDPC码 的编码矩阵;  An encoding matrix determining unit, configured to determine an encoding matrix of the LDPC code according to the unified basic matrix and the spreading factor;
信息比特确定单元, 用于接收得到的长度为 Κ,的信息分组比特, 并确 定待编码的信息比特, 将其传输给编码单元;  An information bit determining unit, configured to receive the obtained information packet bit of length Κ, and determine the information bit to be encoded, and transmit the information bit to the coding unit;
码字处理单元, 用于对编码单元进行 LDPC编码得到的母码码字进行 处理, 得到待传输的码字比特。  And a codeword processing unit, configured to process the mother codeword obtained by performing LDPC encoding on the coding unit, to obtain a codeword bit to be transmitted.
11、 根据权利要求 10所述的装置, 其特征在于, 所述装置还包括: 设 置单元, 用于设置 LDPC码的统一基础矩阵及扩展因子。  The device according to claim 10, wherein the device further comprises: a setting unit, configured to set a unified basic matrix and an expansion factor of the LDPC code.
12、 根据权利要求 10或 11所述的装置, 其特征在于, 所述装置还包 括输入单元, 用于接收当前的传输码率; 确定信息分组比特的长度 K,为 (nb - mb )x z; 当比较单元的比较结果为 < Rm 时, 确定信息分组比特的长度为 Κ, =
Figure imgf000031_0001
R ) 、 或 K, =
Figure imgf000031_0002
,或 ' = func(func(mb X z /(l - R^ R^);其中, ^为 传输码率, Rm为母码码率, mb、 分别为统一基础矩阵的行数和列数, z 为扩展因子, /ifflc c)为对 X向上取整数、 向下取整数或舍入取整数的一种。
The device according to claim 10 or 11, wherein the device further comprises an input unit, configured to receive a current transmission code rate; and determine a length K of the information packet bit, which is (n b - m b ) Xz; When the comparison result of the comparison unit is < R m , the length of the information packet bit is determined to be Κ, =
Figure imgf000031_0001
R ) , or K, =
Figure imgf000031_0002
, or ' = func(func(m b X z /(l - R^ R^); where ^ is the transmission code rate, Rm is the mother code rate, mb , respectively, the number of rows and columns of the unified base matrix , z is the expansion factor, /ifflc c) is an integer that takes an integer up to X, an integer down, or a rounded integer.
13、 根据权利要求 10或 11所述的装置, 其特征在于, 所述编码矩阵 确定单元, 具体用于对所述统一基础矩阵进行修正, 根据扩展因子 z , 利用 z x z的单位矩阵对修正得到的基础矩阵进行扩展, 得到 LDPC码的编码矩 阵。 The apparatus according to claim 10 or 11, wherein the encoding matrix determining unit is specifically configured to correct the unified basic matrix, and according to the expansion factor z, the corrected using the unit matrix pair of zxz The base matrix is extended to obtain an encoding matrix of the LDPC code.
14、 根据权利要求 13所述的装置, 其特征在于, 所述信息比特确定单 元, 具体用于当比较单元的比较结果为 ≥ ?m时, 将接收到的长度为 K,的 信息分组比特直接作为待编码的信息比特; 当比较单元的比较结果为 < Wm时,向长度为 K,的信息分组比特中加入填充比特,形成长度为 kbxz的 待编码的信息比特。 The device according to claim 13, wherein the information bit determining unit is specifically configured to directly receive the information packet length of the received length K when the comparison result of the comparing unit is ≥? m As information bits to be encoded; when the comparison result of the comparison unit is < W m , padding bits are added to the information packet bits of length K to form information bits to be encoded having a length of k b xz.
15、 根据权利要求 14所述的装置, 其特征在于, 所述码字处理单元, 具体用于对编码单元编码得到的母码码字进行重排, 其中重排前的母码码 字比特为 4),4,···, ^— i , 重排后的母码码字比特为 Βο,Β^-,Β^ , 重排公式 为:
Figure imgf000032_0001
!S PV表示 码字重排向量, 它的元素集合为 ^+1, - +2,…, - 1} , PV(x) 表示 PV向量中索引为 X的元素, X为非负整数;
The apparatus according to claim 14, wherein the codeword processing unit is specifically configured to rearrange a mother code codeword obtained by coding the coding unit, wherein the mother code codeword bit before the rearrangement is 4), 4,···, ^— i , the rearranged mother code codeword bits are Βο, Β^-, Β^, and the rearrangement formula is:
Figure imgf000032_0001
! S PV denotes a codeword rearrangement vector whose element set is ^+1, - +2,..., - 1} , PV(x) denotes an element of index X in the PV vector, and X is a non-negative integer;
当比较单元的比较结果为 R ≥Rm时, 把重排后的母码码字比特When the comparison result of the comparison unit is R ≥ R m , the rearranged mother code codeword bits are used.
Α,Α,···^^— ^要照索引从小到大依次取 个比特, 作为待传输的码 字比特; Α,Α,···^^—^ It is necessary to take a bit from the smallest to the largest according to the index, as the codeword bits to be transmitted;
当比较单元的比较结果为 < ?m时,将加入的所述 kbXz_K,个填充比特 从重排后的母码码字比特 Α,^···^^— i里的系统比特中删除掉,剩余的母码 码字比特作为待传输的码字比特。 When the comparison result of the comparing unit is <m, the added the k b Xz_K, mother code codeword bits after rearrangement padding bits Α, ^ ··· ^^ -? I in the systematic bits deleted The remaining mother code codeword bits are used as codeword bits to be transmitted.
16、 根据权利要求 12所述的装置, 其特征在于, 所述编码矩阵确定单 元, 具体用于对统一基础矩阵进行修正, 根据扩展因子 z, 利用 z x z的单 位矩阵对修正得到的基础矩阵进行扩展, 得到 LDPC码的扩展矩阵; 当比 较单元的比较结果为 ≥ ?m时, 将扩展矩阵作为 LDPC码的编码矩阵; 当 比较单元的比较结果为 < 时, 截取扩展矩阵右边的 X ^ X ZR-》 歹 |J , 将截取得到的矩阵作为 LDPC码的编码矩阵; 或在 =^¾为正整数 The apparatus according to claim 12, wherein the coding matrix determining unit is specifically configured to modify the unified basic matrix, and expand the modified basic matrix by using the unit matrix of zxz according to the spreading factor z. Obtaining an extension matrix of the LDPC code; when the comparison result of the comparison unit is ≥? m , the extension matrix is used as the coding matrix of the LDPC code; when the comparison result of the comparison unit is <, intercepting the X^ XZ - R on the right side of the extension matrix -" 歹|J , the truncated matrix is used as the encoding matrix of the LDPC code; or ==3⁄4 is a positive integer
\-Ra \-R a
时, 对统一基础矩阵进行修正, 得到修正后的基础矩阵; 当比较单元的比 较结果为 ≥ 时, 根据扩展因子 Z, 利用 Z X Z的单位矩阵对修正得到的 基础矩阵进行扩展, 得到 LDPC码的编码矩阵; 当比较单元的比较结果为 < 时, 截取修正后的基础矩阵右边的 +^列, 根据扩展因子 Z, 利用 z x z的单位矩阵将截取得到的矩阵进行扩展, 得到 LDPC码的编码矩阵。 When the unified base matrix is modified, the modified basic matrix is obtained. When the comparison result of the comparison unit is ≥, according to the expansion factor Z, the modified base matrix is extended by the ZXZ unit matrix to obtain the coding of the LDPC code. Matrix; When the comparison result of the comparison unit is <, the +^ column on the right side of the modified base matrix is intercepted, and according to the expansion factor Z, the matrix obtained by the truncation is expanded by the unit matrix of zxz to obtain the coding matrix of the LDPC code.
17、 根据权利要求 16所述的装置, 其特征在于, 所述信息比特确定单 元, 具体用于将接收到的长度为 K,的信息分组比特直接作为待编码的信息 比特。  The device according to claim 16, wherein the information bit determining unit is specifically configured to directly use the received information packet bit of length K as the information bit to be encoded.
18、 根据权利要求 17所述的装置, 其特征在于, 所述码字处理单元, 具体用于对编码单元得到的母码码字进行重排, 其中重排前的母码码字比 特为 4,4,···,4,+Β¾χζ—, 重排后的母码码字比特为 Β0Α ··,ΒΚ,—, 重排公式 为: The apparatus according to claim 17, wherein the codeword processing unit is specifically configured to rearrange the mother codewords obtained by the coding unit, wherein the mother codeword bits before the rearrangement are 4 , 4, ···· ,4, +Β3⁄4χζ —, the rearranged mother code codeword bits are Β 0 Α ··,Β Κ , —, rearrangement formula is:
Bk · , 其 中 , B k · , where,
Otherwise  Otherwise
ηΡαά =
Figure imgf000033_0001
字重排向量, 它的元素集合为 {「 /z,,「 /z, + l,「 /z, + 2,〜,「 + 1} , PV(x)表示 PV向量中索引为 x 的元素, X为非负整数;
ΡΡαά =
Figure imgf000033_0001
The word rearrangement vector, whose element set is {" /z,, " /z, + l, " /z, + 2, ~, " + 1} , PV(x) represents the element indexed x in the PV vector , X is a non-negative integer;
当比较单元的比较结果为 R ≥Rm时, 把重排后的母码码字比特When the comparison result of the comparison unit is R ≥ R m , the rearranged mother code codeword bits are used.
^ …,^+^— i按照索引从小到大依次取 个比特, 作为待传输的 码字比特; ^ ...,^+^— i takes the bits in order from the smallest to the largest, as the codeword bits to be transmitted;
当比较单元的比较结果为 < 时, 直接将从重排后的母码码字比特 When the comparison result of the comparison unit is <, the codeword bits of the mother code will be directly rearranged from
^ ,…, ^^作为待传输的码字比特。 ^ ,..., ^^ as the codeword bits to be transmitted.
PCT/CN2010/079103 2010-09-25 2010-11-25 Encoding method for low density parity check code and apparatus thereof WO2012037749A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010293323.6A CN102412842B (en) 2010-09-25 2010-09-25 The coded method of a kind of low density parity check code and device
CN201010293323.6 2010-09-25

Publications (1)

Publication Number Publication Date
WO2012037749A1 true WO2012037749A1 (en) 2012-03-29

Family

ID=45873399

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079103 WO2012037749A1 (en) 2010-09-25 2010-11-25 Encoding method for low density parity check code and apparatus thereof

Country Status (2)

Country Link
CN (1) CN102412842B (en)
WO (1) WO2012037749A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018201912A1 (en) * 2017-05-05 2018-11-08 电信科学技术研究院有限公司 Method and device for selecting base graph for low-density parity-check code
WO2019001263A1 (en) * 2017-06-26 2019-01-03 中兴通讯股份有限公司 Design method and apparatus for quasi-cyclic low-density parity-check
CN109150194A (en) * 2017-06-27 2019-01-04 华为技术有限公司 The method, apparatus and communication equipment of information processing
CN109150197A (en) * 2017-06-27 2019-01-04 华为技术有限公司 The method, apparatus and communication equipment of information processing
TWI688233B (en) * 2017-05-05 2020-03-11 大陸商電信科學技術研究院有限公司 Method and device for selecting basic diagram of low-density co-located code
US11996863B2 (en) 2017-06-15 2024-05-28 Huawei Technologies Co., Ltd. Method and apparatus for low density parity check channel coding in wireless communication system

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202057B (en) * 2014-02-12 2019-08-16 中兴通讯股份有限公司 Information processing method and device
CN105429645B (en) * 2014-09-17 2019-03-08 上海数字电视国家工程研究中心有限公司 For the check matrix, LDPC code word and coding method of low code rate LDPC code
CN105811996B (en) 2014-12-30 2019-12-06 华为技术有限公司 data processing method and system based on quasi-cyclic LDPC
CN106160937B (en) 2015-04-15 2019-01-04 中兴通讯股份有限公司 A kind of method and device for realizing code block segmentation
CN106685586B (en) * 2015-11-11 2020-02-14 华为技术有限公司 Method and apparatus for generating low density parity check code for transmission in a channel
WO2017193558A1 (en) 2016-05-13 2017-11-16 中兴通讯股份有限公司 Data processing method and device for structured ldpc code
WO2017193614A1 (en) * 2016-05-13 2017-11-16 中兴通讯股份有限公司 Encoding method and device and decoding method and device for structured ldpc
CN116827357A (en) * 2016-05-13 2023-09-29 中兴通讯股份有限公司 Method and device for encoding and decoding structured low-density parity check code LDPC
CN107370489B (en) 2016-05-13 2020-07-28 中兴通讯股份有限公司 Data processing method and device for structured L DPC code
CN107566081B (en) * 2016-06-30 2020-04-03 华为技术有限公司 RM sequence generation and application method and device
CN107888198B (en) 2016-09-30 2023-05-26 中兴通讯股份有限公司 Quasi-cyclic LDPC (low density parity check) coding and decoding method and device and LDPC coder and decoder
CN108134648B (en) * 2016-12-01 2020-12-22 华为技术有限公司 Broadcast channel sending method, receiving method and equipment
CN108234064B (en) * 2016-12-09 2022-05-03 中兴通讯股份有限公司 Quasi-cyclic LDPC code data processing device and method
CN108270448B (en) * 2017-01-04 2022-11-15 中兴通讯股份有限公司 Quasi-cyclic low-density parity check coding method and device
WO2018126914A1 (en) * 2017-01-09 2018-07-12 中兴通讯股份有限公司 Method and device for coding of quasi-cyclic low-density parity-check code, and storage medium
CN108400838B (en) 2017-02-06 2021-05-18 华为技术有限公司 Data processing method and device
CN108429602B (en) * 2017-02-15 2022-01-28 中兴通讯股份有限公司 Data processing method and device and transmitting terminal
RU2733826C1 (en) * 2017-03-03 2020-10-07 Хуавей Текнолоджиз Ко., Лтд. High-speed long ldpc codes
WO2018171043A1 (en) * 2017-03-24 2018-09-27 中兴通讯股份有限公司 Processing method and device for quasi-cyclic low density parity check coding
CN108631925B (en) * 2017-03-24 2022-05-03 中兴通讯股份有限公司 Quasi-cyclic low-density parity check coding processing method and device
CN108809487B (en) 2017-05-04 2022-07-22 华为技术有限公司 Data transmission method, base station and terminal equipment
WO2019029690A1 (en) * 2017-08-11 2019-02-14 华为技术有限公司 Communication method and device
CN109391367B (en) 2017-08-11 2022-12-30 华为技术有限公司 Communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032083A (en) * 2004-08-12 2007-09-05 摩托罗拉公司 Method and apparatus for encoding and decoding data
CN101217337A (en) * 2007-01-01 2008-07-09 中兴通讯股份有限公司 A low density parity code encoding device and method supporting incremental redundancy hybrid automatic repeat
US20090259915A1 (en) * 2004-10-12 2009-10-15 Michael Livshitz Structured low-density parity-check (ldpc) code
CN101567697A (en) * 2009-05-25 2009-10-28 普天信息技术研究院有限公司 Coder and method for coding rate-compatible low-density parity-check codes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7149953B2 (en) * 2004-02-03 2006-12-12 Broadcom Corporation Efficient LDPC code decoding with new minus operator in a finite precision radix system
CN100502245C (en) * 2005-10-21 2009-06-17 中兴通讯股份有限公司 A coding device and method for low density parity check code of supporting any code rate/code length
CN101325474B (en) * 2007-06-12 2012-05-09 中兴通讯股份有限公司 Method for encoding channel of mixed automatic request retransmission and modulation mapping of LDPC code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032083A (en) * 2004-08-12 2007-09-05 摩托罗拉公司 Method and apparatus for encoding and decoding data
US20090259915A1 (en) * 2004-10-12 2009-10-15 Michael Livshitz Structured low-density parity-check (ldpc) code
CN101217337A (en) * 2007-01-01 2008-07-09 中兴通讯股份有限公司 A low density parity code encoding device and method supporting incremental redundancy hybrid automatic repeat
CN101567697A (en) * 2009-05-25 2009-10-28 普天信息技术研究院有限公司 Coder and method for coding rate-compatible low-density parity-check codes

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018201912A1 (en) * 2017-05-05 2018-11-08 电信科学技术研究院有限公司 Method and device for selecting base graph for low-density parity-check code
TWI688233B (en) * 2017-05-05 2020-03-11 大陸商電信科學技術研究院有限公司 Method and device for selecting basic diagram of low-density co-located code
US11190211B2 (en) 2017-05-05 2021-11-30 Datang Mobile Communications Equipment Co., Ltd. Method and device of selecting base graph of low-density parity-check code
US11996863B2 (en) 2017-06-15 2024-05-28 Huawei Technologies Co., Ltd. Method and apparatus for low density parity check channel coding in wireless communication system
WO2019001263A1 (en) * 2017-06-26 2019-01-03 中兴通讯股份有限公司 Design method and apparatus for quasi-cyclic low-density parity-check
RU2743857C1 (en) * 2017-06-26 2021-03-01 ЗедТиИ КОРПОРЕЙШН Method and equipment for designing for quasicyclic rare parity control
US11159178B2 (en) 2017-06-26 2021-10-26 Zte Corporation Method and apparatus for quasi-cyclic low-density parity-check
US11626888B2 (en) 2017-06-26 2023-04-11 Zte Corporation Method and apparatus for quasi-cyclic low-density parity-check
CN109150194A (en) * 2017-06-27 2019-01-04 华为技术有限公司 The method, apparatus and communication equipment of information processing
CN109150197A (en) * 2017-06-27 2019-01-04 华为技术有限公司 The method, apparatus and communication equipment of information processing
CN109150194B (en) * 2017-06-27 2022-01-14 华为技术有限公司 Information processing method and device and communication equipment
CN109150197B (en) * 2017-06-27 2024-05-14 华为技术有限公司 Information processing method, device and communication equipment

Also Published As

Publication number Publication date
CN102412842A (en) 2012-04-11
CN102412842B (en) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2012037749A1 (en) Encoding method for low density parity check code and apparatus thereof
JP7372369B2 (en) Structural LDPC encoding, decoding method and device
JP7152394B2 (en) Method and Apparatus for Encoding and Decoding LDPC Codes
JP5551209B2 (en) LDPC encoding and decoding of variable size packets
KR100739510B1 (en) Apparatus and method for coding/decoding semi-systematic block low density parity check code
WO2015123979A1 (en) Encoding method, decoding method, encoding device and decoding device for structured ldpc
JP4563476B2 (en) Encoder, decoder and encoding method
WO2015135298A1 (en) Method, device, and computer storage medium supporting low bit rate encoding
WO2006047919A1 (en) The basic matrix, coder/encoder and generation method of the low density parity check codes
WO2014127140A1 (en) Design for lifted ldpc codes having high parallelism, low error floor, and simple encoding principle
KR20110124659A (en) Apparatus and method for layered decoding in communication system using low-density parity-check codes
CN108023673B (en) Construction and coding method of multi-code-rate multi-code-length LDPC code
WO2013026291A1 (en) Encoding method and encoder for block interleaved quasi-cyclic expanding parallel coding of ldpc code
JP6568281B2 (en) Transmitting apparatus and transmitting method
CN112583419B (en) Decoding method and device
WO2018084732A1 (en) Ldpc codes for incremental redundancy harq (ir-harq) schemes
WO2018126914A1 (en) Method and device for coding of quasi-cyclic low-density parity-check code, and storage medium
Wang et al. Design of efficiently encodable nonbinary LDPC codes for adaptive coded modulation
Tang et al. Bitplane coding for correlations exploitation in wireless sensor networks
Lin et al. A Novel Coding Scheme for Encoding and Iterative Soft-Decision Decoding of Binary BCH Codes of Prime Lengths
Xiongxin et al. HIGH EFFICIENCY ARCHITECTURE FOR DVB-S2 BASED LDPC DECODER

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10857462

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10857462

Country of ref document: EP

Kind code of ref document: A1