A 5G NR QC-LDPC coding circuit based on block compression operation method
Through the block compression operation method and check matrix compression, the complexity and resource utilization of the 5G NR QC-LDPC encoding circuit are reduced, solving the problems of high complexity and large layout area of the existing encoding circuit, and achieving more efficient hardware accomplish.
Patent Information
- Application Number
- CN202310015349.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-01-05
AI Technical Summary
The existing 5G NR QC-LDPC encoding circuit has high complexity and large layout area, making it difficult to effectively reduce the complexity of hardware implementation and resource utilization.
The 5G NR QC-LDPC encoding circuit based on the block compression operation method is used. The subset and Zc size are selected through the encoding configuration circuit. The information code block processing circuit splices or disassembles the input information into sub-code blocks with a bit width of Zc. Matrix The operation circuit uses block compression algorithm and check matrix multiplication to reduce the complexity of matrix operation, and realizes encoding of any code rate through the code rate matching circuit.
The circuit complexity and resource utilization are reduced, the layout area is reduced, and a more efficient hardware implementation is achieved.
Smart Images

Figure CN115940966B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital mobile communications, and in particular to a 5GNR QC-LDPC coding circuit based on a block compression operation method. Background Art
[0002] In 1962, Dr. Gallager proposed the LDPC code (Low-Density-Parity-Check). In 1955, Mackay and Neal found that the system using the LDPC decoding algorithm is closer to the Shannon limit than the system using the Turbo code when the code length is long. In December 2017, the release of the 5th generation mobile communication new wireless (5G NR) standard marked the official birth of the 5th generation mobile communication (5G). The data channel of 5G NR uses quasi-cyclic LDPC coding, and its check matrix is constructed by the unit matrix of different cyclic shifts.
[0003] 5G NR LDPC codes support arbitrary code rates and a wider range of code block lengths. Arbitrary code rates are achieved through puncturing, and a wider range of code block lengths is due to the two different types of parity check matrix and 51 Z c The value of , the code block length ranges from 20 to 8448 bits. The size of CPM (Circulant Permutation Matrix, Circular Permutation Matrix) is Z c *Z c , CPM is Z c The matrix obtained by cyclic shift of the unit matrix of order 1. The check basis matrices BG#1 and BG#2 specified in the 5G NR standard are composed of several CPM and Z c BG#1 and BG#2 each have 8 different cyclic shift coefficient matrices, for a total of 16. c There are 51 possible values of , which are divided into 8 subsets. Each subset corresponds to a cyclic shift coefficient matrix of BG#1 and BG#2, so there are a total of 102 cyclic shift check matrices. Summary of the invention
[0004] The purpose of the present invention is to provide a 5G NR QC-LDPC coding circuit based on a block compression operation method to solve the problems of high complexity and large layout area of the current coding circuit.
[0005] In order to solve the above technical problems, the present invention provides a 5GNR QC-LDPC coding circuit based on a block compression operation method, comprising:
[0006] The coding configuration circuit selects the corresponding subset and Z according to the information packet length c size;
[0007] The information code block processing circuit splices or disassembles the input information bytes with a bit width of 8 bits into Z bits. c Information subcode block;
[0008] Matrix operation circuit, completes the bit width Z c The information vector composed of the subcode blocks of Z is multiplied by the check matrix. The operation method is the block compression operation method. The operation obtains the c A check vector composed of subcode blocks;
[0009] The code rate matching circuit completes the data code rate matching and splices or disassembles the encoded code blocks into code word bytes with a bit width of 8 bits. In this process, the code word bytes are punctured and output according to the code rate configuration.
[0010] In one embodiment, the encoding configuration circuit selects Z according to the input packet length configuration information. c The value of Z c The value of is used to determine the length of the information subcode block vector and the size of the circulant permutation matrix CPM and the zero matrix ZM in the check basis matrix.
[0011] In one embodiment, the selection signal of the check basis matrix and Z c The values of jointly determine the value of the subset, and the value of the subset is used to select the cyclic shift coefficient base matrix. The check base matrices BG#1 and BG#2 have 8 cyclic shift coefficient matrices respectively, for a total of 16 cyclic shift coefficient matrices.
[0012] In one embodiment, the information code block processing circuit processes the input information bytes to generate a length of Z c *1 information subcode block vector and store it in the information block area in SRAM; where,
[0013] When Z c When the value of is greater than 8, the information processing process is splicing, otherwise it is disassembly; if the length of the subsequent information subcode block vector is less than Z c , zero values are inserted in the remaining positions.
[0014] In one embodiment, the matrix operation circuit is used to generate a check block vector; the check base matrix has two types, BG#1 and BG#2, both of which are composed of a number of circulant permutation matrices CPM and Z c The size of the check basis matrix BG#1 is 46Z c *68Z c , the size of the check basis matrix BG#2 is 42Z c*52Z c , and the length of the corresponding information code block vector is 22Z c *1 and 10Z c *1;
[0015] The 16 types of cyclic shift coefficient matrices are compressed and stored in blocks. The size of the 8 types of cyclic shift coefficient matrices of the check base matrix BG#1 after compression is 316*8*15 bits, and the size of the 8 types of cyclic shift coefficient matrices of the check base matrix BG#2 after compression is 197*8*15 bits. The selected cyclic shift coefficient matrix blocks are read out from the ROM and subjected to shift and other operations with the information vector to generate a check vector which is stored in the check block area in the SRAM.
[0016] In one embodiment, the circulant permutation matrix CPM is composed of Z c The matrix obtained by cyclic shifting the identity matrix of order .
[0017] In one embodiment, the block compression operation method used by the matrix operation circuit divides the check matrix G into blocks according to the characteristics of the check matrix, and multiplies the blocks with the code word vector c after elementary row and column transformation, thereby reducing the complexity of the matrix operation;
[0018] make:
[0019] matrix matrix
[0020] Where u is the information block vector, v is the check block vector, O is the zero matrix, I is the unit matrix, B is the quasi-bidiagonal cyclic shift coefficient matrix, A, C, and D are all irregular cyclic shift coefficient matrices; the LDPC coding process is to pass the characteristic equation G×c T =0 the process of finding the check block vector v;
[0021] According to the characteristic equation, g1u T +g2v T =0. Due to the characteristics of the B matrix, g2 is simplified to the unit matrix through elementary row and column changes, and the equation is simplified to:
[0022]
[0023] Based on this equation, multiplication and shift operations can be performed to obtain the check block vector v, thus completing the encoding.
[0024] In one implementation, the matrix operation circuit uses a check matrix compression method, in which the O and I matrices are not changed when B and D are changed in rows and columns, and this part is not stored; in addition, since B is a quasi-bidiagonal cyclic shift coefficient matrix, and there are only 4 cases among the 16 cyclic shift coefficient matrices, it is directly reflected in the circuit and is not stored;
[0025] Compress the A, C, and D cyclic shift coefficient matrices. Perform row compression on the A and C matrices. Do not store the zero matrix ZM in each row. Record the number of cyclic permutation matrices CPM in each row, and record the cyclic permutation matrix CPM coefficient value of each column and the column where the coefficient value is located. Each group of information occupies 15 bits. The first group of data in each row consists of a row start signal 6'h3E and the number of cyclic permutation matrices CPM in the row. Each subsequent group of data consists of the number of columns and the cyclic shift coefficient of the cyclic permutation matrix CPM. Perform column compression on the D matrix. Do not store the ZM in each column. Record the number of CPM in each column, and record the cyclic permutation matrix CPM coefficient value of each row and the row where the coefficient value is located. The first group of data in each column consists of a column start signal 6'h3E and the number of cyclic permutation matrix CPM in the column. Each subsequent group of data consists of the number of columns and the cyclic shift coefficient of the cyclic permutation matrix CPM.
[0026] In one embodiment, the code rate matching circuit reads the information vector and the encoded check vector from the SRAM, processes them to generate code word bytes; when Z c When the value of is less than 8, the information processing process is splicing, otherwise it is disassembly; the processing process includes puncturing the codewords to achieve encoding at any bit rate.
[0027] The present invention provides a 5G NR QC-LDPC coding circuit based on a block compression operation method, which has the following beneficial effects:
[0028] 1) It can reduce the complexity of the circuit. It uses the matrix block operation method to divide and simplify the matrix, and cooperates with the flag information contained in the compressed check matrix, which greatly reduces the complexity of the hardware circuit implementation;
[0029] 2) Reduce resource utilization, use the check matrix compression method to convert 16 different cyclic shift coefficient matrices, a total of 51 46Z c *68Z c Check matrix and 51 42Z c *52Z c The check matrix is compressed to 4104*15 bits, which reduces resource utilization and layout area usage. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1It is a schematic diagram of the overall architecture of a 5G NR QC-LDPC coding circuit based on a block compression operation method provided by the present invention.
[0031] Figure 2 It is a schematic diagram of information byte processing.
[0032] Figure 3 This is a schematic diagram of matrix compression storage. DETAILED DESCRIPTION
[0033] The following is a further detailed description of a 5G NRQC-LDPC coding circuit based on a block compression operation method proposed by the present invention in combination with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will become clearer. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0034] The present invention provides a 5G NR QC-LDPC coding circuit based on a block compression operation method, and its overall architecture is as follows: Figure 1 As shown, it includes a coding configuration circuit (CFG), an information code block processing circuit (INFO_PRO), a matrix operation circuit (MAT_PRO), a code rate matching circuit (RAT_MCH), a check matrix storage module (ROM4104*15bits) and a coding vector cache module (SRAM68*384bits). The coding configuration circuit selects the corresponding subset and Z according to the information packet length. c The information code block processing circuit splices or disassembles the input information bytes with a bit width of 8 bits into Z bits. c The matrix operation circuit completes the bit width Z c The information vector composed of the subcode blocks of Z is multiplied by the check matrix. The operation method is the block compression operation method. The operation obtains the c The code rate matching circuit completes the data code rate matching, splices or disassembles the encoded code block (information vector + check vector) into code word bytes with a bit width of 8 bits. In this process, the code word bytes are punctured and output according to the code rate configuration.
[0035] Subset (SET) <![CDATA[Cyclic sub - code block size (Z c )]]> 0 2,4,8,16,32,64,128,256 1 3,6,12,24,48,96,192,384 2 5,10,20,40,80,160,320 3 7,14,28,56,112,224 4 9,18,36,72,144,288 5 11,22,44,88,176,352 6 13,26,52,104,208 7 15,30,60,120,240
[0036] Table 1 All Zs specified in the 5G NR standard c value
[0037] As shown in Table 1, all Z c Value, Z cThere are 51 values of Z, ranging from 2 to 384, which are divided into 8 subsets. Each subset corresponds to a cyclic shift coefficient matrix of BG#1 and a cyclic shift coefficient matrix of BG#2. When the check matrix BG#2 is selected (i.e., the check matrix selection signal BG_SEL=1) and the information packet length is 3840 bits (i.e., the packet length configuration information LEN=3840), Z c The value of Z is 384 (i.e. c The value of CPM_SIZE=384), the value of the subset is 15 (that is, the value of the subset SET_IDX=15), and the size of the check matrix is (42*384)*(52*384), and the subset is equal to Z c The corresponding relationship of the values is shown in Table 2. This process is implemented in the encoding configuration circuit.
[0038]
[0039] Table 2 Subsets and Z c Value correspondence table
[0040] Figure 2 This is a schematic diagram of information byte processing, and the processing process shown is all based on BG#2. Figure 2 As shown in (a), when Z c =384, for the splicing process, 479 8-bit data are spliced to generate an information block vector with a length of 10. The bit width of each information subcode block is 384, and the subcode block with less than 384 data is inserted with zeros; Figure 2 As shown in (b), when Z c =3, it is a disassembly process, two 8-bit data are disassembled to generate an information block vector with a length of 10, the bit width of each information sub-code block is 3, and the sub-code block with less than 3 data is inserted with zeros. This process is implemented in the information code block processing circuit.
[0041] The block compression operation method used by the matrix operation circuit is as follows:
[0042] G×c T =0 (1)
[0043] c=[uv] (2)
[0044]
[0045]
[0046]
[0047]
[0048] g1u T +g2v T =0 (7)
[0049]
[0050]
[0051]
[0052] After the check matrix G is divided into blocks, the relevant description of the cyclic coefficient matrix after the blocks is shown in Table 3.
[0053]
[0054]
[0055] Table 3. Description of the circulant coefficient matrix after block division
[0056] From formulas (1) to (8), we can see that simplifying the matrix g2 into a unit matrix through elementary row-column transformation can greatly reduce the complexity of matrix operations. This simplification process requires first simplifying B into a unit matrix and then simplifying D into a zero matrix. The matrix B is shown in formula (9), where the element b 11 ~b 41 and "0" are the cyclic shift values of CPM, "0" means cyclic right shift of 0 bits, i.e., the unit matrix, and "-1" means ZM (zero matrix). After elementary row transformation, the upper diagonal can be eliminated, as shown in formula (10). At this time, only the second, third, and fourth rows of the first column of the B matrix need to be eliminated, that is, the B matrix is simplified to the unit matrix. It is known that among the 16 cyclic shift coefficient matrices, the B matrix has only 4 cases, which can be judged according to SET_IDX, i.e., b 11 ~b 41 The value of is known, and the B matrix can be converted into the unit matrix. The row transformation of this process also acts on the A matrix, simplifying the A matrix to the A' matrix. After B is simplified to the unit matrix, the D matrix can be simplified to the zero matrix through B. The row transformation of this process also acts on the C matrix, simplifying the C matrix to the C' matrix. The above process and the multiplication / shift operation of the check matrix and the information block vector are implemented in the matrix operation circuit.
[0057] Matrix compression storage diagram Figure 3As shown, the memory used by one cyclic shift coefficient matrix of BG#1 is 316*15bits, and that of BG#1 is 197*15bits. In this way, the address offset can be calculated by the value of SET_IDX, and the cyclic shift coefficient matrix to be used can be selected for reading. Among them, "6'h3E" is the row / column start mark, "15'h7FFF" is the storage separation point of the A / C matrix and the D matrix, and "-1" represents ZM. The above-mentioned mark information contained in the storage can simplify the hardware control circuit. The memory occupied by the storage of 16 types of cyclic shift matrices is 8*316*15bits+8*197*15bits=4104*15bits.
[0058] The function of the code rate matching circuit is opposite to that of the information code block processing circuit, which is to disassemble / join the encoded code word vector into multiple bytes. Rate matching is achieved by puncturing and outputting the bytes after code rate matching.
[0059] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A 5G NR QC-LDPC coding circuit based on a block compression operation method, characterized in that: include: The coding configuration circuit selects the corresponding subset and Z according to the information packet length c size; The information code block processing circuit splices or disassembles the input information bytes with a bit width of 8 bits into Z bits. c Information subcode block; Matrix operation circuit, completes the bit width Z c The information vector composed of the subcode blocks of Z is multiplied by the check matrix. The operation method is the block compression operation method. The operation obtains the c A check vector composed of subcode blocks; The code rate matching circuit completes the data code rate matching and splices or disassembles the encoded code blocks into code word bytes with a bit width of 8 bits. In this process, the code word bytes are punctured and output according to the code rate configuration; The encoding configuration circuit selects Z according to the input packet length configuration information c The value of Z c The value of is used to determine the length of the information subcode block vector and the size of the circulant permutation matrix CPM and the zero matrix ZM in the check basis matrix.
2. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 1, characterized in that: The selection signal and Z of the check basis matrix c The values of jointly determine the value of the subset, and the value of the subset is used to select the cyclic shift coefficient base matrix. The check base matrices BG#1 and BG#2 have 8 cyclic shift coefficient matrices respectively, for a total of 16 cyclic shift coefficient matrices.
3. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 1, characterized in that: The information code block processing circuit processes the input information bytes to generate a length of Z c * 1 information subcode block vector and stored in the information block area in SRAM; where, When Z c When the value of is greater than 8, the information processing process is splicing, otherwise it is disassembly; if the length of the subsequent information subcode block vector is less than Z c , zero values are inserted in the remaining positions.
4. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 3, characterized in that: The matrix operation circuit is used to generate the check block vector; the check base matrix has two types, BG#1 and BG#2, both of which are composed of several circulant permutation matrices CPM and Z c The size of the check basis matrix BG#1 is 46Z c *68Z c , the size of the check basis matrix BG#2 is 42Z c *52Z c , and the length of the corresponding information code block vector is 22Z c *1 and 10Z c *1; The 16 types of cyclic shift coefficient matrices are compressed and stored in blocks. The size of the 8 types of cyclic shift coefficient matrices of the check base matrix BG#1 after compression is 316*8*15 bits, and the size of the 8 types of cyclic shift coefficient matrices of the check base matrix BG#2 after compression is 197*8*15 bits. The selected cyclic shift coefficient matrix blocks are read out from the ROM and shifted with the information vector to generate a check vector and store it in the check block area in the SRAM.
5. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 4, characterized in that: The circulant permutation matrix CPM is composed of Z c The matrix obtained by cyclic shifting the identity matrix of order .
6. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 4, characterized in that: The block compression operation method used by the matrix operation circuit divides the check matrix G into blocks according to the characteristics of the check matrix, and multiplies the blocks with the code word vector c after elementary row and column transformation to reduce the complexity of the matrix operation; make: , ,matrix ,matrix , Where u is the information block vector, v is the check block vector, O is the zero matrix, I is the identity matrix, B is the quasi-bidiagonal cyclic shift coefficient matrix, A, C, and D are all irregular cyclic shift coefficient matrices; the LDPC coding process is to pass the characteristic equation The process of finding the check block vector v; According to the characteristic equation Due to the characteristics of the B matrix, through elementary row and column changes Simplified to the identity matrix, the equation simplifies to: , Based on this equation, multiplication and shift operations can be performed to obtain the check block vector v, thus completing the encoding.
7. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 6, characterized in that: The check base matrix compression method used by the matrix operation circuit is that the O and I matrices are not changed when B and D are changed in rows and columns, and this part is not stored; in addition, since B is a quasi-bidiagonal cyclic shift coefficient matrix, and there are only 4 cases among the 16 cyclic shift coefficient matrices, it is directly reflected in the circuit and is not stored; Compress the A, C, and D cyclic shift coefficient matrices. Perform row compression on the A and C matrices. Do not store the zero matrix ZM in each row. Record the number of cyclic permutation matrices CPM in each row, and record the cyclic permutation matrix CPM coefficient value in each column and the column where the coefficient value is located. Each group of information occupies 15 bits. The first group of data in each row consists of a row start signal 6'h3E and the number of cyclic permutation matrices CPM in the row. Each subsequent group of data consists of the number of columns and the cyclic shift coefficient of the cyclic permutation matrix CPM. Perform column compression on the D matrix. Do not store the ZM in each column. Record the number of CPM in each column, and record the cyclic permutation matrix CPM coefficient value in each row and the row where the coefficient value is located. The first group of data in each column consists of a column start signal 6'h3E and the number of cyclic permutation matrix CPM in the column. Each subsequent group of data consists of the number of columns and the cyclic shift coefficient of the cyclic permutation matrix CPM.
8. The 5G NR QC-LDPC coding circuit based on the block compression operation method according to claim 6, characterized in that: The code rate matching circuit reads the information vector and the encoded check vector from the SRAM, processes them to generate code word bytes; when Z c When the value of is less than 8, the information processing process is splicing, otherwise it is disassembly; the processing process includes puncturing the codewords to achieve encoding at any bit rate.
