WO2019029576A1 - Coding method, decoding method, coding device and decoding device - Google Patents

Coding method, decoding method, coding device and decoding device Download PDF

Info

Publication number
WO2019029576A1
WO2019029576A1 PCT/CN2018/099409 CN2018099409W WO2019029576A1 WO 2019029576 A1 WO2019029576 A1 WO 2019029576A1 CN 2018099409 W CN2018099409 W CN 2018099409W WO 2019029576 A1 WO2019029576 A1 WO 2019029576A1
Authority
WO
WIPO (PCT)
Prior art keywords
crc
decoded
length
decoding
check
Prior art date
Application number
PCT/CN2018/099409
Other languages
French (fr)
Chinese (zh)
Inventor
武雨春
梁继业
冯淑兰
刘华斌
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2019029576A1 publication Critical patent/WO2019029576A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0057Block codes
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/09Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • H04L1/0047Decoding adapted to other signal detection operation
    • H04L1/005Iterative decoding, including iteration between signal detection and decoding operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Definitions

  • the present application relates to the field of communication technologies, and more particularly to an encoding method, a decoding method, an encoding device, and a decoding device.
  • the CRC check bit (TB_CRC) is generally added to the TB, and then the length corresponding to the TB after the TB_CRC check bit is added is determined. Then, according to the relationship between the length of the TB corresponding to the TB_CRC and the preset length, the subsequent coding mode is determined.
  • the coder does not divide the TB (in this case, the TB corresponds to a corresponding CB), but directly encodes the TB; if the TB_CRC is added If the length corresponding to the TB is greater than the preset length, then the TB needs to be divided into multiple code blocks (CBs), and the corresponding CRC check bits (CB_CRC) are added to each of the plurality of CBs.
  • CBs code blocks
  • CB_CRC CRC check bits
  • the decoding end needs to perform different check processing for different situations when decoding the TB to be decoded.
  • the decoding end needs to perform TB_CRC check every iteration decoding.
  • the decoding end needs to perform CB_CRC check every iteration decoding. Since only one type of CRC check module is embedded in one type of decoder. Therefore, for the above two cases, decoding needs to set different types of decoders (a CB_CRC check module is embedded in one decoder, and a TB_CRC check module is embedded in another decoder), and the decoder is generally It is implemented by a complicated hardware circuit. Therefore, setting two different types of decoders at the decoding end and switching between different types of decoders increases the complexity of the hardware implementation of the decoding end.
  • the present application provides an encoding method, a decoding method, an encoding device, and a decoding device to reduce the complexity of hardware implementation of the decoding end.
  • an encoding method includes: acquiring a transport block TB; adding a TB_CRC to the TB, the TB_CRC is used for performing a CRC check on the TB; and determining a length corresponding to the TB after adding the TB_CRC; In the case that the length corresponding to the TB after the TB_CRC is added is less than or equal to the preset length, the TB after the TB_CRC is added is determined as the coding block CB; the CB_CRC is added to the CB, and the CB_CRC is used for the CB.
  • CRC check encodes the CB after joining the CB_CRC.
  • the decoding end when the TB includes only one CB, the CB_CRC is also added to the TB, so that whether the TB includes multiple CBs or only a single CB, the decoding end can perform CB_CRC check in iterative decoding. It is not necessary to use different CRC check modes according to different situations of TB (TB contains multiple CBs or only a single CB) in iterative decoding as in the prior scheme (different CRC check modes correspond to different decoders) Therefore, in the present application, the decoding end uses a type of decoder in the iterative decoding, which reduces the complexity of the hardware implementation of the decoding end.
  • TB_CRC is a CRC sequence for checking the TB
  • CB_CRC is a CRC sequence for checking the CB
  • the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  • the method further includes: after the TB_CRC after the TB_CRC is added, the length of the TB is greater than the preset length, after adding the TB_CRC
  • the TB is divided into a plurality of CBs; the CB_CRC is added to each of the plurality of CBs; and each CB after the CB_CRC is added is encoded.
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
  • a decoding method includes: determining a length of a transport block TB to be coded; determining a number of CBs included in the TB to be decoded according to the length of the TB to be decoded Receiving the TB to be decoded; if the TB to be decoded includes only one CB, performing iterative decoding on the TB to be decoded, and performing data block obtained by decoding each iteration CB_CRC check, wherein the TB to be decoded includes a CB_CRC and a TB_CRC, the CB_CRC is used for performing CRC check on the CB, and the TB_CRC is used for performing CRC check on the TB; In the case of CB_CRC check, the TB_CRC check is performed on the data block obtained by the iterative decoding.
  • the decoding end since the TB to be decoded only includes one CB, the TB to be decoded also includes the CB_CRC. Therefore, when the TB includes only one CB, the decoding end can also perform CB_CRC check during iterative decoding. Instead of using different CRC check modes according to different situations of TB (TB includes multiple CBs or only a single CB) in iterative decoding, as in the prior art, therefore, in the present application, the decoding end adopts One type of decoder can realize iterative decoding and verification of data, which reduces the complexity of hardware implementation of the decoding end.
  • the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  • determining, according to the length of the TB to be coded, the number of CBs included in the TB to be coded including: the TB to be decoded Determining that the to-be-decoded TB includes only one CB, and determining that the to-be-translated is performed if the length of the TB to be decoded is greater than the preset length.
  • the code TB contains multiple CBs.
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
  • the method further includes: performing iterative decoding on the TB to be decoded, where the TB to be coded includes multiple CBs, And performing CB_CRC check on each of the plurality of data blocks obtained by the iterative decoding; in the case that each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, The plurality of data blocks obtained by the iterative decoding are concatenated to obtain a TB including a TB_CRC; and the TB containing the TB_CRC is subjected to a TB_CRC check.
  • an encoding apparatus comprising means for performing the first aspect or various implementations thereof.
  • a decoding apparatus comprising means for performing the second aspect or various implementations thereof.
  • a fifth aspect provides an encoding apparatus including a memory, a transceiver for storing a program, and a processor for executing a program, when the program is executed, the processor and the The transceiver performs the method of the first aspect or any of the possible implementations of the first aspect.
  • the encoding device may specifically be a terminal device or a network device.
  • a sixth aspect provides a decoding apparatus including a memory, a transceiver for storing a program, and a processor for executing a program, when the program is executed, the processor and the The transceiver performs the method of the second aspect or any of the possible implementations of the second aspect.
  • the decoding device may specifically be a terminal device or a network device.
  • an encoding apparatus comprising a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, wherein the storage medium stores a computer executable program, the central processing The apparatus is coupled to the non-volatile storage medium and executes the computer executable program to implement the method of the first aspect or any of the possible implementations of the first aspect.
  • the encoding device may specifically be a terminal device or a network device.
  • a decoding apparatus includes a storage medium and a central processing unit, and the storage medium may be a non-volatile storage medium, where the computer-executable program is stored in the storage medium, A central processing unit is coupled to the non-volatile storage medium and executes the computer-executable program to implement the method of the second aspect or any of the possible implementations of the second aspect.
  • the decoding device may specifically be a terminal device or a network device.
  • a chip comprising a processor and a communication interface, the communication interface for communicating with an external device, the processor for performing the first aspect or any possible implementation of the first aspect The method in the way.
  • the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • the chip is integrated on a terminal device or a network device.
  • a chip comprising a processor and a communication interface, the communication interface for communicating with an external device, the processor for performing any of the possible implementations of the second aspect or the second aspect The method in the way.
  • the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is for performing the method of any of the possible implementations of the second aspect or the second aspect.
  • the chip is integrated on a terminal device or a network device.
  • a computer readable storage medium storing program code for device execution, the program code comprising any of the possible implementations for performing the first aspect or the first aspect The instructions of the method in the way.
  • a twelfth aspect a computer readable storage medium storing program code for device execution, the program code comprising any of the possible implementations for performing the second aspect or the second aspect The instructions of the method in the way.
  • FIG. 1 is a schematic diagram of a possible application scenario of an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an encoding method in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of dividing a TB into a CB in the embodiment of the present application.
  • FIG. 4 is a schematic diagram of dividing a TB into multiple CBs in an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a decoding method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a block error rate when decoding a conventional decoding method and a decoding method according to an embodiment of the present application;
  • FIG. 7 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application.
  • GSM global system for mobile communications
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • GPRS general packet radio service
  • LTE long term evolution
  • FDD LTE frequency division duplex
  • TDD LTE Time division duplex
  • UMTS universal mobile telecommunication system
  • WiMAX worldwide interoperability for microwave access
  • 5G future fifth generation
  • 5G fifth generation
  • NR new radio
  • the terminal device in the embodiment of the present application may refer to a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or User device.
  • the terminal device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), with wireless communication.
  • SIP session initiation protocol
  • WLL wireless local loop
  • PDA personal digital assistant
  • the network device in the embodiment of the present application may be a device for communicating with a terminal device, and the network device may be a global system for mobile communication (GSM) system or code division multiple access (CDMA).
  • GSM global system for mobile communication
  • CDMA code division multiple access
  • a base transceiver station (BTS) may also be a base station (nodeB, NB) in a wideband code division multiple access (WCDMA) system, or an evolved base station (evolutional) in an LTE system.
  • the node B, eNB or eNodeB) may also be a wireless controller in a cloud radio access network (CRAN) scenario, or the network device may be a relay station, an access point, an in-vehicle device, a wearable device, and a future.
  • the network device in the 5G network or the network device in the PLMN network in the future is not limited in this embodiment.
  • FIG. 1 is a schematic diagram of a possible application scenario of an embodiment of the present application.
  • the communication system in FIG. 1 includes a network device and a terminal device, and control information or data information can be transmitted between the network device and the terminal device in the communication system through a control channel or a data channel.
  • the network device may use the coding method of the embodiment of the present application to encode the data to be transmitted, and then transmit the encoded data to the terminal device, and the terminal device receives the data transmitted by the network device.
  • the received data may be decoded by using the decoding method in the embodiment of the present application, thereby obtaining control information or data information transmitted by the network device to the terminal device.
  • the terminal device may also use the encoding method of the embodiment of the present application to encode the data to be transmitted, and then transmit the encoded data to the network device.
  • the network device may adopt the application.
  • the decoding method of the embodiment decodes the received data to obtain control information or data information transmitted by the terminal device to the network device.
  • the encoded or decoded data may be various types of data including control information or data information.
  • FIG. 2 is a schematic flowchart of an encoding method in an embodiment of the present application.
  • the method 200 can be performed by an encoding device, which can be a network device or a terminal device.
  • the method 200 above specifically includes:
  • the TB here can be a TB transmitted from a higher layer. It should be understood that the method 200 herein may be implemented at the physical layer, and the upper layer is a layer above the physical layer.
  • the upper layer may be a media access control (MAC) layer.
  • MAC media access control
  • the foregoing TB may include data information transmitted between the network device and the terminal device through the data channel, or control information transmitted between the network device and the terminal device through the control channel.
  • TB_CRC can be added to the end of the TB.
  • the TB_CRC is a CRC sequence of TB level, and the TB_CRC corresponds to the TB, and is used to check whether the TB obtained by the decoding is accurate.
  • the length corresponding to the TB after the TB_CRC is added is the sum of the length of the TB and the length of the TB_CRC.
  • the TB after the TB_CRC is added is determined as the coding block CB.
  • the preset length in step 240 is K max -L CB_CRC .
  • K max is 6114 or 8448 respectively
  • the preset length in step 240 is 6114-L CB_CRC or 8448-L.
  • CB_CRC where L CB_CRC is the length of the CB_CRC.
  • the length of the TB is A and the length of the TB_CRC is L TB_CRC .
  • the length of the TB can be considered to be small.
  • the TB after the TB_CRC is added can be directly divided into one CB, that is, the TB after the TB_CRC is added is directly determined as CB.
  • the preset length is K max
  • the preset length is K max -L CB_CRC .
  • CB_CRC is added in each CB, considering that the length of the data block input to the encoder is smaller than K max , therefore, for only The TB is divided into one CB when the length of the TB to which the TB_CRC is added and the CB_CRC has not been added is less than or equal to K max - L CB_CRC , otherwise the TB is divided into a plurality of CBs. Therefore, the preset length in the present application is different from the preset length in the existing scheme.
  • CB_CRC is a CB level CRC sequence
  • the CB_CRC corresponds to the CB, and is used to check whether the decoded CB is accurate.
  • the TB after the TB_CRC is added is directly divided into one CB, that is, the TB corresponding to the TB_CRC is directly determined as CB (as shown in Figure 3, the CB contains TB and TB_CRC), and then CB_CRC is added to the CB (as shown in Figure 3, the CB_CRC can be located at the end of the CB), resulting in a CB containing both TB_CRC and CB_CRC. .
  • the above CB_CRC and the above TB_CRC may be generated based on different CRC polynomials.
  • CB_CRC and TB_CRC generated based on different CRC polynomials are used for CRC check, it is equivalent to using different check methods to separately check CB and TB, which can improve the accuracy of CRC check.
  • the above TB_CRC may be generated based on the polynomial (1), and the above CB_CRC may be generated based on the polynomial (2).
  • the above TB_CRC may also be generated based on the polynomial (3), and the CB_CRC may be generated based on the polynomial (4).
  • the CB after the CB_CRC is added in step 260 includes both the TB_CRC and the CB_CRC, so that the decoding end can perform CB_CRC check when decoding the corresponding TB.
  • the decoding end when the TB includes only one CB, the CB_CRC is also added to the TB, so that whether the TB includes multiple CBs or only a single CB, the decoding end can perform CB_CRC check when performing iterative decoding.
  • iterative decoding it is necessary to adopt different CRC check modes according to different situations of TB (TB contains multiple CBs or only a single CB), and different CRC check modes correspond to different translations. Code. Therefore, in the present application, the decoding end can use one type of decoder in iterative decoding, which reduces the complexity of the decoder hardware implementation at the decoding end.
  • the TB when the length of the TB is long, the TB needs to be divided into multiple CBs, and the CB_CRC is added to each CB, and when the length of the TB is short, the TB is directly divided into one.
  • CB and does not increase the CB CRC in the CB (in this case, only the TB_CRC is included in the CB), so that different types of CRC check (CB_CRC checksum TB_CRC check) may be required when the decoder performs iterative decoding.
  • the decoding end when the length of the TB is short, the TB is directly divided into one CB, and the CB_CRC is also added in the CB, so that the decoding end only needs to adopt the CB_CRC check in iterative decoding. It avoids setting different types of decoders on the decoding end, which simplifies the complexity of the implementation of the decoding end.
  • a forward error correction FEC encoder may be employed when encoding the CB after the CB_CRC is added.
  • a low density parity check (LDPC) encoder or a Turbo encoder may be used when encoding the CB after the CB_CRC is added.
  • the decoding end needs to use a decoder of a type corresponding to the encoding end for decoding during decoding.
  • the method 200 further includes: dividing a TB after adding the TB_CRC into multiple CBs, where the length of the TB corresponding to the TB_CRC is greater than a preset length; adding in each CB of the multiple CBs CB_CRC; encodes each CB after the CB_CRC is added.
  • the TB after the TB_CRC is added is divided into five CBs, and the CB_CRC is added to each CB, and then each The CB after the CB_CRC is added for forward error correction coding (FEC Encoding).
  • FEC Encoding forward error correction coding
  • dividing the TB after adding the TB_CRC into five CBs in FIG. 4 is only a specific example. In fact, when the TBs are of different lengths, the TB after adding the TB_CRC can also be divided into other numbers of CBs. .
  • the TB when the length of the TB is long (the length corresponding to the TB after adding the TB_CRC is greater than the preset length), the TB is divided into a plurality of CBs, and in each of the plurality of CBs Join the CB_CRC.
  • the CB_CRC is added to the CB obtained by dividing the TB. That is to say, whether the TB is divided into a single CB or the TB is divided into multiple CBs, the present application adds a CB_CRC to the CB obtained by the TB partition, so that the decoding end is in any TB to be decoded.
  • CB_CRC check can be used for iterative decoding.
  • the encoding method of the embodiment of the present application is described above.
  • the decoding method of the embodiment of the present application is described below with reference to FIG. 5. It should be understood that the decoding method of the embodiment of the present application corresponds to the encoding method of the embodiment of the present application.
  • the decoding method of the embodiment of the present application can decode the data obtained by the encoding in the embodiment of the present application to obtain final data.
  • FIG. 5 is a schematic flowchart of a decoding method according to an embodiment of the present application.
  • the method 500 can be performed by a decoding end device.
  • the encoding end device may specifically be a network device or a terminal device.
  • the method 500 specifically includes:
  • the decoding end device may determine the length of the TB to be decoded by using the control information sent by the encoding end device.
  • the decoding end device may acquire control information by using a control channel between the decoding end device and the encoding end device, and then obtain a length of the TB to be decoded according to the control information lookup table.
  • the decoding end may adopt the same manner as the encoding end when determining the number of CBs included in the TB to be decoded according to the length of the TB to be decoded.
  • determining, according to the length of the TB to be coded, the number of CBs included in the TB to be coded including: if the length of the TB to be coded is less than or equal to a preset length, determining that the TB to be decoded only includes a CB; if the length of the TB to be decoded is greater than a preset length, it is determined that the TB to be decoded includes a plurality of CBs.
  • the preset length here is K max -L CB_CRC .
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is The length of the CB_CRC.
  • the preset length is K max
  • the preset length is K max -L CB_CRC .
  • the length of the TB to be decoded herein may be the sum of the length of the TB and the length of the TB_CRC.
  • the decoding end may determine the length of the TB to be decoded according to the length of the TB and the length of the TB_CRC, and then determine the number of CBs included in the TB according to the relationship between the length of the TB to be decoded and the preset length.
  • the de-rate matching may be performed first, and then the TB to be decoded is received.
  • the TB to be decoded includes only one CB
  • the TB to be decoded is iteratively decoded, and the data block obtained by each iteration is subjected to CB_CRC check.
  • the TB to be decoded includes a TB_CRC and a CB_CRC, wherein the TB_CRC is a CRC sequence of TB level, the TB_CRC is corresponding to the TB, and is used to check whether the TB obtained by the decoding is accurate, and the CB_CRC is a CB level CRC sequence.
  • the CB_CRC corresponds to the CB, and is used to check whether the CB obtained by the decoding is accurate.
  • CB_CRC and TB_CRC may be generated based on different CRC polynomials.
  • the TB_CRC may be generated based on the above polynomial (1) or (3), and the CB_CRC may be generated based on the above polynomial (2) or (4).
  • the FEC decoder may be used when decoding the CB.
  • an LDPC decoder, a Turbo decoder, etc. may be used as long as it corresponds to the encoder type of the encoding end.
  • the TB to be decoded since the TB to be decoded includes only one CB, the TB to be decoded also includes the CB_CRC. Therefore, the CB_CRC check can also be directly used in decoding, instead of including according to the TB as in the prior art. Multiple CBs are still a single CB and adopt different CRC check methods. Therefore, the decoding end can realize decoding and verification by using one type of decoder, which reduces the complexity of decoder implementation at the decoding end. .
  • the foregoing method 800 further includes: if the TB to be coded includes multiple CBs, iteratively decoding the TB to be decoded, and decoding the iteratively into the plurality of data blocks Each data block performs a CB_CRC check; in the case where each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the plurality of data blocks obtained by the iterative decoding are concatenated to obtain the inclusion TB of TB_CRC; TB_CRC check for TB containing TB_CRC.
  • the decoding end adopts A type of decoder can implement decoding and verification, which reduces the complexity of the decoder implementation at the decoding end.
  • the decoding method of the embodiment of the present application uses the 8-bit CB_CRC to perform CB_CRC check at each iterative decoding when decoding the TB to be decoded.
  • the decoding result passes the CB_CRC check, the TB is obtained, and then the TB_CRC is checked by the 8-bit TB_CRC, and if the TB_CRC check is satisfied, the final TB is obtained.
  • the TB to be coded only includes a single CB
  • the TB to be decoded by the decoding method in the existing scheme is directly used to verify the TB_CRC of 16 bits in each iterative decoding. If the TB obtained by the code satisfies the TB_CRC check, then the final TB is obtained.
  • FIG. 6 shows a block error rate for decoding using the decoding method of the embodiment of the present application when the TB to be coded includes only a single CB, and a block error rate for decoding by using the decoding method in the prior art. .
  • the change curve of the block error rate during decoding in the present scheme is very close to the change curve of the block error rate in the prior art decoding. Therefore, the decoding method of the embodiment of the present application is used for decoding.
  • the failure probability is basically the same as the failure probability of decoding by using the decoding method of the existing scheme. Therefore, the decoding method of the embodiment of the present application can achieve the same complexity as the decoder hardware while achieving the same complexity as the existing scheme. Effect.
  • the encoding method and the decoding method of the embodiments of the present application are described in detail above with reference to FIG. 1 to FIG. 6.
  • the encoding apparatus and the decoding apparatus of the embodiments of the present application are described below with reference to FIG. 7 to FIG. 10.
  • the encoding apparatus and the decoding apparatus in FIG. 7 to FIG. 10 are the encoding method and translation of the above-mentioned embodiment of the present application.
  • the coding methods are respectively corresponding, and the coding apparatus in FIG. 7 to FIG. 10 can perform the coding method in the embodiment of the present application.
  • the decoding apparatus in FIG. 7 to FIG. 10 can perform the decoding method in the embodiment of the present application.
  • the repeated description is omitted as appropriate below.
  • FIG. 7 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application.
  • the encoding device 700 of Figure 7 includes:
  • An obtaining module 710 configured to acquire a transport block TB
  • the processing module 720 is configured to add a TB_CRC to the TB, where the TB_CRC is used for performing a CRC check on the TB.
  • the processing module 720 is further configured to determine a length corresponding to the TB after joining the TB_CRC;
  • the processing module 720 is further configured to determine, after the TB_CRC is TB_CRC, the length of the TB is less than or equal to a preset length, and determine the TB after adding the TB_CRC as the coding block CB;
  • the processing module 720 is further configured to add a CB_CRC in the CB, where the CB_CRC is used to perform CRC check on the CB;
  • the encoding module 730 is configured to encode the CB after joining the CB_CRC.
  • the CB_CRC is also added to the TB, so that when the decoding end performs iterative decoding, whether the TB includes multiple CBs or only a single CB, only the CB_CRC can be performed. It is not necessary to use different CRC check modes according to whether the TB contains multiple CBs or a single CB as in the prior art. Therefore, the present application can enable the decoding end to implement decoding by using one type of decoder. And verification, reducing the complexity of the decoder hardware implementation at the decoding end.
  • the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  • the processing module 720 is specifically configured to: after the TB corresponding to the TB_CRC is greater than the preset length, divide the TB after adding the TB_CRC into multiple a CB; the CB_CRC is added to each of the plurality of CBs; the encoding module is specifically configured to encode each CB after the CB_CRC is added.
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
  • FIG. 8 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application.
  • the decoding device 800 of Figure 8 includes:
  • a determining module 810 determining a length of the transport block TB to be decoded
  • the determining module 810 is further configured to determine, according to the length of the TB to be coded, the number of CBs included in the TB to be decoded;
  • the receiving module 820 is configured to receive the TB to be decoded
  • the processing module 830 is configured to perform iterative decoding on the to-be-decoded TB and perform CB_CRC verification on the data block obtained by each iteration, in a case where the TB to be decoded includes only one CB,
  • the TB to be decoded includes a CB_CRC and a TB_CRC, and the CB_CRC is used for performing a CRC check on the CB, where the TB_CRC is used for performing CRC check on the TB;
  • the processing module 830 is further configured to perform TB_CRC check on the data block obtained by the iterative decoding in the case that the data block obtained by the iterative decoding passes the CB_CRC check.
  • the TB to be decoded since the TB to be decoded includes only one CB, the TB to be decoded also includes the CB_CRC. Therefore, the CB_CRC check can also be directly used in decoding, instead of including according to the TB as in the prior art. Multiple CBs are still a single CB and adopt different CRC check methods. Therefore, the decoding end can realize decoding and verification by using one type of decoder, which reduces the complexity of decoder implementation at the decoding end. .
  • the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  • the determining module 810 is specifically configured to: when the length of the TB to be decoded is less than or equal to a preset length, determine that the to-be-decoded TB includes only one CB; In a case where the length of the TB to be decoded is greater than the preset length, it is determined that the to-be-decoded TB includes multiple CBs.
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
  • the processing module 830 is specifically configured to perform iterative decoding on the to-be-decoded TB and perform iterative translation in a case where the TB to be coded includes multiple CBs.
  • Each of the plurality of data blocks obtained by the code performs a CB_CRC check; and in the case where each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the iterative decoding is performed.
  • the obtained plurality of data blocks are concatenated to obtain a TB including a TB_CRC; and the TB containing the TB_CRC is subjected to a TB_CRC check.
  • FIG. 9 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application.
  • the encoding device 900 of Figure 9 includes:
  • the memory 910 is configured to store a program.
  • a transceiver 920 configured to acquire a transport block TB
  • the processor 930 is configured to execute a program stored in the memory 910.
  • the processor 930 is specifically configured to: add a TB_CRC in the TB, where the TB_CRC is used. Performing a CRC check on the TB; determining a length corresponding to the TB after the TB_CRC is added; and determining, in the case that the length of the TB after the TB_CRC is added is less than or equal to a preset length, determining the TB after adding the TB_CRC as the coding block CB Adding a CB_CRC to the CB, the CB_CRC is used for performing CRC check on the CB, and encoding the CB after joining the CB_CRC.
  • the CB_CRC is also added to the TB, so that when the decoding end performs iterative decoding, whether the TB includes multiple CBs or only a single CB, only the CB_CRC can be performed. It is not necessary to use different CRC check modes according to whether the TB contains multiple CBs or a single CB as in the prior art. Therefore, the present application can enable the decoding end to implement decoding by using one type of decoder. And verification, reducing the complexity of the decoder hardware implementation at the decoding end.
  • the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  • the processor 930 is specifically configured to: after the TB corresponding to the TB_CRC is greater than the preset length, divide the TB after adding the TB_CRC into multiple a CB; the CB_CRC is added to each of the plurality of CBs; the encoding module is specifically configured to encode each CB after the CB_CRC is added.
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
  • FIG. 10 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application.
  • the decoding device 1000 of FIG. 10 includes:
  • the memory 1010 is configured to store a program.
  • the processor 1020 is configured to execute a program stored in the memory 1010. When the program in the memory 1010 is executed, the processor 1020 is specifically configured to: determine a length of the transport block TB to be decoded; Determining the length of the TB to be decoded determines the number of CBs included in the TB to be decoded;
  • the transceiver 1030 is configured to receive the TB to be decoded.
  • the processor 1020 is further configured to perform iterative decoding on the to-be-decoded TB and perform CB_CRC calibration on the data block obtained by each iteration in a case where the TB to be decoded includes only one CB.
  • the TB to be decoded includes a CB_CRC and a TB_CRC, and the CB_CRC is used for performing a CRC check on the CB, where the TB_CRC is used for performing CRC check on the TB;
  • the processor 1020 is further configured to perform a TB_CRC check on the data block obtained by the iterative decoding in the case that the data block obtained by the iterative decoding passes the CB_CRC check.
  • the TB to be decoded since the TB to be decoded includes only one CB, the TB to be decoded also includes the CB_CRC. Therefore, the CB_CRC check can also be directly used in decoding, instead of including according to the TB as in the prior art. Multiple CBs are still a single CB and adopt different CRC check methods. Therefore, the decoding end can realize decoding and verification by using one type of decoder, which reduces the complexity of decoder implementation at the decoding end. .
  • the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  • the processor 1020 is specifically configured to: when the length of the TB to be decoded is less than or equal to a preset length, determine that the to-be-decoded TB includes only one CB; In a case where the length of the TB to be decoded is greater than the preset length, it is determined that the to-be-decoded TB includes multiple CBs.
  • the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
  • the processor 1020 is specifically configured to perform iterative decoding on the to-be-decoded TB and perform iterative translation in a case where the TB to be coded includes multiple CBs.
  • Each of the plurality of data blocks obtained by the code performs a CB_CRC check; and in the case where each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the iterative decoding is performed.
  • the obtained plurality of data blocks are concatenated to obtain a TB including a TB_CRC; and the TB containing the TB_CRC is subjected to a TB_CRC check.
  • the present application provides an encoding apparatus including a storage medium and a central processing unit
  • the storage medium may be a non-volatile storage medium in which a computer executable program is stored
  • the central processing unit Connected to the non-volatile storage medium and performs the encoding method of the embodiment of the present application.
  • the encoding device here may specifically be a terminal device or a network device.
  • the present application provides a decoding apparatus, which includes a storage medium and a central processing unit, and the storage medium may be a non-volatile storage medium in which a computer executable program is stored, the central A processor is coupled to the non-volatile storage medium and executes the computer executable program to implement the decoding method of an embodiment of the present application.
  • the decoding device here may specifically be a terminal device or a network device.
  • the present application provides a chip including a processor and a communication interface for communicating with an external device for performing the encoding method of the embodiments of the present application.
  • the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is configured to perform the encoding method of the embodiment of the present application.
  • the chip is integrated on a terminal device or a network device.
  • the present application provides a chip including a processor and a communication interface for communicating with an external device for performing the decoding method of the embodiments of the present application.
  • the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is configured to perform the decoding method of the embodiments of the present application.
  • the chip is integrated on a terminal device or a network device.
  • the application provides a computer readable medium storing program code for device execution, the program code comprising instructions for performing the encoding method of an embodiment of the present application.
  • the application provides a computer readable medium storing program code for device execution, the program code comprising instructions for performing the decoding method of an embodiment of the present application.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Abstract

The present application provides a coding method, a decoding method, a coding device, and a decoding device. The coding method comprises: acquiring a transport block (TB); adding TB_CRC to the TB, the TB_CRC being configured to perform CRC on the TB; determining a corresponding length of the TB added with the TB_CRC; if the corresponding length of the TB added with the TB_CRC is less than or equal to a preset length, determining the TB added with the TB_CRC as a coding block (CB); adding CB_CRC to the CB, the CB_CRC being configured to perform CRC on the CB; and coding the CB added with the CB_CRC. The present application can reduce the complexity of hardware implementation at a decoding end.

Description

编码方法、译码方法、编码装置和译码装置Encoding method, decoding method, encoding device and decoding device
本申请要求于2017年08月10日提交中国专利局、申请号为201710680670.6、申请名称为“编码方法、译码方法、编码装置和译码装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on August 10, 2017, the Chinese Patent Office, the application number is 201710680670.6, and the application name is "encoding method, decoding method, encoding device and decoding device". The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,并且更具体地,涉及一种编码方法、译码方法、编码装置和译码装置。The present application relates to the field of communication technologies, and more particularly to an encoding method, a decoding method, an encoding device, and a decoding device.
背景技术Background technique
在LTE系统中,编码端对传输块(transport Block,TB)进行编码时,一般是先在TB中加入CRC校验位(TB_CRC),然后再判断加入TB_CRC校验位之后的TB对应的长度,然后根据加入TB_CRC后的TB对应的长度与预设长度的大小关系来确定后续的编码方式。如果加入TB_CRC后的TB对应的长度小于等于预设长度,那么,编码端不再对TB进行划分(此时TB相当于对应一个CB),而是直接对该TB进行编码;如果加入TB_CRC后的TB对应的长度大于预设长度,那么就需要将TB划分为多个编码块(code block,CB),并在多个CB中的每个CB加入相应的CRC校验位(CB_CRC)。In the LTE system, when the encoding end encodes a transport block (TB), the CRC check bit (TB_CRC) is generally added to the TB, and then the length corresponding to the TB after the TB_CRC check bit is added is determined. Then, according to the relationship between the length of the TB corresponding to the TB_CRC and the preset length, the subsequent coding mode is determined. If the length of the TB after the TB_CRC is added is less than or equal to the preset length, the coder does not divide the TB (in this case, the TB corresponds to a corresponding CB), but directly encodes the TB; if the TB_CRC is added If the length corresponding to the TB is greater than the preset length, then the TB needs to be divided into multiple code blocks (CBs), and the corresponding CRC check bits (CB_CRC) are added to each of the plurality of CBs.
相应的,译码端在对待译码的TB进行译码时需要针对不同的情况进行不同的校验处理,当TB没有被划分时,译码端在每次迭代译码时需要进行TB_CRC校验,而当TB被划分成多个CB时,译码端在每次迭代译码时需要进行CB_CRC校验。由于一种类型的译码器中一般只会嵌入一种类型的CRC校验模块。因此,针对上述两种情况,译码需要设置不同类型的译码器(一种译码器中嵌入CB_CRC校验模块,另一种译码器中嵌入TB_CRC校验模块),译码器一般是由复杂的硬件电路实现,因此,在译码端设置两种不同类型的译码器、并在不同类型的译码器之间切换会增加译码端的硬件实现的复杂度。Correspondingly, the decoding end needs to perform different check processing for different situations when decoding the TB to be decoded. When the TB is not divided, the decoding end needs to perform TB_CRC check every iteration decoding. When the TB is divided into multiple CBs, the decoding end needs to perform CB_CRC check every iteration decoding. Since only one type of CRC check module is embedded in one type of decoder. Therefore, for the above two cases, decoding needs to set different types of decoders (a CB_CRC check module is embedded in one decoder, and a TB_CRC check module is embedded in another decoder), and the decoder is generally It is implemented by a complicated hardware circuit. Therefore, setting two different types of decoders at the decoding end and switching between different types of decoders increases the complexity of the hardware implementation of the decoding end.
发明内容Summary of the invention
本申请提供一种编码方法、译码方法、编码装置和译码装置,以减少译码端硬件实现的复杂度。The present application provides an encoding method, a decoding method, an encoding device, and a decoding device to reduce the complexity of hardware implementation of the decoding end.
第一方面,提供了一种编码方法,该方法包括:获取传输块TB;在所述TB中加入TB_CRC,所述TB_CRC用于对TB进行CRC校验;确定加入TB_CRC后的TB对应的长度;在所述加入TB_CRC后的TB对应的长度小于等于预设长度的情况下,将所述加入TB_CRC后的TB确定为编码块CB;在所述CB中加入CB_CRC,所述CB_CRC用于对CB进行CRC校验;对加入所述CB_CRC后的CB进行编码。In a first aspect, an encoding method is provided, the method includes: acquiring a transport block TB; adding a TB_CRC to the TB, the TB_CRC is used for performing a CRC check on the TB; and determining a length corresponding to the TB after adding the TB_CRC; In the case that the length corresponding to the TB after the TB_CRC is added is less than or equal to the preset length, the TB after the TB_CRC is added is determined as the coding block CB; the CB_CRC is added to the CB, and the CB_CRC is used for the CB. CRC check; encodes the CB after joining the CB_CRC.
本申请中,当TB仅包含一个CB时,也在该TB中加入CB_CRC,这样,无论TB包含多个CB还是仅包含单个CB,译码端在迭代译码时均可以进行CB_CRC校验,而不 用像现有方案中那样在迭代译码时需要根据TB的不同情况(TB包含多个CB还是仅包含单个CB)采用不同的CRC校验方式(不同的CRC校验方式对应不同的译码器),因此,本申请中,译码端在迭代译码时采用一种类型的译码器即可,减小了译码端硬件实现的复杂度。In the present application, when the TB includes only one CB, the CB_CRC is also added to the TB, so that whether the TB includes multiple CBs or only a single CB, the decoding end can perform CB_CRC check in iterative decoding. It is not necessary to use different CRC check modes according to different situations of TB (TB contains multiple CBs or only a single CB) in iterative decoding as in the prior scheme (different CRC check modes correspond to different decoders) Therefore, in the present application, the decoding end uses a type of decoder in the iterative decoding, which reduces the complexity of the hardware implementation of the decoding end.
应理解,上述TB_CRC是用于对TB进行校验的CRC序列,CB_CRC是用于对CB进行校验的CRC序列。It should be understood that the above TB_CRC is a CRC sequence for checking the TB, and the CB_CRC is a CRC sequence for checking the CB.
结合第一方面,在第一方面的某些实现方式中,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。In conjunction with the first aspect, in some implementations of the first aspect, the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:在所述加入TB_CRC后的TB对应的长度大于所述预设长度的情况下,将所述加入TB_CRC后的TB划分为多个CB;在所述多个CB中的每个CB中加入所述CB_CRC;对加入所述CB_CRC后的每个CB进行编码。With reference to the first aspect, in some implementations of the first aspect, the method further includes: after the TB_CRC after the TB_CRC is added, the length of the TB is greater than the preset length, after adding the TB_CRC The TB is divided into a plurality of CBs; the CB_CRC is added to each of the plurality of CBs; and each CB after the CB_CRC is added is encoded.
结合第一方面,在第一方面的某些实现方式中,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 In conjunction with the first aspect, in some implementations of the first aspect, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
第二方面,提供了一种译码方法,该方法包括:确定待译码的传输块TB的长度;根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量;接收所述待译码的TB;在所述待译码的TB仅包含一个CB的情况下,对所述待译码TB进行迭代译码,并对每次迭代译码得到的数据块进行CB_CRC校验,其中,所述待译码的TB包含CB_CRC和TB_CRC,所述CB_CRC用于对CB进行CRC校验,所述TB_CRC用于对TB进行CRC校验;在迭代译码得到的数据块通过CB_CRC校验的情况下,对所述迭代译码得到的数据块进行TB_CRC校验。In a second aspect, a decoding method is provided, the method includes: determining a length of a transport block TB to be coded; determining a number of CBs included in the TB to be decoded according to the length of the TB to be decoded Receiving the TB to be decoded; if the TB to be decoded includes only one CB, performing iterative decoding on the TB to be decoded, and performing data block obtained by decoding each iteration CB_CRC check, wherein the TB to be decoded includes a CB_CRC and a TB_CRC, the CB_CRC is used for performing CRC check on the CB, and the TB_CRC is used for performing CRC check on the TB; In the case of CB_CRC check, the TB_CRC check is performed on the data block obtained by the iterative decoding.
本申请中,由于待译码的TB仅包含一个CB时,待译码的TB也包含CB_CRC,因此,当TB仅包含一个CB时,译码端在迭代译码时也可以进行CB_CRC校验,而不用像现有方案中那样需要在迭代译码时根据TB的不同情况(TB包含多个CB还是仅包含单个CB)采用不同的CRC校验方式,因此,在本申请中,译码端采用一种类型的译码器就可以实现对数据的迭代译码和校验,减小了译码端硬件实现的复杂度。In this application, since the TB to be decoded only includes one CB, the TB to be decoded also includes the CB_CRC. Therefore, when the TB includes only one CB, the decoding end can also perform CB_CRC check during iterative decoding. Instead of using different CRC check modes according to different situations of TB (TB includes multiple CBs or only a single CB) in iterative decoding, as in the prior art, therefore, in the present application, the decoding end adopts One type of decoder can realize iterative decoding and verification of data, which reduces the complexity of hardware implementation of the decoding end.
结合第二方面,在第二方面的某些实现方式中,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。In conjunction with the second aspect, in some implementations of the second aspect, the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
结合第二方面,在第二方面的某些实现方式中,根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量,包括:在所述待译码的TB对应的长度小于等于预设长度的情况下,确定所述待译码TB仅包含一个CB;在所述待译码的TB对应的长度大于所述预设长度的情况下,确定所述待译码TB包含多个CB。With reference to the second aspect, in some implementations of the second aspect, determining, according to the length of the TB to be coded, the number of CBs included in the TB to be coded, including: the TB to be decoded Determining that the to-be-decoded TB includes only one CB, and determining that the to-be-translated is performed if the length of the TB to be decoded is greater than the preset length. The code TB contains multiple CBs.
结合第二方面,在第二方面的某些实现方式中,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 With reference to the second aspect, in some implementations of the second aspect, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
结合第二方面,在第二方面的某些实现方式中,所述方法还包括:在所述待译码的TB包含多个CB的情况下,对所述待译码TB进行迭代译码,并对迭代译码得到的多个数据块中的每个数据块进行CB_CRC校验;在所述迭代译码得到的多个数据块中的每个数据块通过CB_CRC校验的情况下,对所述迭代译码得到的多个数据块进行串接,得到包含TB_CRC的TB;对所述包含TB_CRC的TB进行TB_CRC校验。With reference to the second aspect, in some implementations of the second aspect, the method further includes: performing iterative decoding on the TB to be decoded, where the TB to be coded includes multiple CBs, And performing CB_CRC check on each of the plurality of data blocks obtained by the iterative decoding; in the case that each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, The plurality of data blocks obtained by the iterative decoding are concatenated to obtain a TB including a TB_CRC; and the TB containing the TB_CRC is subjected to a TB_CRC check.
第三方面,提供了一种编码装置,所述编码装置包括用于执行所述第一方面或者其各种实现方式的模块。In a third aspect, an encoding apparatus is provided, the encoding apparatus comprising means for performing the first aspect or various implementations thereof.
第四方面,提供了一种译码装置,所述译码装置包括用于执行所述第二方面或者其各种实现方式的模块。In a fourth aspect, a decoding apparatus is provided, the decoding apparatus comprising means for performing the second aspect or various implementations thereof.
第五方面,提供一种编码装置,包括存储器、收发器和处理器,所述存储器用于存储程序,所述处理器用于执行程序,当所述程序被执行时,所述处理器和所述收发器执行所述第一方面或者第一方面的任一可能的实现方式中的方法。A fifth aspect provides an encoding apparatus including a memory, a transceiver for storing a program, and a processor for executing a program, when the program is executed, the processor and the The transceiver performs the method of the first aspect or any of the possible implementations of the first aspect.
所述编码装置具体可以是终端设备或者网络设备。The encoding device may specifically be a terminal device or a network device.
第六方面,提供一种译码装置,包括存储器、收发器和处理器,所述存储器用于存储程序,所述处理器用于执行程序,当所述程序被执行时,所述处理器和所述收发器执行所述第二方面或者第二方面的任一可能的实现方式中的方法。A sixth aspect provides a decoding apparatus including a memory, a transceiver for storing a program, and a processor for executing a program, when the program is executed, the processor and the The transceiver performs the method of the second aspect or any of the possible implementations of the second aspect.
所述译码装置具体可以是终端设备或者网络设备。The decoding device may specifically be a terminal device or a network device.
第七方面,提供一种编码装置,所述编码装置包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现所述第一方面或者第一方面的任一可能的实现方式中的方法。In a seventh aspect, an encoding apparatus is provided, the encoding apparatus comprising a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, wherein the storage medium stores a computer executable program, the central processing The apparatus is coupled to the non-volatile storage medium and executes the computer executable program to implement the method of the first aspect or any of the possible implementations of the first aspect.
所述编码装置具体可以是终端设备或者网络设备。The encoding device may specifically be a terminal device or a network device.
第八方面,提供一种译码装置,所述译码装置包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现所述第二方面或者第二方面的任一可能的实现方式中的方法。According to an eighth aspect, a decoding apparatus is provided, the decoding apparatus includes a storage medium and a central processing unit, and the storage medium may be a non-volatile storage medium, where the computer-executable program is stored in the storage medium, A central processing unit is coupled to the non-volatile storage medium and executes the computer-executable program to implement the method of the second aspect or any of the possible implementations of the second aspect.
所述译码装置具体可以是终端设备或者网络设备。The decoding device may specifically be a terminal device or a network device.
第九方面,提供一种芯片,所述芯片包括处理器与通信接口,所述通信接口用于与外部器件进行通信,所述处理器用于执行第一方面或第一方面的任一可能的实现方式中的方法。In a ninth aspect, a chip is provided, the chip comprising a processor and a communication interface, the communication interface for communicating with an external device, the processor for performing the first aspect or any possible implementation of the first aspect The method in the way.
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行第一方面或第一方面的任一可能的实现方式中的方法。Optionally, as an implementation manner, the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is for performing the method of the first aspect or any of the possible implementations of the first aspect.
可选地,作为一种实现方式,所述芯片集成在终端设备或者网络设备上。Optionally, as an implementation manner, the chip is integrated on a terminal device or a network device.
第十方面,提供一种芯片,所述芯片包括处理器与通信接口,所述通信接口用于与外部器件进行通信,所述处理器用于执行第二方面或第二方面的任一可能的实现方式中的方法。In a tenth aspect, a chip is provided, the chip comprising a processor and a communication interface, the communication interface for communicating with an external device, the processor for performing any of the possible implementations of the second aspect or the second aspect The method in the way.
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行第二方面或第二方面的任一可能的实现方式中的方法。Optionally, as an implementation manner, the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is for performing the method of any of the possible implementations of the second aspect or the second aspect.
可选地,作为一种实现方式,所述芯片集成在终端设备或者网络设备上。Optionally, as an implementation manner, the chip is integrated on a terminal device or a network device.
第十一方面,提供一种计算机可读存储介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行第一方面或第一方面的任一可能的实现方式中的方法的指令。In an eleventh aspect, a computer readable storage medium storing program code for device execution, the program code comprising any of the possible implementations for performing the first aspect or the first aspect The instructions of the method in the way.
第十二方面,提供一种计算机可读存储介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行第二方面或第二方面的任一可能的实现方式中的方法的指令。A twelfth aspect, a computer readable storage medium storing program code for device execution, the program code comprising any of the possible implementations for performing the second aspect or the second aspect The instructions of the method in the way.
附图说明DRAWINGS
图1是本申请实施例的一种可能的应用场景的示意图;1 is a schematic diagram of a possible application scenario of an embodiment of the present application;
图2是本申请实施例的编码方法的示意性流程图;2 is a schematic flowchart of an encoding method in an embodiment of the present application;
图3是本申请实施例中将TB划分成一个CB的示意图;3 is a schematic diagram of dividing a TB into a CB in the embodiment of the present application;
图4是本申请实施例中将TB划分成多个CB的示意图;4 is a schematic diagram of dividing a TB into multiple CBs in an embodiment of the present application;
图5是本申请实施例的译码方法的示意性流程图;FIG. 5 is a schematic flowchart of a decoding method according to an embodiment of the present application;
图6是现有的译码方法与本申请实施例的译码方法译码时的块差错率的示意图;6 is a schematic diagram of a block error rate when decoding a conventional decoding method and a decoding method according to an embodiment of the present application;
图7是本申请实施例的编码装置的示意性框图;FIG. 7 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application; FIG.
图8是本申请实施例的译码装置的示意性框图;FIG. 8 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application; FIG.
图9是本申请实施例的编码装置的示意性框图;FIG. 9 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application; FIG.
图10是本申请实施例的译码装置的示意性框图。FIG. 10 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通信(global system for mobile communications,GSM)系统、码分多址(code division multiple access,CDMA)系统、宽带码分多址(wideband code division multiple access,WCDMA)系统、通用分组无线业务(general packet radio service,GPRS)、长期演进(long term evolution,LTE)系统、LTE频分双工(frequency division duplex,FDD)系统、LTE时分双工(time division duplex,TDD)、通用移动通信系统(universal mobile telecommunication system,UMTS)、全球互联微波接入(worldwide interoperability for microwave access,WiMAX)通信系统、未来的第五代(5th generation,5G)系统或新无线(new radio,NR)等。The technical solution of the embodiment of the present application can be applied to various communication systems, for example, a global system for mobile communications (GSM) system, a code division multiple access (CDMA) system, and a wideband code division multiple access. (wideband code division multiple access, WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE Time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, future fifth generation (5th generation, 5G) system or new radio (NR).
本申请实施例中的终端设备可以指用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。终端设备还可以是蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,未来5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请实施例对此并不限定。The terminal device in the embodiment of the present application may refer to a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or User device. The terminal device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), with wireless communication. Functional handheld devices, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in future 5G networks, or in future public land mobile networks (PLMNs) The terminal device and the like are not limited in this embodiment of the present application.
本申请实施例中的网络设备可以是用于与终端设备通信的设备,该网络设备可以是全球移动通讯(global system for mobile communication,GSM)系统或码分多址(code division multiple access,CDMA)中的基站(base transceiver station,BTS),也可以是宽带码分多址(wideband code division multiple access,WCDMA)系统中的基站(nodeB,NB),还可以是LTE系统中的演进型基站(evolutional nodeB,eNB或eNodeB),还可以是云 无线接入网络(cloud radio access network,CRAN)场景下的无线控制器,或者该网络设备可以为中继站、接入点、车载设备、可穿戴设备以及未来5G网络中的网络设备或者未来演进的PLMN网络中的网络设备等,本申请实施例并不限定。The network device in the embodiment of the present application may be a device for communicating with a terminal device, and the network device may be a global system for mobile communication (GSM) system or code division multiple access (CDMA). A base transceiver station (BTS) may also be a base station (nodeB, NB) in a wideband code division multiple access (WCDMA) system, or an evolved base station (evolutional) in an LTE system. The node B, eNB or eNodeB) may also be a wireless controller in a cloud radio access network (CRAN) scenario, or the network device may be a relay station, an access point, an in-vehicle device, a wearable device, and a future. The network device in the 5G network or the network device in the PLMN network in the future is not limited in this embodiment.
图1是本申请实施例的一种可能的应用场景的示意图。图1中的通信系统包括网络设备和终端设备,该通信系统中的网络设备和终端设备之间可以通过控制信道或者数据信道传输控制信息或者数据信息。当网络设备向终端设备传输信息时,网络设备可以采用本申请实施例的编码方法对待传输的数据进行编码,然后将编码得到的数据传输给终端设备,终端设备在接收网络设备传输过来的数据后,可以采用本申请实施例的译码方法对接收到的数据进行译码,从而得到网络设备传输给终端设备的控制信息或者数据信息。类似地,终端设备也可以采用本申请实施例的编码方法对待传输的数据进行编码,然后将编码得到的数据传输给网络设备,网络设备在接收到终端设备传输过来的数据后,可以采用本申请实施例的译码方法对接收到的数据进行译码,从而得到终端设备传输给网络设备的控制信息或者数据信息。被编码或译码的数据可以是包括控制信息或者数据信息的各类数据。FIG. 1 is a schematic diagram of a possible application scenario of an embodiment of the present application. The communication system in FIG. 1 includes a network device and a terminal device, and control information or data information can be transmitted between the network device and the terminal device in the communication system through a control channel or a data channel. When the network device transmits the information to the terminal device, the network device may use the coding method of the embodiment of the present application to encode the data to be transmitted, and then transmit the encoded data to the terminal device, and the terminal device receives the data transmitted by the network device. The received data may be decoded by using the decoding method in the embodiment of the present application, thereby obtaining control information or data information transmitted by the network device to the terminal device. Similarly, the terminal device may also use the encoding method of the embodiment of the present application to encode the data to be transmitted, and then transmit the encoded data to the network device. After receiving the data transmitted by the terminal device, the network device may adopt the application. The decoding method of the embodiment decodes the received data to obtain control information or data information transmitted by the terminal device to the network device. The encoded or decoded data may be various types of data including control information or data information.
图2是本申请实施例的编码方法的示意性流程图。该方法200可以由编码端设备执行,该编码端设备具体可以是网络设备或者终端设备。FIG. 2 is a schematic flowchart of an encoding method in an embodiment of the present application. The method 200 can be performed by an encoding device, which can be a network device or a terminal device.
上述方法200具体包括:The method 200 above specifically includes:
210、获取TB。210. Obtain a TB.
这里的TB可以是从高层传输过来的TB。应理解,这里的方法200可以在物理层实现,而高层就是物理层之上的层,例如,高层可以是媒体介入控制(media access control,MAC)层。The TB here can be a TB transmitted from a higher layer. It should be understood that the method 200 herein may be implemented at the physical layer, and the upper layer is a layer above the physical layer. For example, the upper layer may be a media access control (MAC) layer.
另外,上述TB可以包含网络设备和终端设备之间通过数据信道传输的数据信息,或者网络设备和终端设备之间通过控制信道传输的控制信息。In addition, the foregoing TB may include data information transmitted between the network device and the terminal device through the data channel, or control information transmitted between the network device and the terminal device through the control channel.
220、在TB中加入TB_CRC,该TB_CRC用于对TB进行CRC校验。220. Add a TB_CRC to the TB, where the TB_CRC is used for performing CRC check on the TB.
如图3所示,TB_CRC可以加在TB的尾部。As shown in Figure 3, TB_CRC can be added to the end of the TB.
另外,上述TB_CRC是TB级别的CRC序列,该TB_CRC与TB对应,用于校验译码得到的TB是否准确。In addition, the TB_CRC is a CRC sequence of TB level, and the TB_CRC corresponds to the TB, and is used to check whether the TB obtained by the decoding is accurate.
230、确定加入TB_CRC后的TB对应的长度;230. Determine a length corresponding to the TB after joining the TB_CRC.
应理解,加入TB_CRC后的TB对应的长度是TB的长度与TB_CRC的长度的和。It should be understood that the length corresponding to the TB after the TB_CRC is added is the sum of the length of the TB and the length of the TB_CRC.
240、在加入TB_CRC后的TB对应的长度小于等于预设长度的情况下,将加入TB_CRC后的TB确定为编码块CB。240. If the length of the TB after the TB_CRC is added is less than or equal to the preset length, the TB after the TB_CRC is added is determined as the coding block CB.
可选地,步骤240中的预设长度为K max-L CB_CRC,具体地,当K max的取值分别为6114或者8448时,步骤240中的预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为CB_CRC的长度。 Optionally, the preset length in step 240 is K max -L CB_CRC . Specifically, when the value of K max is 6114 or 8448 respectively, the preset length in step 240 is 6114-L CB_CRC or 8448-L. CB_CRC , where L CB_CRC is the length of the CB_CRC.
假设TB的长度为A,TB_CRC的长度为L TB_CRC,那么,加入TB_CRC后的TB对应的长度为B,其中,B=A+L TB_CRCAssuming that the length of the TB is A and the length of the TB_CRC is L TB_CRC , then the length of the TB after the TB_CRC is added is B, where B=A+L TB_CRC .
当B≤K max-L CB_CRC时,可以认为TB的长度较小,此时,可以将加入TB_CRC后的TB直接划分成一个CB,也就是将加入TB_CRC后的TB直接确定为CB。 When B ≤ K max - L CB_CRC , the length of the TB can be considered to be small. In this case, the TB after the TB_CRC is added can be directly divided into one CB, that is, the TB after the TB_CRC is added is directly determined as CB.
应理解,在现有方案中,预设长度为K max,而在本申请中,预设长度为K max-L CB_CRCIt should be understood that in the prior art, the preset length is K max , and in the present application, the preset length is K max -L CB_CRC .
在本申请中,无论TB被划分成一个CB还是被划分成多个CB,在每个CB中都要加 入CB_CRC,考虑到输入到编码器的数据块的长度要小于K max,因此,对于只加入了TB_CRC而还未加入CB_CRC的TB的长度要小于等于K max-L CB_CRC时才会将TB划分成一个CB,否则要将TB划分成多个CB。因此,本申请中的预设长度与现有方案中的预设长度不同。 In the present application, whether the TB is divided into one CB or divided into multiple CBs, CB_CRC is added in each CB, considering that the length of the data block input to the encoder is smaller than K max , therefore, for only The TB is divided into one CB when the length of the TB to which the TB_CRC is added and the CB_CRC has not been added is less than or equal to K max - L CB_CRC , otherwise the TB is divided into a plurality of CBs. Therefore, the preset length in the present application is different from the preset length in the existing scheme.
250、在CB中加入CB_CRC,该CB_CRC用于对CB进行校验。250. Add CB_CRC to the CB, and the CB_CRC is used to check the CB.
应理解,上述CB_CRC是CB级别的CRC序列,该CB_CRC与CB对应,用于校验译码得到的CB是否准确。It should be understood that the above CB_CRC is a CB level CRC sequence, and the CB_CRC corresponds to the CB, and is used to check whether the decoded CB is accurate.
具体地,如图3所示,当加入TB_CRC后的TB对应的长度小于预设长度时,将加入TB_CRC后的TB直接划分成一个CB,也就是相当于直接将加入TB_CRC后的TB的确定为CB(如图3所示,该CB包含TB和TB_CRC),接下来在该CB中加入CB_CRC(如图3所示,CB_CRC可以位于CB的尾部),从而得到了既包含TB_CRC又包含CB_CRC的CB。Specifically, as shown in FIG. 3, when the length of the TB after the TB_CRC is added is less than the preset length, the TB after the TB_CRC is added is directly divided into one CB, that is, the TB corresponding to the TB_CRC is directly determined as CB (as shown in Figure 3, the CB contains TB and TB_CRC), and then CB_CRC is added to the CB (as shown in Figure 3, the CB_CRC can be located at the end of the CB), resulting in a CB containing both TB_CRC and CB_CRC. .
可选地,上述CB_CRC和上述TB_CRC可以是基于不同的CRC多项式生成的。Alternatively, the above CB_CRC and the above TB_CRC may be generated based on different CRC polynomials.
当采用基于不同的CRC多项式生成的CB_CRC和TB_CRC进行CRC校验时,相当于采用了不同的校验方式来分别校验CB和TB,能够提高CRC校验的准确性。When CB_CRC and TB_CRC generated based on different CRC polynomials are used for CRC check, it is equivalent to using different check methods to separately check CB and TB, which can improve the accuracy of CRC check.
例如,上述TB_CRC可以是基于多项式(1)生成的,而上述CB_CRC可以是基于多项式(2)生成的。For example, the above TB_CRC may be generated based on the polynomial (1), and the above CB_CRC may be generated based on the polynomial (2).
g CRC(D)=D 24+D 23+D 18+D 17+D 14+D 11+D 10+D 7+D 6+D 5+D 4+D 3+D+1       (1) g CRC (D)=D 24 +D 23 +D 18 +D 17 +D 14 +D 11 +D 10 +D 7 +D 6 +D 5 +D 4 +D 3 +D+1 (1)
g CRC(D)=D 24+D 23+D 6+D 5+D+1                (2) g CRC (D)=D 24 +D 23 +D 6 +D 5 +D+1 (2)
另外,上述TB_CRC也可以是基于多项式(3)生成,而CB_CRC可以是基于多项式(4)生成的。In addition, the above TB_CRC may also be generated based on the polynomial (3), and the CB_CRC may be generated based on the polynomial (4).
g CRC(D)=D 16+D 12+D 5+1                  (3) g CRC (D)=D 16 +D 12 +D 5 +1 (3)
g CRC(D)=D 8+D 7+D 4+D 3+D+1                 (4) g CRC (D)=D 8 +D 7 +D 4 +D 3 +D+1 (4)
260、对加入CB_CRC后的CB进行编码。260. Encode the CB after adding the CB_CRC.
应理解,步骤260中的加入CB_CRC后的CB既包含TB_CRC又包含CB_CRC,这样,译码端在对相应的TB进行译码时可以进行CB_CRC校验。It should be understood that the CB after the CB_CRC is added in step 260 includes both the TB_CRC and the CB_CRC, so that the decoding end can perform CB_CRC check when decoding the corresponding TB.
本申请中,当TB仅包含一个CB时,也在该TB中加入CB_CRC,这样,无论TB包含多个CB还是仅包含单个CB,译码端在进行迭代译码时均可以进行CB_CRC校验,而不用像现有方案中那样在迭代译码时需要根据TB的不同情况(TB包含多个CB还是仅包含单个CB)采用不同的CRC校验方式,而不同的CRC校验方式对应不同的译码器。因此,在本申请中,译码端在迭代译码时采用一种类型的译码器即可,减小了译码端的译码器硬件实现的复杂度。In the present application, when the TB includes only one CB, the CB_CRC is also added to the TB, so that whether the TB includes multiple CBs or only a single CB, the decoding end can perform CB_CRC check when performing iterative decoding. Instead of using iterative decoding as in the prior art, it is necessary to adopt different CRC check modes according to different situations of TB (TB contains multiple CBs or only a single CB), and different CRC check modes correspond to different translations. Code. Therefore, in the present application, the decoding end can use one type of decoder in iterative decoding, which reduces the complexity of the decoder hardware implementation at the decoding end.
具体地,在现有的方案中,当TB的长度较长时,需要将TB划分成多个CB,并在各个CB中加入CB_CRC,而当TB的长度较短时,直接将TB划分成一个CB,并且不在CB中增加CB CRC(这时该CB中仅包含TB_CRC),这样当译码端进行迭代译码时可能需要采用不同类型的CRC校验(CB_CRC校验和TB_CRC校验)。而在本申请中,当TB的长度较短时,直接将TB划分成一个CB,并且在该CB中也增加CB_CRC,这样就使得译码端在迭代译码时只需要采用CB_CRC校验即可,避免了在译码端设置不同类型的译码器,简化了译码端的实现的复杂度。Specifically, in the existing solution, when the length of the TB is long, the TB needs to be divided into multiple CBs, and the CB_CRC is added to each CB, and when the length of the TB is short, the TB is directly divided into one. CB, and does not increase the CB CRC in the CB (in this case, only the TB_CRC is included in the CB), so that different types of CRC check (CB_CRC checksum TB_CRC check) may be required when the decoder performs iterative decoding. In the present application, when the length of the TB is short, the TB is directly divided into one CB, and the CB_CRC is also added in the CB, so that the decoding end only needs to adopt the CB_CRC check in iterative decoding. It avoids setting different types of decoders on the decoding end, which simplifies the complexity of the implementation of the decoding end.
可选地,在对加入CB_CRC后的CB进行编码时可以采用前向纠错FEC编码器。具体地,在对加入CB_CRC后的CB进行编码时可以采用低密度校验(low density parity check,LDPC)编码器或Turbo编码器。相应的,译码端在译码时需要采用与编码端对应类型的译码器进行译码。Alternatively, a forward error correction FEC encoder may be employed when encoding the CB after the CB_CRC is added. Specifically, a low density parity check (LDPC) encoder or a Turbo encoder may be used when encoding the CB after the CB_CRC is added. Correspondingly, the decoding end needs to use a decoder of a type corresponding to the encoding end for decoding during decoding.
可选地,上述方法200还包括:在加入TB_CRC后的TB对应的长度大于预设长度的情况下,将加入TB_CRC后的TB划分为多个CB;在多个CB中的每个CB中加入CB_CRC;对加入CB_CRC后的每个CB进行编码。Optionally, the method 200 further includes: dividing a TB after adding the TB_CRC into multiple CBs, where the length of the TB corresponding to the TB_CRC is greater than a preset length; adding in each CB of the multiple CBs CB_CRC; encodes each CB after the CB_CRC is added.
具体地,如图4所示,当加入TB_CRC后的TB对应的长度大于预设长度时,将加入TB_CRC后的TB划分为五个CB,并在每个CB中加入CB_CRC,接下来再对每个加入CB_CRC之后的CB进行前向纠错编码(FEC Encoding)。Specifically, as shown in FIG. 4, when the length corresponding to the TB after adding the TB_CRC is greater than the preset length, the TB after the TB_CRC is added is divided into five CBs, and the CB_CRC is added to each CB, and then each The CB after the CB_CRC is added for forward error correction coding (FEC Encoding).
应理解,上述图4中将加入TB_CRC后的TB划分为五个CB仅仅是一个具体的实例,实际上,当TB为不同的长度时,还可以将加入TB_CRC后的TB划分为其它数量的CB。It should be understood that dividing the TB after adding the TB_CRC into five CBs in FIG. 4 is only a specific example. In fact, when the TBs are of different lengths, the TB after adding the TB_CRC can also be divided into other numbers of CBs. .
应理解,在方法200中,当TB的长度较长(加入TB_CRC后的TB对应的长度大于预设长度)时,会将TB划分成多个CB,并在多个CB中的每个CB中加入CB_CRC。It should be understood that in the method 200, when the length of the TB is long (the length corresponding to the TB after adding the TB_CRC is greater than the preset length), the TB is divided into a plurality of CBs, and in each of the plurality of CBs Join the CB_CRC.
也就是说,在方法200中,无论TB的长度较短(加入TB_CRC后的TB对应的长度小于等于预设长度)还是TB的长度较长(加入TB_CRC后的TB对应的长度大于预设长度),本申请都会在对TB划分得到的CB中加入CB_CRC。也就是说,无论将TB划分成单个CB还是将TB划分成多个CB,本申请都会对TB划分得到的CB中加入CB_CRC,这样就使得译码端无论在对什么样的待译码的TB进行迭代译码时均可以采用CB_CRC校验。That is, in the method 200, whether the length of the TB is short (the length corresponding to the TB after adding the TB_CRC is less than or equal to the preset length) or the length of the TB is long (the length corresponding to the TB after the TB_CRC is added is greater than the preset length) In this application, the CB_CRC is added to the CB obtained by dividing the TB. That is to say, whether the TB is divided into a single CB or the TB is divided into multiple CBs, the present application adds a CB_CRC to the CB obtained by the TB partition, so that the decoding end is in any TB to be decoded. CB_CRC check can be used for iterative decoding.
上文描述了本申请实施例的编码方法,下面结合图5对本申请实施例的译码方法进行描述,应理解,本申请实施例的译码方法与本申请实施例的编码方法相对应的,本申请实施例的译码方法可以对本申请实施例的编码得到的数据进行译码,得到最终的数据。The encoding method of the embodiment of the present application is described above. The decoding method of the embodiment of the present application is described below with reference to FIG. 5. It should be understood that the decoding method of the embodiment of the present application corresponds to the encoding method of the embodiment of the present application. The decoding method of the embodiment of the present application can decode the data obtained by the encoding in the embodiment of the present application to obtain final data.
图5是本申请实施例的译码方法的示意性流程图。该方法500可以由译码端设备执行。该编码端设备具体可以是网络设备或者终端设备。FIG. 5 is a schematic flowchart of a decoding method according to an embodiment of the present application. The method 500 can be performed by a decoding end device. The encoding end device may specifically be a network device or a terminal device.
该方法500具体包括:The method 500 specifically includes:
510、确定待译码的TB的长度。510. Determine a length of the TB to be decoded.
可选地,当上述方法500由译码端设备执行时,译码端设备可以通过编码端设备发送的控制信息来确定待译码的TB的长度。Optionally, when the foregoing method 500 is performed by the decoding end device, the decoding end device may determine the length of the TB to be decoded by using the control information sent by the encoding end device.
具体地,译码端设备可以通过译码端设备和编码端设备之间的控制信道获取控制信息,然后根据控制信息查表获取待译码的TB的长度。Specifically, the decoding end device may acquire control information by using a control channel between the decoding end device and the encoding end device, and then obtain a length of the TB to be decoded according to the control information lookup table.
520、根据待译码的TB的长度确定待译码的TB包含的CB的数量。520. Determine, according to the length of the TB to be decoded, the number of CBs included in the TB to be decoded.
应理解,译码端在根据待译码的TB的长度确定待译码的TB包含的CB的数量时可以采用与编码端相同的方式。It should be understood that the decoding end may adopt the same manner as the encoding end when determining the number of CBs included in the TB to be decoded according to the length of the TB to be decoded.
可选地,根据待译码的TB的长度确定待译码的TB包含的CB的数量,包括:待译码的TB的长度小于等于预设长度的情况下,确定待译码的TB仅包含一个CB;在待译码的TB的长度大于预设长度的情况下,确定待译码TB包含多个CB。Optionally, determining, according to the length of the TB to be coded, the number of CBs included in the TB to be coded, including: if the length of the TB to be coded is less than or equal to a preset length, determining that the TB to be decoded only includes a CB; if the length of the TB to be decoded is greater than a preset length, it is determined that the TB to be decoded includes a plurality of CBs.
应理解,这里的预设长度为K max-L CB_CRC,具体地,当K max的取值分别为6114或者8448时,预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为CB_CRC的长度。 It should be understood that the preset length here is K max -L CB_CRC . Specifically, when the value of K max is 6114 or 8448 respectively, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is The length of the CB_CRC.
应理解,在现有方案中,预设长度为K max,而在本申请中,预设长度为K max-L CB_CRCIt should be understood that in the prior art, the preset length is K max , and in the present application, the preset length is K max -L CB_CRC .
应理解,这里的待译码的TB的长度可以是TB的长度与TB_CRC的长度的和。译码端可以根据TB的长度以及TB_CRC的长度来确定待译码的TB的长度,然后再根据待译码的TB的长度与预设长度的关系来确定TB包含的CB的数量。It should be understood that the length of the TB to be decoded herein may be the sum of the length of the TB and the length of the TB_CRC. The decoding end may determine the length of the TB to be decoded according to the length of the TB and the length of the TB_CRC, and then determine the number of CBs included in the TB according to the relationship between the length of the TB to be decoded and the preset length.
具体地,假设TB的长度为A,TB_CRC的长度为L TB_CRC,那么,待译码的TB的长度为B,其中,B=A+L TB_CRC。如果B≤K max-L CB_CRC,那么,待译码的TB仅包含一个CB,如果B>K max-L CB_CRC,那么,待译码的TB包含多个CB。 Specifically, assuming that the length of the TB is A and the length of the TB_CRC is L TB_CRC , then the length of the TB to be decoded is B, where B=A+L TB_CRC . If B ≤ K max - L CB_CRC , then the TB to be coded contains only one CB, and if B > K max - L CB_CRC , then the TB to be decoded contains a plurality of CBs.
530、接收待译码的TB。530. Receive a TB to be decoded.
在接收待译码的TB时可以先进行解速率匹配,然后再接收待译码的TB。When receiving the TB to be decoded, the de-rate matching may be performed first, and then the TB to be decoded is received.
540、在待译码的TB仅包含一个CB的情况下,对待译码TB进行迭代译码,并对每次迭代译码得到的数据块进行CB_CRC校验。540. In a case where the TB to be decoded includes only one CB, the TB to be decoded is iteratively decoded, and the data block obtained by each iteration is subjected to CB_CRC check.
在步骤540中,待译码的TB包含TB_CRC和CB_CRC,其中,TB_CRC是TB级别的CRC序列,该TB_CRC与TB对应,用于校验译码得到的TB是否准确,CB_CRC是CB级别的CRC序列,该CB_CRC与CB对应,用于校验译码得到的CB是否准确。In step 540, the TB to be decoded includes a TB_CRC and a CB_CRC, wherein the TB_CRC is a CRC sequence of TB level, the TB_CRC is corresponding to the TB, and is used to check whether the TB obtained by the decoding is accurate, and the CB_CRC is a CB level CRC sequence. The CB_CRC corresponds to the CB, and is used to check whether the CB obtained by the decoding is accurate.
应理解,上述CB_CRC和TB_CRC可以是基于不同的CRC多项式生成的。It should be understood that the above CB_CRC and TB_CRC may be generated based on different CRC polynomials.
例如,TB_CRC可以是基于上述多项式(1)或(3)生成的,而CB_CRC可以是基于上述多项式(2)或(4)生成的。For example, the TB_CRC may be generated based on the above polynomial (1) or (3), and the CB_CRC may be generated based on the above polynomial (2) or (4).
应理解,在对CB进行译码时可以采用FEC译码器,具体地,还可以采用LDPC译码器,Turbo译码器等等,只要与编码端的编码器类型相对应即可。It should be understood that the FEC decoder may be used when decoding the CB. Specifically, an LDPC decoder, a Turbo decoder, etc. may be used as long as it corresponds to the encoder type of the encoding end.
另外,在对待译码的TB进行迭代译码时相当于对待译码的TB进行多次译码,并对每次译码得到的结果进行CB_CRC校验,直到迭代译码的结果满足CB_CRC校验才得到TB。或者,当迭代译码的次数超过预定次数后,如果仍然没有满足CB_CRC校验,那么就上报译码错误。In addition, when iteratively decoding the TB to be decoded, it is equivalent to performing multiple decodings on the TB to be decoded, and performing CB_CRC check on the result of each decoding until the result of the iterative decoding satisfies the CB_CRC check. Only get TB. Alternatively, when the number of iterative decodings exceeds a predetermined number of times, if the CB_CRC check is still not satisfied, a decoding error is reported.
550、在迭代译码得到的数据块通过CB_CRC校验的情况下,对迭代译码得到的数据块进行TB_CRC校验。550. Perform a TB_CRC check on the data block obtained by the iterative decoding in the case that the data block obtained by the iterative decoding passes the CB_CRC check.
本申请中,由于待译码的TB仅包含一个CB时,待译码的TB也包含CB_CRC,因此,在译码时也可以直接采用CB_CRC校验,而不用像现有方案中那样根据TB包含多个CB还是单个CB而采用不同的CRC校验方式,因此,译码端采用一种类型的译码器就可以实现译码和校验,减小了译码端的译码器实现的复杂度。In the present application, since the TB to be decoded includes only one CB, the TB to be decoded also includes the CB_CRC. Therefore, the CB_CRC check can also be directly used in decoding, instead of including according to the TB as in the prior art. Multiple CBs are still a single CB and adopt different CRC check methods. Therefore, the decoding end can realize decoding and verification by using one type of decoder, which reduces the complexity of decoder implementation at the decoding end. .
可选地,作为一个实施例,上述方法800还包括:在待译码的TB包含多个CB的情况下,对待译码TB进行迭代译码,并对迭代译码得到的多个数据块中的每个数据块进行CB_CRC校验;在迭代译码得到的多个数据块中的每个数据块通过CB_CRC校验的情况下,对迭代译码得到的多个数据块进行串接,得到包含TB_CRC的TB;对包含TB_CRC的TB进行TB_CRC校验。Optionally, as an embodiment, the foregoing method 800 further includes: if the TB to be coded includes multiple CBs, iteratively decoding the TB to be decoded, and decoding the iteratively into the plurality of data blocks Each data block performs a CB_CRC check; in the case where each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the plurality of data blocks obtained by the iterative decoding are concatenated to obtain the inclusion TB of TB_CRC; TB_CRC check for TB containing TB_CRC.
也就是说,在方法500中,无论待译码的TB包含多个CB还是仅包含单个CB,本申请都会在对待译码的TB进行译码时都进行CB_CRC校验,因此,译码端采用一种类型的译码器就可以实现译码和校验,减小了译码端的译码器实现的复杂度。That is, in the method 500, whether the TB to be decoded includes multiple CBs or only a single CB, the present application performs CB_CRC check when decoding the TB to be decoded. Therefore, the decoding end adopts A type of decoder can implement decoding and verification, which reduces the complexity of the decoder implementation at the decoding end.
下面结合图6对本申请实施例的译码方法与现有方案的译码方法的效果进行比较。具体地,当待译码的TB仅包含单个CB时,采用本申请实施例的译码方法在对待译码的TB 进行译码时是采用8位CB_CRC在每次迭代译码时进行CB_CRC校验,当译码结果通过CB_CRC校验时,得到TB,接下来采用8位TB_CRC对得到的TB进行TB_CRC校验,如果满足TB_CRC校验的话就得到最终的TB。当待译码的TB仅包含单个CB时,采用现有方案中的译码方法对待译码的TB进行译码时是直接采用16位的TB_CRC在每次迭代译码时进行校验,如果译码得到的TB满足TB_CRC校验的话,那么得到最终的TB。The effect of the decoding method of the embodiment of the present application and the decoding method of the prior art is compared with FIG. 6 below. Specifically, when the TB to be coded only includes a single CB, the decoding method of the embodiment of the present application uses the 8-bit CB_CRC to perform CB_CRC check at each iterative decoding when decoding the TB to be decoded. When the decoding result passes the CB_CRC check, the TB is obtained, and then the TB_CRC is checked by the 8-bit TB_CRC, and if the TB_CRC check is satisfied, the final TB is obtained. When the TB to be coded only includes a single CB, the TB to be decoded by the decoding method in the existing scheme is directly used to verify the TB_CRC of 16 bits in each iterative decoding. If the TB obtained by the code satisfies the TB_CRC check, then the final TB is obtained.
图6示出了当待译码的TB仅包含单个CB时,采用本申请实施例的译码方法进行译码的块差错率与采用现有方案中的译码方法进行译码的块差错率。由图6可知,本申方案的译码时块差错率的变化曲线与现有方案译码时的块差错率的变化曲线非常接近,因此,采用本申请实施例的译码方法进行译码的失败概率与采用现有方案的译码方法进行译码的失败概率基本相同,因此,本申请实施例的译码方法在减少译码器硬件实现复杂度的同时还能够取得与现有方案基本相同的效果。FIG. 6 shows a block error rate for decoding using the decoding method of the embodiment of the present application when the TB to be coded includes only a single CB, and a block error rate for decoding by using the decoding method in the prior art. . It can be seen from FIG. 6 that the change curve of the block error rate during decoding in the present scheme is very close to the change curve of the block error rate in the prior art decoding. Therefore, the decoding method of the embodiment of the present application is used for decoding. The failure probability is basically the same as the failure probability of decoding by using the decoding method of the existing scheme. Therefore, the decoding method of the embodiment of the present application can achieve the same complexity as the decoder hardware while achieving the same complexity as the existing scheme. Effect.
上文结合图1至图6对本申请实施例的编码方法和译码方法进行了详细的描述。下面结合图7至图10对本申请实施例的编码装置和译码装置进行描述,应理解,图7至图10中的编码装置和解码装置是与上文中的本申请实施例的编码方法和译码方法分别对应的,并且图7至图10中的编码装置可以执行本申请实施例的编码方法,图7至图10中的译码装置可以执行本申请实施例的译码方法,为了简洁,下面适当省略重复的描述。The encoding method and the decoding method of the embodiments of the present application are described in detail above with reference to FIG. 1 to FIG. 6. The encoding apparatus and the decoding apparatus of the embodiments of the present application are described below with reference to FIG. 7 to FIG. 10. It should be understood that the encoding apparatus and the decoding apparatus in FIG. 7 to FIG. 10 are the encoding method and translation of the above-mentioned embodiment of the present application. The coding methods are respectively corresponding, and the coding apparatus in FIG. 7 to FIG. 10 can perform the coding method in the embodiment of the present application. The decoding apparatus in FIG. 7 to FIG. 10 can perform the decoding method in the embodiment of the present application. The repeated description is omitted as appropriate below.
图7是本申请实施例的编码装置的示意性框图。图7的编码装置700包括:FIG. 7 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application. The encoding device 700 of Figure 7 includes:
获取模块710,用于获取传输块TB;An obtaining module 710, configured to acquire a transport block TB;
处理模块720,用于在所述TB中加入TB_CRC,所述TB_CRC用于对TB进行CRC校验;The processing module 720 is configured to add a TB_CRC to the TB, where the TB_CRC is used for performing a CRC check on the TB.
所述处理模块720还用于确定加入TB_CRC后的TB对应的长度;The processing module 720 is further configured to determine a length corresponding to the TB after joining the TB_CRC;
所述处理模块720还用于在所述加入TB_CRC后的TB对应的长度小于等于预设长度的情况下,将所述加入TB_CRC后的TB确定为编码块CB;The processing module 720 is further configured to determine, after the TB_CRC is TB_CRC, the length of the TB is less than or equal to a preset length, and determine the TB after adding the TB_CRC as the coding block CB;
所述处理模块720还用于在所述CB中加入CB_CRC,所述CB_CRC用于对CB进行CRC校验;The processing module 720 is further configured to add a CB_CRC in the CB, where the CB_CRC is used to perform CRC check on the CB;
编码模块730,用于对加入所述CB_CRC后的CB进行编码。The encoding module 730 is configured to encode the CB after joining the CB_CRC.
本申请中,当TB仅包含一个CB时,也在该TB中加入CB_CRC,这样当译码端进行迭代译码时,无论TB是包含多个CB还是仅包含单个CB,均可以只进行CB_CRC校验,而不用像现有方案中那样根据TB包含多个CB还是单个CB而采用不同的CRC校验方式,因此,本申请能够使得译码端采用一种类型的译码器就可以实现译码和校验,减小了译码端的译码器硬件实现的复杂度。In the present application, when the TB includes only one CB, the CB_CRC is also added to the TB, so that when the decoding end performs iterative decoding, whether the TB includes multiple CBs or only a single CB, only the CB_CRC can be performed. It is not necessary to use different CRC check modes according to whether the TB contains multiple CBs or a single CB as in the prior art. Therefore, the present application can enable the decoding end to implement decoding by using one type of decoder. And verification, reducing the complexity of the decoder hardware implementation at the decoding end.
可选地,作为一个实施例,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。Optionally, as an embodiment, the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
可选地,作为一个实施例,所述处理模块720具体用于:在所述加入TB_CRC后的TB对应的长度大于所述预设长度的情况下,将所述加入TB_CRC后的TB划分为多个CB;在所述多个CB中的每个CB中加入所述CB_CRC;所述编码模块具体用于对加入所述CB_CRC后的每个CB进行编码。Optionally, in an embodiment, the processing module 720 is specifically configured to: after the TB corresponding to the TB_CRC is greater than the preset length, divide the TB after adding the TB_CRC into multiple a CB; the CB_CRC is added to each of the plurality of CBs; the encoding module is specifically configured to encode each CB after the CB_CRC is added.
可选地,作为一个实施例,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 Optionally, as an embodiment, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
图8是本申请实施例的译码装置的示意性框图。图8的译码装置800包括:FIG. 8 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application. The decoding device 800 of Figure 8 includes:
确定模块810,确定待译码的传输块TB的长度;a determining module 810, determining a length of the transport block TB to be decoded;
所述确定模块810还用于根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量;The determining module 810 is further configured to determine, according to the length of the TB to be coded, the number of CBs included in the TB to be decoded;
接收模块820,用于接收所述待译码的TB;The receiving module 820 is configured to receive the TB to be decoded;
处理模块830,用于在所述待译码的TB仅包含一个CB的情况下,对所述待译码TB进行迭代译码,并对每次迭代译码得到的数据块进行CB_CRC校验,其中,所述待译码的TB包含CB_CRC和TB_CRC,所述CB_CRC用于对CB进行CRC校验,所述TB_CRC用于对TB进行CRC校验;The processing module 830 is configured to perform iterative decoding on the to-be-decoded TB and perform CB_CRC verification on the data block obtained by each iteration, in a case where the TB to be decoded includes only one CB, The TB to be decoded includes a CB_CRC and a TB_CRC, and the CB_CRC is used for performing a CRC check on the CB, where the TB_CRC is used for performing CRC check on the TB;
所述处理模块830还用于在迭代译码得到的数据块通过CB_CRC校验的情况下,对所述迭代译码得到的数据块进行TB_CRC校验。The processing module 830 is further configured to perform TB_CRC check on the data block obtained by the iterative decoding in the case that the data block obtained by the iterative decoding passes the CB_CRC check.
本申请中,由于待译码的TB仅包含一个CB时,待译码的TB也包含CB_CRC,因此,在译码时也可以直接采用CB_CRC校验,而不用像现有方案中那样根据TB包含多个CB还是单个CB而采用不同的CRC校验方式,因此,译码端采用一种类型的译码器就可以实现译码和校验,减小了译码端的译码器实现的复杂度。In the present application, since the TB to be decoded includes only one CB, the TB to be decoded also includes the CB_CRC. Therefore, the CB_CRC check can also be directly used in decoding, instead of including according to the TB as in the prior art. Multiple CBs are still a single CB and adopt different CRC check methods. Therefore, the decoding end can realize decoding and verification by using one type of decoder, which reduces the complexity of decoder implementation at the decoding end. .
可选地,作为一个实施例,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。Optionally, as an embodiment, the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
可选地,作为一个实施例,所述确定模块810具体用于:在所述待译码的TB的长度小于等于预设长度的情况下,确定所述待译码TB仅包含一个CB;在所述待译码的TB的长度大于所述预设长度的情况下,确定所述待译码TB包含多个CB。Optionally, as an embodiment, the determining module 810 is specifically configured to: when the length of the TB to be decoded is less than or equal to a preset length, determine that the to-be-decoded TB includes only one CB; In a case where the length of the TB to be decoded is greater than the preset length, it is determined that the to-be-decoded TB includes multiple CBs.
可选地,作为一个实施例,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 Optionally, as an embodiment, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
可选地,作为一个实施例,所述处理模块830具体用于:在所述待译码的TB包含多个CB的情况下,对所述待译码TB进行迭代译码,并对迭代译码得到的多个数据块中的每个数据块进行CB_CRC校验;在所述迭代译码得到的多个数据块中的每个数据块通过CB_CRC校验的情况下,对所述迭代译码得到的多个数据块进行串接,得到包含TB_CRC的TB;对所述包含TB_CRC的TB进行TB_CRC校验。Optionally, as an embodiment, the processing module 830 is specifically configured to perform iterative decoding on the to-be-decoded TB and perform iterative translation in a case where the TB to be coded includes multiple CBs. Each of the plurality of data blocks obtained by the code performs a CB_CRC check; and in the case where each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the iterative decoding is performed. The obtained plurality of data blocks are concatenated to obtain a TB including a TB_CRC; and the TB containing the TB_CRC is subjected to a TB_CRC check.
图9是本申请实施例的编码装置的示意性框图。图9的编码装置900包括:FIG. 9 is a schematic block diagram of an encoding apparatus according to an embodiment of the present application. The encoding device 900 of Figure 9 includes:
存储器910,用于存储程序。The memory 910 is configured to store a program.
收发器920,用于获取传输块TB;a transceiver 920, configured to acquire a transport block TB;
处理器930,用于执行所述存储器910中存储的程序,当所述存储器910中的程序被执行时,所述处理器930具体用于:在所述TB中加入TB_CRC,所述TB_CRC用于对TB进行CRC校验;确定加入TB_CRC后的TB对应的长度;在所述加入TB_CRC后的TB对应的长度小于等于预设长度的情况下,将所述加入TB_CRC后的TB确定为编码块CB;在所述CB中加入CB_CRC,所述CB_CRC用于对CB进行CRC校验;对加入所述CB_CRC后的CB进行编码。The processor 930 is configured to execute a program stored in the memory 910. When the program in the memory 910 is executed, the processor 930 is specifically configured to: add a TB_CRC in the TB, where the TB_CRC is used. Performing a CRC check on the TB; determining a length corresponding to the TB after the TB_CRC is added; and determining, in the case that the length of the TB after the TB_CRC is added is less than or equal to a preset length, determining the TB after adding the TB_CRC as the coding block CB Adding a CB_CRC to the CB, the CB_CRC is used for performing CRC check on the CB, and encoding the CB after joining the CB_CRC.
本申请中,当TB仅包含一个CB时,也在该TB中加入CB_CRC,这样当译码端进行迭代译码时,无论TB是包含多个CB还是仅包含单个CB,均可以只进行CB_CRC校验,而不用像现有方案中那样根据TB包含多个CB还是单个CB而采用不同的CRC校验 方式,因此,本申请能够使得译码端采用一种类型的译码器就可以实现译码和校验,减小了译码端的译码器硬件实现的复杂度。In the present application, when the TB includes only one CB, the CB_CRC is also added to the TB, so that when the decoding end performs iterative decoding, whether the TB includes multiple CBs or only a single CB, only the CB_CRC can be performed. It is not necessary to use different CRC check modes according to whether the TB contains multiple CBs or a single CB as in the prior art. Therefore, the present application can enable the decoding end to implement decoding by using one type of decoder. And verification, reducing the complexity of the decoder hardware implementation at the decoding end.
可选地,作为一个实施例,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。Optionally, as an embodiment, the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
可选地,作为一个实施例,所述处理器930具体用于:在所述加入TB_CRC后的TB对应的长度大于所述预设长度的情况下,将所述加入TB_CRC后的TB划分为多个CB;在所述多个CB中的每个CB中加入所述CB_CRC;所述编码模块具体用于对加入所述CB_CRC后的每个CB进行编码。Optionally, as an embodiment, the processor 930 is specifically configured to: after the TB corresponding to the TB_CRC is greater than the preset length, divide the TB after adding the TB_CRC into multiple a CB; the CB_CRC is added to each of the plurality of CBs; the encoding module is specifically configured to encode each CB after the CB_CRC is added.
可选地,作为一个实施例,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 Optionally, as an embodiment, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
图10是本申请实施例的译码装置的示意性框图。图10的译码装置1000包括:FIG. 10 is a schematic block diagram of a decoding apparatus according to an embodiment of the present application. The decoding device 1000 of FIG. 10 includes:
存储器1010,用于存储程序。The memory 1010 is configured to store a program.
处理器1020,用于执行所述存储器1010中存储的程序,当所述存储器1010中的程序被执行时,所述处理器1020具体用于:确定待译码的传输块TB的长度;根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量;The processor 1020 is configured to execute a program stored in the memory 1010. When the program in the memory 1010 is executed, the processor 1020 is specifically configured to: determine a length of the transport block TB to be decoded; Determining the length of the TB to be decoded determines the number of CBs included in the TB to be decoded;
收发器1030,用于接收所述待译码的TB;The transceiver 1030 is configured to receive the TB to be decoded.
所述处理器1020还用于在所述待译码的TB仅包含一个CB的情况下,对所述待译码TB进行迭代译码,并对每次迭代译码得到的数据块进行CB_CRC校验,其中,所述待译码的TB包含CB_CRC和TB_CRC,所述CB_CRC用于对CB进行CRC校验,所述TB_CRC用于对TB进行CRC校验;The processor 1020 is further configured to perform iterative decoding on the to-be-decoded TB and perform CB_CRC calibration on the data block obtained by each iteration in a case where the TB to be decoded includes only one CB. The TB to be decoded includes a CB_CRC and a TB_CRC, and the CB_CRC is used for performing a CRC check on the CB, where the TB_CRC is used for performing CRC check on the TB;
所述处理器1020还用于在迭代译码得到的数据块通过CB_CRC校验的情况下,对所述迭代译码得到的数据块进行TB_CRC校验。The processor 1020 is further configured to perform a TB_CRC check on the data block obtained by the iterative decoding in the case that the data block obtained by the iterative decoding passes the CB_CRC check.
本申请中,由于待译码的TB仅包含一个CB时,待译码的TB也包含CB_CRC,因此,在译码时也可以直接采用CB_CRC校验,而不用像现有方案中那样根据TB包含多个CB还是单个CB而采用不同的CRC校验方式,因此,译码端采用一种类型的译码器就可以实现译码和校验,减小了译码端的译码器实现的复杂度。In the present application, since the TB to be decoded includes only one CB, the TB to be decoded also includes the CB_CRC. Therefore, the CB_CRC check can also be directly used in decoding, instead of including according to the TB as in the prior art. Multiple CBs are still a single CB and adopt different CRC check methods. Therefore, the decoding end can realize decoding and verification by using one type of decoder, which reduces the complexity of decoder implementation at the decoding end. .
可选地,作为一个实施例,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。Optionally, as an embodiment, the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
可选地,作为一个实施例,所述处理器1020具体用于:在所述待译码的TB的长度小于等于预设长度的情况下,确定所述待译码TB仅包含一个CB;在所述待译码的TB的长度大于所述预设长度的情况下,确定所述待译码TB包含多个CB。Optionally, as an embodiment, the processor 1020 is specifically configured to: when the length of the TB to be decoded is less than or equal to a preset length, determine that the to-be-decoded TB includes only one CB; In a case where the length of the TB to be decoded is greater than the preset length, it is determined that the to-be-decoded TB includes multiple CBs.
可选地,作为一个实施例,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 Optionally, as an embodiment, the preset length is 6114-L CB_CRC or 8448-L CB_CRC , where L CB_CRC is the length of the CB_CRC.
可选地,作为一个实施例,所述处理器1020具体用于:在所述待译码的TB包含多个CB的情况下,对所述待译码TB进行迭代译码,并对迭代译码得到的多个数据块中的每个数据块进行CB_CRC校验;在所述迭代译码得到的多个数据块中的每个数据块通过CB_CRC校验的情况下,对所述迭代译码得到的多个数据块进行串接,得到包含TB_CRC的TB;对所述包含TB_CRC的TB进行TB_CRC校验。Optionally, as an embodiment, the processor 1020 is specifically configured to perform iterative decoding on the to-be-decoded TB and perform iterative translation in a case where the TB to be coded includes multiple CBs. Each of the plurality of data blocks obtained by the code performs a CB_CRC check; and in the case where each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the iterative decoding is performed. The obtained plurality of data blocks are concatenated to obtain a TB including a TB_CRC; and the TB containing the TB_CRC is subjected to a TB_CRC check.
本申请提供了一种编码装置,所述编码装置包括存储介质和中央处理器,所述存储介 质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行本申请实施例的编码方法。The present application provides an encoding apparatus including a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium in which a computer executable program is stored, the central processing unit Connected to the non-volatile storage medium and performs the encoding method of the embodiment of the present application.
这里的编码装置具体可以是终端设备或者网络设备。The encoding device here may specifically be a terminal device or a network device.
本申请提供了一种译码装置,所述译码装置包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请实施例的译码方法。The present application provides a decoding apparatus, which includes a storage medium and a central processing unit, and the storage medium may be a non-volatile storage medium in which a computer executable program is stored, the central A processor is coupled to the non-volatile storage medium and executes the computer executable program to implement the decoding method of an embodiment of the present application.
这里的译码装置具体可以是终端设备或者网络设备。The decoding device here may specifically be a terminal device or a network device.
本申请提供了一种芯片,所述芯片包括处理器与通信接口,所述通信接口用于与外部器件进行通信,所述处理器用于执行本申请实施例的编码方法。The present application provides a chip including a processor and a communication interface for communicating with an external device for performing the encoding method of the embodiments of the present application.
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行本申请实施例的编码方法。Optionally, as an implementation manner, the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is configured to perform the encoding method of the embodiment of the present application.
可选地,作为一种实现方式,所述芯片集成在终端设备或者网络设备上。Optionally, as an implementation manner, the chip is integrated on a terminal device or a network device.
本申请提供了一种芯片,所述芯片包括处理器与通信接口,所述通信接口用于与外部器件进行通信,所述处理器用于执行本申请实施例的译码方法。The present application provides a chip including a processor and a communication interface for communicating with an external device for performing the decoding method of the embodiments of the present application.
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行本申请实施例的译码方法。Optionally, as an implementation manner, the chip may further include a memory, where the memory stores an instruction, the processor is configured to execute an instruction stored on the memory, when the instruction is executed, The processor is configured to perform the decoding method of the embodiments of the present application.
可选地,作为一种实现方式,所述芯片集成在终端设备或者网络设备上。Optionally, as an implementation manner, the chip is integrated on a terminal device or a network device.
本申请提供了一种计算机可读存储介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行本申请实施例的编码方法的指令。The application provides a computer readable medium storing program code for device execution, the program code comprising instructions for performing the encoding method of an embodiment of the present application.
本申请提供了一种计算机可读存储介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行本申请实施例的译码方法的指令。The application provides a computer readable medium storing program code for device execution, the program code comprising instructions for performing the decoding method of an embodiment of the present application.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络 单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (18)

  1. 一种编码方法,其特征在于,包括:An encoding method, comprising:
    获取传输块TB;Obtaining a transport block TB;
    在所述TB中加入TB_CRC,所述TB_CRC用于对TB进行CRC校验;Adding a TB_CRC to the TB, where the TB_CRC is used for performing CRC check on the TB;
    确定加入TB_CRC后的TB对应的长度;Determining the length of the TB after joining the TB_CRC;
    在所述加入TB_CRC后的TB对应的长度小于等于预设长度的情况下,将所述加入TB_CRC后的TB确定为编码块CB;If the length of the TB after the TB_CRC is added is less than or equal to the preset length, the TB after adding the TB_CRC is determined as the coding block CB;
    在所述CB中加入CB_CRC,所述CB_CRC用于对CB进行CRC校验;Adding a CB_CRC to the CB, where the CB_CRC is used for performing CRC check on the CB;
    对加入所述CB_CRC后的CB进行编码。Encoding the CB after joining the CB_CRC.
  2. 如权利要求1所述的方法,其特征在于,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。The method of claim 1 wherein said TB_CRC and said CB_CRC are determined based on different CRC generator polynomials.
  3. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:
    在所述加入TB_CRC后的TB对应的长度大于所述预设长度的情况下,将所述加入TB_CRC后的TB划分为多个CB;If the length of the TB after the TB_CRC is added is greater than the preset length, the TB after the TB_CRC is added is divided into multiple CBs;
    在所述多个CB中的每个CB中加入所述CB_CRC;Adding the CB_CRC to each of the plurality of CBs;
    对加入所述CB_CRC后的每个CB进行编码。Each CB after joining the CB_CRC is encoded.
  4. 如权利要求1-3中任一项所述的方法,其特征在于,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 The method according to any one of claims 1 to 3, wherein the preset length is 6114-L CB_CRC or 8448-L CB_CRC , wherein L CB_CRC is the length of the CB_CRC.
  5. 一种译码方法,其特征在于,包括:A decoding method, comprising:
    确定待译码的传输块TB的长度;Determining the length of the transport block TB to be decoded;
    根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量;Determining, according to the length of the TB to be decoded, the number of CBs included in the TB to be decoded;
    接收所述待译码的TB;Receiving the TB to be decoded;
    在所述待译码的TB仅包含一个CB的情况下,对所述待译码TB进行迭代译码,并对每次迭代译码得到的数据块进行CB_CRC校验,其中,所述待译码的TB包含CB_CRC和TB_CRC,所述CB_CRC用于对CB进行CRC校验,所述TB_CRC用于对TB进行CRC校验;In the case that the TB to be decoded includes only one CB, iteratively decodes the to-be-decoded TB, and performs CB_CRC check on the data block obtained by each iteration decoding, where the to-be-translated The TB of the code includes a CB_CRC for performing a CRC check on the CB, and a TB_CRC for performing a CRC check on the TB;
    在迭代译码得到的数据块通过CB_CRC校验的情况下,对所述迭代译码得到的数据块进行TB_CRC校验。In the case that the data block obtained by the iterative decoding passes the CB_CRC check, the TB_CRC check is performed on the data block obtained by the iterative decoding.
  6. 如权利要求5所述的方法,其特征在于,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。The method of claim 5 wherein said TB_CRC and said CB_CRC are determined based on different CRC generator polynomials.
  7. 如权利要求5或6所述的方法,其特征在于,根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量,包括:The method according to claim 5 or 6, wherein determining the number of CBs included in the TB to be decoded according to the length of the TB to be decoded comprises:
    在所述待译码的TB对应的长度小于等于预设长度的情况下,确定所述待译码TB仅包含一个CB;In a case that the length of the TB to be decoded is less than or equal to a preset length, determining that the to-be-decoded TB includes only one CB;
    在所述待译码的TB对应的长度大于所述预设长度的情况下,确定所述待译码TB包含多个CB。In a case that the length corresponding to the TB to be decoded is greater than the preset length, it is determined that the to-be-decoded TB includes multiple CBs.
  8. 如权利要求5-7中任一项所述的方法,其特征在于,所述预设长度为6114-L CB_CRC 或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 The method according to any one of claims 5-7, wherein the preset length is 6114-L CB_CRC or 8448-L CB_CRC , wherein L CB_CRC is the length of the CB_CRC.
  9. 如权利要求5-8中任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 5-8, wherein the method further comprises:
    在所述待译码的TB包含多个CB的情况下,对所述待译码TB进行迭代译码,并对迭代译码得到的多个数据块中的每个数据块进行CB_CRC校验;In the case that the TB to be coded includes multiple CBs, iteratively decodes the to-be-decoded TB, and performs CB_CRC check on each of the plurality of data blocks obtained by iterative decoding;
    在所述迭代译码得到的多个数据块中的每个数据块通过CB_CRC校验的情况下,对所述迭代译码得到的多个数据块进行串接,得到包含TB_CRC的TB;In the case that each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the plurality of data blocks obtained by the iterative decoding are concatenated to obtain a TB including the TB_CRC;
    对所述包含TB_CRC的TB进行TB_CRC校验。A TB_CRC check is performed on the TB including the TB_CRC.
  10. 一种编码装置,其特征在于,包括:An encoding device, comprising:
    获取模块,用于获取传输块TB;Obtaining a module, configured to obtain a transport block TB;
    处理模块,用于在所述TB中加入TB_CRC,所述TB_CRC用于对TB进行CRC校验;a processing module, configured to add a TB_CRC in the TB, where the TB_CRC is used to perform a CRC check on the TB;
    所述处理模块还用于确定加入TB_CRC后的TB对应的长度;The processing module is further configured to determine a length corresponding to the TB after adding the TB_CRC;
    所述处理模块还用于在所述加入TB_CRC后的TB对应的长度小于等于预设长度的情况下,将所述加入TB_CRC后的TB确定为编码块CB;The processing module is further configured to determine, after the TB_CRC is TB_CRC, the length of the TB is less than or equal to a preset length, and determine the TB after adding the TB_CRC as the coding block CB;
    所述处理模块还用于在所述CB中加入CB_CRC,所述CB_CRC用于对CB进行CRC校验;The processing module is further configured to add a CB_CRC in the CB, where the CB_CRC is used to perform a CRC check on the CB;
    编码模块,用于对加入所述CB_CRC后的CB进行编码。And an encoding module, configured to encode the CB after joining the CB_CRC.
  11. 如权利要求10所述的装置,其特征在于,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。The apparatus of claim 10 wherein said TB_CRC and said CB_CRC are determined based on different CRC generator polynomials.
  12. 如权利要求10或11所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 10 or 11, wherein the processing module is specifically configured to:
    在所述加入TB_CRC后的TB对应的长度大于所述预设长度的情况下,将所述加入TB_CRC后的TB划分为多个CB;If the length of the TB after the TB_CRC is added is greater than the preset length, the TB after the TB_CRC is added is divided into multiple CBs;
    在所述多个CB中的每个CB中加入所述CB_CRC;Adding the CB_CRC to each of the plurality of CBs;
    所述编码模块具体用于对加入所述CB_CRC后的每个CB进行编码。The encoding module is specifically configured to encode each CB after joining the CB_CRC.
  13. 如权利要求10-12中任一项所述的装置,其特征在于,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 The apparatus according to any one of claims 10 to 12, wherein the preset length is 6114-L CB_CRC or 8448-L CB_CRC , wherein L CB_CRC is the length of the CB_CRC.
  14. 一种译码装置,其特征在于,包括:A decoding device, comprising:
    确定模块,确定待译码的传输块TB的长度;Determining a module, determining a length of the transport block TB to be decoded;
    所述确定模块还用于根据所述待译码的TB的长度确定所述待译码的TB包含的CB的数量;The determining module is further configured to determine, according to the length of the TB to be decoded, the number of CBs included in the TB to be decoded;
    接收模块,用于接收所述待译码的TB;a receiving module, configured to receive the TB to be decoded;
    处理模块,用于在所述待译码的TB仅包含一个CB的情况下,对所述待译码TB进行迭代译码,并对每次迭代译码得到的数据块进行CB_CRC校验,其中,所述待译码的TB包含CB_CRC和TB_CRC,所述CB_CRC用于对CB进行CRC校验,所述TB_CRC用于对TB进行CRC校验;a processing module, configured to perform iterative decoding on the to-be-decoded TB and perform CB_CRC verification on each of the iteratively decoded data blocks, where the TB to be coded includes only one CB, where The TB to be decoded includes a CB_CRC and a TB_CRC, and the CB_CRC is used for performing a CRC check on the CB, where the TB_CRC is used for performing CRC check on the TB;
    所述处理模块还用于在迭代译码得到的数据块通过CB_CRC校验的情况下,对所述迭代译码得到的数据块进行TB_CRC校验。The processing module is further configured to perform a TB_CRC check on the data block obtained by the iterative decoding in the case that the data block obtained by the iterative decoding passes the CB_CRC check.
  15. 如权利要求14所述的装置,其特征在于,所述TB_CRC和所述CB_CRC是基于不同的CRC生成多项式确定的。The apparatus of claim 14, wherein the TB_CRC and the CB_CRC are determined based on different CRC generation polynomials.
  16. 如权利要求14或15所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 14 or 15, wherein the determining module is specifically configured to:
    在所述待译码的TB对应的长度小于等于预设长度的情况下,确定所述待译码TB仅包含一个CB;In a case that the length of the TB to be decoded is less than or equal to a preset length, determining that the to-be-decoded TB includes only one CB;
    在所述待译码的TB对应的长度大于所述预设长度的情况下,确定所述待译码TB包含多个CB。In a case that the length corresponding to the TB to be decoded is greater than the preset length, it is determined that the to-be-decoded TB includes multiple CBs.
  17. 如权利要求16所述的装置,其特征在于,所述预设长度为6114-L CB_CRC或者8448-L CB_CRC,其中,L CB_CRC为所述CB_CRC的长度。 The apparatus according to claim 16, wherein the preset length is 6114-L CB_CRC or 8448-L CB_CRC , wherein L CB_CRC is the length of the CB_CRC.
  18. 如权利要求14-17中任一项所述的装置,其特征在于,所述处理模块具体用于:The device according to any one of claims 14-17, wherein the processing module is specifically configured to:
    在所述待译码的TB包含多个CB的情况下,对所述待译码TB进行迭代译码,并对迭代译码得到的多个数据块中的每个数据块进行CB_CRC校验;In the case that the TB to be coded includes multiple CBs, iteratively decodes the to-be-decoded TB, and performs CB_CRC check on each of the plurality of data blocks obtained by iterative decoding;
    在所述迭代译码得到的多个数据块中的每个数据块通过CB_CRC校验的情况下,对所述迭代译码得到的多个数据块进行串接,得到包含TB_CRC的TB;In the case that each of the plurality of data blocks obtained by the iterative decoding passes the CB_CRC check, the plurality of data blocks obtained by the iterative decoding are concatenated to obtain a TB including the TB_CRC;
    对所述包含TB_CRC的TB进行TB_CRC校验。A TB_CRC check is performed on the TB including the TB_CRC.
PCT/CN2018/099409 2017-08-10 2018-08-08 Coding method, decoding method, coding device and decoding device WO2019029576A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710680670.6A CN109391350B (en) 2017-08-10 2017-08-10 Encoding method, decoding method, encoding device and decoding device
CN201710680670.6 2017-08-10

Publications (1)

Publication Number Publication Date
WO2019029576A1 true WO2019029576A1 (en) 2019-02-14

Family

ID=65271158

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099409 WO2019029576A1 (en) 2017-08-10 2018-08-08 Coding method, decoding method, coding device and decoding device

Country Status (2)

Country Link
CN (1) CN109391350B (en)
WO (1) WO2019029576A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519602A (en) * 2019-08-05 2019-11-29 北京轩宇空间科技有限公司 Method and device for data stream transmitting

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8640011B2 (en) * 2007-11-02 2014-01-28 Broadcom Corporation Single CRC polynomial for both turbo code block CRC and transport block CRC
CN104412534A (en) * 2012-06-29 2015-03-11 高通股份有限公司 Methods and apparatus for turbo decoder throttling
CN106685577A (en) * 2015-11-05 2017-05-17 华为技术有限公司 User equipment (UE), access network equipment and downlink data transmitting and receiving methods
CN106961319A (en) * 2016-01-12 2017-07-18 中兴通讯股份有限公司 A kind of method and apparatus of data processing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753261B (en) * 2008-12-01 2012-11-21 电信科学技术研究院 Coder, decoder and coding and decoding methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8640011B2 (en) * 2007-11-02 2014-01-28 Broadcom Corporation Single CRC polynomial for both turbo code block CRC and transport block CRC
CN104412534A (en) * 2012-06-29 2015-03-11 高通股份有限公司 Methods and apparatus for turbo decoder throttling
CN106685577A (en) * 2015-11-05 2017-05-17 华为技术有限公司 User equipment (UE), access network equipment and downlink data transmitting and receiving methods
CN106961319A (en) * 2016-01-12 2017-07-18 中兴通讯股份有限公司 A kind of method and apparatus of data processing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519602A (en) * 2019-08-05 2019-11-29 北京轩宇空间科技有限公司 Method and device for data stream transmitting
CN110519602B (en) * 2019-08-05 2022-07-05 北京轩宇空间科技有限公司 Method and device for data stream transmission

Also Published As

Publication number Publication date
CN109391350B (en) 2021-04-09
CN109391350A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
EP3598673B1 (en) Data transmission method and related device
JP6817452B2 (en) Rate matching method, encoding device, and communication device
EP3073642B1 (en) Polar code decoding method and decoding apparatus
US11095312B2 (en) Polar code encoding/decoding method and encoding/decoding apparatus
US10892849B2 (en) Polar code coding method and apparatus
WO2019158031A1 (en) Encoding method, decoding method, encoding device, and decoding device
EP3562074B1 (en) Method, device, and equipment for use in determining coding and decoding of polar code
WO2020048537A1 (en) Method and device for cascade coding
US20200021310A1 (en) Information processing method and apparatus, and device
AU2018328362A1 (en) Encoding method and apparatus
US20230171033A1 (en) Retransmission method and apparatus
US20230208554A1 (en) Encoding and Decoding Method and Apparatus
TWI723232B (en) Method for processing data, terminal equipment, and network equipment
EP4307598A2 (en) Channel state information encoding method and apparatus, storage medium and processor
US11190213B2 (en) Coding method, wireless device, and chip
WO2019029576A1 (en) Coding method, decoding method, coding device and decoding device
WO2016172937A1 (en) Method and device for transmitting data by utilizing multiple polar code
US11974165B2 (en) Methods, terminal device and network device for code block segmentation
WO2022089154A1 (en) Information transmission method, terminal, network device, and storage medium
WO2020063315A1 (en) Channel encoding method and apparatus

Legal Events

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

Ref document number: 18843019

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18843019

Country of ref document: EP

Kind code of ref document: A1