A Polar code decoding method, device and computer-readable storage medium
By pre-constructing the Polar decoding bit chart and state transfer configuration table, combined with the bi-tonal sorting principle of the CEVA platform, the Polar code decoding process is optimized, solving the problem of low Polar code decoding efficiency in the existing technology, and achieving high efficiency and versatility. decoding result.
Patent Information
- Application Number
- CN201810239686.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-03-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-03-22
AI Technical Summary
The existing Polar code decoding method is inefficient, especially the serial cancellation list algorithm has high complexity when processing multiple information bits, and improved algorithms such as 2b-SCL and 4b-SCL increase the amount of calculation and sorting data, resulting in Not efficient.
By pre-constructing the Polar decoding bit chart, determining the combination of information bits, calculating the path metric value of the decoding path, retaining the path with the lowest PM value, generating a state transfer configuration table, using the bitonic sorting principle of the CEVA platform and VCU instruction optimization Delete other paths, reduce redundant processing and complexity, and improve decoding efficiency.
The efficiency and versatility of the Polar code decoding process are achieved, the complexity is reduced through reverse encoding, the processing efficiency is improved and the complexity of decoding development is reduced.
Smart Images

Figure CN110311689B
Abstract
Description
Technical Field
[0001] The present invention relates to decoding technology, and in particular to a Polar code decoding method, device and computer-readable storage medium. Background Art
[0002] Polar code was proposed by Professor Arikan in 2008. It is the only known channel coding method that can be strictly proved to "reach" the channel capacity. The coding sequence consists of three parts: frozen bits, information bits and PC bits. At present, the method for decoding Polar codes is the serial cancellation list (SCL) algorithm. The principle of this decoding method is to maintain the information of L decoding paths at the same time, and each path will calculate the path metric (PM) value of the current path according to the rules. For the information bit, the PM value should be calculated according to the hard judgment results of 0 and 1 respectively, so that the L paths are expanded to 2L, and finally the L paths with smaller PM values are selected for subsequent decoding. For the frozen bit, it is fixed to 0. If it is a check bit, it is judged according to the information bit of the corresponding path according to the code value obtained by the check bit coding method.
[0003] The value of PM is calculated by the historical PM value of the current path, the value of LLR and the hard judgment result. The LLR value is calculated using different formulas for different node positions. Since SCL decoding is based on a tree structure, and the number of layers of the tree is log2N0, the LLR of each layer must be calculated in sequence, which determines that only serial decoding can be performed. Since the SCL decoding method is too inefficient to judge one bit at a time, some people have proposed improved algorithms, such as: 2b-SCL, 4b-SCL. The improved algorithm is to expand the maximum likelihood from one point to multiple points, and calculate 2 or 4 bits at a time to reduce the function call overhead. The cost is that when calculating multiple information bits at a time, the PM calculation amount and the amount of sorted data will increase exponentially. Summary of the invention
[0004] In view of this, the embodiments of the present invention hope to provide a decoding method, device and computer-readable storage medium for Polar codes, which can obtain a decoding result by reverse encoding the encoding result of the last retained decoding path, thereby reducing the complexity of the decoding process and achieving a balance between high efficiency and versatility of the Polar decoding program through a function scheme.
[0005] To achieve the above object, an embodiment of the present invention provides a decoding method for Polar code, the method comprising:
[0006] Preliminarily construct a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0007] Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0008] Based on the bitmap table, performing calculations on each combination of information contained in the information bits to determine a PM value of a decoding path corresponding to each combination of information contained in the information bits;
[0009] The decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated;
[0010] By reading the value in the state transition configuration table, a decoding operation of the upper level Polar code or the lower level Polar code is performed.
[0011] The above-mentioned deletion of other decoding paths includes:
[0012] When the CEVA platform decodes the Polar code, the bitonic sorting principle is combined with the VCU instruction in the CEVA platform, and the sorting operation is continuously used for the operation of deleting other decoding paths.
[0013] The above-mentioned operation of calculating each combination of information contained in the information bits based on the bitmap table to determine the PM value of the decoding path corresponding to each combination of information of the information bits includes:
[0014] Fill each combination of information contained in the information bit into the node position corresponding to the decoding tree, and calculate the u vector corresponding to each combination of information contained in the information bit by calling the corresponding function and querying the bitmap table;
[0015] Encode the u vector to obtain the corresponding Beta vector;
[0016] Calculating the Beta vector and the LLR value to determine a differential PM value;
[0017] The PM values of the decoding paths corresponding to various combinations of information bits containing information are summed with the differential PM values to determine the final PM values of the decoding paths.
[0018] The information bits include PM values of decoding paths corresponding to various combinations of information, including:
[0019] Constructing a coding table based on the coding traversal results of the decoding paths corresponding to each combination of information bits, and importing the coding table into the calculation function corresponding to the information bit position;
[0020] The calculation function calculates the PM value of the decoding path corresponding to each combination of information bits according to the coding table.
[0021] The above-mentioned operation on each combination of information contained in the information bits based on the bitmap table includes:
[0022] In the process of decoding according to the decoding tree, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is called using assembly language, and the operation of the left branch decoding path or the right branch decoding path in the decoding tree is completed according to the preset loop control condition.
[0023] The above-mentioned operation of performing the upper-level Polar code or the lower-level Polar decoding includes:
[0024] The LLR data is stored and operated according to the sign bit and the absolute value respectively, wherein the flipping of the sign bit is performed according to the decoding implementation instruction to perform an exclusive OR operation or an accumulation operation.
[0025] The embodiment of the present invention provides a decoder of Polar code, the device comprising: a bitmap table module, a determination module, a calculation module, a state transition configuration table module, and an operation module; wherein,
[0026] A bitmap table module, used to construct a bitmap table offline in advance according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0027] A determination module, used to determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0028] A calculation module, configured to calculate, based on the bitmap table, each combination of information contained in the information bits, and determine a PM value of a decoding path corresponding to each information combination of the information bits;
[0029] A state transfer configuration table module is used to retain the decoding path with the lowest PM value, delete other decoding paths, record the state transfer relationship during the decoding path deletion process, and generate a state transfer configuration table;
[0030] The calling module is used to perform decoding operation of the upper-level Polar code or the lower-level Polar code by reading the value in the state transition configuration table.
[0031] The state transfer configuration table module is used to combine the bitune sorting principle with the VCU instruction in the CEVA platform when the decoder decodes the Polar code on the CEVA platform, and continuously use the sorting operation for the operation of deleting other decoding paths.
[0032] The calculation module is used to fill each combination of information contained in the information bit into the node position corresponding to the decoding tree, and calculate the u vector corresponding to each combination of information contained in the information bit by calling the corresponding function and querying the bitmap table;
[0033] Encode the u vector to obtain the corresponding Beta vector;
[0034] Calculating the Beta vector and the LLR value to determine a differential PM value;
[0035] The PM values of the decoding paths corresponding to various combinations of information bits containing information are summed with the differential PM values to determine the final PM values of each decoding path.
[0036] Among them, the above-mentioned calculation module is used to construct a coding table based on the coding traversal results of the decoding path corresponding to each combination of information bits, and import the coding table into the calculation function corresponding to the information bit; the calculation function calculates the PM value of the decoding path corresponding to each combination of information bits according to the coding table.
[0037] Among them, the above-mentioned calculation module is used to: in the process of decoding according to the decoding tree, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is called using assembly language, and according to the preset loop control conditions, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is completed.
[0038] The calling module is used to store and operate the LLR data according to the sign bit and the absolute value respectively, wherein the flipping of the sign bit is performed by an exclusive-OR operation or an accumulation operation according to the decoding implementation instruction.
[0039] An embodiment of the present invention provides an electronic device, the electronic device comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0040] Wherein, when the processor is used to run the computer program, it executes:
[0041] Preliminarily construct a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0042] Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0043] Based on the bitmap table, performing calculations on each combination of information contained in the information bits to determine a PM value of a decoding path corresponding to each combination of information contained in the information bits;
[0044] The decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated;
[0045] By reading the value in the state transition configuration table, a decoding operation of the upper level Polar code or the lower level Polar code is performed.
[0046] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements:
[0047] Preliminarily construct a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0048] Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0049] Based on the bitmap table, performing calculations on each combination of information contained in the information bits to determine a PM value of a decoding path corresponding to each combination of information contained in the information bits;
[0050] The decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated;
[0051] By reading the value in the state transition configuration table, a decoding operation of the upper level Polar code or the lower level Polar code is performed.
[0052] The present invention discloses a decoding method, device and computer-readable storage medium of a Polar code. A bitmap table is constructed offline in advance according to a Polar decoding bitmap, wherein the bitmap table at least contains index information used by a function pointer and input Const table index information used by the function in the calculation process; according to the number of bits of information bits in Polar decoding, various combinations of information contained in the information bits are determined; based on the bitmap table, various combinations of information contained in the information bits are calculated to determine the PM value of the decoding path corresponding to each information combination of the information bits; the decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated; by reading the values in the state transition configuration table, the decoding operation of the upper-level Polar code or the lower-level Polar code is performed. In this way, the processing efficiency is improved by eliminating the redundant processing of Polar decoding, and the complexity of decoding development is reduced by using the law of Polar coding, and finally the decoding efficiency is improved by an efficient function scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 Schematic diagram of a process of decoding a Polar code according to Embodiment 1 of the present invention;
[0054] Figure 2 This is a schematic diagram of the structure of a Polar code decoder according to Embodiment 2 of the present invention;
[0055] Figure 3 This is the decoding implementation process of Polar code using the G-SSCL algorithm in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0056] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0057] Embodiment 1
[0058] Figure 1 FIG. 1 is a flow chart of a decoding method of a Polar code according to an embodiment of the present invention. Figure 1 As shown, the decoding method of the Polar code in the embodiment of the present invention includes the following steps:
[0059] Step 101: constructing a bitmap table offline in advance according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by function pointers and input Const table index information used by the function in the calculation process;
[0060] In practical applications, the conventional approach is to develop a decoding function for each set of Polar decoding bitmaps, or to write a general code, and to judge the bitmap during execution to call different functions. The disadvantage of the first method is that there are many functions, which leads to complex maintenance; the second method is inefficient during implementation. Therefore, based on the fact that the bitmap of Polar decoding is relatively fixed, the function call order of the decoding operation, and the function input parameters are all regular, the embodiment of the present invention proposes a method for offline construction of a bitmap table, obtains the number of functions, function order and parameter values of different bitmaps in advance, and puts them in a fixed Const table, and then calls the table in a loop to obtain the function corresponding to the order in the function pointer array and the parameters obtained by the table lookup, and all the time is online processing time, so the amount of code executed and the complexity of processing are reduced without affecting the processing efficiency.
[0061] Step 102: Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0062] In practical applications, since the decoding tree is a tree structure, the number of leaf nodes in each level must be 2 to the power of N. Taking 2b-GSSCL as an example, the number of leaf nodes may be 2, 4, 8, 16, 32, and the number of information nodes may be 0, 1, 2. When the number of information nodes is 1, the positions of various leaf nodes in the decoding tree may be arbitrary, which will lead to many possibilities. When the number of information nodes is 2, the positions of various leaf nodes in the decoding tree will become more complicated. After analyzing the Polar code decoding bitmap and combining the reliability principle of coding, the embodiment of the present invention proposes a method for simplifying the bitmap: that is, when the number of information nodes is 1, it must appear in the last bit of the current leaf node set; when the number of information nodes is 2, one of them must be in the last bit of the leaf node set, and the other can only be in the second to last bit or the middle bit.
[0063] The information bits are combined according to 0 and 1. For example, for 2 information bits, there are 4 combinations: 00, 01, 10 and 11; for 1 information bit, there are 2 combinations: 1 and 0; and so on. According to the number of bits of information bits in Polar decoding, various combinations of information contained in the information bits are determined, and subsequent decoding operations are performed on the information bits of each combination in turn.
[0064] Step 103: Based on the bitmap table, calculate each combination of information included in the information bits to determine the PM value of the decoding path corresponding to each information combination of the information bits;
[0065] The various combinations of information contained in the information bits are filled into the node positions corresponding to the decoding tree, and the u vectors corresponding to the various combinations of information contained in the information bits are calculated by calling the corresponding functions and querying the bitmap table;
[0066] Encode the u vector to obtain the corresponding Beta vector;
[0067] Calculating the Beta vector and the LLR value to determine a differential PM value;
[0068] The PM values of the decoding paths corresponding to various combinations of information bits containing information are summed with the differential PM values to determine the final PM values of the decoding paths.
[0069] The information bits include PM values of decoding paths corresponding to various combinations of information, including:
[0070] Constructing a coding table based on the coding traversal results of the decoding paths corresponding to each combination of information bits, and importing the coding table into the calculation function corresponding to the information bit position;
[0071] The calculation function calculates the PM value of the decoding path corresponding to each combination of information bits according to the coding table.
[0072] In the process of decoding according to the decoding tree, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is called using assembly language, and the operation of the left branch decoding path or the right branch decoding path in the decoding tree is completed according to the preset loop control conditions.
[0073] In practical applications, each combination is filled into the position corresponding to the leaf node to obtain the u vector, and then the u vector is Arikan encoded to obtain the Beta vector. The encoded result is combined with the LLR calculation to obtain the △PM value, which is summed with the PM value corresponding to the current path to obtain the final PM value of the decoding path. In the subsequent decoding process, the retention or deletion of the decoding path is determined according to the PM value.
[0074] Step 104: retain the decoding path with the lowest PM value, delete other decoding paths, record the state transition relationship during the decoding path deletion process, and generate a state transition configuration table;
[0075] When the CEVA platform decodes the Polar code, the bitonic sorting principle is combined with the VCU instruction in the CEVA platform, and the sorting operation is continuously used for the operation of deleting other decoding paths.
[0076] In practical applications, the data storage and maintenance of the original paths abandoned after path deletion and the newly added paths play a vital role in the Polar code decoding process, because the LLR values and encoding results of each level of the decoding tree are values related to the path. When it comes to path deletion, all the values related to the path in the decoding tree need to be updated in the memory, and the cost of implementation is also huge. Therefore, the embodiment of the present invention introduces a state transfer configuration table to record the state transfer relationship during each path deletion process. When it is necessary to perform encoding calculations on the previous level tree sequence or use the previous level LLR data, it only needs to read the value of the state transfer configuration table, combined with CEVA's vpermute or vgen series instructions, to efficiently perform operations before and after the state, thereby avoiding a large number of memory copy operations.
[0077] Step 105: Perform decoding operation of the upper level Polar code or the lower level Polar code by reading the value in the state transition configuration table.
[0078] Specifically, the LLR data is stored and operated according to the sign bit and the absolute value respectively, wherein the flipping of the sign bit is performed by an exclusive OR operation or an accumulation operation according to the decoding implementation instruction.
[0079] In practical applications, the decoding process of analyzing the resource bitmap sometimes needs to be performed multiple times in succession for the calculation of the left branch. Similarly, the encoding calculation starting from the bottom right branch will also be repeated multiple times. If recursive calls are made using C code, the function call overhead and the GCU overhead of the assembly will be huge, resulting in a waste of resources. The embodiment of the present invention sinks the recursive function to the assembly, which is viewed as two layers of loop nesting. As long as the loop control conditions in the assembly nesting are reasonably designed, the processing operation can be completed efficiently.
[0080] The decoding process of the leading bit has two special features: one is that there is only one path, so the uniform addition or subtraction of a certain number in PM has no effect on the final decoding judgment; the other is that the leading positions are mostly frozen bits, which only need to be fixedly decoded as 0. Based on this, the embodiment of the present invention uses a separate processing function to process the decoding leading bit, which can improve the decoding efficiency, wherein the number of information bits processed by the function must be a power of 2, and the number of information bits should be within 5 bits.
[0081] On the other hand, UEs with the same bitmap have uniform behavior at the same bit position. Although the path deletion situations of different UEs may be very different, most operations cannot be processed in the same Cycle. At the same time, Polar's sequential decoding logic leads to a large amount of public overhead in addition to the pure calculation of the VCU. The embodiment of the present invention proposes parallel processing of multiple UEs, which can spread this part of the public overhead, perform cyclic processing in a timely manner, and improve the decoding efficiency.
[0082] In summary, the decoding method, device and computer-readable storage medium of the Polar code proposed in the embodiment of the present invention pre-constructs a bitmap table offline according to the Polar decoding bitmap, and the bitmap table at least contains the index information used by the function pointer and the input Const table index information used by the function in the calculation process; according to the number of bits of the information bits in the Polar decoding, the various combinations of information contained in the information bits are determined; based on the bitmap table, the various combinations of information contained in the information bits are calculated to determine the PM value of the decoding path corresponding to each information combination of the information bits; the decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated; by reading the values in the state transition configuration table, the decoding operation of the upper-level Polar code or the lower-level Polar code is performed. In this way, the decoding result is obtained by reverse encoding the encoding result of the last retained decoding path, which reduces the complexity of the decoding process, and achieves the balance of efficiency and versatility of the Polar decoding program through a function scheme.
[0083] Embodiment 2
[0084] Figure 2 FIG. 1 is a schematic diagram of the structure of a decoder of a Polar code according to an embodiment of the present invention. Figure 2 As shown, the decoder of the embodiment of the present invention comprises: a bitmap table module 201, a determination module 202, a calculation module 203, a state transition configuration table module 204, and an operation module 205; wherein,
[0085] A bitmap table module 201 is used to construct a bitmap table offline in advance according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0086] A determination module 202, configured to determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0087] A calculation module 203, configured to calculate each combination of information contained in the information bits based on the bitmap table, and determine a PM value of a decoding path corresponding to each combination of information contained in the information bits;
[0088] The state transition configuration table module 204 is used to retain the decoding path with the lowest PM value, delete other decoding paths, record the state transition relationship during the decoding path deletion process, and generate a state transition configuration table;
[0089] The calling module 205 is used to perform decoding operation of the upper level Polar code or the lower level Polar code by reading the value in the state transition configuration table.
[0090] When the decoder decodes the Polar code on the CEVA platform, the state transfer configuration table module 204 is used to combine the bitune sorting principle with the VCU instruction in the CEVA platform, and continuously use the sorting operation for the operation of deleting other decoding paths.
[0091] The calculation module 203 is used to fill each combination of information contained in the information bit into the node position corresponding to the decoding tree, and calculate the u vector corresponding to each combination of information contained in the information bit by calling the corresponding function and querying the bitmap table;
[0092] Encode the u vector to obtain the corresponding Beta vector;
[0093] Calculating the Beta vector and the LLR value to determine a differential PM value;
[0094] The PM values of the decoding paths corresponding to various combinations of information bits containing information are summed with the differential PM values to determine the final PM values of the decoding paths.
[0095] Among them, the above-mentioned calculation module 203 is used to construct a coding table based on the coding traversal results of the decoding path corresponding to each combination of information bits, and import the coding table into the calculation function corresponding to the information bit; the calculation function calculates the PM value of the decoding path corresponding to each combination of information bits according to the coding table.
[0096] Among them, the above-mentioned calculation module 203 is used to: in the process of decoding according to the decoding tree, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is called using assembly language, and according to the preset loop control conditions, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is completed.
[0097] The calling module 205 is used to store and operate the LLR data according to the sign bit and the absolute value, respectively, wherein the flipping of the sign bit is performed by an exclusive OR operation or an accumulation operation according to the decoding implementation instruction.
[0098] An embodiment of the present invention provides an electronic device, the electronic device comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0099] Wherein, when the processor is used to run the computer program, it executes:
[0100] Preliminarily construct a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0101] Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0102] Based on the bitmap table, performing calculations on each combination of information contained in the information bits to determine a PM value of a decoding path corresponding to each combination of information contained in the information bits;
[0103] The decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated;
[0104] By reading the value in the state transition configuration table, a decoding operation of the upper level Polar code or the lower level Polar code is performed.
[0105] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements:
[0106] Preliminarily construct a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0107] Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding;
[0108] Based on the bitmap table, performing calculations on each combination of information contained in the information bits to determine a PM value of a decoding path corresponding to each combination of information contained in the information bits;
[0109] The decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated;
[0110] By reading the value in the state transition configuration table, a decoding operation of the upper level Polar code or the lower level Polar code is performed.
[0111] It should be noted that the functions of the bitmap table module 201, the determination module 202, the calculation module 203, the state transition configuration table module 204, and the operation module 205 can be specifically implemented by referring to the relevant description of the Polar code decoding method in the first embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
[0112] The above-mentioned bitmap table module 201, determination module 202, calculation module 203, state transition configuration table module 204, and operation module 205 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memories.
[0113] In practical applications, the above-mentioned bitmap table module 201, determination module 202, calculation module 203, state transition configuration table module 204, and operation module 205 can be implemented by a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor), or a field programmable gate array (FPGA, Field Programmable Gate Array) located in the base station.
[0114] The following takes the General-SSCL algorithm as an example to explain in detail the decoding method of the Polar code proposed in the embodiment of the present invention. In the embodiment of the present invention, considering the computational cost and processing efficiency, the maximum number of information bits calculated at one time is 2, and the number of parallel paths is 8.
[0115] Embodiment 3
[0116] The G-SSCL algorithm proposed in the embodiment of the present invention, when decoding Polar codes, calculates a step size that is not determined according to the decoded bits but is determined according to the number of information bits. In this way, the computational complexity can be kept stable and controllable while reducing the overhead of function calls. Especially at low bit rates, the overhead of function calls is greatly improved compared to the SCL scheme using a fixed step size.
[0117] Figure 3 The decoding process of the Polar code using the G-SSCL algorithm in the embodiment of the present invention is as follows: Figure 3 As shown, the decoding of the Polar code in the third embodiment of the present invention specifically includes the following steps:
[0118] Step 301: Determine the implementation process of G-SSCL through the Polar decoding bitmap;
[0119] Wherein, a bitmap table is constructed offline in advance according to the Polar decoding bitmap, and the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process;
[0120] In practical applications, based on the regularity of the function call order and function input parameters of the relatively fixed decoding operation of the bitmap of Polar decoding, a method of offline construction of the bitmap table is proposed to obtain the number of functions, function order and parameter values of different bitmaps in advance and put them in a fixed Const table. Then, the table is called in a loop to obtain the corresponding functions in the function pointer array and the parameters obtained by the table lookup. All the time is online processing time, so there is no time waste, which improves the decoding efficiency.
[0121] Step 302: Determine whether the current level of the decoding tree meets the conditions for decoding processing. If yes, execute step 305; if not, execute step 303;
[0122] Step 303: Calculate the value of the F node according to the F node calculation formula of the current level LLR value, and then jump to the next level. After the next level is processed, execute step 304 according to the returned Beta1 and LLR values;
[0123] Among them, various combinations of information contained in the information bits are filled into the node positions corresponding to the decoding tree, and the u vectors corresponding to the various combinations of information contained in the information bits are calculated by calling the corresponding functions and querying the bitmap table. The u vector contains the Beta1 and LLR values returned after the next level of processing is completed.
[0124] Step 304: Calculate the value of the G node according to the calculation formula of the G node based on the input Beta1 and LLR value, then jump to the next level, encode according to the returned Beta2 and the input Beta1 after the processing from the next level is completed, and output the Beta vector;
[0125] The Beta vector is calculated according to Beta=[Beta1^Beta2, Beta2], and the encoding based on the returned Beta2 and the input Beta1 can be Arikan encoding.
[0126] Step 305: combine the information bits according to 0 and 1, determine the PM value of the decoding path corresponding to each combination, retain the decoding path with the lowest PM value, delete other decoding paths, record the state transition relationship in the process of deleting the decoding path, and generate a state transition configuration table;
[0127] Among them, a coding table is constructed by using the coding traversal results of the decoding paths corresponding to each combination of information bits, and the coding table is introduced into the calculation function corresponding to the information bit position;
[0128] The calculation function calculates the PM value of the decoding path corresponding to each combination of information bits according to the coding table.
[0129] In the process of decoding according to the decoding tree, the operation of the decoding path of the left branch or the right branch in the decoding tree is called using assembly language, and the operation of the decoding path of the left branch or the right branch in the decoding tree is completed according to the preset loop control condition.
[0130] In practical applications, each combination is filled into the position corresponding to the leaf node to obtain the u vector, and then the u vector is Arikan encoded to obtain the Beta vector. The encoded result is combined with the LLR calculation to obtain the △PM value, which is summed with the PM value corresponding to the current path to obtain the final PM value. L paths, where L represents the degree of parallelism, is the number of decoding paths that are synchronously retained during the decoding process. The final PM values obtained by all combinations are sorted, and the path with the smallest PM value is selected to be retained, and other paths are deleted. The embodiment of the present invention proposes a Trace mapping table when implementing the code to solve the existing conventional method of retaining the u vector and Beta vector corresponding to the path, and return to the previous level. If path deletion occurs, the historical u vector and Beta vector need to be updated synchronously, resulting in low efficiency and huge resource consumption. The frequent data copying overhead caused by path deletion is avoided.
[0131] Step 306: Perform decoding operation of the upper or lower level Polar code by reading the value in the state transition configuration table.
[0132] In practical applications, the decoding process of analyzing the resource bitmap sometimes needs to be performed multiple times in succession for the calculation of the left branch. Similarly, the encoding calculation starting from the bottom right branch will also be repeated multiple times. If recursive calls are made using C code, the function call overhead and the GCU overhead of the assembly will be huge, resulting in a waste of resources. The embodiment of the present invention sinks the recursive function to the assembly, which is viewed as two layers of loop nesting. As long as the loop control conditions in the assembly nesting are reasonably designed, the processing operation can be completed efficiently.
[0133] The decoding process of the leading bit has two special features: one is that there is only one path, so the uniform addition or subtraction of a certain number in PM has no effect on the final decoding judgment; the other is that the leading positions are mostly frozen bits, which only need to be fixedly decoded as 0. Based on this, the embodiment of the present invention uses a separate processing function to process the decoding leading bit, which can improve the decoding efficiency, wherein the number of information bits processed by the function must be a power of 2, and the number of information bits should be within 5 bits.
[0134] On the other hand, UEs with the same bitmap have uniform behavior at the same bit position. Although the path deletion situations of different UEs may be very different, most operations cannot be processed in the same Cycle. At the same time, Polar's sequential decoding logic leads to a large amount of public overhead in addition to the pure calculation of the VCU. The embodiment of the present invention proposes parallel processing of multiple UEs, which can spread this part of the public overhead, perform cyclic processing in a timely manner, and improve the decoding efficiency.
[0135] As described above, the decoding method, device and computer-readable storage medium of the Polar code proposed in the embodiment of the present invention preliminarily constructs a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table contains index information used by the function pointer and index information of the input Const table used by the function in the calculation process; according to the number of bits of the information bits in the Polar decoding, various combinations of information contained in the information bits are determined; the various combinations of information contained in the information bits are calculated by calling the corresponding function at the corresponding node in the decoding tree and querying the bitmap table to determine the PM value of the decoding path corresponding to each combination; the decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated; by reading the value in the state transition configuration table, the decoding operation of the upper or lower Polar code is performed. In this way, the decoding result is obtained by reverse encoding the encoding result of the last retained decoding path, which reduces the complexity of the decoding process, and achieves the balance of efficiency and versatility of the Polar decoding program through a function scheme.
[0136] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A decoding method for Polar code, characterized in that: The method comprises: Preliminarily construct a bitmap table offline according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process; Determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding; Based on the bitmap table, performing calculations on each combination of information included in the information bits to determine a PM value of a decoding path corresponding to each combination of information bits; The decoding path with the lowest PM value is retained, other decoding paths are deleted, the state transition relationship in the process of deleting the decoding path is recorded, and a state transition configuration table is generated; By reading the value in the state transition configuration table, a decoding operation of the upper level Polar code or the lower level Polar code is performed.
2. The method according to claim 1, characterized in that The deleting other decoding paths includes: When the CEVA platform decodes the Polar code, the bitonic sorting principle is combined with the VCU instruction in the CEVA platform, and the sorting operation is continuously used for the operation of deleting other decoding paths.
3. The method according to claim 1, characterized in that The step of calculating each combination of information included in the information bits based on the bitmap table to determine the PM value of the decoding path corresponding to each combination of information bits includes: Fill each combination of information contained in the information bit into the node position corresponding to the decoding tree, and calculate the u vector corresponding to each combination of information contained in the information bit by calling the corresponding function and querying the bitmap table; Encode the u vector to obtain the corresponding Beta vector; Calculating the Beta vector and the LLR value to determine a differential PM value; The PM values of the decoding paths corresponding to various combinations of information bits containing information are summed with the differential PM values to determine the final PM values of the decoding paths.
4. The method according to claim 3, characterized in that The information bits include PM values of decoding paths corresponding to various combinations of information, including: Constructing a coding table based on the coding traversal results of the decoding paths corresponding to each combination of information bits, and importing the coding table into the calculation function corresponding to the information bit position; The calculation function calculates the PM value of the decoding path corresponding to each combination of information bits according to the coding table.
5. The method according to claim 1 or 3, characterized in that: The step of computing each combination of information contained in the information bits based on the bitmap table includes: In the process of decoding according to the decoding tree, the operation of the left branch decoding path or the right branch decoding path in the decoding tree is called using assembly language, and the operation of the left branch decoding path or the right branch decoding path in the decoding tree is completed according to the preset loop control condition.
6. The method according to claim 1, characterized in that The performing of the upper level Polar code or the lower level Polar decoding operation includes: The LLR data is stored and operated according to the sign bit and the absolute value respectively, wherein the flipping of the sign bit is performed according to the decoding implementation instruction to perform an exclusive OR operation or an accumulation operation.
7. A Polar code decoder, characterized in that: The device comprises: a bitmap table module, a determination module, a calculation module, a state transfer configuration table module, and an operation module; wherein, A bitmap table module, used to construct a bitmap table offline in advance according to the Polar decoding bitmap, wherein the bitmap table at least includes index information used by the function pointer and input Const table index information used by the function in the calculation process; A determination module, used to determine various combinations of information contained in the information bits according to the number of bits of the information bits in the Polar decoding; A calculation module, configured to calculate, based on the bitmap table, each combination of information contained in the information bits, and determine a PM value of a decoding path corresponding to each information combination of the information bits; A state transfer configuration table module is used to retain the decoding path with the lowest PM value, delete other decoding paths, record the state transfer relationship during the decoding path deletion process, and generate a state transfer configuration table; The calling module is used to perform decoding operation of the upper-level Polar code or the lower-level Polar code by reading the value in the state transition configuration table.
8. The decoder according to claim 7, characterized in that The state transfer configuration table module is used for: when the decoder decodes the Polar code on the CEVA platform, combining the bitune sorting principle with the VCU instruction in the CEVA platform, and continuously using the sorting operation for the operation of deleting other decoding paths.
9. The decoder according to claim 7, characterized in that: The calculation module is used to fill each combination of information contained in the information bit into the node position corresponding to the decoding tree, and calculate the u vector corresponding to each combination of information contained in the information bit by calling the corresponding function and querying the bitmap table; Encode the u vector to obtain the corresponding Beta vector; Calculating the Beta vector and the LLR value to determine a differential PM value; The PM values of the decoding paths corresponding to various combinations of information bits containing information are summed with the differential PM values to determine the final PM values of the decoding paths.
10. The decoder according to claim 9, characterized in that The calculation module is used to construct a coding table based on the coding traversal results of the decoding paths corresponding to various combinations of information bits, and import the coding table into the calculation function corresponding to the information bits; the calculation function calculates the PM value of the decoding paths corresponding to various combinations of information bits based on the coding table.
11. The decoder according to claim 7, characterized in that: The calculation module is used to: during the decoding process according to the decoding tree, call the operation of the left branch decoding path or the right branch decoding path in the decoding tree using assembly language, and complete the operation of the left branch decoding path or the right branch decoding path in the decoding tree according to the preset loop control condition.
12. The decoder according to claim 7, characterized in that: The calling module is used to perform storage operations on the LLR data according to the sign bit and the absolute value, respectively, wherein the flipping of the sign bit is performed according to the decoding implementation instruction to perform an exclusive OR operation or an accumulation operation.
13. An electronic device, characterized in that: The electronic device comprises: a processor and a memory for storing a computer program that can be run on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of any one of the methods of claims 1 to 6.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
