A semi-parallel polar code decoder architecture design method and system

By arranging the processing units in a pipeline manner in the semi-parallel polar code decoder and using the intermediate value processing module to perform intermediate value operations, the problems of high decoding delay and low throughput rate are solved, and resource consumption reduction and efficiency are achieved. improvement.

CN117318733BActive Publication Date: 2024-10-22SUN YAT SEN UNIVERSITY SHENZHEN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311390672.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2024-10-22
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

Existing semi-parallel polar code decoders have problems such as high decoding delay and low throughput rate during the decoding process, resulting in large hardware resource consumption and low efficiency.

Method used

The semi-parallel polar code decoder architecture design method is adopted, and the processing units are arranged in a pipeline manner to reduce the number of processing units. The intermediate value processing module and the post-processing module are used to perform intermediate value calculation and 4-bit decoding to reduce the decoding delay. Improve throughput.

Benefits of technology

It reduces the resource consumption of the decoder, improves the usage efficiency of the decoding hardware, shortens the decoding delay, and improves the throughput of the decoder.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117318733B_ABST
    Figure CN117318733B_ABST
Patent Text Reader

Abstract

The present invention discloses a semi-parallel polar code decoder architecture design method and system, belonging to the field of channel coding technology. By loading data: the LLR channel storage module receives and stores the LLR value of the channel and sends the LLR value to the RAM cache reading module in batch order, and loads the data into the processing unit and the post-processing unit according to the stage; the processing unit performs intermediate value calculation: in the n-1th to the 2nd stage, activates P processing units in the intermediate value processing module and performs intermediate value calculation; the post-processing unit performs 4-bit decoding: in the 1st and 0th stages, activates the post-processing unit of the post-processing module to perform 4-bit decoding; finally updates the partial sum module and obtains the decoding result. In the design of the polar code decoder of the present invention, the number of processing units required is reduced, the resource consumption of the decoder is reduced, and the use efficiency of the decoding hardware is improved; the decoding delay of the entire decoding process is reduced, and the throughput of the decoder is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of channel coding technology, and in particular to a semi-parallel polar code decoder architecture design method and system. Background Art

[0002] Polarization code is a channel coding technology that theoretically achieves reliable transmission performance close to the channel capacity limit by gradually polarizing the channel. In 5G enhanced mobile bandwidth services, polarization codes are used as a coding method for control channels. The serial cancellation decoding (SC decoding) algorithm is a decoding algorithm for polarization codes. It is based on tree-structured iterative decoding. In SC decoding, information bits are passed from the root node to the leaf node one by one, and the value of each bit is inferred by making a judgment on each node. SC decoding has low complexity and is suitable for hardware implementation. Therefore, a hardware structure of a semi-parallel decoder is proposed. This structure uses processing units in a semi-parallel manner to reduce the total number of processing units, thereby reducing the hardware resource consumption of decoding.

[0003] However, this structure needs to wait for the processing unit during the decoding process, resulting in problems such as high decoding delay and low throughput. Therefore, the present invention proposes a semi-parallel polar code decoder architecture design method and system to solve the above problems. Summary of the invention

[0004] The object of the present invention is to provide a semi-parallel polar code decoder architecture design method and system, which reduces the number of processing units required, reduces the resource consumption of the decoder, and improves the use efficiency of the decoding hardware; reduces the decoding delay of the entire decoding process and improves the throughput of the decoder.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A semi-parallel polar code decoder architecture design method comprises the following steps:

[0007] S1. Load data:

[0008] S11, the LLR channel storage module receives and stores the LLR value of the channel;

[0009] S12, the LLR channel storage module sends the LLR values ​​to the channel RAM of the RAM cache reading module in batch order;

[0010] S13, loading the data into the processing unit of the intermediate value processing module and the post-processing unit of the post-processing module according to the stage;

[0011] S2, the processing unit performs intermediate value calculation: in the n-1th to the second stage, P processing units in the intermediate value processing module are activated and perform intermediate value calculation;

[0012] S3, the post-processing unit performs 4-bit decoding: in the first and the 0th phases, the post-processing unit of the post-processing module is activated to perform 4-bit decoding;

[0013] S4. Update parts and modules and obtain decoding results.

[0014] Preferably, in step S12, the decoder adopts a semi-parallel structure, the processing unit receives LLR values ​​in multiple cycles, the channel LLR values ​​are loaded into the channel RAM in groups of P, the clock cycle of loading a channel RAM with a frame coding length of N and a data depth of P is N / P, and for the LLR value with a data bit width of Q bits, the processing unit reads and processes 2PQ bits.

[0015] Preferably, in step S13, for a code length of N=2 n The polar code of is decoded in the reverse order of encoding. The encoding starts from the 0th stage and ends at the n-1th stage. The decoding process is to decode in reverse order from the n-1th stage to the 0th stage.

[0016] In the n-1th stage, data is loaded from the channel RAM and the partial sum module to the intermediate value processing module; for the n-1th to 2nd stages, data is loaded from the internal RAM and the partial sum module to the intermediate value processing module; for the 1st and 0th stages, the original processing unit is replaced by the post-processing unit, and data is loaded from the internal RAM and the partial sum module to the post-processing unit module.

[0017] Preferably, in step S2, each processing unit receives 2 LLR values ​​and 1 partial and module data from the channel RAM or internal RAM. The processing unit includes an f node and a g node. The processing unit activates the f node or the g node according to the indication function to obtain the operation result. The indication function is:

[0018]

[0019] When the indicator function value is 0, the f node is activated and the f node executes the f function:

[0020] f(L a ,L b )≈sign(L a )sign(L b )min(|L a |,|L b |)

[0021] When the indicator function value is 1, the g node is activated and the g node executes the g function:

[0022]

[0023] The results output by the processing unit are placed in the internal RAM for use in the operations from stage n-1 to stage 2.

[0024] Preferably, in step S3, the post-processing unit combines and activates the four nodes of the two processing units, and at the same time, the post-processing unit receives the four LLR values ​​of the internal RAM and the four data of the partial sum module to perform a 4-bit decoding operation. The unit performs the operation according to the input and obtains the final judgment result, and then obtains the 4-bit partial decoding result u according to the results of the four nodes. 0 、u 1 、u 2 、u 3 ;

[0025] The 4 nodes are: ff node, fg node, gf node, gg node;

[0026] The 4 LLR values ​​are: 0 , L 1 , L 2 , L 3 ;

[0027] The 4 data are:

[0028] Preferably, in step S3, the 4-bit decoding algorithm is:

[0029] The ff node executes the f function first, and then executes the f function. Its function is simplified to:

[0030] ff(L 0 ,L 1 ,L 2 ,L 3 )≈sgn(L 0 )sgn(L 1 )sgn(L 2 )sgn(L 3 )min{|L 0 |,|L 1 |,|L 2 |,|L 3 |}

[0031] The fg node first executes the f function and then the g function. Its function is simplified to:

[0032]

[0033] The gf node first executes the g function and then executes the f function. Its function is simplified to:

[0034]

[0035] The gg node executes the g function first, and then executes the g function. Its function is simplified to:

[0036]

[0037] Preferably, in step S4, the operations of the processing unit and the post-processing unit are executed in sequence from stage n-1 to stage 0, and the partial sum module is updated using the decoding result obtained in stage 0. The partial sum module receives the decoding result and updates the partial sum using the indicator function.

[0038] The present invention also adopts a semi-parallel polar code decoder architecture system, including:

[0039] LLR value channel storage module: used to store the log-likelihood ratio value received from the channel, including parallel input, parallel output, and shift register;

[0040] RAM cache reading module: including internal RAM for caching data generated by the intermediate value processing module and channel RAM for caching channel LLR values. The channel RAM is composed of random access memory and is used to write new frames and decode current frames at the same time.

[0041] Intermediate value processing module: used for intermediate value calculation from the n-1th to the second stage, including several processing units;

[0042] Post-processing module: used for 4-bit decoding in the 1st and 0th stages, including several post-processing units;

[0043] Partial sum update module: used to calculate the partial sum of the decoded bits and the g-function operation of the g-node of the processing unit of the intermediate processing module, including the shift register;

[0044] Decoding output result module: used to store the final decoding result, including shift register.

[0045] Therefore, the present invention adopts the above-mentioned semi-parallel polar code decoder architecture design method and system to achieve the following beneficial effects:

[0046] 1. The present invention arranges processing units in a pipeline manner, and the processing units perform decoding in a semi-parallel manner, thereby reducing the number of required processing units, reducing the resource consumption of the decoder, and improving the use efficiency of the decoding hardware.

[0047] 2. By introducing 4-bit decoding into the semi-parallel decoder, the last node in the decoding process decodes multiple bits simultaneously, which reduces the decoding delay of the entire decoding process and improves the decoder throughput.

[0048] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a schematic diagram of the architecture of a semi-parallel polar code decoder of the present invention;

[0050] Figure 2 is a flow chart of the present invention;

[0051] Figure 3 Schematic diagram of polar code encoding, decoding stages and directions of the present invention

[0052] Figure 4 is a structural diagram of the processing unit of the present invention;

[0053] Figure 5 FIG. 4 is a structural diagram of the post-processing unit of the present invention. DETAILED DESCRIPTION

[0054] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0055] Unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the usual meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. The words "include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, but do not exclude other elements or objects. The terms "set", "install" and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two elements. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0056] Example 1

[0057] like Figure 1-5 As shown, the present invention provides a semi-parallel polar code decoder architecture design method, comprising the following steps:

[0058] 1. (Step S1) Loading data

[0059] S11 . The LLR channel storage module receives and stores the LLR value of the channel.

[0060] S12. The LLR channel storage module sends the LLR values ​​to the channel RAM of the RAM cache reading module in batch order.

[0061] Since the decoder adopts a semi-parallel structure, the processing unit needs to receive LLR values ​​in multiple cycles. Therefore, the channel LLR values ​​are loaded into the channel RAM in groups of P. The clock cycle for loading a channel RAM with a frame coding length of N and a data depth of P is N / P. For the LLR value with a data bit width of Q bits, the processing unit reads and processes 2PQ bits.

[0062] S13, loading the data into the processing unit of the intermediate value processing module and the post-processing unit of the post-processing module according to the stage.

[0063] For a code length of N=2 n The polar code of is decoded in the reverse order of encoding. The encoding starts from the 0th stage and ends at the n-1th stage. The decoding process is to decode in reverse order from the n-1th stage to the 0th stage.

[0064] like Figure 3 As shown in the figure, for the polar code with N=8, the encoding is divided into three stages; the original information bit (u 0 , ..., u 7 ) is encoded to obtain the encoded information bit (x 0 , ..., x 7 ); decoding requires decoding the encoded information bits into original bits; so the decoding order is stage 2, stage 1 and stage 0;

[0065] In the n-1th stage, data is loaded from the channel RAM and the partial sum module to the intermediate value processing module; for the n-1th to 2nd stages, data is loaded from the internal RAM and the partial sum module to the intermediate value processing module; for the 1st and 0th stages, the original processing unit is replaced by the post-processing unit, and data is loaded from the internal RAM and the partial sum module to the post-processing unit module.

[0066] 2. (Step S2) The processing unit performs intermediate value calculation: In the n-1th to the second stage, P processing units in the intermediate value processing module are activated and perform intermediate value calculation.

[0067] like Figure 4 As shown, each processing unit receives 2 LLR values ​​and 1 partial and module data from the channel RAM or internal RAM. The processing unit includes an f node and a g node. The processing unit activates the f node or the g node according to the indication function to obtain the operation result. The indication function is:

[0068]

[0069] When the indicator function value is 0, the f node is activated and the f node executes the f function:

[0070] f(La ,L b )≈sign(L a )sign(L b )min(|L a |,|L b |)

[0071] When the indicator function value is 1, the g node is activated and the g node executes the g function:

[0072]

[0073] The results output by the processing unit are placed in the internal RAM for use in the operations from stage n-1 to stage 2.

[0074] 3. (Step S3) The post-processing unit performs 4-bit decoding: In the 1st and 0th stages, the post-processing unit of the activated post-processing module performs 4-bit decoding.

[0075] like Figure 5 As shown, the post-processing unit combines and activates the four nodes (ff node, fg node, gf node, gg node) of the two processing units, and at the same time, the post-processing unit receives the four LLR values ​​(L 0 , L 1 , L 2 , L 3 ) and 4 data of parts and modules Perform 4-bit decoding operation, the unit calculates and obtains the final judgment result according to the input, and then obtains the 4-bit partial decoding result u according to the results of the 4 nodes 0 、u 1 、u 2 、u 3 .

[0076] The 4-bit decoding algorithm is:

[0077] The ff node executes the f function first, and then executes the f function. Its function is simplified to:

[0078] ff(L 0 ,L 1 ,L 2 ,L 3 )≈sgn(L 0 )sgn(L 1 )sgn(L 2 )sgn(L 3 )min{|L 0 |,|L 1 |,|L 2 |,|L 3 |}

[0079] The fg node first executes the f function and then the g function. Its function is simplified to:

[0080]

[0081] The gf node first executes the g function and then executes the f function. Its function is simplified to:

[0082]

[0083] The gg node executes the g function first, and then executes the g function. Its function is simplified to:

[0084]

[0085] 4. (Step S4) Update the parts and modules and obtain the decoding results.

[0086] 1) From stage n-1 to stage 0, the operations of the processing unit and the post-processing unit are executed in sequence, and the decoding result obtained in stage 0 is used to update the partial sum module. The partial sum module receives the decoding result and updates the partial sum with the indicator function:

[0087]

[0088] in, is the binary XOR operation from i=0 to i=N-1, and I(l,i,z) is the indicator function;

[0089]

[0090] in, is the binary AND operation from v=0 to v=l-1, + is the binary OR operation, and B(l,i) is the indicator function mentioned above.

[0091] 2) Taking N=8 as an example, the partial sum of l=2 in the second stage can be calculated as:

[0092]

[0093]

[0094]

[0095]

[0096] After all operations from stage n-2 to stage 0, the decoding result (u 0 , ..., u n-1 ), which is the decoding result obtained by the final decoder.

[0097] Example 2

[0098] like Figure 1 As shown, the present invention also provides a semi-parallel polar code decoder architecture system, including:

[0099] LLR value channel storage module: used to store the log-likelihood ratio value received from the channel, including parallel input, parallel output, and shift register;

[0100] RAM cache reading module: including internal RAM for caching data generated by the intermediate value processing module and channel RAM for caching channel LLR values. The channel RAM is composed of random access memory and is used to write new frames and decode current frames at the same time.

[0101] Intermediate value processing module: used for intermediate value calculation from the n-1th to the second stage, including several processing units;

[0102] Post-processing module: used for 4-bit decoding in the 1st and 0th stages, including several post-processing units;

[0103] Partial sum update module: used to calculate the partial sum of the decoded bits and the g-function operation of the g-node of the processing unit of the intermediate processing module, including the shift register;

[0104] Decoding output result module: used to store the final decoding result, including shift register.

[0105] Therefore, the present invention adopts the above-mentioned semi-parallel polar code decoder architecture design method and system, which reduces the number of required processing units, reduces the resource consumption of the decoder, and improves the use efficiency of the decoding hardware; the decoding delay of the entire decoding process is reduced, and the throughput of the decoder is improved.

[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A semi-parallel polar code decoder architecture design method, characterized in that: The following steps are involved: S1, load data; S11, the LLR channel storage module receives and stores the LLR value of the channel; S12, the LLR channel storage module sends the LLR values ​​to the channel RAM of the RAM cache reading module in batch order; S13, loading the data into the processing unit of the intermediate value processing module and the post-processing unit of the post-processing module according to the stage; S2, the processing unit performs intermediate value calculation: in the n-1th to the second stage, P processing units in the intermediate value processing module are activated and perform intermediate value calculation; S3, the post-processing unit performs 4-bit decoding: In the first and the 0th stages, the post-processing unit of the post-processing module is activated to perform 4-bit decoding; S4, updating parts and modules and obtaining decoding results; In step S3, the post-processing unit combines and activates the four nodes of the two processing units. At the same time, the post-processing unit receives the four LLR values ​​of the internal RAM and the four data of the partial sum module to perform a 4-bit decoding operation. The unit calculates and obtains the final judgment result according to the input, and then obtains the 4-bit partial decoding results u0, u1, u2, and u3 according to the results of the four nodes; The 4 nodes are: ff node, fg node, gf node, gg node; The 4 LLR values ​​are: L0, L1, L2, L3; The 4 data are:

2. The method for designing a semi-parallel polar code decoder architecture according to claim 1, characterized in that In step S12, the decoder adopts a semi-parallel structure, and the processing unit receives LLR values ​​in multiple cycles. The channel LLR values ​​are loaded into the channel RAM in groups of P. The clock cycle of loading a channel RAM with a frame coding length of N and a data depth of P is N / P. For the LLR value with a data bit width of Q bits, the processing unit reads and processes 2PQ bits.

3. The method for designing a semi-parallel polar code decoder architecture according to claim 2, characterized in that : In step S13, for a code length of N=2 n The polar code of is decoded in the reverse order of encoding. The encoding starts from the 0th stage and ends at the n-1th stage. The decoding process is to decode in reverse order from the n-1th stage to the 0th stage. In the n-1th stage, data is loaded from the channel RAM and the partial sum module to the intermediate value processing module; for the n-1th to 2nd stages, data is loaded from the internal RAM and the partial sum module to the intermediate value processing module; For the 1st and 0th phases, the original processing unit is replaced by the post-processing unit, and the data is loaded from the internal RAM and the partial sum module into the post-processing unit module.

4. The method for designing a semi-parallel polar code decoder architecture according to claim 3, characterized in that In step S2, each processing unit receives two LLR values ​​and one part and module data s from the channel RAM or the internal RAM, and the processing unit includes an f node and a g node. The processing unit activates the f node or the g node according to the indication function to obtain the operation result. The indication function is: When the indicator function value is 0, the f node is activated and the f node executes the f function: f(L a ,L b )≈sign(L a )sign(L b ,)min(|L a |,|L b |) When the indicator function value is 1, the g node is activated and the g node executes the g function: The results output by the processing unit are placed in the internal RAM for use in the operations from stage n-1 to stage 2.

5. The method for designing a semi-parallel polar code decoder architecture according to claim 1, characterized in that : In step S3, the 4-bit decoding algorithm is: The ff node executes the f function first, and then executes the f function. Its function is simplified to: ff(L0, L1, L2, L3)≈sgn(L0)sgn(L1)sgn(L2)sgn(L3)min{|L0|,|L1|,|L2|,|L3|} The fg node first executes the f function and then the g function. Its function is simplified to: The gf node first executes the g function and then executes the f function. Its function is simplified to: The gg node executes the g function first, and then executes the g function. Its function is simplified to:

6. The method for designing a semi-parallel polar code decoder architecture according to claim 1, wherein: In step S4, the operations of the processing unit and the post-processing unit are executed in sequence from the n-1th stage to the 0th stage, and the partial sum module is updated using the decoding result obtained in the 0th stage. The partial sum module receives the decoding result and updates the partial sum using the indicator function.

7. A semi-parallel polar code decoder architecture system, characterized in that: include: LLR value channel storage module: used to store the log-likelihood ratio value received from the channel, including parallel input, parallel output, and shift register; RAM cache reading module: including internal RAM for caching data generated by the intermediate value processing module and channel RAM for caching channel LLR values. The channel RAM consists of random access memory and is used to write new frames and decode current frames at the same time. Intermediate value processing module: used for intermediate value calculation from the n-1th to the second stage, including several processing units; Post-processing module: used for 4-bit decoding in the 1st and 0th stages, including several post-processing units; Partial sum update module: used to calculate the partial sum of the decoded bits and the g-function operation of the g-node of the processing unit of the intermediate processing module, including the shift register; Decoding output result module: used to store the final decoding result, including shift register; The post-processing unit combines and activates the four nodes of the two processing units. At the same time, the post-processing unit receives the four LLR values ​​of the internal RAM and the four data of the partial sum module to perform a 4-bit decoding operation. The unit calculates and obtains the final judgment result based on the input, and then obtains the 4-bit partial decoding results u0, u1, u2, and u3 based on the results of the four nodes; The 4 nodes are: ff node, fg node, gf node, gg node; The 4 LLR values ​​are: L0, L1, L2, L3; The 4 data are: