Codec and method and system for generating codewords

Through the rate matching method based on zero padding and blocking, the problem of high rate matching complexity of polar codes in low-latency scenarios is solved, low latency and efficient transmission are achieved, and the requirements of low-latency scenarios are met.

CN114095038BActive Publication Date: 2024-10-22SHANGHAI NAT ENG RES CENT OF DIGITAL TELEVISION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111188133.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-12
Publication Date
2024-10-22
Estimated Expiration
2041-10-12

AI Technical Summary

Technical Problem

Existing polar codes have high computational complexity when matching rates in low-latency scenarios, resulting in increased transmission delays. If the code length gap is too large, additional delay overhead will be incurred.

Method used

A rate matching method based on zero-padding and blocking is adopted. The target code rate and modulation method are selected through the MSC table, and the remaining bits to be encoded are segmented and zero-padding to ensure that the code block length gap is within a certain range and reduce transmission delay.

Benefits of technology

It effectively reduces transmission delay, improves transmission reliability and efficiency, and meets the requirements of low-latency scenarios while maintaining low complexity without reducing transmission reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114095038B_ABST
    Figure CN114095038B_ABST
Patent Text Reader

Abstract

The present invention provides a codec and a method and system for generating codewords, including an encoder and a decoder; the encoder includes a transmission block CRC encoding module, a segment confirmation module, a rate matching module and a modulation module; the decoder includes a demodulation module, a polar code decoding module, a CRC check module and a splicing module. The present invention can make full use of the reception and decoding delay characteristics of the code block without reducing the transmission reliability. Under certain circumstances, it can improve the transmission reliability, effectively reduce the transmission delay, and meet the requirements of low-delay scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a codec and a method and system for generating codewords. In particular, the present invention relates to a polar code rate matching method based on zero padding and block division in a low-latency scenario. Background Art

[0002] In a communication system, a transmitter sends information to a receiver through a channel, and interference in the channel may introduce errors into the information. Error control coding adds redundant bits to detect and / or correct errors. These added redundancies increase the probability of correct decoding at the receiver when noise in the channel introduces some errors into the codeword.

[0003] In 2009, Ankan formally proposed a code that can achieve the symmetric capacity of any binary-input discrete memoryless channel (B-DMC), and named it polar code. However, at that time, the performance of polar code in successive cancellation (SC) decoding was not as good as LDPC code and turbo code. With the support of the SC list (SCL) decoding method proposed later, the performance of polar code on short code successfully surpassed LDPC code, becoming the code for 5GNR control channel and widely used in various communication systems.

[0004] The idea of ​​polarization code encoding and decoding is different from all previous channel encoding and decoding. Specifically, polarization code is based on the concept of channel polarization: two independent and identical channels can be transformed into two split channels with different reliabilities after channel polarization operation. Polarization transformation is recursively performed on these two types of channels, and the difference between the resulting split channels will be further increased, that is, the channel with high reliability will become better, and the channel with low reliability will become worse. When the code length approaches infinity, all split channels will be differentiated into two extremes, namely, a completely noise-free channel (channel capacity is 1) and a channel full of noise (channel capacity is 0). Therefore, it is only necessary to place the message bits on the split channel with a channel capacity of 1 for transmission (called information bits), and place pre-set values ​​(such as all-zero bits, called frozen bits) on the split channel with a channel capacity of 0 to complete the reliable transmission of the message bits. For details, please refer to the attached. Figure 1 , which is a schematic diagram of the structure of a polar code with a length of 8.

[0005] In addition to encoding and decoding, another difference between polar codes and traditional algebraic codes and probabilistic codes is their unique construction method. In order to select the split channels that can carry information bits, the reliability of each split channel after polarization transformation must be determined first. For a code length of N = 2 i After obtaining the reliability metrics of all split channels, the coding of any code rate r can complete the construction of the polarization code by selecting the most reliable K=N*r positions through a sorting algorithm to form a message set. Due to the characteristics of polarization codes, polarization codes with longer code lengths are compatible with polarization codes with smaller code lengths, and their encoding and decoding modules can be reused. If the rate matching method in 5GNR is followed, that is, the mother code with a fixed code length is used for rate matching through real-time online calculation through repetition, puncturing, shortening, etc., the calculation complexity is high and does not meet the requirements of low power consumption.

[0006] In view of this, for polar codes with bits to be coded less than a certain value, the method of reducing the code rate and code length for rate matching can achieve reduced complexity while ensuring performance. At the same time, since the transmission delay is limited by the decoding delay, link layer transmission delay and reception delay, a large difference in the rate matching code length will bring additional delay overhead. Therefore, a better rate matching design is to fix the tail to the minimum code length for rate matching, and the code length of the previous level code block is either the same as that of the next level code block, or twice its code length, until the code length reaches the adopted polar code length.

[0007] Patent document CN107017962B (application number: CN201610061638.5) discloses a coding method and a codec for dynamic power consumption control. The encoder includes: a control unit, an initial coding unit and L incremental coding units, wherein the control unit is used to enable only the initial coding unit for coding in the RS (N0, K) working mode, or to enable only the initial coding unit and the first j incremental coding units of the L incremental coding units for coding in the RS (Nj, K) working mode; the initial coding unit is used to perform RSFEC coding on m(x) to obtain the quotient D0(x) and remainder R0(x) relative to g0(x); the h+1th incremental coding unit is used to obtain the quotient Dh+1(x) and remainder Rh+1(x) relative to gh+1(x) according to the quotient Dh(x) and remainder Rh(x). However, the transmission delay of this patent is limited by the decoding delay, link layer transmission delay and receiving delay at the same time, which will bring additional delay overhead when the rate matching code length gap is too large. Summary of the invention

[0008] In view of the defects in the prior art, an object of the present invention is to provide a codec and a method and system for generating codewords.

[0009] The codec provided by the present invention comprises an encoder and a decoder;

[0010] The encoder comprises:

[0011] Transport block CRC encoding module: performs cyclic redundancy check code encoding according to the transport block data information, generates corresponding transport block CRC check bits and appends them to the end of the data information;

[0012] Segment confirmation module: according to the target code rate and corresponding modulation mode selected from the predicted channel signal-to-noise ratio and the stored MSC table, the data information of the additional transport block CRC check is segmented according to the default code length and the target code rate encoding length under each code length in the rate matching, and the code blocks encoded with the default code length and the remaining bits to be encoded are obtained;

[0013] Rate matching module: According to the segmentation result, the code blocks encoded with the default code length are directly encoded using the target code rate and the default code length, and the remaining bits to be encoded are padded with zeros according to the encodable bits under each code length in the rate and divided into multiple code blocks for transmission;

[0014] Modulation module: modulates the code block obtained after polar code encoding, obtains the sequence and sends it;

[0015] The decoder comprises:

[0016] Demodulation module: demodulates the received sequence to obtain the code block encoded by the polar code;

[0017] Polarization code decoding module: performs corresponding zero removal and polarization code decoding according to the processing taken during transmission;

[0018] CRC check module: checks the transmission block CRC and retransmits or splices based on the result;

[0019] Splicing module: After all code blocks are decoded correctly, the received payload is spliced ​​again according to the preset rules.

[0020] Preferably, the encoder sets the number of zero-padding of the remaining bits to be encoded that do not need to be padded with zero to 0;

[0021] The decoder retransmits the code blocks with CRC check errors according to a preset mechanism.

[0022] According to the method for generating a codeword provided by the present invention, the following steps are performed:

[0023] Step 1: The code length used by the encoder is N B , N B =2 i, i ≥ 5 bits of polar code, all target code rates and additional rate matching code rates that can be selected are specified by the MSC table; the corresponding target code rate r is selected according to the channel conditions, 0<r<1, and the rate matching needs to use the transmittable bits specified in the table, and its code rate is less than the target code rate r;

[0024] Step 2: For the total length of the input encoder N I bits of data information, with T bits of transport block CRC check added to the end, T ≥ 0, and the length of the bits to be encoded is N I +T;

[0025] Step 3: Set N S The minimum code length of the polar code is used for rate matching, N S =2 j , 3≤j≤i-2, according to the polarization code length N B , minimum code length N S And the target code rate r for length N I +T bits to be encoded are segmented, and the part that is not transmitted using the default code length is called the remaining bits to be encoded x;

[0026] Step 4: Calculation And by looking up the table, the corresponding code length is 2 j+1 to 2 i-1 The number of code blocks;

[0027] Step 5: Assume that the length of the corresponding code block obtained by table lookup is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the required code block length is 2 j The number of code blocks and the required zero padding;

[0028] Step 6: Add zeros in front of the remaining bits to be encoded of length x, and add zeros according to the length of the corresponding code block of 2. j to 2 i-1 The number of code blocks and the number of transmittable bits are encoded.

[0029] Preferably, step 3 comprises:

[0030] If N I +T>(2*N B -N S )*r, the front The bits are segmented and coded using code length NB and code rate r. The remaining bits are called the remaining bits to be coded x.

[0031] If N I +T≤(2*N B -N S )*r, then the remaining bits to be encoded x = N I +T.

[0032] Preferably, step 5 comprises:

[0033] If the corresponding code block length is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the code block length is 2 j The number of transmittable bits of the code block is Kj, then it is necessary to fill in the x remaining bits to be encoded Bit 0, using A code block with a code block length of 2j.

[0034] Preferably, when the remaining bits to be encoded are less than the number of codable bits of the selected code length and code rate combination scheme, 0 bits are added before the remaining bits to be encoded so that the total number of bits is equal to the codable bits.

[0035] The system for generating codewords provided according to the present invention comprises the following modules:

[0036] Module M1: The code length used by the encoder is N B , N B =2 i , i ≥ 5 bits of polar code, all target code rates and additional rate matching code rates that can be selected are specified by the MSC table; the corresponding target code rate r is selected according to the channel conditions, 0<r<1, and the rate matching needs to use the transmittable bits specified in the table, and its code rate is less than the target code rate r;

[0037] Module M2: For input encoder with total length N I bits of data information, with T bits of transport block CRC check added to the end, T ≥ 0, and the length of the bits to be encoded is N I +T;

[0038] Module M3: Set N S The minimum code length of the polar code is used for rate matching, N S =2 j , 3≤j≤i-2, according to the polarization code length N B , minimum code length N S And the target code rate r for length N I +T bits to be encoded are segmented, and the part that is not transmitted using the default code length is called the remaining bits to be encoded x;

[0039] Module M4: Computing And by looking up the table, the corresponding code length is 2 j+1 to 2 i-1 The number of code blocks

[0040] Module M5: Assume that the length of the corresponding code block is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the required code block length is 2 j The number of code blocks and the required zero padding;

[0041] Module M6: Add zeros to the front of the remaining bits to be encoded of length x, and add zeros to the corresponding code block length of 2. j to 2 i-1 The number of code blocks and the number of transmittable bits are encoded.

[0042] Preferably, the module M3 includes:

[0043] If N I +T>(2*N B -NS)*r, the front The bit uses code length N B The code rate r is segmented and the remaining bits are called the remaining bits to be encoded x.

[0044] If N I +T≤(2*N B -N S )*r, then the remaining bits to be encoded x = N I +T.

[0045] Preferably, the module M5 comprises:

[0046] If the corresponding code block length is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the code block length is 2 j The number of transmittable bits of a code block is K j , then you need to add x remaining bits to be encoded Bit 0, using The length of the code block is 2 j The code block.

[0047] Preferably, when the remaining bits to be encoded are less than the number of codable bits of the selected code length and code rate combination scheme, 0 bits are added before the remaining bits to be encoded so that the total number of bits is equal to the codable bits.

[0048] Compared with the prior art, the present invention has the following beneficial effects:

[0049] The present invention can make full use of the reception and decoding delay characteristics of the code block, has low complexity, will not reduce transmission reliability, can improve transmission reliability under certain circumstances, improve transmission efficiency to a certain extent, can effectively reduce transmission delay, and meet the requirements of low-latency scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0051] Figure 1 is a diagram of the structure of a polar code of length 8;

[0052] Figure 2 It is a flow chart of a rate matching system based on zero padding and block division for polar codes;

[0053] Figure 3 This is a schematic diagram of the rate matching mechanism in Example 3 (taking 1 / 2 bit rate as an example);

[0054] Figure 4 This is a schematic diagram of the rate matching mechanism in Example 4 (taking 3 / 4 bit rate as an example);

[0055] Figure 5 This is a schematic diagram of the rate matching mechanism in Example 4 (taking 1 / 2 bit rate as an example);

[0056] Figure 6 This is a schematic diagram of the rate matching mechanism in Example 5 (taking the 7 / 8 bit rate as an example);

[0057] Figure 7 It is a schematic diagram of the structure of the encoder at the transmitting end;

[0058] Figure 8 It is a schematic diagram of the structure of the decoder at the receiving end. DETAILED DESCRIPTION

[0059] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0060] Embodiment 1:

[0061] According to an encoder, decoder and codeword generation method provided by the present invention, the scheme is as follows:

[0062] In a first aspect, an encoder and a decoder are provided, wherein the encoder comprises:

[0063] Transport block CRC encoding module: According to the transport block data information, cyclic redundancy check (CRC) code encoding is performed (CRC code has a strong error detection capability and is often used in communication systems to determine whether the received data block is correct. The encoding is performed by converting the data to be encoded into a polynomial, dividing it with the designed generating polynomial, and the remainder obtained is the required CRC check bit), and the corresponding transport block CRC check bit is generated and attached to the end of the data information;

[0064] Segment confirmation module: based on the predicted channel signal-noise ratio (SNR, generally refers to the power ratio of the signal and noise in the system, used to describe the quality of the channel environment. The higher the SNR, the better the channel environment, and a higher code rate and modulation method can be used for transmission) and the target code rate and corresponding modulation method selected in the stored MSC table, the data information with the transmission block CRC check added is segmented according to the default code length and the target code rate encoding length under each code length in the rate matching, and the code blocks encoded with the default code length and the remaining bits to be encoded are obtained;

[0065] Rate matching module: According to the above segmentation results, the code blocks encoded with the default code length are directly encoded using the target code rate and the default code length, and the remaining bits to be encoded are padded with zeros according to the encodable bits under each code length in the rate and divided into multiple code blocks for transmission;

[0066] Modulation module: finally obtains the polar code encoded code block for modulation and transmission;

[0067] The decoder comprises:

[0068] Demodulation module: demodulates the received sequence to obtain K code blocks;

[0069] Polarization code decoding module: performs corresponding zero removal and polarization code decoding according to the processing taken during transmission;

[0070] CRC check module: checks the transmission block CRC and retransmits or splices according to the result;

[0071] Splicing module: After all code blocks are correctly decoded, the received payload is spliced ​​again according to the rules.

[0072] Preferably, the encoder sets the number of zero-padding of the remaining bits to be encoded that do not need to be padded with zero to 0.

[0073] Preferably, the decoder can retransmit code blocks with code block CRC check errors according to a mechanism.

[0074] In a second aspect, a codeword generation method is provided, such as Figure 2 , the method comprising:

[0075] Step S1: The code length used by the encoder is N B , N B =2 i , i ≥ 5 bits of polar code, all target code rates and additional rate matching code rates that can be selected are specified by the MSC table (the length of bits that can be transmitted under different code lengths under rate matching); the corresponding target code rate r is selected according to the channel conditions, 0<r<1, and the rate matching needs to use the transmittable bits specified in the table, and its code rate is less than the target code rate r;

[0076] Step S2: For an input encoder with a total length of N I bits of data information, with T bits of transport block CRC check added to the end, T ≥ 0, and the length of the bits to be encoded is N I +T;

[0077] Step S3: Set N S The minimum code length of the polar code is used for rate matching, N S =2 j , 3≤j≤i-2, according to the polarization code length N B , minimum code length N S And the target code rate r for length N I +T bits to be encoded are segmented, and the part that is not transmitted using the default code length is called the remaining bits to be encoded x;

[0078] Step S4: Calculation And by looking up the table, the corresponding code length is 2 j+1 to 2 i-1 The number of code blocks;

[0079] Step S5: Assume that the length of the corresponding code block is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , and based on its calculation, the required code block length is 2 j The number of code blocks and the required zero padding;

[0080] Step S6: Add zeros in front of the remaining bits to be encoded of length x, and j to 2 i-1 The number of code blocks and the number of transmittable bits are encoded.

[0081] Preferably, step S3 comprises:

[0082] If N I +T>(2*N B -N S )*r, the front The bit uses code length N B The code rate r is segmented and the remaining bits are called the remaining bits to be encoded x.

[0083] If N I +T≤(2*N B -N S )*r, then the remaining bits to be encoded x = N I +T;

[0084] Preferably, the step S5 specifically includes:

[0085] If the corresponding code block length is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the code block length is 2 j The number of transmittable bits of the code block is Kj, then it is necessary to fill in the x remaining bits to be encoded x bits of "0", use A code block with a code block length of 2j;

[0086] Preferably, the zero padding is to add 0 bits before the remaining bits to be encoded when the remaining bits to be encoded are less than the number of codable bits of the selected code length and code rate combination scheme, so that the total number of bits is equal to the codable bits.

[0087] Embodiment 2:

[0088] Embodiment 2 is a preferred example of Embodiment 1.

[0089] The specific technical solution of this embodiment is as follows: This embodiment provides a rate matching method based on zero padding and block matching suitable for low-latency scenarios, a method for generating codewords, and the present invention uses rate matching to fix the tail after segmentation to the minimum code length of rate matching, and the code length of the previous level code block is either the same as that of the next level code block, or twice its code length, until the code length reaches the adopted polar code length, so that its receiving delay matches the decoding delay and the link layer propagation delay, and reduces its overall propagation delay. To ensure its transmission reliability, the code rate used in the rate matching part is lower than the target code rate (generally, the number of bits that can be transmitted by each rate matching code length corresponding to the target code rate). The input bits to be encoded can be segmented by the polar code length, the minimum code length of rate matching and the target code rate. If the length of the remaining bits to be encoded after segmentation is less than the information bits that can be transmitted by the selected rate matching scheme, zeros are padded before the remaining bits to be encoded to achieve rate matching. The zero padding method is to add "0" bits before the remaining bits to be encoded so that the total number of bits is equal to the coded bits. Due to the excellent characteristics of polar codes, this method does not add additional complexity to the encoding and decoding modules; it does not reduce the reliability of transmission, and in some cases it can improve the reliability of transmission; it improves the transmission efficiency to a certain extent, and can effectively reduce the transmission delay to meet the requirements of low-latency scenarios. The aforementioned target coding rate refers to the code rate that the transmitter selects based on the estimation of the channel SNR and the performance of different code rates of the stored default code length polar codes, which is the most suitable for transmission in the current channel.

[0090] This embodiment provides a method for generating a codeword by using a rate matching method based on zero padding and block division, which specifically includes the following steps:

[0091] Step S1: The code length used by the encoder is N B , N B =2 i , i ≥ 5 bits of polar code, all target code rates and additional rate matching code rates that can be selected are specified by the MSC table (the length of bits that can be transmitted under different code lengths under rate matching); the corresponding target code rate r is selected according to the channel conditions, 0<r<1, and the rate matching needs to use the transmittable bits specified in the table, and its code rate is less than the target code rate r;

[0092] Step S2: For an input encoder with a total length of N I bits of data information, with T bits of transport block CRC check added to the end, T ≥ 0, and the length of the bits to be encoded is N I +T;

[0093] Step S3: Set N S The minimum code length of the polar code is used for rate matching, N S =2 j , 3≤j≤i-2, if N I +T>(2*NB -N S )*r, the front The bit uses code length N B The code rate r is segmented and the remaining bits are called the remaining bits to be encoded x. If N I +T≤(2*N B -N S )*r, then the remaining bits to be encoded x = N I +T;

[0094] Step S4: Calculation And by looking up the table, the corresponding code length is 2 j+1 to 2 i-1 The number of code blocks;

[0095] Step S5: Assume that the length of the corresponding code block is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the code block length is 2 j The number of transmittable bits of a code block is K j , then you need to add x remaining bits to be encoded bit "0", using A code block with a code block length of 2j;

[0096] Step S6: Add the remaining bits to be encoded of length x in front of bits "0" and use M j+1 To M i-1 The length of the code block is 2 j to 2 i-1 The code blocks are encoded.

[0097] The MCS table: Modulation-coding strategy (MCS) table is a modulation method and coding rate strategy formulated according to transmission efficiency and SNR during the standard formulation process. The MCS table in the general standard is as follows:

[0098]

[0099] Embodiment 3:

[0100] Embodiment 3 is a preferred example of Embodiment 2.

[0101] The polar code length of the system encoding is set to 1024 bits, the supported transmission code rate (optional target code rate) is 5 / 8, 3 / 4, 7 / 8, and the minimum code length is 64 bits. The rate matching and transmission block CRC check are 24 bits. To meet the requirements of low-latency scenarios, if a polar code with a code length of 1024 is used, a code with a code length of 512, 256, 128, or 64 must be used.

[0102] The number of transmittable bits for each target bit rate corresponding to the rate matching code length is as follows:

[0103] Table 1. The target bit rate and the corresponding rate matching code length corresponding to the number of transmittable bits during rate matching

[0104]

[0105] The encoding process and rate matching mode are as follows:

[0106] Assume that the total number of information bits is K0 (K0>0), the transmission block CRC check is 24 bits, and after adding the transmission block CRC check, K0+24 bits of bits to be transmitted are obtained. Assume that the target code rate is r (the i-th level code rate in the low-latency MCS table), and the maximum number of bits that can be transmitted under the rate matching channel coding length of 512, 256, 128, and 64 are K respectively. i,1 , K i,2 , K i,3 , K i,4 .

[0107] If K0+24>r*(2*1024-128), first intercept the front bits, encoded with code rate r and code length 1024, the remaining The bits are called the remaining bits to be coded;

[0108] If K0+24≤r*(2*1024-128), there is no need to encode with code rate r and code length 1024, and x=K0+24 is defined as the remaining bits to be encoded;

[0109] For the remaining bits to be encoded x (32≤x≤r*(2*1024-128)), calculate different The corresponding number of code blocks is shown in the following table.

[0110] Table 2. Different rate matching The number of code blocks corresponding to the value:

[0111]

[0112] Suppose the number of code blocks corresponding to the code block lengths of 512, 256, and 128 bits is N1, N2, and N3 respectively, then add bits "0";

[0113] Finally, the remaining bits to be encoded are respectively The code blocks with lengths of 512, 256, 128, and 64 bits are encoded.

[0114] like Figure 3 There are 1512 bits of data information in total, and the target transmission rate is 3 / 4 = 0.75. After adding a 24-bit transmission block CRC check at the end, 1536 bits of bits to be encoded are obtained. Since 1536>0.75*(1024*2-128)=1440, the first bits, using a code rate of 0.75 and a code length of 1024 for encoding, the remaining x = 1536-768 = 768 bits after encoding are called the remaining bits to be encoded; for the remaining bits to be encoded x = 768, calculate From the table, we can see that the corresponding code lengths are 1 512, 1 256, and 1 128. bits are padded with "0"; finally, the 796 bits after zero padding are divided into 1 code block of 512, 1 code block of 256, 1 code block of 128, and 3 code blocks of 64 code lengths for transmission.

[0115] like Figure 4 There are 544 bits of data information in total, and the target transmission rate is 5 / 8 = 0.625. After adding a 24-bit transmission block CRC check at the end, 568 bits of bits to be encoded are obtained. Since 568 < 0.625 * (1024 * 2-128) = 1200, the remaining bits to be encoded are directly set to x = 568 bits; for the remaining bits to be encoded x = 568, calculate From the table, we can see that the corresponding code lengths are 1 512, 1 256, and 1 128. bits are padded with "0"; finally, the 586 bits after zero padding are divided into 1 code block of 512, 1 code block of 256, 1 code block of 128, or 1 code block of 64 code length for transmission.

[0116] The rate matching table for each target bit rate is as follows:

[0117] Table 3. 5 / 8 coding rate adaptation table

[0118]

[0119]

[0120]

[0121]

[0122] Table 4. 3 / 4 coding rate adaptation table

[0123]

[0124]

[0125]

[0126]

[0127]

[0128] Table 5. 7 / 8 coding rate adaptation table

[0129]

[0130]

[0131]

[0132]

[0133]

[0134] Embodiment 4:

[0135] Embodiment 4 is a preferred example of Embodiment 2.

[0136] This embodiment provides a rate matching method based on zero padding and block division, which has the characteristics of low complexity, no reduction in transmission reliability, and can improve transmission reliability under certain circumstances, reduce transmission delay, and improve transmission efficiency.

[0137] The specific technical solution of this embodiment is:

[0138] The polar code length of the system encoding is set to 512 bits, the supported transmission code rate (optional target code rate) is 1 / 2, 3 / 4, and the minimum code length is 64 bits. The rate matching and transmission block CRC check are 24 bits. To meet the requirements of low-latency scenarios, if a polar code with a code length of 512 is used, a code with a code length of 256, 128, or 64 must be used.

[0139] The number of transmittable bits for each target bit rate corresponding to the rate matching code length is as follows:

[0140] Table 6. Number of transmittable bits corresponding to target bit rate and corresponding rate matching code length during rate matching

[0141]

[0142] The encoding process and rate matching mode are as follows:

[0143] Assume that the total number of information bits is K0 (K0>0), the transmission block CRC check is 24 bits, and after adding the transmission block CRC check, K0+24 bits of bits to be transmitted are obtained. Assume that the target code rate is r (the i-th level code rate in the low-latency MCS table), and the maximum number of bits that can be transmitted under the rate matching channel coding length of 256, 128, and 64 are K respectively. i,1 ,K i,2 ,K i,3 .

[0144] If K0+24>r*(2*512-128), first intercept the front bits, encoded with code rate r and code length 512, the remaining The bits are called the remaining bits to be coded;

[0145] If K0+24≤r*(2*512-128), there is no need to encode with a code rate and code length of 512, and x=K0+24 is defined as the remaining bits to be encoded;

[0146] For the remaining bits to be encoded x (32≤x≤r*(2*512-128)), calculate different The corresponding number of code blocks is shown in the following table.

[0147] Table 7. Different when the rate is matched The number of code blocks corresponding to the value:

[0148]

[0149] Suppose the number of code blocks with a length of 256 and 128 bits is N1 and N2 respectively, then add bits "0";

[0150] Finally, the remaining bits to be encoded are respectively The code blocks with lengths of 256, 128, or 64 bits are encoded.

[0151] like Figure 5There are 1000 bits of data information in total, and the target transmission rate is 1 / 2 = 0.5. After adding a 24-bit transmission block CRC check at the end, 1024 bits of bits to be encoded are obtained. Since 1024>0.5*(512*2-128)=448, the first bits, using a code rate of 0.5 and a code length of 512 for encoding, the remaining x = 1024-768 = 256 bits after encoding are called the remaining bits to be encoded; for the remaining bits to be encoded x = 256, calculate From the table, we can see that the corresponding code lengths are 1 256 and 1 128. bits are padded with "0"; finally, the 280 bits after zero padding are divided into 1 code block of 256, 1 code block of 128, and 3 code blocks of 64 code lengths for transmission.

[0152] Embodiment 5:

[0153] Embodiment 5 is a preferred example of Embodiment 2.

[0154] This embodiment provides a rate matching method based on zero padding and block division, which has the characteristics of low complexity, no reduction in transmission reliability, and can improve transmission reliability under certain circumstances, reduce transmission delay, and improve transmission efficiency.

[0155] The specific technical solution of this embodiment is:

[0156] The polar code length of the system encoding is set to 2048 bits, the supported transmission code rate (optional target code rate) is 5 / 8, 3 / 4, 7 / 8, and the minimum code length is 128 bits. The rate matching and transmission block CRC check are 24 bits. To meet the requirements of low-latency scenarios, if a polar code with a code length of 2048 is used, a code with a code length of 1024, 512, 256, or 128 must be used.

[0157] The number of transmittable bits for each target bit rate corresponding to the rate matching code length is as follows:

[0158] Table 8. Number of transmittable bits corresponding to target bit rate and corresponding rate matching code length during rate matching

[0159]

[0160] The encoding process and rate matching mode are as follows:

[0161] Assume that the total number of information bits is K0 (K0>0), the transmission block CRC check is 24 bits, and after adding the transmission block CRC check, K0+24 bits of bits to be transmitted are obtained. Assume that the target code rate is r (the i-th level code rate in the low-latency MCS table), and the maximum number of bits that can be transmitted under the rate matching channel coding length of 1024, 512, 256, and 128 are K respectively. i,1 ,K i,2 ,K i,3 ,K i,4 .

[0162] If K0+24>r*(2*2048-256), first intercept the front bits, encoded with code rate r and code length 2048, the remaining The bits are called the remaining bits to be coded;

[0163] If K0+24≤r*(2*2048-256), there is no need to encode with code rate r and code length 2048, and x=K0+24 is defined as the remaining bits to be encoded;

[0164] For the remaining bits to be encoded x (32≤x≤r*(2*2048-256)), calculate different The corresponding number of code blocks is shown in the following table.

[0165] Table 9. Different when the rate is matched The number of code blocks corresponding to the value:

[0166]

[0167] Suppose the number of code blocks corresponding to the code block lengths of 512, 256, and 128 bits is N1, N2, and N3 respectively, then add bits "0";

[0168] Finally, the remaining bits to be encoded are respectively The code blocks with lengths of 1024, 512, 256, and 128 bits are encoded.

[0169] like Figure 6 There are 536 bits of data information in total, and the target transmission rate is 3 / 4 = 0.75. After adding a 24-bit transmission block CRC check at the end, 560 bits of bits to be encoded are obtained. Since 560 < 0.75 * (2048 * 2-256) = 2880, the remaining bits to be encoded are directly set to x = 560 bits; for the remaining bits to be encoded x = 560, calculate From the table, we can see that two 256-code lengths are used for encoding. bits are padded with "0"; finally, the 630 bits after zero padding are divided into two code blocks with a length of 256 and three code blocks with a length of 128 for transmission.

[0170] like Figure 7 , the transmitter (Tx) adds N to the payload N to be sent out CRC check bit (if CRC check is not required, add CRC check bit N out is 0) to obtain a length of N B The bits to be coded are segmented according to the target code rate and the corresponding modulation mode selected from the predicted channel SNR and the stored MSC table, and according to the default code length, target code rate and rate matching minimum code length; if the length to be coded exceeds a certain threshold, bits of a certain length are first intercepted for encoding at the default code length and target code rate, and the remaining bits to be coded are padded with zeros and transmitted in segments according to their lengths, and finally the code blocks encoded with K polar codes are obtained for modulation and transmission.

[0171] like Figure 8 The receiving end (Rx) demodulates the received sequence to obtain K code blocks, and performs the corresponding zero removal and polarization code decoding according to the processing taken during transmission, and performs CRC check (if the added CRC check bit N out If it is 0, no CRC check is required), and the erroneous code blocks can be retransmitted according to the mechanism. After all code blocks are correctly decoded, the received payload can be reassembled according to the rules.

[0172] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0173] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A method for generating a codeword, It is characterized in that Implemented by a codec, the codec includes an encoder and a decoder; The encoder comprises: Transport block CRC encoding module: performs cyclic redundancy check code encoding according to the transport block data information, generates corresponding transport block CRC check bits and appends them to the end of the data information; Segment confirmation module: according to the target code rate and corresponding modulation mode selected from the predicted channel signal-to-noise ratio and the stored MSC table, the data information of the additional transport block CRC check is segmented according to the default code length and the target code rate encoding length under each code length in the rate matching, and the code blocks encoded with the default code length and the remaining bits to be encoded are obtained; Rate matching module: According to the segmentation result, the code blocks encoded with the default code length are directly encoded using the target code rate and the default code length, and the remaining bits to be encoded are padded with zeros according to the encodable bits under each code length in the rate and divided into multiple code blocks for transmission; Modulation module: modulates the code block obtained after polar code encoding, obtains the sequence and sends it; The decoder comprises: Demodulation module: demodulates the received sequence to obtain the code block encoded by the polar code; Polarization code decoding module: performs corresponding zero removal and polarization code decoding according to the processing taken during transmission; CRC check module: checks the transmission block CRC and retransmits or splices based on the result; Splicing module: After all code blocks are decoded correctly, the received payload is spliced ​​again according to the preset rules; The encoder sets the number of zero-padding of the remaining bits to be encoded that do not need to be padded to 0; The decoder retransmits the code block with a code block CRC check error according to a preset mechanism; The method for generating a codeword performs the following steps: Step 1: For the encoder with a code length of N B , N B = 2 i , for a polar code with i ≥ 5 bits, all target code rates and additional rate-matched code rates that can be selected as specified by the MSC table; select the corresponding target code rate r according to the channel conditions, 0 < r < 1. Rate matching needs to use the transmissible bits specified by the table, and its code rate is less than the target code rate r; Step 2: For the total length of the input encoder N I bits of data information, with T bits of transport block CRC check added to the end, T ≥ 0, and the length of the bits to be encoded is N I +T; Step 3: Set N S The minimum code length of the polar code is used for rate matching, N S =2 j , 3≤j≤i-2, according to the polarization code length N B , minimum code length N S And the target code rate r for length N I +T bits to be encoded are segmented, and the part that is not transmitted using the default code length is called the remaining bits to be encoded x; Step 4: Calculation And by looking up the table, the corresponding code length is 2 j+1 to 2 i-1 The number of code blocks; Step 5: Assume that the length of the corresponding code block obtained by table lookup is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the required code block length is 2 j The number of code blocks and the required zero padding; Step 6: Add zeros in front of the remaining bits to be encoded of length x, and add zeros according to the length of the corresponding code block of 2. j to 2 i-1 The number of code blocks and the number of transmittable bits are encoded.

2. The method for generating a codeword according to claim 1, It is characterized in that The step 3 comprises: If N I +T>(2*N B -N S )*r, the front The bit uses code length N B The code rate r is segmented and the remaining bits are called the remaining bits to be encoded x. If N I +T≤(2*N B -N S )*r, then the remaining bits to be encoded x = N I +T.

3. The method for generating a codeword according to claim 1, It is characterized in that The step 5 comprises: If the corresponding code block length is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the code block length is 2 j The number of transmittable bits of a code block is K j , then you need to add x remaining bits to be encoded Bit 0, using The length of the code block is 2 j The code block.

4. The method for generating a codeword according to claim 1, It is characterized in that When the remaining bits to be encoded are less than the number of codable bits of the selected code length and code rate combination scheme, 0 bits are added before the remaining bits to be encoded so that the total number of bits is equal to the codable bits.

5. A system for generating codewords, It is characterized in that Implemented by a codec, the codec includes an encoder and a decoder; The encoder comprises: Transport block CRC encoding module: performs cyclic redundancy check code encoding according to the transport block data information, generates corresponding transport block CRC check bits and appends them to the end of the data information; Segment confirmation module: according to the target code rate and corresponding modulation mode selected from the predicted channel signal-to-noise ratio and the stored MSC table, the data information of the additional transport block CRC check is segmented according to the default code length and the target code rate encoding length under each code length in the rate matching, and the code blocks encoded with the default code length and the remaining bits to be encoded are obtained; Rate matching module: According to the segmentation result, the code blocks encoded with the default code length are directly encoded using the target code rate and the default code length, and the remaining bits to be encoded are padded with zeros according to the encodable bits under each code length in the rate and divided into multiple code blocks for transmission; Modulation module: modulates the code block obtained after polar code encoding, obtains the sequence and sends it; The decoder comprises: Demodulation module: demodulates the received sequence to obtain the code block encoded by the polar code; Polarization code decoding module: performs corresponding zero removal and polarization code decoding according to the processing taken during transmission; CRC check module: checks the transmission block CRC and retransmits or splices based on the result; Splicing module: After all code blocks are decoded correctly, the received payload is spliced ​​again according to the preset rules; The encoder sets the number of zero-padding of the remaining bits to be encoded that do not need to be padded to 0; The decoder retransmits the code block with a code block CRC check error according to a preset mechanism; The system for generating codewords comprises the following modules: Module M1: For the encoder, the code length is N B , N B = 2 i , for a polar code with i ≥ 5 bits and all target code rates and additional rate-matched code rates that can be selected as specified by the MSC table; select the corresponding target code rate r according to the channel conditions, 0 < r < 1, and rate matching needs to use the transmittable bits specified by the table, whose code rate is less than the target code rate r; Module M2: For input encoder with total length N I bits of data information, with T bits of transport block CRC check added to the end, T ≥ 0, and the length of the bits to be encoded is N I +T; Module M3: Set N S The minimum code length of the polar code is used for rate matching, N S =2 j , 3≤j≤i-2, according to the polarization code length N B , minimum code length N S And the target code rate r for length N I +T bits to be encoded are segmented, and the part that is not transmitted using the default code length is called the remaining bits to be encoded x; Module M4: Computing And by looking up the table, the corresponding code length is 2 j+1 to 2 i-1 The number of code blocks; Module M5: Assume that the length of the corresponding code block is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the required code block length is 2 j The number of code blocks and the required zero padding; Module M6: Add zeros to the front of the remaining bits to be encoded of length x, and add zeros to the corresponding code block length of 2. j to 2 i-1 The number of code blocks and the number of transmittable bits are encoded.

6. The system for generating codewords according to claim 5, It is characterized in that The module M3 comprises: If N I +T>(2*N B -N S )*r, the front The bit uses code length N B The code rate r is segmented and the remaining bits are called the remaining bits to be encoded x. If N I +T≤(2*N B -N S )*r, then the remaining bits to be encoded x = N I +T.

7. The system for generating codewords according to claim 5, It is characterized in that The module M5 comprises: If the corresponding code block length is 2 j+1 to 2 i-1 The number of code blocks is M j+1 To M i-1 , the number of bits that can be transmitted is K j+1 To K i-1 , the code block length is 2 j The number of transmittable bits of a code block is K j , then you need to add x remaining bits to be encoded Bit 0, using The length of the code block is 2 j The code block.

8. The system for generating codewords according to claim 5, It is characterized in that When the remaining bits to be encoded are less than the number of codable bits of the selected code length and code rate combination scheme, 0 bits are added before the remaining bits to be encoded so that the total number of bits is equal to the codable bits.