Channel encoding method and encoding apparatus
11362677 · 2022-06-14
Assignee
Inventors
- Xianbin WANG (Hangzhou, CN)
- Huazi Zhang (Hangzhou, CN)
- Rong Li (Hangzhou, CN)
- Jun Wang (Hangzhou, CN)
- Yinggang Du (Shenzhen, CN)
Cpc classification
H03M13/1148
ELECTRICITY
H03M13/2903
ELECTRICITY
H03M13/09
ELECTRICITY
H03M13/00
ELECTRICITY
International classification
Abstract
The application provides a channel encoding method, an encoding apparatus, and a system. A bit sequence X.sub.1.sup.N is output by using X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, where D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of K to-be-encoded information bits in an encoding diagram that has a mother code length of N, u.sub.1.sup.N is a bit sequence obtained based on the K to-be-encoded information bits, and F.sub.N is a Kronecker product of log.sub.2 N matrices F.sub.2. A design considers that the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, where 0≤H≤N, and 0<M≤log.sub.m N−1.
Claims
1. A channel encoding method, comprising: obtaining, by a processor, a bit sequence X.sub.1.sup.N, wherein X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
2. The channel encoding method according to claim 1, wherein the bit sequence u.sub.1.sup.N comprises the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at the locations, in a zeroth layer in the encoding diagram, corresponding to the row location index set H.
3. The channel encoding method according to claim 1, wherein D.sub.1.sup.N comprises a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and wherein the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
4. The channel encoding method according to claim 3, wherein the layer location index set M comprises any one of a first layer to a (log.sub.m N−1).sup.th layer.
5. The channel encoding method according to claim 3, wherein the layer location index set M is determined based on the row location index set H.
6. An encoding apparatus, comprising: an input interface circuit configured to obtain K to-be-encoded information bits, wherein K is an integer greater than or equal to 1; a logic circuit configured to generate a bit sequence X.sub.1.sup.N, wherein X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
7. The encoding apparatus according to claim 6, wherein the logic circuit is further configured to generate the bit sequence u.sub.1.sup.N, wherein bit sequence u.sub.1.sup.N comprises the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at the locations, in a zeroth layer in the encoding diagram, corresponding to the row location index set H.
8. The encoding apparatus according to claim 6, wherein the logic circuit is further configured to generate the bit sequence D.sub.1.sup.N, wherein the bit sequence D.sub.1.sup.N comprises a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and wherein the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
9. The encoding apparatus according to claim 8, wherein the layer location index set M comprises any one of a first layer to a (log.sub.m.sup.N−1).sup.th layer.
10. The encoding apparatus according to claim 8, wherein the layer location index set M is determined based on the row location index set H.
11. An encoding apparatus comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to generate a bit sequence X.sub.1.sup.N, wherein X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
12. The encoding apparatus according to claim 11, wherein the processor is further configured to generate the bit sequence u.sub.1.sup.N, wherein the bit sequence u.sub.1.sup.N comprises the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at the locations, in a zeroth layer in the encoding diagram, corresponding to the row location index set H.
13. The encoding apparatus according to claim 11, wherein the processor is further configured to generate the bit sequence D.sub.1.sup.N, wherein the bit sequence D.sub.1.sup.N comprises a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and wherein the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
14. The encoding apparatus according to claim 13, wherein the layer location index set M comprises any one of a first layer to a (log.sub.m N−1).sup.th layer.
15. The encoding apparatus according to claim 13, wherein the layer location index set M is determined based on the row location index set H.
16. A non-transitory machine readable medium comprising instructions that cause a data processing system to perform operations comprising: generating a bit sequence X.sub.1.sup.N, wherein X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
17. The non-transitory machine readable medium according to claim 16, wherein the operations further comprise generating the bit sequence u.sub.1.sup.N, wherein the bit sequence u.sub.1.sup.N comprises the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at the locations, in a zeroth layer in the encoding diagram, corresponding to the row location index set H.
18. The non-transitory machine readable medium according to claim 16, wherein the further comprise generating the bit sequence D.sub.1.sup.N, D.sub.1.sup.N comprises a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and wherein the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
19. The non-transitory machine readable medium according to claim 18, wherein the layer location index set M comprises any one of a first layer to a (log.sub.m N−1).sup.th layer.
20. The non-transitory machine readable medium according to claim 18, wherein the layer location index set M is determined based on the row location index set H.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
DESCRIPTION OF EMBODIMENTS
(18) The following describes technical solutions of the application with reference to accompanying drawings.
(19)
(20) The wireless communications system mentioned in the embodiments of the application includes but is not limited to an internet of things communications system, a long term evolution (LTE) system, and a 5G mobile communications system in three application scenarios (e.g, enhanced mobile broadband (eMBB), ultra-reliable low-latency communication (URLLC), and enhanced machine type communication (eMTC)), or a new communications system that appears in the future.
(21) The terminal device in the embodiments of the application may include various handheld devices, vehicle-mounted devices, wearable devices, or computing devices that have a wireless communication function, or other processing devices connected to a wireless modem. The terminal device may be a mobile station (MS), a subscriber unit, a cellular phone, a smartphone, a wireless data card, a personal digital assistant (PDA) computer, a tablet computer, a wireless modem (modem), a handheld device (handset), a laptop computer, a machine type communication (MTC) terminal, or the like.
(22) A wireless technology is used for communication between the network device and the terminal devices in
(23)
(24) For ease of understanding, channel encoding in the application is first briefly described.
(25) Channel encoding/decoding is one of core technologies in the wireless communications field, and performance improvement of the technology directly enhances network coverage and increases a user transmission rate. Currently, a polar code is a channel encoding technology that is theoretically proved to be capable of achieving a Shannon capacity and that has practical encoding and decoding capabilities with linear complexity. A core of the polar code is to use “channel polarization”. On an encoding side, subchannels present different reliability by encoding. When a code length continuously increases, some channels tend to become noiseless channels having a capacity close to 1, and some other channels tend to become pure noisy channels having a capacity close to 0. A channel having a capacity close to 1 is selected and information is directly transmitted on the channel, to approach the channel capacity.
(26) The encoding policy provided in the application exactly takes advantage of a feature of this phenomenon, and a noiseless channel or a low-noise channel is used to transmit useful information of a user, and a pure noisy channel is used to transmit agreed information or transmit no information. Code provided in the application is also a linear block code. An encoding matrix (also referred to as a generator matrix) of the linear block code may be based on an existing matrix F.sub.N, and an encoding process is X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, to obtain a bit sequence X.sub.1.sup.N. F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(27)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(28) In the foregoing encoding process, some bits in u.sub.1.sup.N are used to carry information and are referred to as an information bit set. A set of indexes of these bits is denoted as A. Some other bits are set to fixed values that are pre-agreed on by the receive end and the transmit end, and are referred to as a fixed bit set or a frozen bit (frozen bits) set. A set of indexes of these bits is represented by using a complementary set A.sup.c of A. A quantity of fixed bits in the set in u.sub.1.sup.N is (N−K), and the fixed bits are bits known by both the transmit end and the receive end. The fixed bits are generally set to 0. However, the fixed bits may be set randomly provided that the receive end and the transmit end have pre-agreed.
(29) Based on the foregoing descriptions, the embodiments of the application provide a channel encoding method and apparatus, and a system, to improve error correction performance of the polar code in higher-order modulation, to meet a FAR requirement. The channel encoding method and apparatus provided in the application are described in detail below with reference to the accompanying drawings.
(30)
(31) S300. The transmit end obtains a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=D.sub.1.sup.NF.sub.N.
(32) F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(33)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(34) u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(35) The fixed bits are values pre-agreed on by a receive end and the transmit end. These pre-agreed values may also be referred to as frozen bits, and may be 0.
(36) An information bit is a bit used to carry information, and the information may include any one or a combination of the following: data information, signaling information, or check information, for example, power control information, uplink scheduling grant information, resource block resource allocation information, cyclic redundancy check (CRC), parity check (PC), or any other check information.
(37) Further, D.sub.1.sup.N includes a bit sequence C.sub.1.sup.N and a fixed bit, and the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
(38) Further, the layer location index set M includes any one of the first layer to the (log.sub.m N−1).sup.th layer; or the layer location index set M is determined based on the row location index set H.
(39) S302. The transmit end sends the bit sequence X.sub.1.sup.N.
(40) Further, the foregoing process of obtaining the bit sequence X.sub.1.sup.N by the transmit end relates to the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N. In at least one embodiment, a process of determining the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N is as follows:
(41) First, the transmit end obtains the encoding diagram that has a mother code length of N.
(42) The encoding diagram includes M′ layers and H′ rows. M′ layers are equal to (log.sub.m N+1) layers, which are the zeroth layer layer 0, the first layer layer 1, . . . , and the (M′−1).sup.th layer layer log.sub.m N. H′ rows are the zeroth row, . . . , and the (N−1).sup.th row, where N is an integer power of m, and m is a positive integer greater than 1.
(43) An encoding diagram with an encoding length of N that is 8 is used as an example. As shown in
(44) Then, the transmit end determines the locations of the K to-be-encoded information bits in the encoding diagram based on the foregoing encoding diagram. The locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include the row location index set H of the information bits in the encoding diagram and the layer location index set M of the information bits in the encoding diagram, where H⊂H′, M⊂M′, 0≤H≤N, and 0≤M≤log.sub.m N−1.
(45) Because the locations of the information bits in the encoding diagram determine performance of channel encoding, in addition to determining the row location index set of the information bits in the encoding diagram, the determining the locations of the information bits in the encoding diagram further includes determining the layer location index set of the information bits in the encoding diagram. The following further describes, by using an example, a plurality of implementations of the process of determining the locations of the information bits in the encoding diagram.
(46) In an embodiment, the process of determining the locations of the information bits in the encoding diagram is implemented in two operations: First, a row, of the encoding diagram, in which the information bits are placed is selected; second, a layer, of the selected row, in which the information bits are placed is further determined.
(47) In at least one embodiment, the transmit end may determine, by using any one or a combination of the following one or more manners, the row location index set H in which the information bits are located: For example, the row location index set is determined based on a polarization weight (PW) sequence, a bar-type parameter, Gaussian approximation, or the like. Herein, the determining the row location index set H in which the information bits are located is the prior art, and details are not described herein again.
(48) Using
(49) Further, the transmit end determines the layer location index set M of the information bits in the encoding diagram in the following several manners, and examples are as follows:
(50) Example 1: The layer location index set M of the K to-be-encoded information bits in the encoding diagram includes any one of the first layer to the (log.sub.m N−1).sup.th layer.
(51) In at least one embodiment, the transmit end selects any one of layers from a layer location index set M′ of the encoding diagram as the layer location index set M, and a preferred manner is selecting one layer L from the first layer to the (log.sub.m N−1).sup.th layer of the M′ and determining that the layer location index set M in which the K to-be-encoded information bits are located is {L}. It should be noted that because all the to-be-encoded information bits are placed in one layer herein, there is only one element in the determined set M, that is, the layer L.
(52) Using
(53) With reference to the determining of the row location index, the third row of the layer 2, the fifth row of the layer 2, the sixth row of the layer 2, and the seventh row of the layer 2 may be determined as the locations of the four to-be-encoded information bits in the encoding diagram. As shown in
(54) Example 2: The manner in which the transmit end determines the layer location index set M of the information bits in the encoding diagram may be: The layer location index set M is determined based on the row location index set H.
(55) In at least one embodiment, first, the transmit end selects one layer L from the layer location index set M′, and determines the layer L as a layer index corresponding to a row index h in which any information bit in the row location index H is located, where h∈H.
(56) Then, the transmit end traverses h in the row location index set H, to determine the layer location index set M in which all the K to-be-encoded information bits are located.
(57) In
(58) The transmit end first determines a row index in which an information bit, of the four to-be-encoded information bits, corresponding to the row index h.sub.3 in the encoding diagram is located: The transmit end may select any one layer from the layer 0 to the layer 3 in the encoding diagram, and preferably, the layer 0 and the layer 3 are not selected, that is, the transmit end selects one layer from the layer 1 and the layer 2 in the encoding diagram. As shown in
(59) As shown in
(60) Alternatively, the manner in which the transmit end determines the layer location index set M of the information bits in the encoding diagram may be:
(61) Example 3: For an embodiment of the foregoing example 2:
(62) For each h in the row location index set H of the information bits, the transmit end calculates a layer index L of each information bit by using the following formula, where the formula is a function related to h.
(63) The foregoing function related to h may be: L=ceil(log.sub.2(rem(h, 2.sup.m)+1)). L is obtained through calculating, and m is an integer and is generally any value of 2, 3, or 4. h is a layer index corresponding to a row index h, in which any information bit is located, in the row location index H. The rem function is a function for calculating a remainder of dividing h by 2.sup.m, for example, rem(5, 2)=1, and the ceil function is a function for calculating a smallest integer greater than a number in brackets, for example, ceil(2.5)=3. The layer index L of the information bit of each h may be obtained by using the foregoing formula.
(64) It should be noted that, in the foregoing process of determining the location of the information bit on a subchannel, a sequence of determining, by the transmit end, the row location index of the information bit on the subchannel and determining the layer location index of the information bit on the subchannel is not particularly limited. In the foregoing embodiment, alternatively, the transmit end may first determine the layer location index of the information bit on the subchannel, and then determine the row location index of the information bit on the subchannel.
(65) The foregoing process implements the process of determining the locations of the to-be-sent information bits in the encoding diagram. On an encoding side, the information bits are encoded based on the locations of the to-be-sent information bits in the encoding diagram, especially the row location indexes of the information bits in the encoding diagram. Simulation results show that the encoding scheme can greatly improve a bit error rate of an encoding system.
(66) Based on the foregoing manner of determining the locations of the K to-be-encoded information bits in the encoding diagram, it can be learned that: For the locations of the information bits, not only the row location indexes of the information bits in the encoding diagram are considered, but also the layer location indexes of the information bits in the encoding diagram need to be considered; particularly, the information bits are distributed in different layer indexes. In encoding of a bit sequence encoded based on the channel encoding diagram, the bit error rate (BER) of the system is reduced, and further a FAR is also reduced when the receive end performs decoding by using the encoded bit sequence.
(67) The foregoing is a process of determining, by the transmit end, the locations of the to-be-sent information bits in the encoding diagram. The transmit end further performs polar code encoding on the information bits based on the locations of the information bits in the encoding diagram.
(68) The following describes, with reference to the locations of the information bits in the encoding diagram, the process of encoding the information bits.
(69) Using
(70) Operation 1: The transmit end places K to-be-encoded information bits at locations, in the zeroth layer in the encoding diagram, corresponding to a row location index set H.
(71) It should be noted herein that, based on the foregoing descriptions of the locations of the information bits in the encoding diagram,
(72) The input bit sequence u.sub.1.sup.N of the transmit end herein includes encoded bits corresponding to the layer 0 in
(73) Operation 2: The transmit end sets values of other bit locations in the layer 0 to fixed bits.
(74) Operation 3: The transmit end obtains the bit sequence u.sub.1.sup.N based on the to-be-encoded information bits and the fixed bits.
(75) It should be noted that a sequence of operation 1 and operation 2 may be changed, and is not limited.
(76) The foregoing determining process may be the foregoing operation: The K to-be-encoded information bits are placed at the locations, in the layer 0 in the encoding diagram, corresponding to H; or it may be understood that bits, corresponding to the row index set H in the encoding diagram, of the to-be-sent information bits are placed at the locations, in the layer 0, corresponding to H, to obtain the input bit sequence u.sub.1.sup.N.
(77) For example, as shown in
(78) A specific process of obtaining u.sub.1.sup.N by the transmit end is as follows:
(79) One manner may be:
(80) As shown in
(81) Another manner may be understood as:
(82) It can be learned from
(83) Further, the transmit end sets other variable nodes of the layer 0 to fixed values, for example, all-0 values.
(84) Finally, the encoded sequence u.sub.1.sup.N generated by the transmit end based on the information bits and the fixed bits is {0, 0, 0, 1, 0, 1, 0, 1}.
(85) It should be noted that a butterfly operation process of a polar code is also performed from the layer 0. Therefore, when the transmit end performs encoding, the to-be-encoded information bits are generally placed at the locations corresponding to H of the layer 0. Then, an encoded bit sequence u.sub.1.sup.N with a mother code of N is generated, and polar code encoding is further performed. The input bit sequence u.sub.1.sup.N herein may be conveniently understood as N bit sequences of the layer 0 in
(86) Then, the transmit end performs polar encoding on the input bit sequence u.sub.1.sup.N to obtain a bit sequence C.sub.1.sup.N.
(87) As shown in
(88) It should be noted that the foregoing process of performing polar encoding on u.sub.1.sup.N is a part of an existing polar code encoding process. Herein, preferably, the transmit end performs, based on the locations of the K to-be-encoded information bits in the encoding diagram, the butterfly operation on u.sub.1.sup.N from the layer 0, until it is calculated that M is the layer {L.sub.2}, and the bit sequence C.sub.1.sup.N is output. M is a layer index location of the information bits in the foregoing encoding diagram. As shown in
(89) Then, the transmit end obtains the bit sequence D.sub.1.sup.N based on C.sub.1.sup.N.
(90) Herein, this may be simply understood as a process of secondary polar encoding. As shown in
(91) A specific operation may be as follows: The transmit end places values of locations of the bits corresponding to the row index H of C.sub.1.sup.N to bit locations corresponding to a row location index set H of the zeroth layer in
(92) In at least one embodiment, as shown in
(93) In the foregoing process of encoding D.sub.1.sup.N, a sequence of determining, by the transmit end, the fixed bits in the layer 0 and determining the bits corresponding to H in the layer 0 is not limited.
(94) Finally, the transmit end obtains an encoded bit sequence X.sub.1.sup.N based on D.sub.1.sup.N by using a formula X.sub.1.sup.N=D.sub.1.sup.NF.sub.N.
(95) In at least one embodiment, the transmit end sequentially performs calculation, for example, a butterfly operation, on the obtained bit sequence D.sub.1.sup.N from left to right, and outputs the encoded bit sequence. As shown in
(96) The foregoing process of performing polar encoding on the D.sub.1.sup.N may also be understood as X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, where F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(97)
(98) The transmit end multiplies the binary row vector D.sub.1.sup.N of 1×N by the N×N matrix F.sub.N, and outputs the 1×N binary row vector X.sub.1.sup.N.
(99) It should be noted that, in the foregoing process of determining the encoded sequence, there is no limitation on a sequence of determining the bits, corresponding to the information bits, of the row location index and determining the fixed bits, and the fixed bits may be first determined and then the values, corresponding to the information bits, of the row location index are determined.
(100) Optionally, the obtaining the bit sequence by the transmit end in S300 mentioned above may alternatively be implemented by using the formula below. The following uses
(101) Operation 1: Obtain an input bit sequence u.sub.1.sup.N, where u.sub.1.sup.N is a binary row vector and has a length of N.
(102) For details, refer to the foregoing specific descriptions. Details are not described herein again.
(103) Operation 2: The transmit end obtains C.sub.1.sup.N based on u.sub.1.sup.N by using a formula
(104)
where:
(105) u.sub.1.sup.N=(u.sub.1, u.sub.2, . . . , u.sub.N) is a 1×N binary row vector; F.sub.2.sup..Math.M represents a Kronecker product of M matrices F.sub.2, and a 2.sup.M×2.sup.M matrix is output, where M is a layer index set of subchannels on which to-be-encoded information bits are located;
(106)
represents
(107)
all-1 vectors,
(108)
is a
(109)
diagonal matrix generated by placing input vectors, for example, all-1 vectors, on a diagonal line; and Kronecker multiplication is performed on F.sub.2.sup..Math.M and
(110)
and an N×N matrix is output.
(111) In at least one embodiment, the transmit end performs, based on
(112)
matrix multiplication on the input bit sequence u.sub.1.sup.N and
(113)
and outputs the encoded 1×N bit sequence C.sub.1.sup.N. For example, in
(114) Operation 3: The transmit end obtains a bit sequence D.sub.1.sup.N based on bits corresponding to H in C.sub.1.sup.N and fixed bits.
(115) For example, in
(116) Further, the transmit end sets values of other bit locations, other than the row location index set H, of the zeroth layer to fixed bits. As shown in
(117) After the foregoing encoding, the obtained D.sub.1.sup.N is {0, 0, 0, 0, 0, 1, 1, 0}.
(118) Operation 4: The transmit end outputs an encoded bit sequence X.sub.1.sup.N based on D.sub.1.sup.N by using a formula X.sub.1.sup.N=D.sub.1.sup.NF.sub.N.
(119) In at least one embodiment, corresponding to the foregoing formula, the obtained D.sub.1.sup.N is multiplied by F.sup.N, and a 1×N matrix is output.
(120) The F.sup.N is an N×N matrix, and F.sub.N=F.sub.2.sup..Math.(log.sup.
(121)
(122) The foregoing corresponds to the process of performing polar encoding on D.sub.1.sup.N in
(123) For example, in
(124) The addition and multiplication operations in the foregoing formulas are all addition and multiplication operations in a binary Galois field, and then the encoded bit sequence X.sub.1.sup.N is output.
(125) In conclusion, in the process of obtaining the bit sequence X.sub.1.sup.N in operation 1 to operation 4, the bit sequence X.sub.1.sup.N may also be directly obtained by using the following formula:
(126)
(127) F.sub.2.sup..Math.n represents a Kronecker product of n matrices F.sub.2, and 2.sup.n×2.sup.n is output, where N=2.sup.n, that is, an N×N matrix is output.
(128) (F.sub.2.sup..Math.n).sub.H represents the h.sup.th row of the matrix F.sub.2.sup..Math.n, and (F.sub.2.sup..Math.n).sub.H is determined by determining
(129)
(130) If h belongs to a row index set H of information bits, a value of h in the row location index set H is determined for assignment; if h does not belong to the row index set H of the information bits, L pre-agreed fixed values, for example, all-0 values, are determined.
(131) The foregoing
(132)
corresponds to the encoded bits in the layer 0 in
(133) Using the bit sequence of the layer 0 in
(134) Further, the foregoing formula may be understood as: performing matrix multiplication on the input bit sequence u.sub.1.sup.N and
(135)
outputting C.sub.1.sup.N, obtaining D.sub.1.sup.N by encoding C.sub.1.sup.N, and obtaining X.sub.1.sup.N by using X.sub.1.sup.N=D.sub.1.sup.NF.sub.N.
(136) It should be noted that, in the foregoing formula, in X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, values corresponding to H rows of D.sub.1.sup.N and F.sub.N are separately taken and then multiplied, which corresponds to
(137) In an embodiment of the foregoing encoding process, the output bit sequence D.sub.1.sup.N is designed based on the locations of the K to-be-encoded information bits in the encoding diagram, and in particular, the layer location index set M of the information bits in the encoding diagram; polar encoding of a polar code is performed on D.sub.1.sup.N; the encoded bit sequence X.sub.1.sup.N is output. The encoding method not only improves BER performance of an encoding device, but also improves FAR performance in decoding. The channel encoding method is particularly effective when a decoding device performs decoding.
(138) An embodiment of the present disclosure further provides an encoding apparatus for encoding, configured to implement the channel encoding method in the foregoing embodiment. A part or all of the channel encoding method in the foregoing embodiment may be implemented by hardware or software. When the channel encoding method is implemented by hardware, refer to
(139)
(140) an input interface circuit 701, configured to obtain K to-be-encoded information bits, where K is an integer greater than or equal to 1;
(141) a logic circuit 702, configured to generate a bit sequence X.sub.1.sup.N where X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(142)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1; and
(143) an output interface circuit 704, configured to output the encoded bit sequence X.sub.1.sup.N.
(144) In an embodiment of the foregoing encoding process, the output bit sequence D.sub.1.sup.N is designed based on the locations of the K to-be-encoded information bits in the encoding diagram, and in particular, the layer location index set M of the information bits in the encoding diagram; polar encoding of a polar code is performed on D.sub.1.sup.N; the encoded bit sequence is output. Compared with an existing non-system polar code, for the locations of the information bits in the encoding diagram, not only rows in which the information bits are located in the encoding diagram are considered, but also layer locations of the information bits in the encoding diagram need to be considered. The foregoing designed locations of the information bits are applied to an encoding process, so that a bit error rate (BER) of a system is greatly reduced. Further, in a decoding process of the encoding method, whether a decoding algorithm is stopped in advance is determined based on cyclic redundancy check, so that FAR performance in decoding is greatly reduced.
(145) In an embodiment, the logic circuit 702 is further configured to generate the bit sequence u.sub.1.sup.N, the bit sequence u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(146) The logic circuit 702 provided in an embodiment is further configured to generate the bit sequence D.sub.1.sup.N, D.sub.1.sup.N includes a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
(147) Because the foregoing processes of generating u.sub.1.sup.N and D.sub.1.sup.N by the logic circuit 702 relate to the locations of the K to-be-encoded information bits in the encoding diagram, a process of determining the locations of the information bits in the encoding diagram is the same as the foregoing processes described in
(148) Further, the logic circuit 702 determines the layer location index set M of the information bits in the encoding diagram in the following several manners, and examples are as follows:
(149) Example 1: The layer location index set M of the K to-be-encoded information bits in the encoding diagram includes any one of the first layer to the (log.sub.m N−1).sup.th layer.
(150) Example 2: The manner of determining the layer location index set M of the information bits in the encoding diagram may be: The layer location index set M is obtained based on the row location index set H.
(151) In at least one embodiment, first, any layer L is selected from a layer location index set M′, and is determined as a layer index corresponding to a row index h in which any information bit in the row location index H is located, where h∈H.
(152) Then, h in the row location index set H is traversed, to determine the layer location index set M in which all the K to-be-encoded information bits are located.
(153) Alternatively, the manner of determining the layer location index set M of the information bits in the encoding diagram may be:
(154) Example 3: For an embodiment of the foregoing example 2:
(155) For each h in the row location index set H of the information bits, a layer index L of each information bit is calculated by using the following formula, where the formula is a function related to h.
(156) The foregoing function related to h may be: L=ceil(log.sub.2(rem(h, 2.sup.m)+1)). L is obtained through calculating, and m is an integer and is generally any value of 2, 3, or 4. h is a layer index corresponding to a row index h, in which any information bit is located, in the row location index H. The rem function is a function for calculating a remainder of dividing h by 2.sup.m, for example, rem(5, 2)=1, and the ceil function is a function for calculating a smallest integer greater than a number in brackets, for example, ceil(2.5)=3. The layer index L of the information bit of each h may be obtained by using the foregoing formula.
(157) For a specific process of determining, by the logic circuit 702, the locations of the to-be-sent information bits on subchannels, refer to descriptions in
(158) The following describes, with reference to the locations of the information bits in the encoding diagram, the process of encoding the information bits.
(159) The determining, by the logic circuit 702 provided in an embodiment, the input bit sequence u.sub.1.sup.N may be implemented as follows:
(160) Operation 1: The logic circuit 702 places the K to-be-encoded information bits at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(161) Operation 2: The logic circuit 702 sets values set at other locations in the zeroth layer to fixed bits.
(162) Operation 3: The logic circuit 702 obtains the bit sequence u based on the to-be-encoded information bits and the fixed bits.
(163) It should be noted that a sequence of operation 1 and operation 2 may be changed, and is not limited.
(164) The foregoing determining process may be the foregoing operation: The K to-be-encoded information bits are placed at the locations, in the layer 0 in the encoding diagram, corresponding to H, to obtain the input bit sequence u.sub.1.sup.N.
(165) Further, the obtaining, by the logic circuit 702 provided in an embodiment, the bit sequence D.sub.1.sup.N may be implemented as follows:
(166) First, polar encoding is performed on the input bit sequence u.sub.1.sup.N by using the logic circuit 702, to obtain the bit sequence C.sub.1.sup.N.
(167) As shown in
(168) It should be noted that the foregoing process of performing polar encoding on u.sub.1.sup.N is a part of an existing polar code encoding process. Herein, preferably, the butterfly operation is performed, based on the locations of the K to-be-encoded information bits in the encoding diagram, on u.sub.1.sup.N from the layer 0, until it is calculated that M is the layer {L.sub.2}, and the bit sequence C.sub.1.sup.N is output. M is a layer index location of the information bits in the foregoing encoding diagram. As shown in
(169) Then, the logic circuit 702 obtains the bit sequence D.sub.1.sup.N based on C.sub.1.sup.N.
(170) In at least one embodiment, as shown in
(171) Then, the logic circuit 702 sets bits corresponding to other locations in the layer 0 to fixed bits.
(172) In at least one embodiment, as shown in
(173) Finally, as shown in
(174) In at least one embodiment, as shown in
(175) Further, the logic circuit 702 obtains the encoded bit sequence X.sub.1.sup.N based on D.sub.1.sup.N by using the formula X.sub.1.sup.N=D.sub.1.sup.NF.sub.N.
(176) An embodiment of the present disclosure further provides another implementation. For example, the foregoing logic circuit 702 may further obtain the bit sequence X.sub.1.sup.N by using the formula below. The following uses
(177) Operation 1: The logic circuit 702 obtains an input bit sequence u.sub.1.sup.N, where u.sub.1.sup.N is a binary row vector and has a length of N.
(178) For details, refer to the foregoing specific descriptions. Details are not described herein again.
(179) Operation 2: The logic circuit 702 obtains C.sub.1.sup.N based on u.sub.1.sup.N by using a formula
(180)
(181) Operation 3: The logic circuit 702 obtains a bit sequence D.sub.1.sup.N.
(182) A specific encoding process is as follows:
(183) For example, in
(184) Further, a transmit end sets values of other bit locations, other than the row location index set H, of the zeroth layer to fixed bits. As shown in
(185) After the foregoing encoding, the obtained D.sub.1.sup.N is {0, 0, 0, 0, 0, 1, 1, 0}.
(186) Operation 4: The logic circuit 702 outputs an encoded bit sequence X.sub.1.sup.N based on D.sub.1.sup.N by using a formula X.sub.1.sup.N=D.sub.1.sup.NF.sub.N.
(187) For example, in
(188) The addition and multiplication operations in the foregoing formulas are all addition and multiplication operations in a binary Galois field, and then the logic circuit 702 obtains the encoded bit sequence X.sub.1.sup.N.
(189) For a method for determining, by the foregoing encoding apparatus, the locations of the information bits in the encoding diagram and for a channel encoding method, refer to
(190) In an embodiment of the foregoing encoding process, the output bit sequence D.sub.1.sup.N is designed based on the locations of the K to-be-encoded information bits in the encoding diagram, and in particular, the layer location index set M of the information bits in the encoding diagram; polar encoding of a polar code is performed on D.sub.1.sup.N; the encoded bit sequence X.sub.1.sup.N is output. The encoding method not only reduces a BER on an encoding side, but also reduces a FAR in decoding. The channel encoding method is particularly effective when a decoding device performs decoding.
(191) When a part or all of the channel encoding method in the foregoing embodiment is implemented by software, an embodiment of the present disclosure further provides an encoding apparatus 800. The apparatus includes a processor 802 in
(192) The processor 802 is configured to generate a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=D.sub.1.sup.N F.sup.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(193)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(194) Further, optionally, the processor is further configured to generate the bit sequence u.sub.1.sup.N, u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(195) The fixed bits are fixed values pre-agreed on by a receive end and a transmit end, and these pre-agreed fixed values may also be referred to as frozen bits.
(196) An information bit is a bit used to carry information, and the information may include any one or a combination of the following: data information, signaling information, or check information, for example, power control information, uplink scheduling grant information, resource block resource allocation information, cyclic redundancy check CRC, parity check PC, or any other check information.
(197) Further, optionally, the processor is further configured to generate the bit sequence D.sub.1.sup.N D.sub.1.sup.N includes a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
(198) Further, optionally, the layer location index set M includes any one of the first layer to the (log.sub.m N−1).sup.th layer.
(199) Alternatively, the layer location index set M is determined based on the row location index set H.
(200) For a method for determining, by the foregoing encoding apparatus, the locations of the information bits in the encoding diagram and for a channel encoding method, refer to
(201) The processor provided above designs the output bit sequence D.sub.1.sup.N based on the locations of the K to-be-encoded information bits in the encoding diagram, and in particular, the layer location index set M of the information bits in the encoding diagram, performs polar encoding of a polar code on D.sub.1.sup.N, and outputs the encoded bit sequence X.sub.1.sup.N. The encoding method not only improves BER performance of an encoding device, but also improves FAR performance in decoding. The channel encoding method is particularly effective when a decoding device performs decoding.
(202) An embodiment of the present disclosure may further provide an encoding apparatus 900, including a processor 902 and a memory 901. As shown in
(203) The processor 902 is configured to: execute the program stored in the memory, and generate a bit sequence X.sub.1.sup.N when the program is executed, where X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(204)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(205) The memory 901 may be a physically independent unit, or may be integrated with the processor 902.
(206) In the foregoing embodiment, the memory may be located outside the encoding apparatus, and the encoding apparatus is connected to the memory by using a circuit/wire, and is configured to read and execute the program stored in the memory.
(207) An embodiment of the present disclosure may further provide an encoding apparatus 1000, which may include:
(208) a processor 1002 and a transceiver 1004, as shown in
(209) The transceiver 1004 is configured to receive K to-be-encoded information bits and send X.sub.1.sup.N, where K is an integer greater than or equal to 1.
(210) The processor 1002 is configured to generate the bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(211)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(212) For a method for determining, by the foregoing encoding apparatus, the locations of the information bits in the encoding diagram and for a channel encoding method, refer to
(213) Further, the foregoing various encoding apparatuses may be base stations or terminals.
(214) The encoding apparatus provided above designs the output bit sequence D.sub.1.sup.N based on the locations of the K to-be-encoded information bits in the encoding diagram, and in particular, the layer location index set M of the information bits in the encoding diagram, performs polar encoding of a polar code on D.sub.1.sup.N, and outputs the encoded bit sequence X.sub.1.sup.N. The encoding method not only improves BER performance of an encoding device, but also improves FAR performance in decoding. The channel encoding method is particularly effective when a decoding device performs decoding.
(215) Another embodiment of the present disclosure further provides an encoding apparatus 1100. As shown in
(216) a receiving module 1102, configured to obtain K to-be-encoded information bits, where K is an integer greater than or equal to 1;
(217) an encoding module 1104, configured to generate a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=D.sub.1.sup.NF.sub.N, F.sub.N is an N×N matrix, F.sub.N=F.sub.2.sup..Math.(log.sup.
(218)
N is a length of a mother code, D.sub.1.sup.N is a bit sequence obtained after an input bit sequence u.sub.1.sup.N is encoded based on locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N, and u.sub.1.sup.N is N bit sequences generated based on the K to-be-encoded information bits; K is an integer greater than or equal to 1, N is an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1; and
(219) a sending module 1106, configured to send the bit sequence X.sub.1.sup.N.
(220) Further, the encoding module is further configured to generate the bit sequence u.sub.1.sup.N, u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(221) Further, the encoding module is further configured to generate the bit sequence D.sub.1.sup.N D.sub.1.sup.N includes a bit that corresponds to a bit sequence C.sub.1.sup.N and that is in the row location index set H in the encoding diagram and a fixed bit, and the bit sequence C.sub.1.sup.N is a bit sequence obtained after polar encoding is performed on u.sub.1.sup.N based on the encoding diagram.
(222) The layer location index set M includes any one of the first layer to the (log.sub.m N−1).sup.th layer, or the layer location index set M is obtained based on the row location index set H.
(223) For a method for determining, by the foregoing encoding apparatus, the locations of the information bits in the encoding diagram and for a channel encoding method, refer to
(224) Further, the foregoing various encoding apparatuses may be base stations or terminals.
(225) The encoding apparatus provided above designs the output bit sequence D.sub.1.sup.N based on the locations of the K to-be-encoded information bits in the encoding diagram, and in particular, the layer location index set M of the information bits in the encoding diagram, performs polar encoding of a polar code on D.sub.1.sup.N, and outputs the encoded bit sequence X.sub.1.sup.N. The encoding method not only improves BER performance of an encoding device, but also improves FAR performance in decoding. The channel encoding method is particularly effective when a decoding device performs decoding.
(226) Another embodiment of the present disclosure further provides a readable storage medium, including a readable storage medium and a computer program. The computer program is used to implement the channel encoding method corresponding to any one of
(227) Another embodiment of the present disclosure further provides a program product. The program product includes a computer program, and the computer program is stored in a readable storage medium. At least one processor of an encoding apparatus may read the computer program from the readable storage medium, and the at least one processor executes the computer program, so that the encoding apparatus implements the channel encoding method according to any one of the channel encoding method embodiments corresponding to
(228) It should be noted that a transmit end performs decoding based on a received encoded sequence, where a decoding algorithm is similar to the decoding algorithm in the foregoing solution, and is the prior art. Details are not described herein. In the foregoing encoding method, an error correction capability of a decoding side is greatly improved.
(229) An embodiment of the present disclosure further provides an encoding and decoding system. As shown in
(230) An embodiment of the present disclosure further provides a flowchart of an embodiment of a channel encoding method. As shown in
(231) S1200. The transmit end obtains a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N, u.sub.1.sup.N is a bit sequence obtained based on K to-be-encoded information bits, and the new matrix G′.sub.N is a matrix generated based on an encoding generator matrix of a polar code and locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N; the encoding generator matrix of the polar code is a Kronecker product of log.sub.2 N matrices F.sub.2 and
(232)
K is an integer greater than or equal to 1, N is the length of a mother code and an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(233) S1202. The transmit end sends the bit sequence X.sub.1.sup.N.
(234) An information bit is a bit used to carry information, and the information may include any one or a combination of the following: data information, signaling information, or check information, for example, power control information, uplink scheduling grant information, resource block resource allocation information, cyclic redundancy check (CRC), parity check (PC), or any other check information.
(235) Fixed bits are values pre-agreed on by a receive end and the transmit end. These pre-agreed values may also be referred to as frozen bits, and may be 0.
(236) The K to-be-encoded information bits may include a check bit, for example, a CRC bit, a parity check (PC) encoding bit, or any other check bit.
(237) In at least one embodiment, the process in which the transmit end obtains the bit sequence X.sub.1.sup.N is as follows:
(238) First, the process in which the transmit end obtains the new matrix G′.sub.N is as follows:
(239) The new matrix G′.sub.N is a matrix generated, based on the encoding generator matrix of the polar code and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N.
(240) For example, the transmit end may generate G′.sub.N by using the following formula:
New matrix G′.sub.N={BC+BC.sub.{tilde over (H)}}.sub.H
(241) For the new matrix G′.sub.N=BC+BC.sub.{tilde over (H)},
(242)
C=F.sub.2.sup..Math.n, and n=log.sub.2.sup.N.
(243) It can be learned from the foregoing descriptions that the foregoing new matrix G′.sub.N is a matrix generated by the transmit end based on the encoding generator matrix C of the polar code and the matrix B. The matrix B is related to F.sub.2.sup..Math.M and
(244)
C is a Kronecker Kronecker product of log.sub.2 N matrices F.sub.2 and
(245)
(246) F.sub.2.sup..Math.M represents a Kronecker product of M matrices F.sub.2, and a 2.sup.M×2.sup.M matrix is output, where M is a layer index set of subchannels on which the to-be-encoded information bits are located.
(247)
is a function for generating a diagonal matrix, where
(248)
represents
(249)
all-1 vectors. This function places input vectors, for example, all-1 vectors, on a diagonal line, and fills 0 for the rest, to output a
(250)
diagonal matrix.
(251) The input bit sequence u.sub.1.sup.N=(u.sub.1, u.sub.2, . . . , u.sub.N) is a binary row vector, it may be understood that the input bit sequence sets locations corresponding to the index set H to the to-be-encoded information bits, and sets other locations to 0, and {tilde over (H)} represents a complementary set of H. When A=BC+BC.sub.{tilde over (H)}, A.sub.h represents the h.sup.th row of the matrix A, L represents a column quantity of the matrix A, and A.sub.H is determined based on
(252)
If h belongs to the row index set H of the information bits, a value of h in the row location index set H is determined for assignment; if h does not belong to the row index set H of the information bits, L pre-agreed fixed values, for example, all-0 values, are determined. Herein, a value of a location corresponding to A.sub.H is determined by using the foregoing formula, and an N×N matrix is still output.
(253) (F.sub.2.sup..Math.n).sub.{tilde over (h)} represents the h.sup.th row of the matrix F.sub.2.sup..Math.n, and (F.sub.2.sup..Math.n).sub.{tilde over (H)} is determined by determining
(254)
if h belongs to the complementary set {tilde over (H)} of the row index set of the information bits, a value of h in the row location index set H is determined for assignment; if h does not belong to the complementary set {tilde over (H)} of the row index set of the information bits, L pre-agreed fixed values, for example, all-0 values, are determined.
(255) It should be noted that the foregoing formula is merely an example, and may be shown by using another formula. It may be understood that the foregoing new matrix G′.sub.N may be a matrix related to the encoding generator matrix of the polar code, or it may be understood that the foregoing new matrix G′.sub.N is a matrix related to locations, on subchannels, of the K to-be-encoded information bits. Alternatively, as described above, the new matrix G′.sub.N may be a matrix related to the encoding generator matrix of the polar code and the locations, on the subchannels, of the K to-be-encoded information bits.
(256) Then, the transmit end obtains the input bit sequence u.sub.1.sup.N. u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(257) In at least one embodiment, the transmit end places the K to-be-encoded information bits at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H. Then the transmit end sets values of other (N−K) bit locations in the zeroth layer to fixed bits. Finally, the transmit end obtains the bit sequence u.sub.1.sup.N based on the to-be-encoded information bits and the fixed bits.
(258) Further, in a process of determining u.sub.1.sup.N, the transmit end further obtains the encoding diagram that has a mother code length of N, where the encoding diagram includes M′ layers and H′ rows. M′ layers are equal to (log.sub.m N+1) layers, which are the zeroth layer layer 0, the first layer layer 1, . . . , and the (M′−1).sup.th layer layer log.sub.m N. H′ rows are the zeroth row, . . . , and the (N−1).sup.th row, where N is an integer power of m, and m is a positive integer greater than 1.
(259) Further, the transmit end determines the locations of the K to-be-encoded information bits in the encoding diagram based on the foregoing encoding diagram. The locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include the row location index set H of the information bits in the encoding diagram and the layer location index set M of the information bits in the encoding diagram, where H⊂H′, M⊂M′, 0≤H≤N, and 0≤M≤log.sub.m N−1.
(260) Because the locations of the information bits in the encoding diagram determine performance of channel encoding, in addition to determining the row location index set of the information bits in the encoding diagram, the determining the locations of the information bits in the encoding diagram further includes determining the layer location index set of the information bits in the encoding diagram. The following further describes, by using an example, a plurality of implementations of the process of determining the locations of the information bits in the encoding diagram.
(261) In an embodiment, the process of determining the locations of the information bits in the encoding diagram is implemented in two operations: First, a row, of the encoding diagram, in which the information bits are placed is selected; second, a layer, of the selected row, in which the information bits are placed is further determined.
(262) In at least one embodiment, the transmit end may determine, by using any one or a combination of the following one or more manners, the row location index set H in which the information bits are located: For example, the row location index set is determined based on a polarization weight (PW) sequence, a bar-type parameter, Gaussian approximation, or the like. Herein, the determining the row location index set H in which the information bits are located is the prior art, and details are not described herein again.
(263) Using
(264) Further, the transmit end determines the layer location index set M of the information bits in the encoding diagram in the following several manners, and examples are as follows:
(265) Example 1: The layer location index set M of the K to-be-encoded information bits in the encoding diagram includes any one of the first layer to the (log.sub.m N−1).sup.th layer.
(266) Example 2: The manner in which the transmit end determines the layer location index set M of the information bits in the encoding diagram may be: The layer location index set M is determined based on the row location index set H.
(267) In at least one embodiment, first, the transmit end selects any layer L from the layer location index set M′, and determines the layer L as a layer index corresponding to a row index h in which any information bit in the row location index H is located, where h∈H.
(268) Then, the transmit end traverses h in the row location index set H, to determine the layer location index set M in which all the K to-be-encoded information bits are located.
(269) Alternatively, the manner in which the transmit end determines the layer location index set M of the information bits in the encoding diagram may be:
(270) Example 3: For an embodiment of the foregoing example 2:
(271) For each h in the row location index set H of the information bits, the transmit end calculates a layer index L of each information bit by using the following formula, where the formula is a function related to h.
(272) The foregoing function related to h may be: L=ceil(log.sub.2 (rem(h, 2.sup.m)+1)). L is obtained through calculating, and m is an integer and is generally any value of 2, 3, or 4. h is a layer index corresponding to a row index h, in which any information bit is located, in the row location index H. The rem function is a function for calculating a remainder of dividing h by 2.sup.m, for example, rem(5, 2)=1, and the ceil function is a function for calculating a smallest integer greater than a number in brackets, for example, ceil(2.5)=3. The layer index L of the information bit of each h may be obtained by using the foregoing formula.
(273) In addition, for the foregoing manner, refer to the descriptions of the embodiments corresponding to
(274) Finally, the transmit end performs matrix multiplication on the input bit sequence u.sub.1.sup.N and the new matrix G′.sub.N, and outputs an encoded 1×N bit sequence x.sub.1.sup.N, where x.sub.1.sup.N=(u.sub.1.sup.N) {BC+BC.sub.{tilde over (H)}}.sub.H.
(275)
(276) Based on the foregoing channel encoding method, the transmit end obtains the encoded bit sequence X.sub.1.sup.N based on X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N. Because the new matrix G′.sub.N is a matrix generated based on the encoding generator matrix of the polar code and the locations of K to-be-encoded information bits in the encoding diagram, an existing encoding matrix of the polar code is transformed, to obtain new channel encoding. Simulation results show that the channel encoding method not only greatly reduces a bit error rate (BER) of a system in encoding at a transmit end, but also reduces a FAR in decoding at a receive end after receiving.
(277) An embodiment of the present disclosure further provides an encoding apparatus for encoding, configured to implement the channel encoding method in the foregoing embodiment. A part or all of the channel encoding method in the foregoing embodiment may be implemented by hardware or software. When the channel encoding method is implemented by hardware, refer to
(278) Another embodiment of the application further provides a schematic structural diagram of an encoding apparatus used for encoding. For a specific structure of the encoding apparatus, refer to
(279) an input interface circuit, configured to obtain K to-be-encoded information bits, where K is an integer greater than or equal to 1;
(280) a logic circuit, configured to generate a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N, u.sub.1.sup.N is a bit sequence obtained based on the K to-be-encoded information bits, and the new matrix G′.sub.N is a matrix generated based on an encoding generator matrix of a polar code and locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N; the encoding generator matrix of the polar code is a Kronecker product of log.sub.2 N matrices F.sub.2, and
(281)
K is an integer greater than or equal to 1, N is the length of a mother code and an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1; and
(282) an output interface circuit, configured to output the bit sequence X.sub.1.sup.N.
(283) In an embodiment, the logic circuit is further configured to generate the new matrix G′.sub.N=BC+BC.sub.{tilde over (H)}, where
(284)
C=F.sub.2.sup..Math.n, and n=log.sub.2.sup.N.
(285) In at least one embodiment, the process in which the logic circuit obtains the bit sequence X.sub.1.sup.N is as follows:
(286) First, the process in which the logic circuit obtains the new matrix G′.sub.N is as follows:
(287) The new matrix G′.sub.N is a matrix generated, based on the encoding generator matrix of the polar code and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N.
(288) For example, a transmit end may generate G′.sub.N by using the following formula:
New matrix G′.sub.N={BC+BC.sub.{tilde over (H)}}.sub.H
(289) For the new matrix G′.sub.N=BC+BC.sub.{tilde over (H)},
(290)
C=F.sub.2.sup..Math.n, and n=log.sub.2.sup.N.
(291) It can be learned from the foregoing descriptions that the foregoing new matrix G′.sub.N is a matrix generated by the transmit end based on the encoding generator matrix C of the polar code and the matrix B. The matrix B is related to F.sub.2.sup..Math.M and
(292)
C is a Kronecker product of log.sub.2 N matrices F.sub.2 and
(293)
(294) F.sub.2.sup..Math.M represents a Kronecker product of M matrices F.sub.2, and a 2.sup.M×2.sup.M matrix is output, where M is a layer index set of subchannels on which the to-be-encoded information bits are located.
(295)
is a function for generating a diagonal matrix, where
(296)
represents
(297)
all-1 vectors. This function places input vectors, for example, all-1 vectors, on a diagonal line, and fills 0 for the rest, to output a
(298)
diagonal matrix.
(299) The input bit sequence u.sub.1.sup.N=(u.sub.1, u.sub.2, . . . , u.sub.N) is a binary row vector, it may be understood that the input bit sequence sets locations corresponding to the index set H to the to-be-encoded information bits, and sets other locations to 0, and {tilde over (H)} represents a complementary set of H. When A=BC+BC.sub.{tilde over (H)}, A.sub.h represents the h.sup.th row of the matrix A, L represents a column quantity of the matrix A, and A.sub.H is determined based on
(300)
If h belongs to the row index set H of the information bits, a value of h in the row location index set H is determined for assignment; if h does not belong to the row index set H of the information bits, L pre-agreed fixed values, for example, all-0 values, are determined. Herein, a value of a location corresponding to A.sub.H is determined by using the foregoing formula, and an N×N matrix is still output.
(301) (F.sub.2.sup..Math.n).sub.{tilde over (h)} represents the h.sup.th row of the matrix F.sub.2.sup..Math.n, and (F.sub.2.sup..Math.n).sub.{tilde over (H)} is determined by determining
(302)
if h belongs to the complementary set {tilde over (H)} of the row index set of the information bits, a value of h in the row location index set H is determined for assignment; if h does not belong to the complementary set {tilde over (H)} of the row index set of the information bits, L pre-agreed fixed values, for example, all-0 values, are determined.
(303) It should be noted that the foregoing formula is merely an example, and may be shown by using another formula. It may be understood that the foregoing new matrix G′.sub.N may be a matrix related to the encoding generator matrix of the polar code, or it may be understood that the foregoing new matrix G′.sub.N is a matrix related to locations, on subchannels, of the K to-be-encoded information bits. Alternatively, as described above, the new matrix G′.sub.N may be a matrix related to the encoding generator matrix of the polar code and the locations, on the subchannels, of the K to-be-encoded information bits.
(304) Then, the logic circuit obtains the input bit sequence u.sub.1.sup.N. u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(305) In at least one embodiment, the logic circuit places the K to-be-encoded information bits at the locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H. Then the logic circuit sets values of other (N−K) bit locations in the zeroth layer to fixed bits. Finally, the logic circuit obtains the bit sequence u.sub.1.sup.N based on the to-be-encoded information bits and the fixed bits.
(306) Further, in a process of determining u.sub.1.sup.N, the logic circuit further obtains the encoding diagram that has a mother code length of N, where the encoding diagram includes M′ layers and H′ rows. M′ layers are equal to (log.sub.m N+1) layers, which are the zeroth layer layer 0, the first layer layer 1, . . . , and the (M′−1).sup.th layer layer log.sub.m N. H′ rows are the zeroth row, . . . , and the (N−1).sup.th row, where N is an integer power of m, and m is a positive integer greater than 1.
(307) Further, the logic circuit determines the locations of the K to-be-encoded information bits in the encoding diagram based on the foregoing encoding diagram. The locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include the row location index set H of the information bits in the encoding diagram and the layer location index set M of the information bits in the encoding diagram, where H⊂H′, M⊂M′, 0≤H≤N and 0≤M≤log.sub.m N−1.
(308) Because the locations of the information bits in the encoding diagram determine performance of channel encoding, in addition to determining the row location index set of the information bits in the encoding diagram, the determining the locations of the information bits in the encoding diagram further includes determining the layer location index set of the information bits in the encoding diagram. The following further describes, by using an example, a plurality of implementations of the process of determining the locations of the information bits in the encoding diagram.
(309) In an embodiment, the process of determining the locations of the information bits in the encoding diagram is implemented in two operations: First, a row, of the encoding diagram, in which the information bits are placed is selected; second, a layer, of the selected row, in which the information bits are placed is further determined.
(310) In at least one embodiment, the logic circuit may determine, by using any one or a combination of the following one or more manners, the row location index set H in which the information bits are located: For example, the row location index set is determined based on a polarization weight (PW) sequence, a bar-type parameter, Gaussian approximation, or the like. Herein, the determining the row location index set H in which the information bits are located is the prior art, and details are not described herein again.
(311) Using
(312) Further, the logic circuit determines the layer location index set M of the information bits in the encoding diagram in the following several manners, and examples are as follows:
(313) Example 1: The layer location index set M of the K to-be-encoded information bits in the encoding diagram includes any one of the first layer to the (log.sub.m N−1).sup.th layer.
(314) Example 2: The manner of determining, by the logic circuit, the layer location index set M of the information bits in the encoding diagram may be: The layer location index set M is determined based on the row location index set H.
(315) In at least one embodiment, first, the logic circuit selects any layer L from a layer location index set M′, and determines the layer L as a layer index corresponding to a row index h in which any information bit in the row location index H is located, where h∈H.
(316) Then, the logic circuit traverses h in the row location index set H, to determine the layer location index set M in which all the K to-be-encoded information bits are located.
(317) Alternatively, the manner of determining, by the logic circuit, the layer location index set M of the information bits in the encoding diagram may be:
(318) Example 3: For an embodiment of the foregoing example 2:
(319) For each h in the row location index set H of the information bits, the logic circuit calculates a layer index L of each information bit by using the following formula, where the formula is a function related to h.
(320) The foregoing function related to h may be: L=ceil(log.sub.2(rem(h, 2.sup.m)+1)). L is obtained through calculating, and m is an integer and is generally any value of 2, 3, or 4. h is a layer index corresponding to a row index h, in which any information bit is located, in the row location index H. The rem function is a function for calculating a remainder of dividing h by 2.sup.m, for example, rem(5, 2)=1, and the ceil function is a function for calculating a smallest integer greater than a number in brackets, for example, ceil(2.5)=3. The layer index L of the information bit of each h may be obtained by using the foregoing formula.
(321) In addition, for the foregoing manner, refer to the descriptions of the embodiments corresponding to
(322) Finally, the logic circuit performs matrix multiplication on the input bit sequence u.sub.1.sup.N and the new matrix G′.sub.N, and outputs an encoded 1×N bit sequence x.sub.1.sup.N, where x.sub.1.sup.N=(u.sub.1.sup.N){BC+BC.sub.{tilde over (H)}}.sub.H.
(323)
(324) Based on the foregoing encoding apparatus, the encoded bit sequence X.sub.1.sup.N is obtained based on X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N. Because the new matrix G′.sub.N is a matrix generated based on the encoding generator matrix of the polar code and the locations of K to-be-encoded information bits in the encoding diagram, an existing encoding matrix of the polar code is transformed, to obtain new channel encoding. Simulation results show that the channel encoding method not only greatly reduces a bit error rate (BER) of a system in encoding at a transmit end, but also reduces a FAR in decoding at a receive end after receiving.
(325) For a specific channel encoding process of the foregoing logic circuit, refer to
(326) When a part or all of the channel encoding method in the foregoing embodiment is implemented by software, referring to
(327) a processor, configured to generate a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N, u.sub.1.sup.N is a bit sequence obtained based on K to-be-encoded information bits, and the new matrix G′.sub.N is a matrix generated based on an encoding generator matrix of a polar code and locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N; the encoding generator matrix of the polar code is a Kronecker product of log.sub.2 N matrices F.sub.2, and
(328)
K is an integer greater than or equal to 1, N is the length of a mother code and an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(329) Further, the processor is further configured to generate the new matrix G′.sub.N=BC+BC.sub.{tilde over (H)}, where
(330)
C=F.sub.2.sup..Math.n, and n=log.sub.2.sup.N.
(331) Further, the processor is further configured to generate the bit sequence u.sub.1.sup.N, u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(332) Further, the layer location index set M includes any one of the first layer to the (log.sub.m N−1).sup.th layer.
(333) Further, the layer location index set M is determined based on the row location index set H.
(334) For a process in which the processor may further obtain the encoding diagram that has a length of N and determine the locations of the information bits in the encoding diagram, refer to the descriptions of the channel encoding method in
(335) The channel encoding method of the encoding apparatus not only reduces a BER of the encoding device, but may further reduce a FAR of decoding. The channel encoding method is particularly effective when a decoding device performs decoding, and overall improves encoding and decoding performance.
(336) An embodiment of the present disclosure further provides an encoding apparatus, including a processor and a memory. As shown in
(337) When the encoding apparatus includes the memory, the processor is configured to execute the program stored in the memory, and the processor generates a bit sequence X.sub.1.sup.N when the program is executed, where X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N, u.sub.1.sup.N is a bit sequence obtained based on K to-be-encoded information bits, and the new matrix G′.sub.N is a matrix generated based on an encoding generator matrix of a polar code and locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N; the encoding generator matrix of the polar code is a Kronecker product of log.sub.2 N matrices F.sub.2 and
(338)
K is an integer greater than or equal to 1, N is the length of a mother code and an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(339) Further, the processor is configured to generate the new matrix G′.sub.N=BC+BC.sub.{tilde over (H)}, where
(340)
C=F.sub.2.sup..Math.n, and n=log.sub.2.sup.N.
(341) Further, the processor is further configured to generate u.sub.1.sup.N, which includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(342) Further, the layer location index set M includes any one of the first layer to the log.sub.m N−1).sup.th.
(343) Further, the layer location index set M is determined based on the row location index set H.
(344) The memory may be a physically independent unit, or may be integrated with the processor.
(345) An embodiment of the present disclosure may further provide another optional embodiment. The foregoing memory is located outside the encoding apparatus, and the encoding apparatus is connected to the memory by using a circuit/wire, and is configured to read and execute the program stored in the memory.
(346) The channel encoding method of the encoding apparatus not only reduces a BER of the encoding device, but may further reduce a FAR of decoding. The channel encoding method is particularly effective when a decoding device performs decoding, and overall improves encoding and decoding performance.
(347) Another encoding apparatus further provided in an embodiment of the present disclosure may include a processor and a transceiver. As shown in
(348) The processor is configured to generate the bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N, u.sub.1.sup.N is a bit sequence obtained based on the K to-be-encoded information bits, and the new matrix G′.sub.N is a matrix generated based on an encoding generator matrix of a polar code and locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N; the encoding generator matrix of the polar code is a Kronecker product of log.sub.2 N matrices F.sub.2 and
(349)
K is an integer greater than or equal to 1, N is the length of a mother code and an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1.
(350) Further, the processor is further configured to generate the new matrix G′.sub.N=BC+BC.sub.{tilde over (H)}, where
(351)
C=F.sub.2.sup..Math.n, and n=log.sub.2.sup.N.
(352) Further, the processor is further configured to obtain the bit sequence u.sub.1.sup.N, u.sub.1.sup.N includes the K to-be-encoded information bits and N−K fixed bits, and the K to-be-encoded information bits are placed at locations, in the zeroth layer in the encoding diagram, corresponding to the row location index set H.
(353) Further, the layer location index set M includes any one of the first layer to the (log.sub.m N−1).sup.th.
(354) Further, the layer location index set M is obtained based on the row location index set H.
(355) For a specific encoding process of the foregoing encoding apparatus, refer to the foregoing channel encoding embodiment and the corresponding descriptions in
(356) Further, the encoding apparatus is a base station or a terminal.
(357) An embodiment of the present disclosure may further provide another optional embodiment. The foregoing memory is located outside the encoding apparatus, and the encoding apparatus is connected to the memory by using a circuit/wire, and is configured to read and execute the program stored in the memory.
(358) The channel encoding method of the encoding apparatus not only reduces a BER of the encoding device, but may further reduce a FAR of decoding. The channel encoding method is particularly effective when a decoding device performs decoding, and overall improves encoding and decoding performance.
(359) Another embodiment of the present disclosure further provides an encoding apparatus. As shown in
(360) a receiving module, configured to obtain K to-be-encoded information bits, where K is an integer greater than or equal to 1;
(361) an encoding module, configured to generate a bit sequence X.sub.1.sup.N, where X.sub.1.sup.N=u.sub.1.sup.N G′.sub.N, u.sub.1.sup.N is a bit sequence obtained based on the K to-be-encoded information bits, and the new matrix G′.sub.N is a matrix generated based on an encoding generator matrix of a polar code and locations of the K to-be-encoded information bits in an encoding diagram that has a mother code length of N; the encoding generator matrix of the polar code is a Kronecker product of log.sub.2 N matrices F.sub.2 and
(362)
K is an integer greater than or equal to 1, N is the length of the mother code and an integral power of m, and m is a positive integer greater than 1; and the locations of the K to-be-encoded information bits in the encoding diagram that has a mother code length of N include a row location index set H of the information bits in the encoding diagram and a layer location index set M of the information bits in the encoding diagram, 0≤H≤N, and 0<M≤log.sub.m N−1; and
(363) a sending module, configured to send the bit sequence X.sub.1.sup.N.
(364) The encoding apparatus provided in the foregoing embodiment may be a base station or a terminal.
(365) For a specific encoding process of the foregoing encoding apparatus, refer to the foregoing channel encoding embodiment and the corresponding descriptions in
(366) The channel encoding method of the encoding apparatus not only reduces a BER of the encoding device, but also reduces a FAR of decoding. The channel encoding method is particularly effective when a decoding device performs decoding.
(367) Another embodiment of the present disclosure further provides a readable storage medium, including:
(368) a readable storage medium and a computer program, where the computer program is used to implement the channel encoding method according to any one of
(369) Another embodiment of the present disclosure further provides a program product. The program product includes a computer program, the computer program is stored in a readable storage medium. At least one processor of an encoding apparatus may read the computer program from the readable storage medium, and the at least one processor executes the computer program, so that the encoding apparatus implements the channel encoding method according to any one of
(370) It should be noted that a transmit end performs decoding based on a received encoded sequence, where a decoding algorithm is similar to the decoding algorithm in the foregoing solution, and is the prior art. Details are not described herein. In the foregoing encoding method, an error correction capability of a decoding side is greatly improved.
(371) Another embodiment of the present disclosure further provides an encoding system. As shown in
(372) For specific apparatus structures of the encoding apparatus and functions implemented by the encoding apparatus, refer to specific descriptions in the foregoing embodiments. Details are not described herein again.
(373) An embodiment of the present disclosure further provides a channel encoding method, which is as follows:
(374) A to-be-encoded information bit sequence {1,1} is used as an example. The to-be-encoded information bit sequence is implemented by using another channel encoding method, and is represented in a form of a factor diagram. A color filling node represents an information bit, a dashed-line shadow filling node represents a frozen bit, and remaining white unfilled nodes represent variable nodes that need to be calculated in an encoding process.
(375) Dashed lines in the factor diagram indicate that the variable node or check relationship is not used and is in an inactive state.
(376) In the foregoing description process, X is used to represent an undefined value. X is only a representation method, and all undefined values may also be marked as 2. Generally, the undefined value is marked as 0.
(377) From the perspective of the factor diagram, values corresponding to all variable nodes in the rightmost column of the factor diagram are calculated, which corresponds to the completion of the encoding process. A specific encoding process is as follows:
(378) Operation 1: As shown in the activity factor diagram
(379) Operation 2: Connect two bits x and 1, corresponding to the last two variable nodes in the second column of the activity factor diagram 2, to the second half part of the sequence C1, which is referred to as a sequence C2.
(380) Operation 3: As shown in the activity factor diagram 3, the second half part 1 of the sequence C2, corresponding to the last variable node in the first column in the activity factor diagram 3, is referred to as a sequence C3.
(381) Operation 4: As shown in the activity factor diagram 4, an exclusive OR operation is performed on the first half of the sequence C3 and the first half of the sequence C2 to obtain a sequence X, which is referred to as a sequence C4, and The process corresponds to the third variable node in the first column of the activity factor diagram 4, where because the variable node is a frozen bit, the sequence C4 is set to 0.
(382) Operation 5: As shown in the activity factor diagram 5, an exclusive OR operation is performed on the sequence C4 and the sequence C3 to obtain a sequence 1, which corresponds to the third variable node in the second column in the factor diagram 5, that is, the sequence C2 is updated to a sequence {1, 1}.
(383) Operation 6: As shown in the activity factor diagram 6, an exclusive OR operation is performed on the sequence C2 and the first half of the sequence C1 to obtain a sequence {x, x}, which is referred to as a sequence C5 corresponding to the first two variable nodes in the second column in the activity factor diagram 6.
(384) Operation 7: As shown in the activity factor diagram 7, the second half X of the sequence C5 corresponds to the second variable node in the first column in the activity factor diagram 7, where because the variable node corresponds to an information bit, the variable node is set to to-be-sent unencoded information 1, which is referred to as a sequence C6.
(385) Operation 8: Perform an exclusive OR operation on the sequence C6 and the first half part of the sequence C5 to obtain a sequence X, which is referred to as a sequence C7, where The process corresponds to the first variable node in the first column in the activity factor diagram, and the C7 is set to 0 because the variable node is a frozen bit.
(386) Operation 9: Set the second half of the C5 to the sequence C6, and set the first half of the C5 to the result of performing an exclusive OR operation on the sequence C6 and the sequence C7, that is, update the sequence C5 to {1, 1}.
(387) Operation 10: Set the second half of the C1 to the sequence C2, and set the first half of the C1 to a result of performing an exclusive OR operation on the sequence C2 and the sequence C5, that is, update the sequence C1 to {0, 0, 1, 1}.
(388) Operation 11: Output the encoded bit sequence {0, 0, 1, 1} by using the foregoing encoding scheme.
(389) The foregoing channel encoding process is also an implementation. A part or all of the channel encoding method in the foregoing embodiment may be implemented by hardware or software. When a part or all of the channel encoding method in the foregoing embodiment is implemented by software, an encoding apparatus may also be provided for the foregoing encoding process. The apparatus may include a processor, and the processor completes the foregoing encoding process. When a part or all of the channel encoding method in the foregoing embodiment is implemented by hardware, an embodiment may also provide an encoding apparatus, where the apparatus includes: an input interface circuit, configured to receive K to-be-encoded information bits, where K is an integer greater than 1; a logic circuit, configured to complete the foregoing channel encoding method; and an output interface circuit, configured to output an encoded bit sequence. In an embodiment, the encoding apparatus may be a chip or an integrated circuit. An embodiment of the present disclosure further provides an encoding apparatus, including a processor and a memory. The memory is configured to store a program instruction, and the processor is configured to execute the program stored in the memory. When the program is executed, the processor is configured to perform the foregoing channel encoding method.
(390) Further, the memory may be a physically independent unit, or may be integrated with the processor. In another optional embodiment, the memory is located outside the encoding apparatus, and the encoding apparatus is connected to the memory by using a circuit/wire, and is configured to read and execute the program stored in the memory.
(391) Another encoding apparatus further provided in an embodiment of the present disclosure may include a processor and a transceiver. The transceiver is configured to receive K to-be-encoded information bits, and send an encoded bit sequence, where K is an integer greater than or equal to 1; and the processor is configured to perform the foregoing channel encoding method.
(392) Another encoding apparatus further provided in an embodiment of the present disclosure may include a plurality of encoding units, and each encoding unit separately completes each encoding process of the foregoing channel encoding method.
(393) Based on the descriptions of the foregoing embodiments, the encoding apparatus may be the network device or the terminal device (for example, the terminal device #1 or the terminal device #2) shown in
(394) In addition, optionally, in order to make functions of the encoding apparatus more complete, the encoding apparatus may further include one or more of an input unit, a display unit, an audio circuit, a camera, a sensor, and the like (not shown in the figure), and the audio circuit may further include a loudspeaker, a microphone, and the like.
(395) Optionally, based on the channel encoding method provided in the foregoing embodiments, another embodiment of the present disclosure further provides a decoding method. As shown in
(396) S1300. A receive end (a decoding side) receives to-be-decoded information bits.
(397) S1302. The receive end performs decoding based on a decoding algorithm, and obtains the information bits based on locations of the information bits in an encoding diagram after the decoding is completed.
(398) The decoding algorithm may be a successive cancellation decoding algorithm or a successive cancellation list decoding algorithm.
(399) In an embodiment, a decoding operation at the decoding side is roughly as follows: After the to-be-decoded information bits are received, decoding is performed based on the decoding algorithm; after the decoding is completed, the information bits are obtained based on the locations of the information bits in the encoding diagram.
(400) For a method for determining the locations of the foregoing information bits in the encoding diagram and descriptions of the encoding diagram, refer to descriptions of the embodiments corresponding to
(401) Further, based on a same inventive concept of the decoding method provided in the foregoing embodiment, as shown in
(402) A part or all of the foregoing decoding method may be implemented by hardware, or may be implemented by software. When the decoding method is implemented by hardware, a decoding apparatus 1500 includes: an input interface circuit 1501, configured to obtain a to-be-decoded bit sequence; a logic circuit 1502, configured to perform the decoding method; and an output interface circuit 1503, configured to output a decoded sequence.
(403) Optionally, in an embodiment, the decoding apparatus 1500 may be a chip or an integrated circuit.
(404) Optionally, when a part or all of the decoding method in the foregoing embodiment is implemented by using software, as shown in
(405) Optionally, the memory 1601 may be a physically independent unit, or may be integrated with the processor 1602.
(406) Optionally, when a part or all of the decoding method in the foregoing embodiment is implemented by using software, the decoding apparatus 1600 may alternatively include only the processor 1602. The memory 1601 configured to store a program is located outside the decoding apparatus 1600. The processor 1602 is connected to the memory 1601 by using a circuit/wire, and is configured to read and execute the program stored in the memory 1601.
(407) The processor 1602 may be a central processing unit (CPU), a network processor (network processor, NP), or a combination of a CPU and an NP.
(408) The processor 1602 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
(409) The memory 1601 may include a volatile memory (volatile memory), for example, a random-access memory (RAM). The memory 1601 may also include a non-volatile memory, for example, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). The memory 1601 may further include a combination of the foregoing types of memories.
(410) An embodiment of the application further provides a computer storage medium, and the computer storage medium stores a computer program. The computer program is used to perform the encoding method shown in
(411) An embodiment of the application further provides a computer program product including an instruction. When the computer program product is run on a computer, the computer performs the decoding method shown in
(412) One of ordinary skill in the art should understand that the embodiments of the application may be provided as a method, a system, or a computer program product. Therefore, the application may use a form of hardware only embodiments, software only embodiments, or embodiments with a combination of software and hardware. Moreover, the application may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, a CD-ROM, an optical memory, and the like) that include computer usable program code.
(413) The application is described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to the embodiments of the application. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
(414) These computer program instructions may be stored in a computer readable memory that can instruct the computer or any other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory generate an artifact that includes an instruction apparatus. The instruction apparatus implements a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
(415) These computer program instructions may be loaded onto a computer or another programmable data processing device, so that a series of operations are performed on the computer or the another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide operations for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
(416) Although some preferred embodiments of the application have been described, one of ordinary skill in the art can make changes and modifications to these embodiments once they learn the basic inventive concept. Therefore, the following claims are intended to be construed as to cover the preferred embodiments and all changes and modifications falling within the scope of the application.
(417) Obviously, one of ordinary skill in the art can make various modifications and variations to the embodiments of the application without departing from the spirit and scope of the embodiments of the application. The application is intended to cover these modifications and variations provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.