PBCH polarization code decoding system
By combining f operation and g operation into a PE unit in the PBCH channel polar code decoding system, and using memory sharing and hierarchical processing ideas, storage resources and memory access are optimized, hardware resource utilization and decoding efficiency are improved, and current problems are solved. There is a problem in the technology of insufficient utilization efficiency of the PBCH channel polar code encoder hardware.
Patent Information
- Application Number
- CN202410983696.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-11
AI Technical Summary
The existing PBCH channel polar code encoder has deficiencies in hardware utilization efficiency and is difficult to meet the needs of 5G networks for efficient and reliable data transmission.
A PBCH polar code decoding system is designed, including a rate matching module, a rate matching pattern storage module, an information bit pattern storage module, a polar code decoding module and a CRC check code and decoded data interleaving module. By merging f operations and g The operation is a PE unit, using memory sharing and hierarchical processing ideas to optimize storage resources and memory access methods.
It achieves higher hardware resource utilization, throughput rate and clock frequency, and improves polar code decoding efficiency under the PBCH channel.
Smart Images

Figure CN118764035A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of polar code decoding, and in particular to a PBCH polar code decoding system. Background Art
[0002] In recent years, with the development of technologies such as smart cars, smart identification and smart Internet of Things, 5G networks have put forward higher requirements for the reliability and flexibility of data transmission. 5G channel coding is the core technology for achieving efficient and reliable data transmission. It has now transitioned from convolutional codes to Turbo codes and is gradually transitioning to LDPC codes and polar codes.
[0003] Polar code, as the first constructive code that can reach the Shannon limit, has been widely used in the fifth generation of mobile communications and is also a research hotspot in the current field of channel coding. In the fifth generation of mobile wireless system (5G), polar code is used as the channel coding scheme for the physical broadcast channel (PBCH) and the physical downlink control channel (PDCCH). The physical broadcast channel (PBCH) is the most important downlink control channel in LTE. When the user terminal requires access to the network, the PBCH channel carries system information. Under the PBCH channel, the channel coding and decoding scheme needs to work under the condition of short code length and low code rate. Polar code has obvious advantages over TBCC, eTBCC and LDPC code. Therefore, the 3GPP RAN1#89 meeting decided to use Polar code as the channel coding scheme for NR-PBCH, and take N_max=512bit.
[0004] In view of this, it is necessary to further improve the structure of the polar code encoder based on the PBCH channel. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a PBCH polarization code decoding system, aiming to improve the hardware utilization efficiency.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a PBCH polar code decoding system, comprising: a rate matching module, a rate matching pattern storage module, an information bit pattern storage module, a polar code decoding module, and a CRC check code and coded data interleaving module;
[0007] The rate matching module is used to perform rate matching on the 864 8-bit LLR data received by decoding, and then sequentially output 512 8-bit LLR data after rate matching;
[0008] The rate matching pattern storage module is used to store corresponding position information of 512 8-bit LLR data obtained by interleaving and calculating 864 8-bit LLR data in the current rate matching mode;
[0009] The information bit pattern storage module is used to store the position information corresponding to the 56-bit information bit data in the 512-bit polar code core block;
[0010] The polar code decoding module is used to receive the LLR data after rate matching, complete polar code decoding through serial offset decoding, and extract the information bits to obtain 56-bit decoded data after reading the position information corresponding to the 56-bit information bit data stored in the 512-bit polar code;
[0011] The CRC check code and decoded data deinterleaving module is used to deinterleave the 56-bit decoded data according to the interleaving table corresponding to the 24-bit CRC check code to obtain the deinterleaved 32-bit information data and the 24-bit CRC check code.
[0012] Furthermore, the rate matching module is specifically used to divide the 864 8-bit LLR data received by decoding into 54 sub-blocks in order and on average, each sub-block sequence has 16 8-bit LLR data, the first 32 sub-blocks are sub-block interleaved according to the interleaving pattern defined by the 3GPP protocol, and then the remaining 12 sub-blocks are sub-block interleaved according to the interleaving pattern defined by the 3GPP protocol and added to the corresponding 32 sub-blocks, thereby completing the rate matching under the PBCH channel.
[0013] Further, the information bit pattern storage module is specifically used to store specific position information of 56-bit decoded information bit data under the PBCH channel in the 512-bit polar code core block; the specific position information is calculated by the polar code sequence mother set defined by the 3GPP protocol.
[0014] Furthermore, the LLR data in the polar code decoding module is quantized into 8 bits and stored in the LLR hierarchical storage space RAM in a manner in which the highest bit LSB is used as a sign bit and the remaining lower seven bits are used as absolute values.
[0015] Furthermore, in the polar code decoding module, the LLR storage space adopts the same-level shared memory, and the LLR values corresponding to the two nodes in the same layer share the same storage space. The depth of the hierarchical storage RAM at the 0th layer is 512, the depth of the 1st layer is 256, and the depth is halved until the depth of the ninth layer is 1.
[0016] Further, a basic operation unit PE is provided in the polar code decoding module, which is used to complete the F operation and the G operation. The basic operation unit PE respectively calculates the sign bit and the absolute value of the F operation and the G operation results through the two currently input LLR values and the estimated value of the codeword, concatenates the sign bit and the absolute value to obtain the operation result, and selects to output the F operation result or the G operation result according to the current fg_select signal.
[0017] Furthermore, the polar code decoding module includes an information bit extraction function, which is used to extract and output 56 information bits from 512-bit polar code decoded data by reading specific position information of 56-bit interleaved data in the information bit pattern storage module in the 512-bit polar code core block after decoding the 512-bit polar code core block.
[0018] Furthermore, in the CRC check code and decoded data deinterleaving module, a 24-bit CRC check code is generated by a CRC parallel matrix algorithm.
[0019] Furthermore, in the CRC check code and decoded data deinterleaving module, the polynomial for generating a 24-bit CRC check code by the CRC parallel matrix algorithm is: g(x)=x 24 +x 23 +x 21 +x 20 +x 17 +x 15 +x 13 +x 12 +x 8 +x 4 +x+1, x is a symbol representing the position of each bit in the binary sequence, each x n Represents the nth bit in a binary sequence.
[0020] Furthermore, the CRC check code and decoded data deinterleaving module is specifically used to interleave 56-bit decoded data according to the 164-bit mother interleaving pattern defined by 3GPP to obtain 24 bits for CRC check code and output 32 bits of deinterleaved data.
[0021] The beneficial effects of the present invention are as follows: the f operation and the g operation are combined into one PE unit, and the LLR data of the code tree node are shared among the levels by using the memory sharing method, which reduces the consumption of the storage resources of the decoding exponentially; the hierarchical processing idea is used to adjust the number of layers to flexibly adapt to different code lengths; a unique memory access mode is set for the XOR module, which greatly reduces the storage space of the partial sum data; therefore, the decoding system realized by the present design can perform polarization code decoding under the PBCH channel with a higher hardware resource utilization rate, a higher throughput rate and a higher clock frequency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the mechanisms shown in these drawings without paying any creative work.
[0023] Figure 1 4 is a module block diagram of a PBCH polar code decoding system according to an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of the circuit structure of a rate matching module according to an embodiment of the present invention;
[0025] Figure 3 Schematic diagram of the structure of a polar code SC decoder according to an embodiment of the present invention;
[0026] Figure 4 Schematic diagram of the structure of an SC decoder with a code length of N according to an embodiment of the present invention;
[0027] Figure 5 Schematic diagram of the circuit structure of a polar code decoding module according to an embodiment of the present invention;
[0028] Figure 6 A schematic diagram of a state machine jump according to an embodiment of the present invention;
[0029] Figure 7 Schematic diagram of a logic circuit of a basic operation unit PE according to an embodiment of the present invention;
[0030] Figure 8 is a gate-level circuit schematic diagram of a basic operation unit PE according to an embodiment of the present invention;
[0031] Fig. 9 The figure is a circuit diagram of a CRC check code and decoded data deinterleaving module according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] It should be noted that the descriptions of "first", "second", etc. in the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0034] Figure 1 The module block diagram of the PBCH polar code decoding system of the embodiment of the present invention. In the embodiment of the present invention, the PBCH polar code decoding system includes: a rate matching module (pbch_rate_matching), a rate matching pattern storage module (rate_matching_pattern_ram), an information bit pattern storage module (info_bit_ram), a polar code decoding module (pbch_dec_core), and a CRC check code and decoded data deinterleaving module (crc_deinterleaving); wherein,
[0035] The rate matching module is used to perform rate matching on the 864 8-bit LLR data received by decoding, and then sequentially output 512 8-bit LLR data after rate matching;
[0036] The rate matching pattern storage module is used to store the corresponding position information of 512 8-bit LLR data obtained by interleaving and calculating 864 8-bit LLR data in the current rate matching mode;
[0037] An information bit pattern storage module, used to store position information corresponding to 56-bit information bit data in a 512-bit polar code core block;
[0038] The polarization code decoding module is used to receive the LLR data after rate matching, complete polarization code decoding through serial offset decoding, and extract the information bits to obtain 56-bit decoded data after reading the corresponding position information of the 56-bit information bit data in the 512-bit polarization code;
[0039] The CRC check code and decoded data deinterleaving module is used to deinterleave the 56-bit decoded data according to the interleaving table corresponding to the 24-bit CRC check code to obtain the deinterleaved 32-bit information data and the 24-bit CRC check code.
[0040] Furthermore, the rate matching module is specifically used to divide the 864 8-bit LLR data received by decoding into 54 sub-blocks in order and on average, each sub-block sequence has 16 8-bit LLR data, the first 32 sub-blocks are sub-block interleaved according to the interleaving pattern defined by the 3GPP protocol, and then the remaining 12 sub-blocks are sub-block interleaved according to the interleaving pattern defined by the 3GPP protocol and added to the corresponding 32 sub-blocks, thereby completing the rate matching under the PBCH channel.
[0041] Further, the information bit pattern storage module is specifically used to store specific position information of 56-bit decoded information bit data under the PBCH channel in the 512-bit polar code core block; the specific position information is calculated by the polar code sequence mother set defined by the 3GPP protocol.
[0042] Furthermore, the LLR data in the polar code decoding module is quantized into 8 bits and stored in the LLR hierarchical storage space RAM in a manner in which the highest bit LSB is used as a sign bit and the remaining lower seven bits are used as absolute values.
[0043] Furthermore, in the polar code decoding module, the LLR storage space adopts the same-level shared memory, and the LLR values corresponding to the two nodes in the same layer share the same storage space. The depth of the hierarchical storage RAM at the 0th layer is 512, the depth of the 1st layer is 256, and the depth is halved until the depth of the ninth layer is 1.
[0044] Further, a basic operation unit PE is provided in the polar code decoding module, which is used to complete the F operation and the G operation. The basic operation unit PE respectively calculates the sign bit and the absolute value of the F operation and the G operation results through the two currently input LLR values and the estimated value of the codeword, concatenates the sign bit and the absolute value to obtain the operation result, and selects to output the F operation result or the G operation result according to the current fg_select signal.
[0045] Furthermore, the polar code decoding module includes an information bit extraction function, which is used to extract and output 56 information bits from 512-bit polar code decoded data by reading specific position information of 56-bit interleaved data in the information bit pattern storage module in the 512-bit polar code core block after decoding the 512-bit polar code core block.
[0046] Furthermore, in the CRC check code and decoded data deinterleaving module, a 24-bit CRC check code is generated by a CRC parallel matrix algorithm.
[0047] Furthermore, in the CRC check code and decoded data deinterleaving module, the polynomial for generating a 24-bit CRC check code by the CRC parallel matrix algorithm is: g(x)=x 24 +x 23+x 21 +x 20 +x 17 +x 15 +x 13 +x 12 +x 8 +x 4 +x+1, x is a symbol representing the position of each bit in the binary sequence, each x n Represents the nth bit in a binary sequence.
[0048] Furthermore, the CRC check code and decoded data deinterleaving module is specifically used to interleave 56-bit decoded data according to the 164-bit mother interleaving pattern defined by 3GPP to obtain 24 bits for CRC check code and output 32 bits of deinterleaved data.
[0049] Rate matching pattern storage module (rate_matching_pattern_ram): The 3GPP protocol stipulates that the rate matching mode under the PBCH channel is repetition. According to the calculation method under the repetition mode defined in the 3GPP protocol, the interleaving array corresponding to 56 sub-blocks can be obtained as follows:
[0050] Pi=[0,1,2,4,3,5,6,7,8,16,9,17,10,18,11,19,12,20,13,21,14,22,15,23,24,25,26,2 8,27,29,30,31,0,1,2,4,3,5,6,7,8,16,9,17,10,18,11,19,12,20,13,21,14,22,15,23]
[0051] The codeword length under the PBCH channel is fixed, and the rate matching mode is also fixed to repetition. It is not necessary to calculate the rate matching sub-block interleaving pattern every time, so the rate_matching_pattern data is stored in rate_matching_pattern_ram.
[0052] Rate matching module (pbch_rate_matching): This module divides the 864 8-bit LLR data received by the decoder into 54 sub-blocks in order, and each sub-block sequence has 16 LLR data. The rate matching is divided into two stages. The specific circuit implementation is as follows Figure 2In the first stage, the first 32 sub-blocks are interleaved according to the interleaving pattern defined by the 3GPP protocol and stored in a RAM with a depth of 512 and a width of 8 bits; in the second stage, the remaining 12 sub-blocks are interleaved according to the interleaving pattern defined by the 3GPP protocol, and the LLR values of the corresponding 32 sub-blocks stored in the previous RAM are taken out and added together to complete the rate matching under the PBCH channel and output 512 8-bit LLR data.
[0053] The information bit pattern storage module (info_bit_ram) stores the position information of the information bits under the PBCH channel. The polarization code design is related to the problem of how to select the positions of the information bits and frozen bits. The rule for selecting the channel for transmitting the information bits is to place the information bits on the subchannels with high reliability and the frozen bits on the subchannels with low reliability according to the reliability of the subchannels. Under the PBCH channel, the length of the polarization code core block is always N=512bit, consisting of 56bit information bits and 456bit frozen bits. The calculation method of the corresponding information bit position information info_bit_pattern can be calculated by the polarization code mother set defined by the 3GPP protocol. From the polarization sequence mother set, the 56 bits with the highest channel reliability (i.e., the last 56 bits of the sequence) are taken as the polarization sequence of the information bit. Then, according to the order of the addresses, the sequence number array corresponding to the channel used to transmit the information bits can be obtained. In the polarization code encoding under the PBCH channel, the channels used to transmit information bits and frozen bits are fixed, so the info_bit_pattern data is stored in info_bit_pattern_ram. The RAM storage depth is 6 bits and the width is 9 bits. The specific data of info_bit_pattern is as follows:
[0054] info_bit_pattern=[247,253,254,255,367,375,379,381,382,383,415,431,439,441,443,444,445,446,447,463,469,470,471,473,474,475 ,476,477,478,479,483,485,486,487,489,490,491,492,493,494,495 ,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511]
[0055] In order to better describe this scheme, the serial offset decoding principle of this scheme is explained below:
[0056] The serial cancellation (SC) decoding algorithm determines the transition probability one by one based on the received log-likelihood ratio data (LLR) and obtains the transmitted bit sequence. Estimated value of ,in Represents a sequence collection The SC decoding algorithm execution process is to first decode the first codeword based on the log-likelihood ratio data. Then use and log-likelihood ratio data And so on, where the general rule is that the decoding of the ith codeword requires the decoded first i-1 codewords and log-likelihood ratio data until all N codewords are decoded.
[0057] The most basic polar code SC decoder structure with a code length of 2 is as follows: Figure 3 As shown, first, the f function is calculated based on the log-likelihood ratios of y1 and y2, which are a and b respectively. If the first codeword is a frozen bit, then directly let Otherwise, the estimated value of the first code element is determined based on whether the result of the f function is greater than 0. In the picture The estimated value c of the previous codeword is added to the original LLR values a and b to calculate the g function, and then a hard decision is made on the result to obtain the estimated value of the second codeword Complete SC decoding of polar code with code length 2.
[0058] By cascading SC polar code decoders with a code length of 2, an SC decoder with a code length of N can be formed. Figure 4 The structure shown is similar to the basic polar code with a code length of 2. First, the received initial log-likelihood ratio is stored in the RAM of the 0th layer, and then the function f of the n=log2N layer is calculated. Finally, the estimated value of the first code element u1 is calculated. If the symbol is at the location of the frozen bit, it will be translated as frozen bit 0, regardless of the calculation result of the f function. Otherwise, a hard decision is made based on the result of the f function to obtain the estimated value of the first symbol. When decoding the second codeword, the log-likelihood ratio of the received sequence and the estimated value of the previous codeword are required. Performing a g function operation can obtain the estimated value of code element u2 Then use and The value of is XORed to obtain the partial sum value of the node in the previous layer. The g function uses the value of the log-likelihood ratio and the partial sum value to calculate the value of the log-likelihood ratio of the previous layer, and then repeats the f operation, and so on, until the value of the Nth code element is decoded.
[0059] It can be seen that when implementing a decoder in hardware, it is necessary to consider designing modules for calculating the F function and the G function, modules for determining code elements, and known parts and calculation modules required for the G function.
[0060] Polar code decoding module (pbch_dec_core): Figure 5 As shown in FIG. 1 , the polar code decoding module (pbch_dec_core) is composed of a control module (sc_decoder_stm), a log-likelihood ratio calculation module (phi_fg_i), a codeword decision module (judge), a partial sum calculation module (xor_i), a decoding result and partial sum storage module (u_bit_ram), and an LLR level storage module (llrs_ram_i).
[0061] The control module (sc_decoder_stm) is the key to controlling the polar code decoding module (pbch_dec_core) to perform f and g operations to update the LLR values of each layer, make hard decisions to obtain decoded bits, and update the hierarchical partial sum. It is mainly controlled by the state machine, in which the jump of the state machine is mainly controlled by layer and count. The specific state machine jump is as follows Figure 6 The specific status is described as follows:
[0062] IDLE: After the rate matching module (pbch_rate_matching) is completed and 512 LLR data are stored in the LLR level storage module (llrs_ram_0) of layer 0, sc_start is pulled high to make the state machine jump from IDLE to F_CAL state and start polar code SC decoding. At this time, layer and count are both equal to the initial value 0.
[0063] F_CAL: In this state, f_en=1, and in conjunction with the value of layer, f_en_i=1 is set to enable the corresponding log-likelihood ratio calculation module phi_fg_i; when phi_fg_i completes the F operation, f_done_i=1 is set to indicate that the F operation of the current layer is completed. When the control module receives f_done_i=1, if layer<9, it means that the current F operation has not fallen to the bottom layer, and the next state still jumps to F_CAL to continue the F operation of the next layer; if layer=9, it means that the current F operation has reached the bottom layer, and the next state will jump to JUDGE to make a hard decision based on the calculated LLR value. Each time an F_CAL operation is completed, the value of layer is increased by one, which means that each F operation will cause the current calculation level to fall down one layer.
[0064] JUDGE: In this state, judge_en=1, and in conjunction with the value of count, a hard decision is made on the LLR value of the bottom-level RAM. After the decision is made, it is stored in the decoding result and the corresponding position of the part and storage module (u_bit_ram). After completion, judge_done=1. When judge_done_i=1 is received and count=512, it means that each codeword has been hard-determined and the entire decoding process has been completed. The next state will jump to the IDLE state and output sc_done_flag=1; when count≠512, if the value of count is an odd number, the next state will jump to G_CAL; if the value of count is an even number, the next state will jump to XOR_CAL. Each time the JUDGE state is entered, the value of count will be increased by one, indicating that one more codeword has been decoded after the hard decision.
[0065] G_CAL: In this state, g_en=1, and in conjunction with the value of layer, set g_en_i=1 to enable the corresponding log-likelihood ratio calculation module phi_fg_i; when phi_fg_i completes the G operation, set g_done_i=1, indicating that the F operation of the current layer is completed. After receiving g_done_i=1, if layer<9, it means that the current G operation is not at the bottom layer, and the next state jumps to F_CAL to perform F operation; if layer=9, it means that the current G operation is at the bottom layer, and the next state jumps to JUDGE to make a hard decision based on the calculated LLR value.
[0066] XOR_XAL: In this state, xor_en=1, and in conjunction with the value of layer, xor_en_i=1 is set to enable the corresponding part and calculation module xor_i; when xor_i completes the XOR operation, xor_done_i=1 is set. After receiving xor_done_i=1, if count%2^(10-layer)=0, the next state still jumps to XOR_CAL, if count%2^(10-layer)≠0, the next state jumps to G_CAL. Each time an XOR_CAL operation is completed, the value of layer is reduced by one, which means that each XOR operation will move the current calculation level up one level.
[0067] The above different states, together with the values of layer and count, enable different calculation modules and complete the control of the entire decoding module.
[0068] LLR hierarchical storage module (llrs_ram_i): According to the falling path of each code point, the LLR data of each node is stored using the same level shared memory method. The RAM depth of each layer of storage space is 2n-i , with a width of 8 bits, where i is the sequence number of the layer, the root node is the 0th layer, the code point layer is the nth layer, and for the polar code with a code length of 516, n = log2512 = 9, with a total of 9 layers. This level storage RAM is designed as a true dual-port RAM, which can read and write two different address data at the same time without interfering with each other. Therefore, when reading out, the two LLR data in llrs_ram_i required for f operation or g operation can be read within 1 clock, and the calculation result can be directly written into the next level llrs_ram_i+1, thereby increasing the parallelism and improving the efficiency of data reading. In conjunction with the level calculation module phi_fg_i, taking the storage llrs_ram_1 of the first level LLR data sequence of the code tree as an example, the depth of llrs_ram_1 is 256, and there are two nodes in this layer, but under the control logic of memory sharing, only one storage RAM is needed to store the LLR values of the two nodes in this layer. When this layer is calculated again later, the new LLR value can directly overwrite the old LLR value. The second layer phi_fg_2 also needs a storage RAM of the above form, but the depth is halved to 128, and four nodes share a storage space. And so on, to the ninth layer phi_fg_9, the RAM depth is 1. It can be seen that using the memory sharing method can save memory exponentially.
[0069] Decoding result and partial sum storage module (u_bit_ram): During the decoding process, a storage module is required to store the 512-bit decoding result and the partial sum data used in the intermediate G operation. Since the partial sum data will only be used once in the calculation, the old data can be overwritten later, so the storage unit can be reused to save resources. In the highest level XOR calculation, one XOR operation will input 256 bits of partial sum data and output 256 bits of partial sum data, so the partial sum storage module needs 512 bits of space. It can be seen that the decoding result and partial sum storage module (u_bit_ram) has a width of 1 bit and a depth of 1024. The first half u_bit_ram[0]~u_bit_ram
[511] is used to store the 512-bit decoding result, and the second half u_bit_ram
[512] ~u_bit_ram
[1023] is used to store the partial sum data used in the intermediate G operation.
[0070] Log-likelihood ratio calculation module phi_fg_i: For polar codes with a code length of 512, combined with the hierarchical processing idea, 9 F operations are required to fall from the root node to the code node. Falling from the root node to the left child node of the first layer requires 256 F operations to update the LLR sequence of the left child node. Falling from the first layer node to the left child node of the node requires 128 F operations. Similarly, falling from the 8th layer node to the left child node of the node (the ninth layer) requires 1 F operation. Similarly, the number of G operations required to fall to the right child node is the same. Therefore, according to the characteristics of F and G operations, hierarchical processing modules are used to implement the operations.
[0071] The log-likelihood ratio calculation module phi_fg_i has a total of 9 layers. phi_fg_i reads the numerical value and partial sum value of the i-1th layer LLR from the i-1th layer LLR hierarchical storage module (llrs_ram_i-1) and the decoding result and partial sum storage module (u_bit_ram), respectively, and inputs the data into the basic operation unit PE. After the basic operation unit PE calculates, the result is stored in the i-th layer LLR hierarchical storage module (llrs_ram_i). There is only one basic operation unit PE in each hierarchical log-likelihood ratio calculation module phi_fg_i, and one F operation or G operation is completed in each clock cycle. Taking phi_fg_1 as an example, phi_fg_1 reads out the numerical value and partial sum value of the 0th layer LLR from the 0th layer LLR hierarchical storage module (llrs_ram_0) and the decoding result and partial sum storage module (u_bit_ram), respectively, and inputs the data into the basic operation unit PE. After calculation by the basic operation unit PE, the result is stored in the next layer, i.e., the 1st layer LLR hierarchical storage module (llrs_ram_1). phi_fg_1 needs to perform 256 F operations or G operations, so 256 clock cycles are required to complete the calculation from the 0th layer LLR value to the 1st layer LLR value.
[0072] Basic operation unit PE: Each layer's log-likelihood ratio calculation module phi_fg_i has a basic operation unit PE, which can complete the f function and g function:
[0073] f operation:
[0074] g operation:
[0075] In the polar code decoding module, the LLR data is calculated and stored in the hierarchical storage space RAM in the form of the highest bit LSB as the sign bit and the remaining seven lower bits as the absolute value. Therefore, PE calculates the sign bit and the value bit separately, and the f function can be expressed as:
[0076]
[0077] Where sign(L) represents the sign bit of L:
[0078]
[0079] Therefore, the f operation can be implemented by an XOR gate, a binary selector and a comparator.
[0080] From the formula of g function, we can know that when When taking different values, the g operation has different expressions:
[0081]
[0082] It can be seen that the result of the g operation depends not only on sign(L1), sign(L2), |L1|, |L2|, and are also related to the size relationship between |L1| and |L2|. The following table shows the absolute value of the result of g calculation in different cases.
[0083] Table 1:
[0084]
[0085] It can be seen that |g_result| has two results, namely |L1|+|L2| and ||L1|-|L2||. In hardware design, the result is selected according to the situation, without calculating step by step, which can effectively reduce the hardware complexity and delay. Therefore, when the sign bit and the value bit are calculated separately, the g function can be expressed as:
[0086]
[0087] Among them, γ represents the size relationship between |L1| and |L2|, and δ is The XOR result of sign(L1) and sign(L2).
[0088]
[0089] Therefore, the g operation can be implemented by an XOR gate, a binary selector and a comparator.
[0090] The logic circuit diagram of the basic operation unit PE composed of f function and g function is as follows: Figure 7As shown in the figure, depending on whether the current operation is F or G, the signal fg_select is used to control whether the output is the result of the f function or the g function. When fg_select = 0, f_result_MSB and |f_result| are output. When fg_select = 1, g_result_MSB and |g_result| are output. Result_MSB and |result| are concatenated to form an 8-bit result output. The specific gate-level circuit schematic is shown in the figure. Figure 8 .
[0091] The partial sum calculation module (xor_i) refers to the log-likelihood ratio calculation module phi_fg_i. For a polar code with a code length of 512, 8 XOR operations are required to climb from the code point of the lowest layer (ninth layer) to the node of the first layer. From the code point of the ninth layer to the node of the eighth layer, one XOR operation is required to update the partial sum data of the node. From the node of the eighth layer to the child node of the seventh layer, two XOR operations are required. By analogy, from the node of the second layer to the node of the first layer, 128 XOR operations are required.
[0092] use Indicates the partial sum bit value corresponding to the jth node of the i-th layer. To calculate the partial sum value of the i-th layer, the partial sum of the i-1-th layer needs to be calculated. The B operation is used to update the partial sum array. The essence of the B operation is the process of recursive polarization.
[0093]
[0094] XOR operation is relatively simple, so no separate operation unit is set up. The main function of the partial sum calculation module (xor_i) is to generate the read decoding result and the partial sum storage module (u_bit_ram) address, and generate the storage address of the B operation result, and write the B operation result into the storage module. If i<9, read the partial sum sequence of the i-th layer from the storage module, and after XOR calculation, write the partial sum result of the B operation into the same address for overwriting; if i=9, read the decoding result and the decoded result of the partial sum storage module (u_bit_ram) from the storage module, and after XOR calculation, store the partial sum result of the B operation into the corresponding position of the partial sum of u_bit_ram.
[0095] Codeword judgment module (judge), when the codeword judgment module is enabled (judge_en=1), the LLR value is taken from the lowest layer of the LLR hierarchical storage module, and at the same time, it is learned from info_bit_ram whether the channel currently being judged is used to transmit information bit data. If u is a frozen bit, it is directly judged as a preset value (0); if u is an information bit, it is judged based on whether the current LLR value is greater than 0. Because the LLR data is stored in the hierarchical storage space RAM in the form of the highest bit LSB as the sign bit and the remaining lower seven bits as the absolute value, it is only necessary to judge the highest bit LSB. MSB Is it 0 or 1:
[0096]
[0097] After the hard decision is made, the decoding result and part of the position for storing the decoding result corresponding to the storage module (u_bit_ram) are stored according to the value of count (count indicates which codeword is the currently decoded codeword).
[0098] The polar code decoding module includes an information bit extraction function, which is used to extract 56-bit information bits (including a 24-bit CRC check code and a 32-bit information block) from the 512-bit polar code decoded data and output them after completing the 512-bit polar code decoding by reading the specific position information of 56-bit information bit data for decomposing CRC interleaving in the information bit pattern storage module in the 512-bit polar code core block.
[0099] CRC check code and decoded data deinterleaving module (crc_interleaving): Receive the 56-bit decoded data with information bits extracted from the polar code decoding module (pbch_dec_core), deinterleave, and obtain a 24-bit CRC check code and a 32-bit final decoding result. After CRC check, output the 32-bit final decoding result. The corresponding interleaving array is calculated based on a 164-bit mother CRC interleaving mode defined by 3GPP. Under the PBCH channel, the single coded data plus CRC is (K+L CRC )=56bit<164bit, according to the calculation method defined by 3GPP, the corresponding 56-bit sub-interleaving array can be obtained as follows:
[0100] Pi=[0,2,3,5,7,10,11,12,14,15,18,19,21,24,26,30,31,32,1,4,6,8,13,16,20,22,24,27,33 ,9,17,23,28,34,29,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]
[0101] In the PBCH channel, (K+A) is always 56 bits, and the CRC interleaving mode remains unchanged, so it is not necessary to calculate the sub-interleaving pattern every time. In the circuit design, the position of each bit corresponding to the interleaving is directly fixed. The specific circuit implementation is as follows Fig. 9 After receiving the 56-bit decoded data, deinterleave according to the sub-interleaving array Pi, and convert the 56-bit decoded data D = {D0, D1, ..., D 55} is divided into K = {K0, K1, ... K 31} and CRC check code C={C0,C1,...,C 23}, after the CRC check is correct, the final decoding result of 32 bits is output K={K0,K1,...K 31}.
[0102] The following table is a comprehensive report of the SC decoding system designed for the PBCH channel under the clock frequency of 600MHz and tsmc40nm process.
[0103] Table 2:
[0104] PBCH channel SC decoding system Criticalpathdelay 1.66ns Deccycle 14885clk Throughput 20.628Mpbs Number of ports 7836 Number of nets 133202 Number of cells 125287 Number of combinational cells 106563 Number of sequential cells 18543 Totalcellarea 182761.16
[0105] The present invention combines the f operation and the g operation into a PE unit, and uses the memory sharing method to share the LLR data of the code tree node between the levels, which reduces the consumption of storage resources for decoding exponentially. Using the hierarchical processing concept, the number of layers implemented can be adjusted to flexibly adapt to different code lengths. A unique memory access method is set for the XOR module, which greatly reduces the storage space of the partial sum data. Therefore, the decoding system implemented by this design can perform polarization code decoding under the PBCH channel with a higher hardware resource utilization rate, a higher throughput rate and a higher clock frequency.
[0106] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A PBCH polarization code decoding system, It is characterized in that include: Rate matching module, rate matching pattern storage module, information bit pattern storage module, polarization code decoding module, CRC check code and coded data interleaving module; The rate matching module is used to perform rate matching on the 864 8-bit LLR data received by decoding, and then sequentially output 512 8-bit LLR data after rate matching; The rate matching pattern storage module is used to store corresponding position information of 512 8-bit LLR data obtained by interleaving and calculating 864 8-bit LLR data in the current rate matching mode; The information bit pattern storage module is used to store the position information corresponding to the 56-bit information bit data in the 512-bit polar code core block; The polar code decoding module is used to receive the LLR data after rate matching, complete polar code decoding through serial offset decoding, and extract the information bits to obtain 56-bit decoded data after reading the position information corresponding to the 56-bit information bit data stored in the 512-bit polar code; The CRC check code and decoded data deinterleaving module is used to deinterleave the 56-bit decoded data according to the interleaving table corresponding to the 24-bit CRC check code to obtain the deinterleaved 32-bit information data and the 24-bit CRC check code.
2. The PBCH polar code decoding system according to claim 1, Features: The rate matching module is specifically used to divide the 864 8-bit LLR data received by decoding into 54 sub-blocks in order and on average, each sub-block sequence has 16 8-bit LLR data, the first 32 sub-blocks are sub-block interleaved according to the interleaving pattern defined by the 3GPP protocol, and then the remaining 12 sub-blocks are sub-block interleaved according to the interleaving pattern defined by the 3GPP protocol and added to the corresponding 32 sub-blocks, thereby completing the rate matching under the PBCH channel.
3. The PBCH polar code decoding system according to claim 1, Features: The information bit pattern storage module is specifically used to store specific position information of 56-bit decoded information bit data under the PBCH channel in the 512-bit polar code core block; the specific position information is calculated by the polar code sequence mother set defined by the 3GPP protocol.
4. The PBCH polar code decoding system according to claim 1, Features: The LLR data in the polar code decoding module is quantized into 8 bits, and is stored in the LLR hierarchical storage space RAM in a manner in which the highest bit LSB is used as a sign bit and the remaining lower seven bits are used as absolute values.
5. The PBCH polar code decoding system according to claim 4, Features: In the polar code decoding module, the LLR storage space uses the same-level shared memory, and the LLR values corresponding to the two nodes in the same layer share the same storage space. The depth of the hierarchical storage RAM at the 0th layer is 512, the depth of the 1st layer is 256, and the depth is halved until the depth of the ninth layer is 1.
6. The PBCH polar code decoding system according to claim 5, Features: In the polar code decoding module, a basic operation unit PE is provided, which is used to complete the F operation and the G operation. The basic operation unit PE calculates the sign bit and the absolute value of the F operation and the G operation results respectively through the two currently input LLR values and the estimated value of the codeword, and the sign bit and the absolute value are concatenated to obtain the operation result. The F operation result or the G operation result is selected and outputted according to the current fg_select signal.
7. The PBCH polar code decoding system according to claim 6, Features: The polar code decoding module includes an information bit extraction function, which is used to extract 56 information bits from the 512-bit polar code decoded data and output the 56-bit information bits by reading specific position information of the 56-bit interleaved data in the information bit pattern storage module in the 512-bit polar code core block after completing the decoding of the 512-bit polar code core block.
8. The PBCH polar code decoding system according to claim 1, Features: In the CRC check code and decoded data deinterleaving module, a 24-bit CRC check code is generated by a CRC parallel matrix algorithm.
9. The PBCH polar code decoding system according to claim 8, Features: In the CRC check code and decoded data deinterleaving module, the polynomial for generating a 24-bit CRC check code by the CRC parallel matrix algorithm is: g(x)=x 24 +x 23 +x 21 +x 20 +x 17 +x 15 +x 13 +x 12 +x 8 +x 4 +x+1, x is a symbol representing the position of each bit in the binary sequence, each x n Represents the nth bit in a binary sequence.
10. The PBCH polar code decoding system according to claim 9, Features: The CRC check code and decoded data deinterleaving module is specifically used to interleave 56-bit decoded data according to the 164-bit mother interleaving pattern defined by 3GPP to obtain 24 bits for CRC check code and output 32 bits of deinterleaved data.
Citation Information
Cited By
High-performance decoding method for quantum low-density parity check codes
CN120706592A
A high-performance decoding method for quantum low-density parity-check codes
CN120706592B
