(19)
(11)EP 3 576 303 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
04.12.2019 Bulletin 2019/49

(21)Application number: 18763543.8

(22)Date of filing:  01.03.2018
(51)International Patent Classification (IPC): 
H03M 13/11(2006.01)
(86)International application number:
PCT/CN2018/077786
(87)International publication number:
WO 2018/161847 (13.09.2018 Gazette  2018/37)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 09.03.2017 CN 201710140122

(71)Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • MA, Liang
    Shenzhen Guangdong 518129 (CN)
  • LIU, Xiaojian
    Shenzhen Guangdong 518129 (CN)
  • ZHENG, Chen
    Shenzhen Guangdong 518129 (CN)
  • WEI, Yuejun
    Shenzhen Guangdong 518129 (CN)
  • ZENG, Xin
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Gill Jennings & Every LLP 
The Broadgate Tower 20 Primrose Street
London EC2A 2ES
London EC2A 2ES (GB)

  


(54)DATA PROCESSING METHOD, DATA PROCESSING APPARATUS AND COMMUNICATION DEVICE


(57) This application provides a data processing method, a data processing apparatus, and a communications device. The data processing method includes: coding a first bit sequence, to obtain a second bit sequence, where the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit; and storing the second bit sequence in a circular buffer. According to the data processing method, the data processing apparatus, and the communications device in this application, coding requirements of information bit sequences of various lengths can be supported.




Description


[0001] This application claims priority to Chinese Patent Application No. 201710140122.4, filed with the Chinese Patent Office on March 9, 2017 and entitled "DATA PROCESSING METHOD, DATA PROCESSING APPARATUS, AND COMMUNICATIONS DEVICE", which is incorporated herein by reference in its entirety.

TECHNICAL FIELD



[0002] This application relates to the communications field, and more specifically, to a data processing method, a data processing apparatus, and a communications device.

BACKGROUND



[0003] Gallager first proposed a linear block code referred to as a low-density parity-check (low density parity check, LDPC) code in 1962. A check matrix of the LDPC code is a sparse matrix. An LDPC code whose code length is n and whose information sequence length is k may be uniquely determined by an LDPC check matrix H.

[0004] During actual use, an LDPC check matrix having a special structured feature may be used. The check matrix H that is of an LDPC code and that has the special structured feature may be obtained by extending an LDPC base matrix having a quasi-cyclic (quasi cycle, QC) structure.

[0005] When the LDPC base matrix having the QC structure is extended to obtain a corresponding check matrix, an all-zero matrix with a z × z size can be obtained after all elements whose values are -1 in the LDPC base matrix are extended, and a permutation matrix with a z × z size can be obtained after other elements are extended. The permutation matrix may be obtained after a corresponding quantity of cyclic shifts of an identity matrix I, and the quantity of shifts is equal to a value of a corresponding matrix element.

[0006] When the LDPC base matrix is used for coding, an information bit sequence length natively supported by the LDPC base matrix is determined by an extension factor z and a quantity of columns of information bits. If a size of the LDPC base matrix is m × n, where m represents a quantity of rows in the matrix, n represents a quantity of columns in the matrix, and the quantity k of the columns of the information bits is equal to n - m, the information bit sequence length ki supported by the base matrix is equal to k × z, and correspondingly, a length n1 of a coded bit sequence obtained after coding is equal to n × z.

[0007] Generally, a length of a to-be-coded information bit sequence ranges from dozens of bits to hundreds of bits. A problem that needs to be resolved is how to support coding requirements of information bit sequences of various lengths, so as to better improve system coding and decoding performance.

SUMMARY



[0008] This application provides a data processing method, a data processing apparatus, and a communications device, to support coding requirements of information bit sequences of various lengths.

[0009] According to an aspect, a data processing method is provided. The data processing method includes: coding a first bit sequence, to obtain a second bit sequence, where the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit; and storing a part or all of the second bit sequence in a circular buffer.

[0010] In the data processing method, an information bit obtained after a padding bit is added can be coded, and therefore information bits of more lengths can be coded.

[0011] In addition, in the data processing method, a bit sequence stored in the circular buffer includes no padding bits, so that the circular buffer, especially a limited circular buffer, can store more information bits. Therefore, a bit sequence obtained or sent by a transmit end from the circular buffer can include a larger information amount, so as to improve decoding performance of a receive end. Finally, communication performance can be improved.

[0012] In addition, in the data processing method, the circular buffer includes no bit used for padding in a coding process, so that a time of performing rate matching to select a to-be-sent information bit can be reduced, thereby improving communication efficiency.

[0013] With reference to the first aspect, in a first possible implementation, the coding a first bit sequence includes: coding the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix, where the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.

[0014] In this implementation, during coding, because the column in information bit columns that corresponds to the first information bit and the redundant bit column that are in the first LDPC base matrix are used, and a column that does not correspond to the first information bit in the information bit columns in the first LDPC base matrix is not used, in other words, not all the information bit columns in the first LDPC base matrix may be used, coding efficiency can be improved, and therefore communication efficiency is improved.

[0015] With reference to the first possible implementation, in a second possible implementation, the data processing method further includes: determining a length F of the first padding bit based on a length K of the first information bit and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, where Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and padding the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.

[0016] With reference to the second possible implementation, in a third possible implementation, the coding the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix includes: deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the first padding bit and a first extension factor, to obtain a second LDPC base matrix, where the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···}; and coding, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.

[0017] With reference to the first possible implementation, in a fourth possible implementation, the data processing method further includes: determining a first extension factor and a length F of the first padding bit based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first information bit; and padding the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.

[0018] With reference to the fourth possible implementation, in a fifth possible implementation, the coding the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix includes: deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first information bit, and the first extension factor, to obtain a second LDPC base matrix; and coding, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.

[0019] With reference to the first aspect, in a sixth possible implementation, the coding a first bit sequence includes: coding the first bit sequence based on a first LDPC base matrix.

[0020] According to a second aspect, a data processing method is provided. The data processing method includes: obtaining soft information of a third bit sequence, where the third bit sequence is selected by a transmit end from a circular buffer of the transmit end, bits stored in the circular buffer include a part or all of a second bit sequence, the second bit sequence is obtained by the transmit end by coding a first bit sequence, the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit; storing the soft information in a soft information buffer; adding padding information to first soft information, to obtain second soft information, where the first soft information is the soft information in the soft information buffer; and decoding the second soft information.

[0021] In the data processing method, because the third bit sequence is obtained and sent by the transmit end from the second bit sequence including no padding bits, the third bit sequence can include a larger information amount, so that decoding performance can be improved, and finally, communication performance can be improved.

[0022] With reference to the second aspect, in a first possible implementation, the decoding the second soft information includes: decoding the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix, where the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.

[0023] In this implementation, during decoding, because the column in information bit columns that corresponds to the first information bit and the redundant bit column that are in the first LDPC base matrix are used, and a column that does not correspond to the first information bit in the information bit columns in the first LDPC base matrix is not used, in other words, not all the information bit columns in the first LDPC base matrix may be used, decoding efficiency can be improved, and therefore communication efficiency is improved.

[0024] With reference to the first possible implementation, in a second possible implementation, the adding padding information to first soft information, to obtain second soft information includes: determining a length F of the padding information based on a length K of the first soft information and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, where Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi···} supported by the first LDPC base matrix; and padding the first soft information with the padding information whose length is F, to obtain the second soft information.

[0025] With reference to the second possible implementation, in a third possible implementation, the decoding the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix includes: deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the padding information and a first extension factor, to obtain a second LDPC base matrix, where the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···}; and decoding, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.

[0026] With reference to the first possible implementation, in a fourth possible implementation, the adding padding information to first soft information, to obtain second soft information includes: determining a first extension factor and a length F of the padding information based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first soft information; and padding the first soft information with the padding information whose length is F, to obtain the second soft information.

[0027] With reference to the fourth possible implementation, in a fifth possible implementation, the decoding the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix includes: deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first soft information, and the first extension factor, to obtain a second LDPC base matrix; and decoding, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.

[0028] With reference to the second aspect, in a sixth possible implementation, the decoding the second soft information includes: decoding the second soft information based on a first LDPC base matrix.

[0029] According to a third aspect, a data processing apparatus is provided, and the data processing apparatus includes modules configured to perform the data processing method in the first aspect or any possible implementation of the first aspect.

[0030] According to a fourth aspect, a data processing apparatus is provided, and the data processing apparatus includes modules configured to perform the data processing method in the second aspect or any possible implementation of the second aspect.

[0031] According to a fifth aspect, a data processing apparatus is provided, including a processor. Optionally, the data processing apparatus may further include a receiver and a transmitter. The processor is configured to execute code. When the code is executed, the processor implements the data processing method in the first aspect or any possible implementation of the first aspect.

[0032] According to a sixth aspect, a data processing apparatus is provided, including a processor. Optionally, the data processing apparatus may further include a receiver and a transmitter. The processor is configured to execute code. When the code is executed, the processor implements the data processing method in the second aspect or any possible implementation of the second aspect.

[0033] According to a seventh aspect, a computer readable medium is provided, where the computer readable medium stores program code executed by a data processing apparatus, and the program code includes an instruction used to perform the data processing method in the first aspect or any possible implementation of the first aspect.

[0034] According to an eighth aspect, a computer readable medium is provided, where the computer readable medium stores program code executed by a data processing apparatus, and the program code includes an instruction used to perform the data processing method in the second aspect or any possible implementation of the second aspect.

[0035] According to a ninth aspect, a computer program product including an instruction is provided. When the computer program product runs on a data processing apparatus, the data processing apparatus is enabled to perform the data processing method in the first aspect or any possible implementation of the first aspect.

[0036] According to a tenth aspect, a computer program product including an instruction is provided. When the computer program product runs on a data processing apparatus, the data processing apparatus is enabled to perform the data processing method in the second aspect or any possible implementation of the second aspect.

[0037] According to an eleventh aspect, a communications device is provided, and the communications device includes the data processing apparatus according to the third aspect or the fifth aspect.

[0038] According to a twelfth aspect, a communications device is provided, and the communications device includes the data processing apparatus according to the fourth aspect or the sixth aspect.

BRIEF DESCRIPTION OF DRAWINGS



[0039] 

FIG. 1 is a schematic architectural diagram of a communications system to which a data processing method and a communications system in embodiments of this application are applicable;

FIG. 2 is a schematic flowchart of a data processing method according to an embodiment of this application;

FIG. 3 is a schematic diagram of a full circular buffer according to an embodiment of this application;

FIG. 4 is a schematic diagram of a limited circular buffer according to an embodiment of this application;

FIG. 5 is a schematic flowchart of a data processing method according to another embodiment of this application;

FIG. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of this application;

FIG. 7 is a schematic structural diagram of a data processing apparatus according to another embodiment of this application;

FIG. 8 is a schematic structural diagram of a data processing apparatus according to another embodiment of this application;

FIG. 9 is a schematic structural diagram of a data processing apparatus according to another embodiment of this application;

FIG. 10 is a schematic structural diagram of a communications device according to an embodiment of this application; and

FIG. 11 is a schematic structural diagram of a communications device according to another embodiment of this application.


DESCRIPTION OF EMBODIMENTS



[0040] The following describes technical solutions in this application with reference to accompanying drawings.

[0041] FIG. 1 is a schematic architectural diagram of a communications system to which the technical solutions in this application are applicable. The communications system 100 shown in FIG. 1 includes a communications device 110 and a communications device 120.

[0042] It should be understood that embodiments of this application are not limited to the system architecture shown in FIG. 1. In addition, an apparatus in FIG. 1 may be hardware, functionally divided software, or a combination thereof.

[0043] When sending information data, the communications device 110 may divide the information data into a plurality of transport blocks (transmission block, TB) based on a supported transport block size, and add CRC check to each transport block. If a size of the transport block after the check is added exceeds a maximum code block length, the transport block needs to be divided into several code blocks (code block, CB). Code block-CRC check may be added to each code block, or a padding bit may be added.

[0044] The communications device 110 performs channel coding such as LDPC coding on each code block, to obtain a corresponding coded code block. Each coded code block includes a plurality of information bits existing before the coding and check bits generated through coding, which are collectively referred to as coded bits.

[0045] The coded bits are stored (may be directly stored, or may be stored after interleaving) in a circular buffer of the communications device 110. The communications device 110 selects a segment of coded bits from the circular buffer, maps the coded bits to a modulation symbol, and sends the modulation symbol.

[0046] When retransmission occurs, the communications device 110 selects another coded bit segment from the circular buffer for sending. If all data in the circular buffer has been transmitted once, a coded bit is selected again from a front end of the circular buffer.

[0047] After demodulating a received modulation symbol, the communications device 120 stores a soft value of a received coded bit at a corresponding location in a soft information buffer. If retransmission occurs, the communications device 120 merges and stores soft values of coded bits in all retransmissions in the soft information buffer. The merging herein means that if locations of coded bits received in two transmissions are the same, soft values of the coded bits received in the two transmissions are merged. The communications device 120 decodes all soft values in the soft information buffer to obtain information bit data.

[0048] In the embodiments of this application, the communications device 110 may be a network device such as a base station in the communications system, and correspondingly, the communications device 120 may be a terminal. To facilitate understanding, the following describes some nouns related to this application.

[0049] In this application, nouns "network" and "system" are usually interchangeably used, but meanings of the nouns may be understood by a person skilled in the art.

[0050] The terminal is a device having a communication function, and may include a handheld device, an in-vehicle device, a wearable device, a computing device, another processing device connected to a wireless modem, or the like that has a wireless communication function. The terminal may have different names in different networks, for example, user equipment, a mobile station, a subscriber unit, a station, a cellular phone, a personal digital assistant, a wireless modem, a wireless communications device, a handheld device, a laptop computer, a cordless phone, and a wireless local loop station. For ease of description, these devices are simply referred to as the terminal in this application.

[0051] The base station (base station, BS), which may be referred to as a base station device, is a device that connects a terminal to a wireless network, and includes but is not limited to a transmission reception point (transmission reception point, TRP), an evolved NodeB (evolved Node B, eNB), a radio network controller (radio network controller, RNC), a NodeB (node B, NB), a base station controller (base Station controller, BSC), a base transceiver station (base transceiver station, BTS), a home eNodeB (for example, a home evolved NodeB or a home node B, HNB), a baseband unit (base band unit, BBU), or a Wi-Fi access point (access point, AP).

[0052] FIG. 2 is a schematic flowchart of a data processing method according to an embodiment of this application. It should be understood that FIG. 2 shows steps or operations of the data processing method, but these steps or operations are merely examples. Another operation or variation of each operation in FIG. 2 may be further performed in this embodiment of this application.

[0053] The data processing method shown in FIG. 2 may be performed by a channel coding module in the communications device 110 shown in FIG. 1, or in other words, may be performed by the communications device 110. The channel coding module may be also referred to as a coder or a data processing module. The following describes the data processing method in this embodiment of this application by using an example in which the communications device is an execution body.

[0054] S210. The communications device codes a first bit sequence, to obtain a second bit sequence, where the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit.

[0055] The first information bit is a bit in a to-be-coded information sequence, for example, a bit in an information sequence obtained by performing code block segmentation. The first padding bit is a bit used as a known bit (for example, 0) for coding in a coding process. The second information bit may be the first information bit. In other words, an information bit in the second bit sequence that is obtained through coding may be the same as an information bit in the first bit sequence existing before the coding. The redundant bit is a bit other than the information bit in the second bit sequence obtained through coding.

[0056] It should be noted that the second bit sequence includes no padding bits.

[0057] In the data processing method, an information bit obtained after a padding bit is added can be coded, and therefore information bits of more lengths can be coded.

[0058] That the first bit sequence includes the first information bit and the first padding bit may be understood as follows: The first padding bit is added to the first information bit, to obtain the first bit sequence. Specifically, a length F of the first padding bit may be determined based on a length K of the first information bit, and then the first padding bit whose length is F is added to the first information bit, so that the first bit sequence can be obtained.

[0059] In S210, optionally, that the communications device codes the first bit sequence, to obtain the second bit sequence may include: performing, by the communications device, LDPC coding on the first bit sequence based on a first LDPC base matrix, to obtain the second bit sequence.

[0060] Before a possible implementation in which the communications device performs LDPC coding on the first bit sequence based on the first LDPC base matrix to obtain the second bit sequence is described, the following first describes a possible implementation in which the first padding bit is added to the first information bit.

[0061] The communications device determines an input sequence length set {K0,K1,···,Ki,···}natively supported by the first LDPC base matrix, where i is a positive integer.

[0062] The communications device may calculate the input sequence length set {K0,K1,···,Ki,···} based on an extension factor set {z0,z1,···,zimax} and according to Ki = zi·k, where k is a quantity of information bit (or referred to as a system bit) columns in the first LDPC base matrix, and the extension factor set {z0,z1,···,zimax} may be prestored in the communications device.

[0063] Alternatively, the communications device may prestore the input sequence length set {K0,K1,···,Ki,···} natively supported by the first LDPC base matrix. For example, the communications device may prestore a correspondence between each extension factor in the extension factor set and an input sequence length in the input sequence length set supported by the first LDPC base matrix.

[0064] The communications device finds a shortest input sequence length K' that is in the input sequence length set {K0,K1,···,Ki,···} and that is greater than K, and may obtain F according to F = K' - K.

[0065] The communications device pads the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.

[0066] When the communications device adds the first padding bit to the first information bit, a padding manner is: padding a tail of the first information bit with the first padding bit. Certainly, another location of the first information bit may be padded with the first padding bit. This is not limited in this embodiment of this application.

[0067] In addition, the communications device determines an extension factor corresponding to K' in the extension factor set {z0,z1,···,zimax} as a first extension factor. In this way, the communications device may code the first bit sequence based on the first extension factor and the first LDPC base matrix.

[0068] The following uses an example in which the first LDPC base matrix is a matrix with a bidiagonal structure or a lower triangular structure to describe a specific implementation in which the communications device performs LDPC coding on the first bit sequence based on the first LDPC base matrix, to obtain the second bit sequence.

[0069] In the following specific implementation, the first bit sequence is s, the first LDPC base matrix is Hb, and the first extension factor is z.

[0070] The LDPC base matrix Hb with the bidiagonal structure may be divided into two parts, in other words, (Hb)mb×nb = [(Hs)mb×kb |(He)mb×mb], where Hs corresponds to an information bit (or referred to as a system bit), He corresponds to a check bit (or referred to as a redundant bit), and kb = (nb - mb).

[0071] He may be divided into two parts: He = [He1 He2], where a size of He1 is mb × 1, values of three elements are not equal to -1, and the three elements are respectively located in a zeroth row, an (mb -1)th row, and an x(1 ≤ xmb - 2)th row Values of elements in the zeroth row and the (mb - 1)th row are all equal to a(1 ≤ az - 1), and a value of an element in the xth row is 0. He2 has a bidiagonal structure. When i = j and i = j + 1, a value of an element in an ith row and a jth column is 0, and values of elements at all remaining locations are -1. He may be specifically represented as follows:



[0072] s is divided into kb groups based on an extension factor z of a check matrix, each group has z bits, and a vector obtained after grouping is as follows: s = [s(0),s(1),...,s(kb - 1)], where each subvector s(i) = [siz,siz+1,siz+z-1], 0 ≤ ikb - 1.

[0073] Likewise, a check vector e is divided into mb groups, each group has z bits, and a vector that can be obtained is as follows: e = [e(0),e(1),...,e(mb - 1)], where each subvector e(i) = [eiz,eiz+1,...,eiz+z-1], 0 ≤ imb - 1.

[0074] According to the foregoing grouping, a coding process may be divided into the following two steps.

[0075] In a first step, initialization is performed, all rows in H·[s e]T = 0 are added, and a duplicate item is removed, to obtain e(0), in other words,

where Pi,j represents a cyclic shift matrix corresponding to a cyclic shift coefficient Pi,j in an ith row and a jth column in the base matrix Hb.

[0076] In a second step, values from e(1) to e(mb - 1) are calculated through recursion based on the bidiagonal structure of He2, where



[0077] According to the foregoing two steps, e(1) to e(mb - 1) can be calculated, all check bits are obtained, and a code word x = [s e] existing after coding is obtained by combining the check bits with s, so that the coding process is completed. e is a redundant bit.

[0078] If the LDPC base matrix is a matrix Hb with the lower triangular structure, Hb may be also divided into two parts, in other words, Hb = [(Hs)mb×kb |(He)mb×mb], where Hs corresponds to a system bit (or referred to as an information bit), He corresponds to a lower triangular matrix check bit (or referred to as a redundant bit), and kb = (nb - mb).

[0079] The base matrix Hb in which He is an mb × mb lower triangular matrix is as follows:



[0080] s is divided into kb groups based on an extension factor z of a check matrix, each group has z bits, and a vector obtained after grouping is as follows: s=[s(0),s(1),...,s(kb - 1)], where each subvector s(i)=[siz,siz+1,...,siz+z-1], 0 ≤ ikb - 1.

[0081] Likewise, a check vector e is divided into mb groups, each group has z bits, and a vector that can be obtained is as follows: e = [e(0),e(1),...,e(mb - 1)], where each subvector e(i) = [eiz,eiz+1,...,eiz+z-1], 0≤imb-1.

[0082] According to the foregoing grouping, the following recursive manner is used in a coding process of an LDPC code with a lower triangular structure.

[0083] In a first step, e(0) is initialized, and a check equation corresponding to a first row in the base matrix meets: [P0,0,P0,1,..., P0,kb-1 | P0,kb]·[s | e(0)]T= 0, where Pi,jrepresents a cyclic shift matrix corresponding to a cyclic shift coefficient Pi,j in an ith row and a jth column in the base matrix Hb.

may be obtained by transforming the foregoing equation.

[0084] In a second step, values from e(1) to e(mb-1) are calculated through recursion based on the lower triangular structure of He, where

and 0≤ ikb -2

[0085] According to the foregoing two steps, e(0) to e(mb-1) can be calculated, all check bits are obtained, and a code word x = [s e] existing after coding is obtained by combining the check bits with the information sequence s, so that the coding process is completed. e is a redundant bit.

[0086] If the first LDPC base matrix includes a bidiagonal matrix and a lower triangular matrix, or includes a lower triangular matrix, when coding is performed based on the first LDPC base matrix, coding may be separately performed according to coding methods in a matrix with a bidiagonal structure and a matrix with a lower triangular structure, and finally, coded bits obtained after the coding are combined, so that a final coding result can be obtained.

[0087] After coding the first bit sequence based on the first LDPC base matrix, and obtaining a coded bit sequence d0,d1,···,dN-1 whose length is N, the communications device may delete the first padding bit in the coded bit sequence, for example, delete a bit marked as <NULL>, to obtain the second bit sequence.

[0088] For example, when the first padding bit included in the first bit sequence is located at the tail of the first information bit, di, Ki < K + F in the coded bit sequence d0,d1,...,dN-1 obtained by coding the first bit sequence may be deleted, to obtain the second bit sequence di,0≤ i < K,K + Fi < N. It should be noted that if the first padding bit is inserted into the another location of the first information bit, this step needs to be accordingly modified.

[0089] In S210, optionally, that the communications device codes the first bit sequence, to obtain the second bit sequence may specifically include: coding, by the communications device, the first bit sequence based on a redundant bit column and a first information bit column that are in a first LDPC base matrix, to obtain the second bit sequence, where the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.

[0090] The redundant bit column is a column to which a redundant bit or a check bit belongs in the first LDPC base matrix, and the information bit column is a column to which a system bit or an information bit belongs in the first LDPC base matrix.

[0091] The first information bit column may mean that the first bit sequence is divided into kb groups, each group has z bits, vectors s=[s(0),s(1),...,s(kb-1)] obtained after grouping are in a one-to-one correspondence with kb information bit columns in the first LDPC base matrix, and a column that is in the kb information bit columns in the first LDPC base matrix and that corresponds to a vector including an information bit (in other words, including not only a padding bit) in s=[s(0),s(1),...,s(kb-1)] is the first information bit column. z is an extension factor used when coding is performed based on the first LDPC base matrix.

[0092] If each vector in s=[s(0),s(1),...,s(kb-1)] includes an information bit, in other words, there is no vector including only a padding bit, the first information bit column includes all information bit columns in the first LDPC base matrix.

[0093] If there is a vector including only a padding bit in s=[s(0),s(1),...,s(kb-1)], in other words, there is a vector including no information bit, the first information bit column includes only some vectors in the first LDPC base matrix. In this case, the "coding, by the communications device, the first bit sequence based on a redundant bit column and a first information bit column that are in a first LDPC base matrix" may be that only the redundant bit column and some information bit columns in the first LDPC base matrix are actually used to code the first bit sequence, so that coding efficiency can be improved.

[0094] In other words, in this implementation, the communications device codes the first bit sequence based on the redundant bit column and the first information bit column that are in the first LDPC base matrix, rather than based on all information bit columns and the redundant bit column that are in the first LDPC base matrix in all cases. Actually, based on a quantity of first information bits in the first bit sequence, the information bit columns in the first LDPC base matrix are flexibly used for coding, so that coding efficiency can be improved.

[0095] When the communications device codes the first bit sequence based on the redundant bit column and the first information bit column that are in the first LDPC base matrix, a possible implementation is as follows:

[0096] The communications device finds a shortest input sequence length K' that is in an input sequence length set {K0,K1,···,Ki,···} natively supported by the first LDPC base matrix and that is greater than K, and after obtaining F according to F = K' - K, may further obtain F' according to F' = F mod z, where "mod" represents a modulo operation. Then, only the first padding bit whose length is F' may be added to the first information bit, to obtain the first bit sequence. An implementation in which the communications device determines the input sequence length set {K0,K1,···,Ki,···} is described above, and details are not described herein again.

[0097] When the communications device adds the first padding bit to the first information bit, a padding manner is: padding a tail of the first information bit with the first padding bit. Certainly, another location of the first information bit may be padded with the first padding bit. This is not limited in this embodiment of this application.

[0098] In this case, the communications device may code the first bit sequence based on only the redundant bit column and the some information bit columns (namely, the first information bit column) in the first LDPC base matrix.

[0099] Specifically, the communications device may obtain k1 according to

then delete k1 first information bit columns in the first LDPC base matrix to obtain a second LDPC base matrix, and perform LDPC coding on the first bit sequence based on the first extension factor and the second LDPC base matrix. "└ ┘" represents rounding down.

[0100] For example, when the tail of the first information bit whose length is K is padded with the first padding bit whose length is F, k1 columns starting from a (k-1)th column in the first LDPC base matrix may be deleted forward (namely, in a direction from right to left in the matrix) to obtain the second LDPC base matrix, and then LDPC coding is performed on the first bit sequence based on the first extension factor and the second LDPC base matrix, where k is a quantity of information bit columns in the first LDPC base matrix.

[0101] When the communications device performs LDPC coding on the first bit sequence based on the first extension factor and the second LDPC base matrix, for a specific implementation, refer to the foregoing process in which the communications device codes the first bit sequence based on the first extension factor and the first LDPC base matrix. For brevity, details are not described herein.

[0102] If the another location of the first information bit is padded with the first padding bit, locations of the k1 information columns to be deleted from the first LDCP base matrix need to be accordingly modified.

[0103] After coding the first bit sequence, and obtaining a coded bit sequence d0,d1,···,dN-1 whose length is N, the communications device may delete the first padding bit in the coded bit sequence, for example, delete a bit marked as <NULL>, to obtain the second bit sequence.

[0104] For example, when the first padding bit included in the first bit sequence is located at the tail of the first information bit, di, Ki < K + F' in the coded bit sequence d0,d1,···,dN-1 obtained by coding the first bit sequence may be deleted, to obtain the second bit sequence di, 0 ≤ i < K, K + F' ≤ i < N. It should be noted that if the first padding bit is inserted into the another location of the first information bit, this step needs to be accordingly modified.

[0105] When the communications device codes the first bit sequence based on the redundant bit column and the first information bit column that are in the first LDPC base matrix, another possible implementation is as follows:

[0106] The communications device may preset a maximum column-deleting quantity Δk supported by the first LDPC base matrix. Then, the communications device may find an extension factor z (which may be referred to as a first extension factor) meeting

from an extension factor set {z0,z1,···,zi,···}. k is a quantity of information bit columns in the first LDPC base matrix.

[0107] The first extension factor may be a largest extension factor meeting

in {z0,z1,···,zi,···}, or may be a smallest extension factor meeting

in {z0,z1,···,zi,···}, or certainly may be another extension factor meeting

in {z0,z1,···,zi,···}.

[0108] After determining the first extension factor, the communications device may determine a quantity F of first padding bits based on the first extension factor and the length of the first information bit. Specifically, the communications device may obtain F according to

where "┌ ┐" represents rounding up.

[0109] After determining F, the communications device may add F padding bits to the first information bit, to obtain the first bit sequence.

[0110] When the communications device adds the padding bit to the first information bit, a padding manner is: padding a tail of the first information bit with the first padding bit. Certainly, another location of the first information bit may be padded with the first padding bit. This is not limited in this embodiment of this application.

[0111] In this case, the communications device may code the first bit sequence based on only the redundant bit column and the some information bit columns (namely, the first information bit column) in the first LDPC base matrix.

[0112] Specifically, the communications device may obtain k1 according to

where k is a quantity of information bit columns in the first LDPC base matrix. Then, the communications device deletes k1 first information bit columns in the first LDPC base matrix to obtain a second LDPC base matrix, and performs LDPC coding on the first bit sequence based on the first extension factor and the second LDPC base matrix.

[0113] For example, when the tail of the first information bit is padded with the first padding bit,

columns starting from a (k-1)th column in the first LDPC base matrix may be deleted forward (namely, in a direction from right to left in the matrix) to obtain the second LDPC base matrix, and then LDPC coding is performed on the first bit sequence based on the first extension factor and the second LDPC base matrix.

[0114] If the another location of the first information bit is padded with the first padding bit, locations of the k1 information bit columns to be deleted from the first LDCP base matrix need to be accordingly modified.

[0115] When the communications device performs LDPC coding on the first bit sequence based on the first extension factor and the second LDPC base matrix, for a specific implementation, refer to the foregoing process in which the communications device codes the first bit sequence based on the first extension factor and the first LDPC base matrix. For brevity, details are not described herein.

[0116] After coding the first bit sequence, and obtaining a coded bit sequence d0,d1,···,dN-1 whose length is N, the communications device may delete the first padding bit in the coded bit sequence, for example, delete a bit marked as <NULL>, to obtain the second bit sequence.

[0117] For example, when the first padding bit included in the first bit sequence is located at the tail of the first information bit, di, Ki < K + F in the coded bit sequence d0,d1,···,dN-1 obtained by coding the first bit sequence may be deleted, to obtain the second bit sequence di, 0 ≤ i < K, K + Fi < N. It should be noted that if the first padding bit is inserted into the another location of the first information bit, this step needs to be accordingly modified.

[0118] S220. The communications device stores the second bit sequence in a circular buffer. This step may be implemented by a coding module of the communications device.

[0119] Because the second bit sequence is a bit sequence obtained after the first padding bit is deleted, the bit sequence stored in the circular buffer may include more information bits, so that the circular buffer (especially a limited circular buffer) can store a larger information amount, and therefore a redundant bit segment generated by a rate matcher can include a larger information amount. In this way, after a receive end receives a soft value of a bit, because the received bit includes a larger information amount, decoding performance is higher, and finally, communication performance is also higher.

[0120] In addition, bits stored in the circular buffer include no first padding bit, so that in a process in which the rate matcher obtains the redundant bit segment, a time of determining whether a bit is a padding bit to discard the padding bit can be saved. In other words, communication efficiency can be improved.

[0121] The communications device may store a part or all of the second bit sequence in the circular buffer.

[0122] In the data processing method shown in FIG. 2, after the second bit sequence is stored in the circular buffer, to support requirements for various code lengths and code rates, rate matching may be performed on the bit stored in the circular buffer, to adjust a block length of a to-be-output bit sequence. Usually, a module for implementing rate matching may be referred to as a rate matching module or a rate matcher. The rate matching module may be a component of the foregoing communications device, or may be a component of another communications device.

[0123] When performing rate matching, the rate matching module may select different redundancy versions, for example, select a proper start point from RV0 to RV4, and read data in the circular buffer in a sequence of columns. Codes of different code rates may be obtained by adjusting an amount of data being read.

[0124] For example, in FIG. 3, there are 96 columns in total. If a code block is generated by reading 64 columns from RV0, a code rate obtained after rate matching is

If 128 columns are read (the beginning of the circular buffer continues to be read cyclically when the end of the circular buffer is read), a code rate obtained after rate matching is

The circular buffer in a rate matching method shown in FIG. 3 may be also referred to as a full register.

[0125] In addition, if the circular buffer is a limited circular buffer, or referred to as a limited register, a limited buffer rate matching (Limited buffer rate matching, LBRM) method may be used, and a definition of a redundancy version of the limited circular buffer is shown in FIG. 4. A feature of the rate matching method for the limited circular buffer is that rate matching may be first performed once to reduce a total redundancy amount, and then an operation is performed according to the rate matching method for the full register, to reduce storage overheads of a receive end (such as a terminal).

[0126] When data in the circular buffer (including the full register and the limited register) is read, if a bit is a padding bit (for example, a bit marked as <NULL>), the rate matching module skips the padding bit and attempts to read a bit after the padding bit, until a non-padding bit (for example, a non- <NULL> bit) is found. In this way, it can be ensured that a quantity of valid bits output by the rate matching module is equal to a length of a to-be-output bit sequence. The valid bits output by the rate matching module may be referred to as a third bit sequence.

[0127] Optionally, the communications device may send the third bit sequence.

[0128] In the data processing method shown in FIG. 2, a maximum block length (namely, a to-be-coded original information bit) supported by the coding module of the communications device is usually fixed (for example, may be 6144). To support a longer information length, a code block segmentation module may be cascaded before the coding module, to segment a bit sequence that exceeds a specified length Z (for example, Z = 6144) into a plurality of code blocks for separate coding.

[0129] For an original information sequence, if a length of the information sequence after a 24-bit transport block-cyclic redundancy check (transport block-cyclic redundancy check, TB-CRC) code is added is greater than Z, block division needs to be performed. After the block division, a code block-cyclic redundancy check (code block-cyclic redundancy check, CB-CRC) code whose length is L (for example, L = 24) may be added to each block.

[0130] It is assumed that a total length of a transport block after CRC is added is B', and a quantity of code blocks obtained after segmentation is C. A minimum integer

meeting C·KB' is selected,

is defined, and C+,C- are respectively code block quantities corresponding to lengths

In this case, if C=1, C+ =1,

and C- =0; or if C > 1,

and C+ = C - C-. K is a valid value in a preset table stored in the communications device.

[0131] FIG. 5 is a schematic flowchart of a data processing method according to another embodiment of this application. It should be understood that FIG. 5 shows steps or operations of the data processing method, but these steps or operations are merely examples. Another operation or variation of each operation in FIG. 5 may be further performed in this embodiment of this application.

[0132] The data processing method shown in FIG. 5 may be performed by a channel decoding module in the communications device 120 shown in FIG. 1, or in other words, may be performed by the communications device 120. The channel decoding module may be also referred to as a decoder or a data processing module. The following describes the data processing method in this embodiment of this application by using an example in which the communications device is an execution body.

[0133] S510. A first communications device obtains soft information of a third bit sequence, where the third bit sequence is selected by a second communications device from a circular buffer of the second communications device, bits stored in the circular buffer include a part or all of a second bit sequence, the second bit sequence is obtained by the second communications device by coding a first bit sequence, the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit.

[0134] The second communications device may be the communications device in the data communication method shown in FIG. 2. The second communications device may be also referred to as a transmit end. The first communications device may be the communications device 120 in the communications system shown in FIG. 1.

[0135] Specifically, that a first communications device obtains soft information of a third bit sequence may include: receiving, by the first communications device, the soft information that is of the third bit sequence and that is sent by another communications device, such as the second communications device.

[0136] S520. The first communications device stores the soft information in a soft information buffer.

[0137] S530. The first communications device adds padding information to first soft information, to obtain second soft information, where the first soft information is the soft information in the soft information buffer.

[0138] S540. The first communications device decodes the second soft information.

[0139] In this embodiment of this application, because the third bit sequence is obtained by the second communications device from the second bit sequence, and there is no first padding bit in the second bit sequence, the third bit sequence of a same length may include more information bits. In this way, decoding performance of the first communications device can be improved, so that communication performance can be improved.

[0140] For an implementation in which the first communications device adds the padding information to the first soft value information to obtain the second soft information, refer to an implementation in which the first padding bit is added to the first information bit to obtain the first bit sequence in FIG. 2. For brevity, details are not described herein.

[0141] In this embodiment of this application, optionally, that the first communications device decodes the second soft information may include: decoding, by the first communications device, the second soft information based on a first LDPC base matrix.

[0142] For details of the foregoing step, refer to a corresponding coding procedure in the data processing method shown in FIG. 2. Details are not described herein.

[0143] In this embodiment of this application, optionally, that the first communications device decodes the second soft information may include: decoding, by the first communications device, the second soft information based on a redundant bit and a first information bit column that are in a first LDPC base matrix, where the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.

[0144] In this embodiment of this application, optionally, that the first communications device adds padding information to first soft information, to obtain second soft information may include: determining, by the first communications device, a length F of the padding information based on a length K of the first soft information and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, where Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and padding, by the first communications device, the first soft information with the padding information whose length is F, to obtain the second soft information.

[0145] For details of this step, refer to a procedure in which the communications device determines the length F of the first padding bit based on the length K of the first information bit and the shortest input sequence length that is in the input sequence length set {K0,K1,···,Ki,···} and that is greater than K in the data processing method shown in FIG. 2. Details are not described herein.

[0146] In this embodiment of this application, optionally, the decoding, by the first communications device, the second soft information based on a redundant bit and a first information bit column that are in a first LDPC base matrix may include: deleting, by the first communications device, a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the padding information and a first extension factor, to obtain a second LDPC base matrix, where the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···}; and decoding, by the communications device based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.

[0147] For details of the foregoing step, refer to a corresponding coding procedure in the data processing method shown in FIG. 2. Details are not described herein.

[0148] In this embodiment of this application, optionally, that the first communications device adds padding information to first soft information, to obtain second soft information may include: determining, by the communications device, a first extension factor and a length F of the padding information based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first soft information; and padding, by the communications device, the first soft information with the padding information whose length is F, to obtain the second soft information.

[0149] For details of the foregoing step, refer to a corresponding procedure in the data processing method shown in FIG. 2. Details are not described herein.

[0150] In this embodiment of this application, optionally, the decoding, by the first communications device, the second soft information based on a redundant bit and a first information bit column that are in a first LDPC base matrix may include: deleting, by the communications device, a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first soft information, and the first extension factor, to obtain a second LDPC base matrix; and decoding, by the communications device based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.

[0151] For details of the foregoing step, refer to a corresponding procedure in the data processing method shown in FIG. 2. Details are not described herein.

[0152] FIG. 6 is a schematic structural diagram of a data processing apparatus 600 according to an embodiment of this application. It should be understood that the data processing apparatus 600 shown in FIG. 6 is merely an example. The data processing apparatus in this embodiment of this application may further include another module or unit, or a module with a function similar to that of each module in FIG. 6, or may not necessarily include all modules in FIG. 6.

[0153] A coding module 610 is configured to code a first bit sequence, to obtain a second bit sequence, where the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit.

[0154] An output module 620 is configured to store a part or all of the second bit sequence in a circular buffer.

[0155] The data processing apparatus can code an information bit obtained after a padding bit is added, so that information bits of more lengths can be coded.

[0156] The data processing apparatus enables a bit sequence stored in the circular buffer to include no padding bits, so that the circular buffer, especially a limited circular buffer, can store more information bits. Therefore, a bit sequence obtained or sent by a communications device from the circular buffer can include a larger information amount, so as to improve decoding performance of a receive end. Finally, communication performance can be improved.

[0157] In addition, the data processing apparatus enables the circular buffer to include no bit used for padding in a coding process, so that a time of performing rate matching to select a to-be-sent information bit can be reduced, thereby improving communication efficiency.

[0158] Optionally, the data processing apparatus may further include the circular buffer.

[0159] Optionally, the coding module may be specifically configured to code the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix, where the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.

[0160] Optionally, the data processing apparatus may further include a padding module 630, configured to: determine a length F of the first padding bit based on a length K of the first information bit and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, where Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and pad the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.

[0161] Optionally, the coding module may be specifically configured to: delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the first padding bit and a first extension factor, to obtain a second LDPC base matrix, where the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···}; and code, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.

[0162] Optionally, the data processing apparatus may further include a padding module 630, configured to: determine a first extension factor and a length F of the first padding bit based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first information bit; and pad the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.

[0163] Optionally, the coding module may be specifically configured to: delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first information bit, and the first extension factor, to obtain a second LDPC base matrix; and code, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.

[0164] It should be understood that the foregoing and other operations and/or functions of the units of the data processing apparatus shown in FIG. 6 according to this embodiment of this application are respectively intended to implement corresponding procedures performed by the communications device in the communication method in FIG. 2. For brevity, details are not described herein.

[0165] FIG. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of this application. It should be understood that the data processing apparatus 700 shown in FIG. 7 is merely an example. The data processing apparatus in this embodiment of this application may further include another module or unit, or a module with a function similar to that of each module in FIG. 7, or may not necessarily include all modules in FIG. 7.

[0166] An obtaining module 710 is configured to obtain soft information of a third bit sequence, where the third bit sequence is selected by a transmit end from a circular buffer of the transmit end, bits stored in the circular buffer include a part or all of a second bit sequence, the second bit sequence is obtained by the transmit end by coding a first bit sequence, the first bit sequence includes a first information bit and a first padding bit, and the second bit sequence includes a second information bit and a redundant bit.

[0167] A writing module 720 is configured to store the soft information in a soft information buffer.

[0168] A padding module 730 is configured to add padding information to first soft information, to obtain second soft information, where the first soft information is the soft information in the soft information buffer.

[0169] A decoding module 740 is configured to decode the second soft information.

[0170] Because the third bit sequence obtained by the data processing apparatus is obtained and sent by the transmit end from the second bit sequence including no padding bits, the third bit sequence can include a larger information amount, so that decoding performance can be improved, and finally, communication performance can be improved.

[0171] Optionally, the decoding module may be specifically configured to decode the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix, where the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.

[0172] Optionally, the padding module may be specifically configured to: determine a length F of the padding information based on a length K of the first soft information and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, where Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and pad the first soft information with the padding information whose length is F, to obtain the second soft information.

[0173] Optionally, the decoding module may be specifically configured to: delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the padding information and a first extension factor, to obtain a second LDPC base matrix, where the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···} ; and decode, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.

[0174] Optionally, the padding module may be specifically configured to: determine a first extension factor and a length F of the padding information based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first soft information; and pad the first soft information with the padding information whose length is F, to obtain the second soft information.

[0175] Optionally, the decoding module may be specifically configured to: delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first soft information, and the first extension factor, to obtain a second LDPC base matrix; and decode, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.

[0176] It should be understood that the foregoing and other operations and/or functions of the units of the data processing apparatus shown in FIG. 7 according to this embodiment of this application are respectively intended to implement corresponding procedures performed by the first communications device in the communication method in FIG. 5. For brevity, details are not described herein.

[0177] FIG. 8 is a schematic structural diagram of a data processing apparatus according to another embodiment of this application. It should be understood that the data processing apparatus 800 shown in FIG. 8 is merely an example. The data processing apparatus in this embodiment of this application may further include another module or unit, or a module with a function similar to that of each module in FIG. 8, or may not necessarily include all modules in FIG. 8.

[0178] A processor 810 may be configured to implement operations or steps that can be implemented by the coding module 610 and the output module 620 in FIG. 6. For brevity, details are not described herein.

[0179] Optionally, the data processing apparatus 800 may further include a receiver 820 and a transmitter 830. The receiver may be configured to receive information sent by another device, and the transmitter may be configured to send information to another device.

[0180] Optionally, the data processing apparatus may further include a circular buffer, configured to store a second bit sequence.

[0181] FIG. 9 is a schematic structural diagram of a data processing apparatus according to another embodiment of this application. It should be understood that the data processing apparatus 900 shown in FIG. 9 is merely an example. The data processing apparatus in this embodiment of this application may further include another module or unit, or a module with a function similar to that of each module in FIG. 9, or may not necessarily include all modules in FIG. 9.

[0182] A processor 910 may be configured to implement operations or steps that can be implemented by the writing module 720, the padding module 730, and the decoding module 740 in FIG. 7, and a receiver 920 may be configured to implement an operation or a step that can be implemented by the obtaining module 710 in FIG. 7. For brevity, details are not described herein.

[0183] Optionally, the data processing apparatus 900 may further include a transmitter 930, configured to send information to another device.

[0184] Optionally, the data processing apparatus 900 may further include a soft information buffer, configured to store soft information.

[0185] FIG. 10 is a schematic structural diagram of a communications device according to an embodiment of this application. It should be understood that the communications device 1000 shown in FIG. 10 is merely an example. The communications device in this embodiment of this application may further include another module or unit, or a module with a function similar to that of each module in FIG. 10, or may not necessarily include all modules in FIG. 10.

[0186] A data processing apparatus 1010 included in the communications device 1000 may be the data processing apparatus 600 shown in FIG. 6, or may be the data processing apparatus 800 shown in FIG. 8. For brevity, details are not described herein.

[0187] FIG. 11 is a schematic structural diagram of a communications device according to an embodiment of this application. It should be understood that the communications device 1100 shown in FIG. 11 is merely an example. The communications device in this embodiment of this application may further include another module or unit, or a module with a function similar to that of each module in FIG. 11, or may not necessarily include all modules in FIG. 11.

[0188] A data processing apparatus 1110 included in the communications device 1100 may be the data processing apparatus 700 shown in FIG. 7, or may be the data processing apparatus 900 shown in FIG. 9. For brevity, details are not described herein.

[0189] A person of ordinary skill in the art may be aware that, the units and algorithm steps in the examples described with reference to the embodiments disclosed in this specification can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.

[0190] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the system, apparatus, and unit, refer to a corresponding process in the method embodiments. Details are not described herein again.

[0191] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiments are merely examples. For example, the unit division is merely logical function division. There may be another division manner in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

[0192] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.

[0193] In addition, functional units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

[0194] When the functions are implemented in a form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disc.

[0195] The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.


Claims

1. A data processing method, comprising:

coding a first bit sequence, to obtain a second bit sequence, wherein the first bit sequence comprises a first information bit and a first padding bit, and the second bit sequence comprises a second information bit and a redundant bit; and

storing the second bit sequence in a circular buffer.


 
2. The data processing method according to claim 1, wherein the coding a first bit sequence comprises:
coding the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix, wherein the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.
 
3. The data processing method according to claim 2, wherein the data processing method further comprises:

determining a length F of the first padding bit based on a length K of the first information bit and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, wherein Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and

padding the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.


 
4. The data processing method according to claim 3, wherein the coding the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix comprises:

deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the first padding bit and a first extension factor, to obtain a second LDPC base matrix, wherein the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···} ; and

coding, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.


 
5. The data processing method according to claim 2, wherein the data processing method further comprises:

determining a first extension factor and a length F of the first padding bit based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first information bit; and

padding the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.


 
6. The data processing method according to claim 5, wherein the coding the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix comprises:

deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first information bit, and the first extension factor, to obtain a second LDPC base matrix; and

coding, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.


 
7. A data processing method, comprising:

obtaining soft information of a third bit sequence, wherein the third bit sequence is selected by a transmit end from a circular buffer of the transmit end, bits stored in the circular buffer comprise a part or all of a second bit sequence, the second bit sequence is obtained by the transmit end by coding a first bit sequence, the first bit sequence comprises a first information bit and a first padding bit, and the second bit sequence comprises a second information bit and a redundant bit;

storing the soft information in a soft information buffer;

adding padding information to first soft information, to obtain second soft information, wherein the first soft information is the soft information in the soft information buffer; and

decoding the second soft information.


 
8. The data processing method according to claim 7, wherein the decoding the second soft information comprises:
decoding the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix, wherein the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.
 
9. The data processing method according to claim 8, wherein the adding padding information to first soft information, to obtain second soft information comprises:

determining a length F of the padding information based on a length K of the first soft information and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, wherein Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and

padding the first soft information with the padding information whose length is F, to obtain the second soft information.


 
10. The data processing method according to claim 9, wherein the decoding the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix comprises:

deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the padding information and a first extension factor, to obtain a second LDPC base matrix, wherein the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···} ; and

decoding, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.


 
11. The data processing method according to claim 8, wherein the adding padding information to first soft information, to obtain second soft information comprises:

determining a first extension factor and a length F of the padding information based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first soft information; and

padding the first soft information with the padding information whose length is F, to obtain the second soft information.


 
12. The data processing method according to claim 11, wherein the decoding the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix comprises:

deleting a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first soft information, and the first extension factor, to obtain a second LDPC base matrix; and

decoding, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.


 
13. A data processing apparatus, comprising:

a coding module, configured to code a first bit sequence, to obtain a second bit sequence, wherein the first bit sequence comprises a first information bit and a first padding bit, and the second bit sequence comprises a second information bit and a redundant bit; and

an output module, configured to store a part or all of the second bit sequence in a circular buffer.


 
14. The data processing apparatus according to claim 13, wherein the coding module is specifically configured to code the first bit sequence based on a redundant bit column and a first information bit column that are in the first LDPC base matrix, wherein the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.
 
15. The data processing apparatus according to claim 14, wherein the data processing apparatus further comprises a padding module, configured to:

determine a length F of the first padding bit based on a length K of the first information bit and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K, wherein Ki = zi·k, k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and

pad the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.


 
16. The data processing apparatus according to claim 15, wherein the coding module is specifically configured to:

delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the first padding bit and a first extension factor, to obtain a second LDPC base matrix, wherein the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···}; and

code, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.


 
17. The data processing apparatus according to claim 14, wherein the data processing apparatus further comprises a padding module, configured to:

determine a first extension factor and a length F of the first padding bit based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first information bit; and

pad the first information bit with the first padding bit whose length is F, to obtain the first bit sequence.


 
18. The data processing apparatus according to claim 17, wherein the coding module is specifically configured to:

delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first information bit, and the first extension factor, to obtain a second LDPC base matrix; and

code, based on the first extension factor and the second LDPC base matrix, the first information bit and a bit that is in the first padding bit and that corresponds to the first information bit column.


 
19. A data processing apparatus, comprising:

an obtaining module, configured to obtain soft information of a third bit sequence, wherein the third bit sequence is selected by a transmit end from a circular buffer of the transmit end, bits stored in the circular buffer comprise a part or all of a second bit sequence, the second bit sequence is obtained by the transmit end by coding a first bit sequence, the first bit sequence comprises a first information bit and a first padding bit, and the second bit sequence comprises a second information bit and a redundant bit;

a writing module, configured to store the soft information in a soft information buffer;

a padding module, configured to add padding information to first soft information, to obtain second soft information, wherein the first soft information is the soft information in the soft information buffer; and

a decoding module, configured to decode the second soft information.


 
20. The data processing apparatus according to claim 19, wherein the decoding module is specifically configured to decode the second soft information based on a redundant bit and a first information bit column that are in the first LDPC base matrix, wherein the first information bit column is a column corresponding to the first information bit in the first LDPC base matrix.
 
21. The data processing apparatus according to claim 20, wherein the padding module is specifically configured to:

determine a length F of the padding information based on a length K of the first soft information and a shortest input sequence length that is in an input sequence length set {K0,K1,···,Ki,···} and that is greater than K , wherein Ki = zi·k is a quantity of information bit columns in the first LDPC base matrix, and zi belongs to an extension factor set {z0,z1,···,zi,···} supported by the first LDPC base matrix; and

pad the first soft information with the padding information whose length is F, to obtain the second soft information.


 
22. The data processing apparatus according to claim 21, wherein the decoding module is specifically configured to:

delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the length F of the padding information and a first extension factor, to obtain a second LDPC base matrix, wherein the first extension factor is an extension factor corresponding to the shortest input sequence length in the extension factor set {z0,z1,···,zi,···} ; and

decode, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.


 
23. The data processing apparatus according to claim 20, wherein the padding module is specifically configured to:

determine a first extension factor and a length F of the padding information based on a quantity of information bit columns in the first LDPC base matrix, a maximum column-deleting quantity supported by the first LDPC base matrix, an extension factor set supported by the first LDPC base matrix, and a length of the first soft information; and

pad the first soft information with the padding information whose length is F, to obtain the second soft information.


 
24. The data processing apparatus according to claim 23, wherein the decoding module is specifically configured to:

delete a column other than the first information bit column and the redundant bit column in the first LDPC base matrix based on the quantity of information bit columns in the first LDPC base matrix, the length of the first soft information, and the first extension factor, to obtain a second LDPC base matrix; and

decode, based on the first extension factor and the second LDPC base matrix, the first soft information and information that is in the padding information and that corresponds to the first information bit column.


 
25. A communications device, comprising the data processing apparatus according to any one of claims 13 to 24.
 
26. A computer readable storage medium, wherein the computer readable storage medium stores program code executed by a data processing apparatus, and the program code comprises an instruction used to perform the data processing method according to any one of claims 1 to 12.
 
27. A computer readable storage medium, wherein the computer readable storage medium stores program code executed by a communications device, and the program code comprises an instruction used to perform the data processing method according to any one of claims 1 to 12.
 




Drawing

























Search report










Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description