This application relates to the field of communications technologies, and in particular, to an SCL parallel decoding method and apparatus and a device.
In the field of communications technologies, a communications device (for example, a terminal device or a base station) may perform channel coding and decoding by using a polar code.
when decoding is performed by using the polar code, a process of performing decoding by using a parallel method based on a successive cancellation list (SCL) algorithm is usually as follows: dividing to-be-decoded bits into a plurality of groups of bits, and sequentially decoding each group of bits. Each time a group of bits is decoded, a plurality of decoding paths are obtained through extension, and a specific quantity of paths are reserved from the plurality of decoding paths for decoding a next group of bits. Finally, a plurality of decoding paths may be obtained, a decoding path having a highest decoding accuracy rate is selected from the plurality of decoding paths, and a decoding result on the decoding path is used as decoding output.
However, in the foregoing method, decoding speed is slow and complexity is relatively high.
This application provides an SCL parallel decoding method and apparatus and a device, to improve SCL parallel decoding efficiency.
According to a first aspect, this application provides an SCL parallel decoding method. After data received by a receiving device corresponds to P (where P is an integer greater than 1) groups of to-be-decoded bits, any ith (where i is an integer, and 1<i≤P) group in the P groups of to-be-decoded bits may be decoded in the following feasible implementation:
obtaining L1 first decoding paths of an (i−1)th group of to-be-decoded bits; determining L3 third decoding paths for each first decoding path; and determining at least one reserved decoding path of the ith group of to-be-decoded bits from L1×L3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits, where a quantity of information bits in the ith group of to-be-decoded bits is n (where n is a positive integer), and L3<2n.
In the foregoing process, in a process of determining the at least one reserved decoding path of the ith group of to-be-decoded bits, the L1×L3 third decoding paths need to be sorted, and the at least one reserved decoding path is selected from the L1×L3 sorted third decoding paths. Because L3<2n, sorting complexity can be reduced in the process of determining the at least one reserved decoding path of the ith group of to-be-decoded bits, thereby improving efficiency of the SCL parallel decoding method.
In a possible implementation, the L3 third decoding paths may be determined for each first decoding path in the following feasible implementation: determining L2 second decoding paths for each first decoding path; determining the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path, where L2=2n.
In another possible implementation, L3=2m-k, where k is a positive integer, m is a quantity of to-be-decoded bits included in each group of to-be-decoded bits, m is an integer greater than 1, and 1≤k<m.
Optionally, k may be a preset value.
Optionally, m may also be referred to as SCL parallel decoding parallelism.
In the foregoing process, when k is the preset value, L3 is related to the SCL parallel decoding parallelism m. Different SCL parallel decoding parallelism m may indicate different L3, thereby improving flexibility of determining L3.
In another possible implementation, L3 is any one of 2, 4, 8, 16, 32, or 64.
In another possible implementation, when i=P, the method further includes: determining, from the at least one reserved decoding path, a decoding path having a highest accuracy rate, and determining a decoding result of the P groups of to-be-decoded bits based on the decoding path.
According to a second aspect, this application provides an SCL parallel decoding method. Data received by a receiving device corresponds to P (where P is an integer greater than 1) groups of to-be-decoded bits. Any ith (where i is an integer, and 1<i≤P) group in the P groups of to-be-decoded bits may be decoded in the following feasible implementation:
obtaining L1 first decoding paths of an (i−1)th group of to-be-decoded bits; determining L3 third decoding paths for each first decoding path when a preset condition is met; and determining at least one reserved decoding path of the ith group of to-be-decoded bits from L1×L3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits, where L1×L3 is greater than or equal to a first preset threshold, a quantity of information bits in the ith group of to-be-decoded bits is n (where n is a positive integer), and L3<2n.
In the foregoing process, in a process of determining the at least one reserved decoding path of the ith group of to-be-decoded bits, the L1×L3 third decoding paths need to be sorted, and the at least one reserved decoding path is selected from the L1×L3 sorted third decoding paths. Because L3<2n, sorting complexity can be reduced in the process of determining the at least one reserved decoding path of the ith group of to-be-decoded bits, thereby improving efficiency of the SCL parallel decoding method.
In a possible implementation, the L3 third decoding paths may be determined for each first decoding path in the following feasible implementation: determining L2 second decoding paths for each first decoding path; determining the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path, where L2=2n.
In another possible implementation, the preset condition is: L1×L2 is greater than the first preset threshold.
When L1×L2 is greater than the first preset threshold, the L3 third decoding paths are determined for each first decoding path, and the at least one reserved decoding path of the ith group of to-be-decoded bits is determined from the L1×L3 third decoding paths. In this way, not only can sorting complexity be reduced, but also loss of decoding performance can be smaller.
In another possible implementation, the first preset threshold is any one of 2, 4, 8, 16, 32, 64, or 128.
In another possible implementation, if L1×2m-k is greater than or equal to the first preset threshold, L3=2m-k, where k is a positive integer, m is a quantity of to-be-decoded bits included in each group of to-be-decoded bits, m is an integer greater than 1, and 1≤k<m.
Optionally, k may be a preset value.
Optionally, m may also be referred to as SCL parallel decoding parallelism.
In the foregoing process, when k is the preset value, L3 is related to the SCL parallel decoding parallelism m. Different SCL parallel decoding parallelism m may indicate different L3, thereby improving flexibility of determining L3.
In another possible implementation, L3 is any one of 2, 4, 8, 16, 32, or 64.
In another possible implementation, when i=P, the method further includes: determining, from the at least one reserved decoding path, a decoding path having a highest accuracy rate, and determining a decoding result of the P groups of to-be-decoded bits based on the decoding path.
According to a third aspect, this application provides an SCL parallel decoding apparatus. Received data corresponds to P groups of to-be-decoded bits, and the apparatus includes an obtaining module, a first determining module, and a second determining module, where
the obtaining module is configured to obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits, where i is an integer, P is an integer greater than 1, 1<i≤P, and L1 is a positive integer;
the first determining module is configured to determine L3 third decoding paths for each first decoding path, where a quantity of information bits in an ith group of to-be-decoded bits is n, n is a positive integer greater than or equal to 1, L3 is a positive integer, and L3<2n; and
the second determining module is configured to determine at least one reserved decoding path of the ith group of to-be-decoded bits from L1×L3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits.
In a possible implementation, the first determining module is specifically configured to:
determine L2 second decoding paths for each first decoding path, where L2=2n; and
determine the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
In another possible implementation, L3=2m-k, where k is a positive integer, m is a quantity of to-be-decoded bits included in each group of to-be-decoded bits, m is an integer greater than 1, and 1≤k<m.
In another possible implementation, L3 is any one of 2, 4, 8, 16, 32, or 64.
In another possible implementation, the apparatus further includes a third determining module, where
the third determining module is configured to: when i=P, determine, from the at least one reserved decoding path, a decoding path having a highest accuracy rate, and determine a decoding result of the P groups of to-be-decoded bits based on the decoding path.
According to a fourth aspect, this application provides an SCL parallel decoding apparatus. Received data corresponds to P groups of to-be-decoded bits, and the apparatus includes an obtaining module, a first determining module, and a second determining module, where
the obtaining module is configured to obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits, where i is an integer, P is an integer greater than 1, 1<i≤P, and L1 is a positive integer;
the first determining module is configured to determine L3 third decoding paths for each first decoding path when a preset condition is met, where L1×L3 is greater than or equal to a first preset threshold, a quantity of information bits in an ith group of to-be-decoded bits is n, n is a positive integer greater than or equal to 1. L3 is a positive integer, and L3<2n; and
the second determining module is configured to determine at least one reserved decoding path of the ith group of to-be-decoded bits from L1×L3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits.
In a possible implementation, the first determining module is specifically configured to:
determine L2 second decoding paths for each first decoding path, where L2=2n; and
determine the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
In another possible implementation, the preset condition is:
L1×L2 is greater than the first preset threshold.
In another possible implementation, the first preset threshold is any one of 2, 4, 8, 16, 32, 64, or 128.
In another possible implementation, if L1×2m-k is greater than or equal to the first preset threshold, L3=2m-k, where k is a positive integer, m is a quantity of to-be-decoded bits included in each group of to-be-decoded bits, m is an integer greater than 1, and 1≤k<m.
In another possible implementation, L3 is any one of 2, 4, 8, 16, 32, or 64.
In another possible implementation, the apparatus further includes a third determining module, where
the third determining module is configured to: when i=P, determine, from the at least one reserved decoding path, a decoding path having a highest accuracy rate, and determine a decoding result of the P groups of to-be-decoded bits based on the decoding path.
According to a fifth aspect, this application provides an SCL parallel decoding apparatus. The SCL parallel decoding apparatus includes a memory and a processor. The processor executes a program instruction in the memory, to implement the SCL parallel decoding method according to any one of the possible implementations of the first aspect.
According to a sixth aspect, this application provides an SCL parallel decoding apparatus. The SCL parallel decoding apparatus includes a memory and a processor. The processor executes a program instruction in the memory, to implement the SCL parallel decoding method according to any one of the possible implementations of the second aspect.
According to a seventh aspect, this application provides a storage medium. The storage medium is configured to store a computer program, and the computer program is used to implement the SCL parallel decoding method according to any one of the possible implementations of the first aspect.
According to an eighth aspect, this application provides a storage medium. The storage medium is configured to store a computer program, and the computer program is used to implement the SCL parallel decoding method according to any one of the possible implementations of the second aspect.
According to the SCL parallel decoding method and apparatus and a device provided in this application, after the received data corresponds to the P (where P is an integer greater than 1) groups of to-be-decoded bits, for any ith (where i is an integer, and 1<i≤P) group in the P groups of to-be-decoded bits, the L1 first decoding paths of the (i−1)th group of to-be-decoded bits are first obtained; the L3 third decoding paths are determined for each first decoding path; and the at least one reserved decoding path of the ith group of to-be-decoded bits is determined from the L1×L3 third decoding paths, where the at least one reserved decoding path includes the decoding result of the ith group of to-be-decoded bits, where the quantity of information bits in the ith group of to-be-decoded bits is n (where n is a positive integer), and L3<2n. In the foregoing process, in the process of determining the at least one reserved decoding path of the ith group of to-be-decoded bits, the L1×L3 third decoding paths need to be sorted, and the at least one reserved decoding path is selected from the L1×L3 sorted third decoding paths. Because L3<2n, the sorting complexity can be reduced in the process of determining the at least one reserved decoding path of the ith group of to-be-decoded bits, thereby improving the efficiency of the SCL parallel decoding method.
Embodiments of this application may be used in various fields in which polar coding is used, for example, a data storage field, an optical network communications field, and a wireless communications field. A wireless communications system mentioned in the embodiments of this application includes but is not limited to a narrowband internet of things (NB-IoT) system, Wimax, a long term evolution (LTE) system, and three major application scenarios: an enhanced mobile broadband (eMBB) scenario, an ultra-reliable low-latency communication (URLLC) scenario, and a massive machine-type communications (mMTC) scenario, of a next-generation 5G mobile communications system, namely, a new radio (NR) system. Certainly, there may be another field in which polar coding is used. This is not specifically limited in this application.
A communications apparatus in this application is mainly a network device or a terminal device. In this application, a sending device may be a network device, and a receiving device is a terminal device. In this application, if a sending device is a terminal device, a receiving device is a network device.
In the embodiments of this application, the terminal device includes but is not limited to a mobile station (MS), a mobile terminal (MT), a mobile telephone (MT), a handset, portable equipment, and the like. The terminal device may communicate with one or more core networks by using a radio access network (RAN). For example, the terminal device may be a mobile telephone (or referred to as a “cellular” telephone) or a computer having a wireless communication function. The terminal device may alternatively be a portable, pocket-sized, handheld, computer built-in, or in-vehicle mobile apparatus or device.
The embodiments are described with reference to the network device in this application. The network device may be an evolved NodeB (Evolutional Node B, eNB or eNodeB) in an LTE system, or may be a gNB, a transmission reception point (TRP), a micro base station, or the like in a 5G communications system, or may be a relay station, an access point, a vehicle-mounted device, a wearable device, a network device in a future evolved public land mobile network (PLMN), a network device in a network in which a plurality of other technologies are converged, a base station in various other evolved networks, or the like.
Optionally, when the sending device 101 is a terminal device, the receiving device 102 is a network device; or when the sending device 101 is a network device, the receiving device is a terminal device.
Referring to
It should be noted that
In a communication process, a transmit end encodes an information bit and a frozen bit, to obtain a to-be-sent bit sequence, and sends the to-be-sent bit sequence. Optionally, the frozen bit is a padding bit, and the frozen bit may usually be 0. After rate matching, interleaving, and modulation, the to-be-sent bit sequence is transmitted to a receive end on a channel. The receive end performs processing such as demodulation on the received signal, to obtain a group of log likelihood ratios (LLR), where a quantity of LLRs included in the group of LLRs is the same as a quantity of bits included in the to-be-sent bit sequence. The receive end performs polar code decoding based on the received group of LLRs. The receive end may make a misjudgment regardless of whether the transmit end sends a bit 1 or a bit 0. For a transmit b, at the receive end, a ratio of a probability p(r|b=0) that a signal r is correctly determined as 0 to a probability p(r|b=)] that a signal r is correctly determined as 1 is a likelihood ratio. For ease of calculation and processing, a natural log is used for the likelihood ratio, so that a log likelihood ratio, that is, LLR=ln[p(r|b=0)/p(r|b=1)], can be obtained. The LLR may be a floating-point number.
The following describes in detail an SCL parallel decoding method shown in this application by using specific embodiments. It should be noted that the following several embodiments may be combined with each other, and same or similar content is not described repeatedly in different embodiments.
S201: Obtain 2a LLRs, where
a is a positive integer greater than or equal to 1.
Optionally, a receiving device receives information, and then demodulates the information, to obtain the 2a LLRs.
Optionally, a quantity of LLRs obtained by the receiving device is the same as a quantity of bits sent by a sending device.
For example, assuming that a to-be-sent bit sequence sent by the sending device includes 2a bits, the receiving device obtains the 2a LLRs.
Optionally, a quantity of LLRs obtained by the receiving device is the same as a quantity of bits to be decoded by the receiving device.
For example, assuming that the receiving device obtains the 2a LLRs, the receiving device needs to decode 2a bits.
A decoder in the receiving device uses the 2a LLRs as input for decoding.
S202: Divide 2a to-be-decoded bits into P groups of to-be-decoded bits, where
each group of to-be-decoded bits includes m bits, 2a=P×m, P is a positive integer greater than 1, and m is a positive integer greater than or equal to 1.
Optionally, each group of to-be-decoded bits includes a to-be-decoded information bit and/or a to-be-decoded frozen bit, and the groups of to-be-decoded bits may include a same quantity of to-be-decoded information bits or different quantities of to-be-decoded information bits.
Optionally, the quantity m of bits included in each group of to-be-decoded bits may also be referred to as SCL parallel decoding parallelism.
For example, assuming that a quantity of to-be-decoded bits is 16 (that is, 24), the to-be-decoded bits may be divided into P=4 groups, and each group of to-be-decoded bits includes four to-be-decoded bits.
S203: Perform P-step decoding based on the 2a LLRs by using the P groups of to-be-decoded bits as decoding objects, until a decoding result is obtained.
Optionally, a decoding result corresponding to first i groups of to-be-decoded bits may be obtained through ith-step decoding in the P-step decoding, where i is an integer greater than or equal to 1 and less than or equal to P. This may be implemented by performing the following step A to step C.
Step A: Calculate an (m+1)th-layer LLR of each to-be-decoded information bit in an ith group of to-be-decoded bits based on the 2a LLRs, where
a polar code butterfly decoding network includes a+1 columns of LLRs, and the (m+1)th-layer LLR is an LLR located in an (m+1)th column from left to right in the polar code butterfly decoding network.
For example, referring to
Step B: Calculate, in parallel based on the (m+1)th-layer LLR of each information bit in the ith group of to-be-decoded bits, path metric values of all possible decoding paths in the ith-step decoding.
Optionally, an LLR of each information bit in the ith group of to-be-decoded bits may be calculated in parallel by using a maximum likelihood (ML) algorithm or a simplified (simplify) successive cancellation (SC) algorithm, and then the path metric values of all the possible decoding paths in the ith-step decoding are calculated in parallel based on the LLR of each information bit in the ith group of to-be-decoded bits.
Optionally, a path metric value of a decoding path indicates a probability that the decoding path is a real decoding path.
Optionally, a smaller path metric value of a decoding path indicates a higher probability that the decoding path is a real decoding path.
Optionally, a path metric value of a decoding path may be calculated according to the following Formula 1.
where
l represents an index of a decoding path, m is a quantity of bits included in a current path, ûjl is a decoding result (0 or 1) obtained by decoding a jth bit in the decoding path l, and αjl is an LLR of the jth bit in the decoding path l.
When i is greater than 1, all the possible decoding paths in the ith-step decoding may be determined based on a decoding path obtained through (i−1)th-step decoding and a quantity n of information bits included in the ith group of to-be-decoded bits.
With reference to
During third-step decoding, assuming that the third group of to-be-decoded bits includes two information bits, all possible decoding paths in the third-step decoding include 22 decoding paths (0000, 0001, 0010, and 0011) obtained by extending the path 00 and 22 decoding paths (1100, 1101, 1110, and 1111) obtained by extending the path 11. In other words, all the possible decoding paths in the third-step decoding include 0000, 0001, 0010, 0011, 1100, 1101, 1110, and 1111.
Step C: Select at least one reserved decoding path based on the path metric values of all the possible decoding paths.
Optionally, a quantity of reserved decoding paths is less than or equal to X, where
X is a quantity that is of reserved paths and that corresponds to the SCL parallel decoding method.
Optionally, the quantity X of reserved paths may be 4, 8, 16, or the like, and may be set based on an actual requirement.
It should be noted that, if a quantity of all possible decoding paths is greater than or equal to X, the quantity of reserved decoding paths is equal to X; or if a quantity of all possible decoding paths is less than X, the quantity of reserved decoding paths is less than X and is equal to the quantity of all possible decoding paths.
Optionally, when i is greater than 1, a decoding result in the (i−1)th-step decoding needs to be used in the ith-step decoding.
For example, after first-step decoding, a plurality of reserved decoding paths in the first-step decoding may be obtained. The second-step decoding is performed based on the plurality of reserved decoding paths in the first-step decoding, to obtain a plurality of reserved decoding paths in the second-step decoding; the third-step decoding is performed based on the plurality of reserved decoding paths in the second-step decoding, to obtain a plurality of reserved decoding paths in the third-step decoding; and so on, until the P-step decoding is completed.
Optionally, when the ith-step decoding is completed, reserved decoding paths obtained through the ith-step decoding are decoding paths corresponding to the first to the ith groups of to-be-decoded bits. The decoding paths may be possible values of the first to the ith groups of to-be-decoded bits.
For example, it is assumed that a receive end receives 16 LLRs. Correspondingly, the quantity of to-be-decoded bits is 16, and the 16 to-be-decoded bits are respectively denoted as u0, u1, . . . , and u15. It is assumed that all the 16 to-be-decoded bits are to-be-decoded information bits. It is assumed that the 16 to-be-decoded bits are divided into four groups, each group of to-be-decoded bits includes four to-be-decoded bits, and to-be-decoded bits included in the four groups of to-be-decoded bits are shown in Table 1.
After the first-step decoding is completed, the reserved decoding paths obtained through the first-step decoding are decoding paths corresponding to the first group of to-be-decoded bits u0 to u3. A length of the plurality of decoding paths in the first-step decoding is 4. For example, the plurality of reserved decoding paths in the first-step decoding may be 0000, 0001, 0010, and 0011.
After the second-step decoding is completed, the reserved decoding paths obtained through the second-step decoding are decoding paths corresponding to the first and the second groups of to-be-decoded bits u0 to u7. A length of the plurality of decoding paths in the second-step decoding is 8. For example, the plurality of reserved decoding paths in the second-step decoding may be 00000000, 00000001, and 00000010.
After the third-step decoding is completed, the reserved decoding paths obtained through the third-step decoding are decoding paths corresponding to the first to the third groups of to-be-decoded bits u0 to u11. A length of the plurality of decoding paths in the third-step decoding is 12. For example, the plurality of reserved decoding paths in the third-step decoding may be 000000000000, 00000000001, and 000000000010.
After fourth-step decoding is completed, reserved decoding paths obtained through the fourth-step decoding are decoding paths corresponding to the first to the fourth groups of to-be-decoded bits u0 to u15. A length of the plurality of decoding paths in the fourth-step decoding is 16. For example, the plurality of reserved decoding paths in the fourth-step decoding may be 000000000000000 and 0000000000001.
Therefore, one decoding path may be selected from the plurality of reserved decoding paths obtained through the fourth-step decoding as the decoding result. For example, the foregoing description is used as an example, and the selected decoding path is 0000000000000001. In other words, the decoding result of the 16 bits u0 to u15 is 0000000000000001.
The following separately describes in detail a process of the first-step decoding and a process of the ith-step decoding (2≤i≤P). For details, refer to embodiments shown in
S301: Calculate an (m+1)th-layer LLR of each to-be-decoded information bit in the first group of to-be-decoded bits based on 2a LLRs.
S302: Calculate, in parallel based on the (m+1)th-layer LLR of each to-be-decoded information bit in the first group of to-be-decoded bits, path metric values of all possible decoding paths in the first-step decoding.
Optionally, an LLR of each information bit in the first group of to-be-decoded bits may be calculated in parallel by using an ML algorithm or a simplified SC algorithm, and then the path metric values of all the possible decoding paths in the first-step decoding are calculated in parallel based on the LLR of each information bit in the first group of to-be-decoded bits.
For example, assuming that the first group of to-be-decoded bits includes two information bits, all the possible decoding paths in the first-step decoding include 22 decoding paths: 00, 01, 10, and 11.
For example, assuming that the first group of to-be-decoded bits includes four information bits, all the possible decoding paths in the first-step decoding include 24 decoding paths: 0000, 001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, and 1111.
S303: Determine, based on the path metric values of all the possible decoding paths in the first-step decoding, at least one reserved decoding path of the first group of to-be-decoded bits from all the possible decoding paths in the first-step decoding.
Optionally, the reserved decoding path of the first group of to-be-decoded bits may also be referred to as a first decoding path of the first group of to-be-decoded bits, or may be referred to as a reserved decoding path in the first-step decoding or a first decoding path in the first-step decoding.
Optionally, a quantity of reserved decoding paths in the first-step decoding is less than or equal to X, where X is a quantity that is of reserved paths and that corresponds to the SCL parallel decoding method.
Optionally, the quantity X of reserved paths may be 4, 8, 16, or the like, and may be set based on an actual requirement.
It should be noted that, if a quantity of all possible decoding paths in the first-step decoding is greater than or equal to X, X reserved decoding paths may be selected from all the possible decoding paths in the first-step decoding. In this case, the quantity of reserved decoding paths in the first-step decoding is equal to X. If a quantity of all possible decoding paths in the first-step decoding is less than X, all the possible decoding paths in the first-step decoding are determined as the reserved decoding paths in the first-step decoding. In this case, the quantity of reserved decoding paths obtained through the first-step decoding is less than X.
Optionally, a smaller path metric value of a decoding path indicates a higher probability that the decoding path is a real decoding path. In this case, if the quantity of all possible decoding paths in the first-step decoding is greater than X, the X reserved decoding paths may be selected in the following feasible implementation: determining, from all the possible decoding paths in the first-step decoding, X decoding paths having smallest path metric values as the X reserved decoding paths.
S401: Obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits, where
received data corresponds to P groups of to-be-decoded bits, 1<i≤P, P is an integer greater than 1, i is an integer, and L1 is a positive integer.
Optionally, L1≤X.
For example, when X is 8, L1 may be 2, 4, or 8.
It should be noted the L1 first decoding paths of the (i−1)th group of to-be-decoded bits are reserved decoding paths of the (i−1)th group of to-be-decoded bits.
It should be noted that, in the SCL parallel decoding method, decoding needs to be performed step by step. To be specific, first-step decoding is performed, to obtain a first decoding path (reserved decoding path) in the first-step decoding; then second-step decoding is performed based on the first decoding path in the first-step decoding, to obtain a first decoding path in the second-step decoding; then third-step decoding is performed based on the first decoding path in the second-step decoding, to obtain a first decoding path in the third-step decoding; and so on. Therefore, when ith-step decoding is performed, L1 first decoding paths in (i−1)th-step decoding have been obtained.
Optionally, after the L1 first decoding paths in the (i−1)th-step decoding are obtained, the L1 first decoding paths may be buffered. Correspondingly, during the ith-step decoding, the L1 first decoding paths may be directly obtained from the buffer.
S402: Determine L3 third decoding paths for each first decoding path, where
a quantity of information bits in an ith group of to-be-decoded bits is n, L3 is a positive integer, and L3<2n.
Optionally, the L3 third decoding paths may be determined for each first decoding path by performing the following step A and step B.
Step A: Determine L2 second decoding paths for each first decoding path, where L2=2n.
Optionally, for any first decoding path, L2 second decoding paths corresponding to the first decoding path may be determined based on the first decoding path and the quantity n of information bits included in the ith group of to-be-decoded bits.
For example, assuming that a first decoding path is 0010, and n is 2, it may be determined that L2=22=4 second decoding paths corresponding to the first decoding path 0010 include 001000, 001001, 001010, and 001011.
Step B: Determine the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
It should be noted that, L3 may be obtained before step B is performed, and S403 is performed only when L2>L3. When L2≤L3, step B does not need to be performed. Correspondingly, in S403, the at least one reserved decoding path can be directly determined from L1×L2 second decoding paths.
Optionally, L3 may be obtained in at least the following two feasible implementations.
In a feasible implementation, L3 may be a preset value.
In this feasible implementation, L3 is the preset value, and preset L3 may be pre-stored. Correspondingly, when L3 needs to be used, L3 only needs to be directly obtained.
For example, L3 may be any one of 2, 4, 8, 16, 32, or 64.
Certainly, in an actual application process, a value of L3 may be set based on an actual requirement. This is not specifically limited in this application.
In another feasible implementation, L3 is determined based on SCL decoding parallelism.
The SCL decoding parallelism refers to a quantity of bits included in a group of to-be-decoded bits in SCL parallel decoding.
Optionally, L3=2m-k, where m is the SCL parallel decoding parallelism, k is a positive integer, m is a positive integer, and 1≤k<m.
It should be noted that the foregoing merely shows, in a form of an example, a method for determining L3, and does not limit the method for determining L3. In an actual application process, L3 may be determined based on an actual requirement. This is not specifically limited in this application.
Optionally, the L3 third decoding paths are L3 decoding paths having highest probabilities that the L2 second decoding paths are real decoding paths.
Optionally, the L2 second decoding paths may be sorted based on path metric values of the L2 second decoding paths, and the L3 third decoding paths are selected from the L2 sorted second decoding paths.
For example, a smaller path metric value of a decoding path indicates a higher probability that the decoding path is a real decoding path. In this case, L3 decoding paths having smallest path metric values may be determined from the L2 second decoding paths as the L3 third decoding paths.
Because the L3 third decoding paths may be determined from the L2 second decoding paths corresponding to each first decoding path, a total of L1×L3 third decoding paths may be determined.
S403: Determine at least one reserved decoding path of the ith group of to-be-decoded bits from the L1×L3 third decoding paths, where
the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits.
Optionally, a quantity of the at least one reserved decoding path is less than or equal to X, where
X is a quantity that is of reserved decoding paths and that corresponds to successive cancellation list SCL decoding, and X is a positive integer.
For example, X may be 4, 8, or 6.
Certainly, in an actual application process, X may be set based on an actual requirement.
Optionally, the L1×L3 third decoding paths may be sorted based on path metric values of the L1×L3 third decoding paths, and the at least one reserved decoding path is selected from the L1×L3 sorted third decoding paths.
For example, a smaller path metric value of a decoding path indicates a higher probability that the decoding path is a real decoding path. In this case, X decoding paths having smallest path metric values may be determined from the L1×L3 third decoding paths as the at least one reserved decoding path.
Optionally, when L1×L3<X, all the L1×L3 third decoding paths may be determined as the reserved decoding paths.
In S402, the L2 second decoding paths need to be sorted for L1 times, and the L3 third decoding paths are selected. Therefore, when a sorting method in which time complexity is O(n2) is used for sorting, sorting complexity in S402 is L1×L2×L3.
In S403, the L1×L3 third decoding paths need to be sorted once, and the reserved decoding path is selected. In most decoding steps, X reserved decoding paths are usually selected. Therefore, when the sorting method in which time complexity is O(n2) is used for sorting, sorting complexity in S404 is L1×L3×X.
In conclusion, sorting complexity of the ith-step decoding (2≤i≤P) in this application is L1×L2×L3+L1×L3×X.
Sorting complexity of the ith-step decoding (2≤i≤P) is usually L1×L2×X.
The sorting complexity is usually greater than the sorting complexity in this application. Details are described as follows:
Because L1 is usually equal to X, L2=2n, L3=2m-k, and m is usually equal to n, it can be learned that:
the sorting complexity in this application is X×2n×2n-k+X×2n-k×X; and
the sorting complexity is X×2n×X, where
X×2n×X−X×2n×2n-k−X×2n-k×X=X×2n-k×[X×(2k−1)−2n].
In an actual application process, a value of k is properly set, so that X×(2k−1)>2n. In this way, the sorting complexity in this application is lower.
For example, it may be determined that k=n−2, and it is assumed that X=2a. In this case, 2a×(2n-2−1)>2n provided that a>2, so that the sorting complexity in this application is lower.
With reference to
In the ith-step decoding, for each decoding path in the (i−1)th-step decoding, 16 decoding paths may be obtained through extension, so that a total of 16*8=128 decoding paths can be obtained through extension. Then, the 128 decoding paths are sorted based on path metric values of the decoding paths, and eight decoding paths in the ith-step decoding are selected from the 128 sorted decoding paths. In this case, sorting complexity is: 128*8=1024.
It can be learned from the foregoing that in this application, the sorting complexity can be greatly reduced, thereby improving decoding efficiency.
According to the SCL parallel decoding method provided in this application, in any ith-step decoding (i≥2) of SCL parallel decoding, the L1 first decoding paths of the (i−1)th group of to-be-decoded bits are first obtained, and each first decoding path is extended, to obtain the L2 second decoding paths corresponding to each first decoding path. When L2>L3, the L3 third decoding paths are selected from the L2 second decoding paths corresponding to each first decoding path, to obtain the L1×L3 third decoding paths, and the at least one reserved decoding path is selected from the L1×L3 third decoding paths. In the foregoing process, the sorting complexity is reduced, thereby improving efficiency of the SCL parallel decoding method.
S601: Obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits, where
received data corresponds to P groups of to-be-decoded bits, P is an integer greater than 1, i is an integer, 1<i≤P, and L1 is a positive integer.
It should be noted that, for a process of performing S601, refer to S401. Details are not described herein again.
S602: Determine L3 third decoding paths for each first decoding path when a preset condition is met, where
L1×L3 is greater than or equal to a first preset threshold, a quantity of information bits in an ith group of to-be-decoded bits is n, L3 is a positive integer, and L3<2n.
Optionally, the preset condition is: L1×L2 is greater than the first preset threshold, where L2=2n.
Optionally, L3 may be determined, and then the L3 third decoding paths are determined for each first decoding path.
Optionally, L3 may be determined in at least the following two feasible implementations.
In a feasible implementation,
a preset parameter (2p) is preset, and it is first determined whether a product of L1 and the preset parameter is greater than or equal to the first preset threshold. If the product of L1 and the preset parameter is greater than or equal to the first preset threshold, the preset parameter is determined as L3. If the product of L1 and the preset parameter is less than the first preset threshold, the preset parameter is updated. The updated preset parameter is determined as L3 until the product of L1 and the updated preset parameter is greater than or equal to the first preset threshold. For example, when the preset parameter is updated, p may be increased by 1 step by step.
In another feasible implementation,
it is determined that L3=2n-k, and a value of k is properly set, so that L1×L3 is greater than or equal to the first preset threshold.
Optionally, the L3 third decoding paths may be determined for each first decoding path by performing the following step A and step B.
Step A: Determine L2 second decoding paths for each first decoding path, where L2=2n.
It should be noted that, for any first decoding path, L2 second decoding paths corresponding to the first decoding path may be determined based on the first decoding path and the quantity n of information bits included in the ith group of to-be-decoded bits.
For example, assuming that a first decoding path is 0010, and n is 2, it may be determined that L2=22=4 second decoding paths corresponding to the first decoding path 0010 include 001000, 001001, 001010, and 001011.
Step B: Determine the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
Optionally, the L3 third decoding paths are L3 decoding paths having highest probabilities that the L2 second decoding paths are real decoding paths.
Optionally, the L2 second decoding paths may be sorted based on path metric values of the L2 second decoding paths, and the L3 third decoding paths are selected from the L2 sorted second decoding paths.
For example, a smaller path metric value of a decoding path indicates a higher probability that the decoding path is a real decoding path. In this case, L3 decoding paths having smallest path metric values may be determined from the L2 second decoding paths as the L3 third decoding paths.
Because the L3 third decoding paths may be determined from the L2 second decoding paths corresponding to each first decoding path, a total of L1×L3 third decoding paths may be determined.
S603: Determine at least one reserved decoding path of the ith group of to-be-decoded bits from the L1×L3 third decoding paths, where
the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits.
It should be noted that, for a process of performing S603, refer to the process of performing S403. Details are not described herein again.
It should be noted that sorting complexity shown in the embodiment shown in
According to the SCL parallel decoding method provided in this application, in any ith-step decoding (i≥2) of SCL parallel decoding, the L1 first decoding paths of the (i−1)th group of to-be-decoded bits are first obtained, and each first decoding path is extended, to obtain the L2 second decoding paths corresponding to each first decoding path. When L1×L2 is greater than the first preset threshold, the L3 third decoding paths are determined for each first decoding path, to obtain the L1×L3 third decoding paths, and the at least one reserved decoding path is selected from the L1×L3 third decoding paths. In the foregoing process, the sorting complexity is reduced, thereby improving efficiency of the SCL parallel decoding method.
The following further describes the embodiment shown in
S701. Obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits.
It should be noted that, for a process of performing S701, refer to the process of performing S401. Details are not described herein again in this application.
S702: Determine L2 second decoding paths corresponding to each first decoding path based on a quantity n of information bits included in an ith group of to-be-decoded bits.
It should be noted that, for a process of performing S702, refer to the process of performing step A in the embodiment shown in
S703: When L2>L3, determine whether L1×L2 is greater than a first preset threshold.
If L1×L2 is greater than the first preset threshold, S704 to S708 are performed; or
if L1×L2 is less than or equal to the first preset threshold, S709 is performed.
Optionally, the first preset threshold is a minimum quantity of decoding paths included in a reserved decoding path set in one-step decoding. The reserved decoding path set is a decoding path set from which at least one reserved decoding path is selected.
For example, the first preset threshold may be any one of 2, 4, 8, 16, 32, 64, or 128.
Certainly, in an actual application process, the first preset threshold may be set based on an actual requirement. This is not specifically limited in this application.
S704: Determine whether L1×L3 is greater than the first preset threshold.
If L1×L3 is greater than the first preset threshold, S705 and S706 are performed; or
if L1×L3 is less than or equal to the first preset threshold, S707 and S708 are performed.
S705: Determine L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
It should be noted that, for a process of performing S705, refer to the process of performing step B in the embodiment shown in
S706: Determine at least one reserved decoding path from L1×L3 third decoding paths.
It should be noted that, for a process of performing S706, refer to the process of performing S403. Details are not described herein again in this application.
S707: Determine L4 third decoding paths from the L2 second decoding paths corresponding to each first decoding path, where
L
3
<L
4
<L
2.
Optionally, in S707, L4 may be first determined.
Optionally, assuming that L3=2q, because L2=2n, it may be determined that L4=2t, where q<t<n.
It should be noted that, for an execution process of determining the L4 third decoding paths from the L2 second decoding paths, refer to the process of determining the L3 third decoding paths from the L2 second decoding paths in step B in the embodiment shown in
S708: Determine at least one reserved decoding path from L1×L4 third decoding paths.
It should be noted that, for a process of performing S708, refer to the process of performing S403. Details are not described herein again in this application.
S709: Determine at least one reserved decoding path from L1×L2 second decoding paths.
It should be noted that, for a process of performing S709, refer to the process of performing S403. Details are not described herein again in this application.
In the embodiment shown in
With reference to
Referring to
Referring to
Referring to
Referring to
The third-step decoding and the fourth-step decoding are performed by using a method similar to that of the second-step decoding. After the fourth-step decoding, eight reserved decoding paths may be obtained, and one decoding path is selected from the eight fourth decoding paths as a decoding result.
the obtaining module 11 is configured to obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits, where i is an integer, received data corresponds to P groups of to-be-decoded bits, P is an integer greater than 1, 1<i≤P, and L1 is a positive integer;
the first determining module 12 is configured to determine L3 third decoding paths for each first decoding path, where a quantity of information bits in an ith group of to-be-decoded bits is n, n is a positive integer greater than or equal to 1, L3 is a positive integer, and L3<2n; and
the second determining module 13 is configured to determine at least one reserved decoding path of the ith group of to-be-decoded bits from L1×L3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits.
Optionally, the obtaining module 11 may perform S401 in the embodiment shown in
Optionally, the first determining module 12 may perform S402 in the embodiment shown in
Optionally, the second determining module 13 may perform S403 in the embodiment shown in
It should be noted that the SCL parallel decoding apparatus shown in this application may perform the technical solutions shown in the foregoing method embodiments. Implementation principles and beneficial effects of the SCL parallel decoding apparatus are similar to those of the technical solutions. Details are not described herein again.
In a possible implementation, the first determining module 12 is specifically configured to:
determine L2 second decoding paths for each first decoding path, where L2=2n; and
determine the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
In another possible implementation, L3=2m-k, where k is a positive integer, m is a quantity of to-be-decoded bits included in each group of to-be-decoded bits, m is an integer greater than 1, and 1≤k<m.
In another possible implementation, L3 is any one of 2, 4, 8, 16, 32, or 64.
the third determining module 14 is configured to: when i=P, determine, from the at least one reserved decoding path, a decoding path having a highest accuracy rate, and determine a decoding result of the P groups of to-be-decoded bits based on the decoding path.
It should be noted that the SCL parallel decoding apparatus shown in this application may perform the technical solutions shown in the foregoing method embodiments. Implementation principles and beneficial effects of the SCL parallel decoding apparatus are similar to those of the technical solutions. Details are not described herein again.
the obtaining module 21 is configured to obtain L1 first decoding paths of an (i−1)th group of to-be-decoded bits, where i is an integer, P is an integer greater than 1, received data corresponds to P groups of to-be-decoded bits, 1<i≤P, and L1 is a positive integer;
the first determining module 22 is configured to determine L3 third decoding paths for each first decoding path when a preset condition is met, where L1×L3 is greater than or equal to a first preset threshold, a quantity of information bits in an ith group of to-be-decoded bits is n, n is a positive integer greater than or equal to 1, L3 is a positive integer, and L3<2n; and
the second determining module 23 is configured to determine at least one reserved decoding path of the ith group of to-be-decoded bits from L1×L3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the ith group of to-be-decoded bits.
Optionally, the obtaining module 21 may perform S601 in the embodiment shown in
Optionally, the first determining module 22 may perform S602 in the embodiment shown in
Optionally, the second determining module 23 may perform S603 in the embodiment shown in
It should be noted that the SCL parallel decoding apparatus shown in this application may perform the technical solutions shown in the foregoing method embodiments. Implementation principles and beneficial effects of the SCL parallel decoding apparatus are similar to those of the technical solutions. Details are not described herein again.
In another possible implementation, the first determining module 22 is specifically configured to:
determine L2 second decoding paths for each first decoding path, where L2=2n; and
determine the L3 third decoding paths from the L2 second decoding paths corresponding to each first decoding path.
In another possible implementation, the preset condition is:
L1×L2 is greater than the first preset threshold.
In another possible implementation, the first preset threshold is any one of 2, 4, 8, 16, 32, 64, or 128.
In another possible implementation, if L1×2m-k is greater than or equal to the first preset threshold, L3=2m-k, where k is a positive integer, m is a quantity of to-be-decoded bits included in each group of to-be-decoded bits, m is an integer greater than 1, and 1≤k<m.
In another possible implementation, L3 is any one of 2, 4, 8, 16, 32, or 64.
the third determining module 24 is configured to: when i=P, determine, from the at least one reserved decoding path, a decoding path having a highest accuracy rate, and determine a decoding result of the P groups of to-be-decoded bits based on the decoding path.
It should be noted that the SCL parallel decoding apparatus shown in this application may perform the technical solutions shown in the foregoing method embodiments. Implementation principles and beneficial effects of the SCL parallel decoding apparatus are similar to those of the technical solutions. Details are not described herein again.
Optionally, the SCL parallel decoding apparatus may further include a transmitter and/or a receiver.
Optionally, the processor may be a central processing unit (CPU), or may be another general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or the like. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like. The steps (S201 to S203 in the embodiment shown in
This application provides a computer-readable storage medium. The computer-readable storage medium includes an instruction. When the instruction is run on a computer, the computer is enabled to perform the SCL parallel decoding method provided in any one of the foregoing method embodiments.
This application provides a chip. The chip is configured to support a receiving device (for example, a terminal device or a network device) in implementing a function (for example, obtaining a first decoding path, determining a second decoding path, determining a third decoding path, and determining a reserved decoding path) in the embodiments of this application. The chip is specifically used in a chip system. The chip system may include the chip, or may include the chip and another discrete device. When the chip in the receiving device implements the foregoing method, the chip includes a processing unit. Further, the chip may further include a communications unit. The processing unit may be, for example, a processor. When the chip includes the communications unit, the communications unit may be, for example, an input/output interface, a pin, or a circuit. The processing unit performs all or some actions performed by processing modules (for example, the obtaining module, the first determining module, the second determining module, and the third determining module in
All or some of the steps of the method embodiments may be implemented by hardware related to a program instruction. The foregoing program may be stored in a readable memory. When the program is executed, the steps in the foregoing method embodiments are performed. The foregoing memory (storage medium) includes: a read-only memory (ROM for short), a RAM, a flash memory, a hard disk, a solid-state drive, a magnetic tape, a floppy disk, an optical disc, and any combination thereof.
The embodiments of this application are 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 this 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 special-purpose computer, an embedded processor, or a processing unit of another programmable data processing device to generate a machine, so that instructions executed by the computer or the processing unit of the another programmable data processing device generate an apparatus for implementing a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
These computer program instructions may alternatively be stored in a computer-readable memory that can instruct a computer or another 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 specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
The computer program instructions may alternatively be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
Apparently, a person skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. This 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.
In this application, the term “including” and a variant thereof may refer to non-limitative inclusion; and the term “or” and a variant thereof may refer to “and/or”. In this application, the terms “first”, “second”, and the like are intended to distinguish between similar objects but do not necessarily indicate a specific order or sequence. In this application, “a plurality of” means two or more than two. The term “and/or” describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. The character “/” generally indicates an “or” relationship between the associated objects.
This application is a continuation of International Application No. PCT/CN2018/103293, filed on Aug. 30, 2018. The disclosures of the aforementioned applications are hereby incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/103293 | Aug 2018 | US |
Child | 17186781 | US |