A NR LDPC coding and decoding cyclic shift implementation device
Through the combination of the two-level cyclic shift network and the control signal generation module, the problem of cyclic shift network support for 51 kinds of Zc in the NR system is solved, efficient and fast cyclic shift operations are achieved, resource utilization is improved and time is reduced. Delayed consumption.
Patent Information
- Application Number
- CN202311105583.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-08-30
AI Technical Summary
It is difficult for the existing technology to efficiently support 51 types of Zc cyclic shift networks in NR systems, and the input bit width of the cyclic shift network requires Zc bit width, resulting in low resource utilization efficiency and high delay consumption.
A two-level cyclic shift network is adopted, including a control signal generation module, an input data grouping module, a cyclic shift network module and a strobe network module. The calculation and signal generation unit generates control signals in real time for cyclic shift operations, and can flexibly support 51 Type Zc and take the specified bit width as input.
It improves resource utilization, reduces delay consumption when Zc is large, and can flexibly support 51 types of Zc, achieving more efficient and faster cyclic shift operations.
Smart Images

Figure CN117081608B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a NR LDPC coding and decoding cyclic shift implementation device. Background Art
[0002] Channel coding technology has an important impact on the performance of wireless communication systems. Quasi-Cyslic Low-Density Parity-Check Codes (QC-LDPC) are used as channel coding for both downlink and uplink service channels in NR systems. In the eMBB scenario of NR systems, high throughput of service data is a hard indicator, and the implementation of high-speed channel coding is of great significance to improving throughput.
[0003] The NR standard 3GPP TS 38.212 specifies the QC-LDPC coding type used by the NR system, which includes two basic matrices BG1 and BG2, and provides 51 lifting factors Zc, so that it can be combined with the basic matrix to achieve coding and decoding of different code block lengths; the QC-LDPC coding process in the NR system is as follows:
[0004] (1) According to H*[cp] T =0 calculate the check bit sequence, where p = [p0, p1, p2, ..., p N+2Zc-K-1 ] T The coded output is composed of the input information bits c = c0, c1, c2, ..., c K-1 , K is the input information bit length, check bits and padding bits, N is the encoded data length, Zc represents the boost factor, and its value range is 2 to 384, as shown in the following table:
[0005] iLS Zc 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}
[0006] (2) Generation of H matrix: H matrix is obtained based on the basic matrix BG and the lifting factor Zc, where the basic matrix BG1 is a 46-row 68-column matrix and the basic matrix BG2 is a 42-row 52-column matrix. For the unit matrix I of Zc*Zc, cyclic right shift P i,j times, we will get the permutation matrix I(P i,j ), where i represents the row index of the basic matrix, j represents the column index of the basic matrix, and P i,j According to the coefficient value in the basic matrix in the protocol, it is obtained; then I(P i,j ) replace the non-"-1" positions in the basic matrix, use the unit matrix I to replace the "0" positions in the basic matrix, and use the zero matrix Zc*Zc to replace the "-1" positions in the basic matrix, and the final check matrix H is obtained.
[0007] In the engineering implementation of QC-LDPC coding, the above H matrix generation operations need to be implemented. Among them, the implementation of cyclic shift has the greatest impact on throughput. However, in the engineering implementation, it is not necessary to perform cyclic right shift P on the elements in the check matrix. i,j , but to do P to the input information bit data i,j Since the NR protocol stipulates that there are 51 values of Zc, ranging from 2 to 384, divided into 8 hash sets, an efficient and fast cyclic shift network that can flexibly support 51 types of Zc is crucial for the implementation of NR QC-LDPC coding.
[0008] At present, there are two types of implementation methods for cyclic shift in the QC-LDPC encoding process in the industry: one is implemented through a single network such as Benes network, QSN network, barrel shifter or Banyan network, and the other is implemented by increasing the number of cyclic shifts and dividing it into two-level cyclic networks, such as the first-level network is QSN and the second-level network is Banyan network. Among them, the first type of single network implementation of cyclic shift in the QC-LDPC encoding process is applicable to fixed Zc. For the NR standard, it is difficult to flexibly support 51 types of Zc with a span; while the two-level cyclic network can flexibly support 51 types of Zc through a two-level network structure, and for smaller Zc, it can be directly implemented through the first-level cyclic shift network, which improves resource utilization efficiency. However, from the perspective of existing technical solutions, in order to save resource consumption of the cyclic shift network when Zc is large, a single cyclic shift only supports up to Zc=256. For Zc greater than 256, it is necessary to enter twice to complete the corresponding cyclic shift operation. Although this method improves resource utilization, it affects throughput.
[0009] In addition, in the bit-level coding process of the NR service channel, the information bits first need to undergo transmission fast CRC coding, code block segmentation and code block CRC coding, and generally, in order to improve efficiency, they are all implemented in a pipeline specified bit width manner. Therefore, the bit width input to the cyclic shift module is generally a specified bit width, such as 32bit, 64bit or 128bit. From the prior art, using the above two types of cyclic shift implementation methods, the bit width of the input cyclic shift requires a Zc bit width. Therefore, the prior art solutions all need to convert the specified bit width into a Zc bit width, which has a greater impact on the improvement of the system throughput.
[0010] In summary, the problems existing in the prior art are as follows: (1) The prior art scheme has not determined a specific cyclic shift network that can efficiently support NR 51 types of Zc; (2) The input bit width of the cyclic shift network in the prior art scheme requires the Zc bit width; (3) In the prior art scheme, the resource utilization efficiency of a single network is low when Zc is small, and the two-stage network consumes a lot of time when Zc is large. Summary of the invention
[0011] The technical problem to be solved by the present invention is to provide a NR LDPC coding and decoding cyclic shift implementation device, which can take a specified bit width as input and can efficiently and quickly output the result of the Zc bit width after cyclic shift, thereby improving resource utilization when Zc is smaller and reducing delay consumption when Zc is larger.
[0012] The technical solution adopted by the present invention to solve its technical problem is: to provide an NR LDPC coding cyclic shift implementation device, comprising a control signal generation module, an input data grouping module, a cyclic shift network module and a gating network module; the cyclic shift network module comprises a first-level cyclic shift network and a second-level cyclic shift network; the control signal generation module is used to generate control signals of the cyclic shift network module and the gating network module in real time according to a lifting factor Zc, a total number of cyclic shifts and an offset of input data; the input data grouping module is used to input input data of a specified bit width into the cyclic shift network module in sequence according to the lifting factor Zc and the number of ports of the first-level cyclic network; the cyclic shift network module performs a cyclic shift operation on the input data according to the control signal of the cyclic shift network module generated by the control signal generation module; the gating network module is used to complete the filtering of invalid data and the selection work at the time of output according to the control signal of the gating network module generated by the control signal generation module.
[0013] The control signal generating module comprises:
[0014] A calculation unit, used for calculating the number of cyclic shifts of the first-stage cyclic shift network and the second-stage cyclic shift network according to the lifting factor Zc and the number of ports of the first-stage cyclic shift network;
[0015] A first signal generating unit, configured to generate control signals of the first-stage cyclic shift network and the second-stage cyclic shift network according to the number of cycles of the first-stage cyclic shift network and the second-stage cyclic shift network;
[0016] The second signal generating unit is used to generate a control signal of the gating network according to the relationship between the starting position of the lifting factor Zc relative to the starting offset of the first-stage cyclic shift network, the ending position of the lifting factor Zc relative to the ending offset of the first-stage cyclic shift network, and the total number of cyclic shifts.
[0017] The computing unit includes:
[0018] A first comparison subunit, configured to compare the boosting factor Zc with the number of ports g1 of the first-level cyclic shift network;
[0019] A first result generation subunit, configured to determine that the cyclic shift number s1 of the first-level cyclic network is the total cyclic shift number s and the cyclic shift number s2 of the second-level cyclic network is zero when the boosting factor Zc is less than or equal to the number of ports g1 of the first-level cyclic shift network;
[0020] A second result generation subunit, configured to determine the cyclic shift number s1 of the first-level cyclic network by s1 = mod(s, g1) when the boosting factor Zc is greater than the number of ports g1 of the first-level cyclic shift network, and when qn_i + s1 ≥ g1, determine the cyclic shift number s2 of the second-level cyclic network by s2 = floor(s / g1) + 1, and when qn_i + s1 < g1, determine the cyclic shift number of the second-level cyclic network by s2 = floor(s / g1), where qn_i represents the i-th port of the second-level cyclic shift network, mod() represents the remainder operation, and floor() represents the floor operation.
[0021] The first signal generation unit obtains the control signals of the first-level cyclic shift network and the second-level cyclic shift network by performing binary encoding on the cyclic numbers of the first-level cyclic shift network and the second-level cyclic shift network.
[0022] The second signal generation unit includes:
[0023] A second comparison subunit, configured to compare the total cyclic shift number s with the starting offset pre_f of the starting position of the boosting factor Zc relative to the starting position of the first-level cyclic shift network;
[0024] A first gating rule determination subunit, configured to represent the output switch_out of the gating network as: switch_out = [switch_in(pre_f + 1:Zc + pre_f - s)switch_in(pre_f - s + 1:pre_f)] when the total cyclic shift number s is less than or equal to the starting offset pre_f of the first-level cyclic shift network;
[0025] The second gating rule determining subunit is used for, when the total number of cyclic shifts s is greater than the starting offset pre_f of the first-stage cyclic shift network, the output switch_out of the gating network is expressed as: switch_out = [switch_in (pre_f + 1: Zc + pre_f - s)
[0026] switch_in(Zc+2*pre_f+bac_f-s+1:Zc+pre_f+bac_f)switch_in(1:pre_f)];
[0027] Wherein, switch_in is the input of the gating network, and bac_f is the end offset of the end position of the lifting factor Zc relative to the end of the first-stage cyclic shift network.
[0028] Beneficial Effects
[0029] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art: the present invention adopts a two-stage cyclic shift network, can flexibly support 51 types of Zc, can use a specified bit width as input, and can output the result of the bit width of Zc after cyclic shift more efficiently and quickly than the prior art solution. It can reduce the consumption of bit width conversion in the prior art, can improve the resource utilization rate when Zc is smaller, can reduce the processing delay of larger Zc, and can flexibly support 51 types of Zc. When Zc is smaller, the present invention can complete the corresponding cyclic shift operation through the first stage cyclic shift network, and when Zc is larger, the corresponding cyclic shift operation is completed through the two-stage cyclic network, that is, the resource utilization rate is improved when Zc is smaller, and the delay consumption is effectively reduced when Zc is larger. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a structural block diagram of a cyclic shift implementation device for NR LDPC coding according to an embodiment of the present invention;
[0031] Figure 2 Schematic diagram of the starting position and ending position offset of the lifting factor Zc in the current pre_rotator in an embodiment of the present invention;
[0032] Figure 3 Schematic diagram of the starting position and ending position offset of the lifting factor Zc in the current pre_rotator in Example 1;
[0033] Figure 4 Schematic diagram of the starting position and ending position offset of the lifting factor Zc in the current pre_rotator of Example 2. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
[0035] The embodiment of the present invention relates to a NR LDPC coding and decoding cyclic shift implementation device, such as Figure 1 As shown, it includes a control signal generation module, an input data grouping module, a cyclic shift network module and a gating network module; the cyclic shift network module includes a first-level cyclic shift network and a second-level cyclic shift network; the control signal generation module is used to generate control signals of the cyclic shift network module and the gating network module in real time according to the lifting factor Zc, the total number of cyclic shifts and the offset of the input data; the input data grouping module is used to input the input data of the specified bit width into the cyclic shift network module in sequence according to the lifting factor Zc and the number of ports of the first-level cyclic network; the cyclic shift network module performs a cyclic shift operation on the input data according to the control signal of the cyclic shift network module generated by the control signal generation module; the gating network module is used to complete the filtering of invalid data and the selection work at the time of output according to the control signal of the gating network module generated by the control signal generation module. In this embodiment, the first-level cyclic shift network is a pre_rotator, which can be implemented using a barrel shifter, and the second-level cyclic shift network is implemented using a QSN.
[0036] Among them, the control signal generating module includes: a calculation unit, which is used to calculate the number of cyclic shifts of the first-level cyclic shift network and the second-level cyclic shift network according to the lifting factor Zc and the number of ports of the first-level cyclic shift network; a first signal generating unit, which is used to generate the control signal of the first-level cyclic shift network and the second-level cyclic shift network according to the number of cycles of the first-level cyclic shift network and the second-level cyclic shift network; a second signal generating unit, which is used to generate the control signal of the gating network according to the relationship between the starting position of the lifting factor Zc relative to the starting offset of the first-level cyclic shift network, the ending position of the lifting factor Zc relative to the ending offset of the first-level cyclic shift network, and the total number of cyclic shifts.
[0037] The computing unit includes: a first comparison subunit for comparing the boosting factor Zc with the number of ports g1 of the first-stage cyclic shift network; a first result generation subunit for determining that the cyclic shift count s1 of the first-stage cyclic network is the total cyclic shift count s and the cyclic shift count s2 of the second-stage cyclic network is zero when the boosting factor Zc is less than or equal to the number of ports g1 of the first-stage cyclic shift network; a second result generation subunit for determining the cyclic shift count s1 of the first-stage cyclic network by s1 = mod(s, g1) when the boosting factor Zc is greater than the number of ports g1 of the first-stage cyclic shift network, and determining the cyclic shift count s2 of the second-stage cyclic network by s2 = floor(s / g1)+1 when qn_i + s1 ≥ g1, and determining the cyclic shift count of the second-stage cyclic network by s2 = floor(s / g1) when qn_i + s1 < g1, where qn_i represents the i-th port of the second-stage cyclic shift network, mod() represents the remainder operation, and floor() represents the floor operation.
[0038] The first signal generation unit obtains the control signals of the first-stage cyclic shift network and the second-stage cyclic shift network by performing binary encoding on the cyclic counts of the first-stage cyclic shift network and the second-stage cyclic shift network.
[0039] The second signal generation unit includes: a second comparison subunit for comparing the total cyclic shift count s with the starting offset pre_f of the boosting factor Zc relative to the starting position of the first-stage cyclic shift network; a first gating rule determination subunit for representing the output switch_out of the gating network as: switch_out = [switch_in(pre_f + 1:Zc + pre_f - s)switch_in(pre_f - s + 1:pre_f)] when the total cyclic shift count s is less than or equal to the starting offset pre_f of the first-stage cyclic shift network; a second gating rule determination subunit for representing the output switch_out of the gating network as: switch_out = [switch_in(pre_f + 1:Zc + pre_f - s)switch_in(Zc + 2*pre_f + bac_f - s + 1:Zc + pre_f + bac_f)switch_in(1:pre_f)] when the total cyclic shift count s is greater than the starting offset pre_f of the first-stage cyclic shift network; where switch_in is the input of the gating network, and bac_f is the ending offset of the boosting factor Zc relative to the ending position of the first-stage cyclic shift network.
[0040] When the NR LDPC coding cyclic shift implementation device of this embodiment is used to perform cyclic shift, the corresponding steps are as follows:
[0041] Step 1: Let the bit width of the previous input cyclic shift network be w, the number of ports of the first-stage cyclic shift network be g1, the number is pn=w / g1 (divisible), the index is pr_i, the range is 0~pn-1, the number of ports of the second-stage cyclic shift network is g2=384 / g1, the number is g1, the index is qn_i, the range is 0~g1, and the number of cyclic left shifts is P i,j s, the starting position of each lifting factor Zc is offset pre_f in the first-stage cyclic shift network, and the ending position of each lifting factor Zc is offset bac_f from the end of the first-stage cyclic shift network. The schematic diagram is shown in Figure 2 As shown;
[0042] Step 2: Calculate the number of cyclic shifts of each level of the two-level cyclic shift network. When Zc<=g1, the first-level cyclic shift network can achieve the corresponding cyclic left shift s times, and the second-level cyclic shift network can pass directly, that is, the number of cyclic left shifts of the first-level cyclic shift network is s1=s, and the number of cyclic left shifts of the second-level cyclic shift network is s2=0; when Zc>g1, the number of cyclic left shifts required by pre_rotator is s1=mod(s,g1), when qn_i+s1>=g1, the number of cyclic left shifts of QSN is s2=floor(s / g1)+1, otherwise it is s2=floor(s / g1);
[0043] Step 3: Generate two-stage cyclic shift control signals according to the pre_rotator and the number of QSN cyclic left shifts s1 and s2 determined in the second step, that is, the binary expression of s1 and s2. For example, if g1=16 and s1=5, the control signal corresponding to pre_rotator is
[0101] , g2=24 and s2=2, then the shift control signal corresponding to s2 is
[00010] , and the combined control signal is [g2-s2 "1", s2 "0"];
[0044] Step 4: According to the relationship between the offset pre_f of the starting position of the current lifting factor Zc relative to its pre_rotator, the offset bac_f of the ending position of the current lifting factor Zc relative to its pre_rotator, and the number of cyclic shifts s in the first step, a control signal of the gating network is generated. The gating network is implemented based on the maximum Zc of 384. When Zc<384, only the low-order Zc+pre_f+bac_f is valid. The input of the gating network is switch_in, and the gating rule is as follows: when s<=pre_f, switch_out=[switch_in(pre_f+1:Zc+pre_f-s)switch_in(pre_f-s+1:pre_f)], otherwise, switch_out=[switch_in(pre_f+1:Zc+pre_f-s)
[0045] switch_in(Zc+2*pre_f+bac_f-s+1:Zc+pre_f+bac_f)switch_in(1:pre_f)];
[0046] Step 5: The data with a bit width of w is input to the input data grouping module, which controls the data of each Zc to enter the pre_rotator of the cyclic shift network, wherein the data input of pn pre_rotators can be directly completed;
[0047] Step 6: pn pre_rotators can complete the first-level cyclic left shift according to their corresponding control signals. When Zc<=g1, the pre_rotator directly outputs to the gating network, and the gating network can output multiple Zc, that is, step 8; otherwise, the pre_rotator outputs to QSN and proceeds to step 7;
[0048] Step 7: When Zc>g1, pre_rotator will output to g1 QSNs. It should be noted that when Zc is greater than g1 and less than 384, the number of pre_rotators used for the data of the same Zc is greater than 1 but less than or equal to pn. However, all the corresponding g1 QSNs need to participate, but the actual valid data is less than the number of QSN ports g2. Therefore, gating will be performed when the QSN network is output internally. In addition, multiple g1 QSN networks can be implemented according to resource capabilities and processing requirements. After the data enters the QSN, it is cyclically shifted left for the corresponding number of times s2, and the data is output to the gated network.
[0049] Step 8: When Zc<=192, the 384 gating network can realize the gating of multiple Zc, as long as the pre_rotator outputs to the corresponding network, and outputs the corresponding control signal to the corresponding port; when Zc>192, the gating network can gating one Zc data at a time. The output of the gating network is the Zc bit width;
[0050] Step 9: The Zc-bit-width data output by the gating network is the result of the cyclic shift and can enter the post-stage module of the QC-LDPC encoding and decoding.
[0051] The following example takes the previous stage input cyclic shift network bit width as 32 bits, the number of pre_rotator ports as 16, then the number of pre_rotators is 2, the number of QSN ports is 24, the number of QSNs is 16, and Zc is 7 and 18 respectively.
[0052] Embodiment 1:
[0053] Step 1: Zc is 7, and the number of cyclic left shifts is P i,j is 4, the starting position of Zc is offset pre_f=4 in the first-stage cyclic shift network, and the ending position of Zc is offset bac_f=5 from the end of the first-stage cyclic shift network. Figure 3 As shown;
[0054] Step 2: Calculate the number of cyclic shifts of each level of the two-level cyclic shift network. Since Zc<=g1, the first-level cyclic shift network can achieve the corresponding s-times cyclic left shift, and the second-level cyclic shift network can be directly bypassed, that is, s1=s=4, s2=0;
[0055] In addition, since there are two pre_rotators and they do not need to go through QSN, the two pre_rotators can be processed in parallel, that is, 0# pre_rotator processes the cyclic shift of one Zc, and 1# pre_rotator processes the cyclic shift of another Zc, and the two can be directly output to the output position of the corresponding gating network. The following takes one as an example to illustrate the subsequent processing;
[0056] Step 3: According to the number of pre_rotator cyclic left shifts s1, s2 determined in step 2, a control signal for the cyclic shift of pre_rotator is generated, i.e., the binary expression of s1
[0100] ;
[0057] Step 4: Generate the control signal of the gating network according to the relationship between the current starting position of Zc relative to its pre_rotator offset pre_f, the current ending position of Zc relative to its pre_rotator offset bac_f, and the number of circular shift times s in the first step. The number of ports required for each Zc is Zc + pre_f + bac_f. Denote the input of the gating network as switch_in. Since s <= pre_f, the output signal of the gating network is determined by the following formula: switch_out = [switch_in(pre_f + 1:Zc + pre_f - s)switch_in(pre_f - s + 1:pre_f)]. It should be noted that the gating network channels not only indicate which ports output, but also output the data according to the corresponding order;
[0058] Step 5: Input data with a bit width of 32 into the input data grouping module. This module controls the data of each Zc to enter the pre_rotator of the circular shift network. Among them, the data input of 2 pre_rotators can be directly completed. For example, if w = 32, Zc = 7, and g1 = 16, so each pre_rotator input contains more than just the data of one Zc. Therefore, the input data grouping module needs to control the number of times of input to the pre_rotator;
[0059] Step 6: The 2 pre_rotators can complete the first-level circular left shift according to their corresponding control signals. Since Zc < g, the pre_rotator directly outputs to the gating network, and the gating network outputs multiple Zc;
[0060] Step 8: Since Zc <= 192, the gating network of 384 can implement the gating of multiple Zc. As long as the pre_rotator outputs to the corresponding network, and output the corresponding control signal to the corresponding port;
[0061] Step 9: The data with the bit width of Zc output by the gating network is the result after circular shift, and can enter the subsequent module of QC-LDPC encoding and decoding.
[0062] Embodiment 2:
[0063] Step 1: Zc is 24, the number of circular left shift times P i,j is 5, the offset pre_f of the starting position of Zc in the first-level circular shift network is 6, and the offset bac_f of the ending position of Zc from the end of the first-level circular shift network is 2, as Figure 4 shown;
[0064] Step 2: Calculate the number of cyclic shifts for each level of the two-level cyclic shift network, Zc>g1, the number of cyclic left shifts that pre_rotator needs to perform is s1=mod(s,g1)=5, when qn_i+s1>=g1, the number of QSN cyclic left shifts is s2=floor(s / g1)+1, otherwise s2=floor(s / g1), that is, when qn_i=0~10, the number of QSN cyclic left shifts is 0, when qn_i=11~15, the number of QSN cyclic left shifts is 1;
[0065] Step 3: Generate a two-stage cyclic shift control signal according to the pre_rotator and the number of QSN cyclic left shifts s1 and s2 determined in the second step, that is, the binary expression of s1 and s2. For example, when s1=5, the control signal corresponding to the pre_rotator is
[0101] , when s2=0, the shift control signal corresponding to s2 is
[00000] , and the combined control signal is [24 "1"s]; when s2=1, the shift control signal corresponding to s2 is
[00001] , and the combined control signal is [23 "1", 1 0];
[0066] Step 4: Generate the control signal of the gating network according to the relationship between the offset pre_f of the current Zc starting position relative to its pre_rotator, the offset bac_f of the current Zc ending position relative to its pre_rotator, and the number of cyclic shifts s in the first step. The input of the gating network is switch_in, and the gating rule is as follows: when s<=pre_f, switch_out=[switch_in(pre_f+1:Zc+pre_f-s)switch_in(pre_f-s+1:pre_f)], otherwise, switch_out=[switch_in(pre_f+1:Zc+pre_f-s)
[0067] switch_in(Zc+2*pre_f+bac_f-s+1:Zc+pre_f+bac_f)switch_in(1:pre_f)];
[0068] Step 5: The data with a bit width of w is input to the input data grouping module, which controls the data of each Zc to enter the pre_rotator of the cyclic shift network, wherein the data input of pn pre_rotators can be directly completed;
[0069] Step 6: The two pre_rotators can complete the first-level circular left shift according to their corresponding control signals, and the pre_rotator outputs to QSN to proceed to step 7;
[0070] Step 7: When Zc>g, pre_rotator will output to g1 QSNs. It should be noted that when Zc is greater than g1 and less than 384, the number of pre_rotators used for the data of the same Zc is greater than 1 but less than or equal to pn. However, the corresponding g1 QSNs need to participate in all of them, but the actual valid data is less than the number of QSN ports g2. Therefore, the QSN network will be gated when outputting internally. In addition, multiple sets of g1 QSN networks can be realized according to resource capabilities and processing requirements. After the data enters the QSN, it is cyclically shifted left for the corresponding number of times s2, and the data is output to the gated network.
[0071] Step 8: When Zc<=192, the 384 gating network can realize the gating of multiple Zc, as long as the pre_rotator outputs to the corresponding network, and outputs the corresponding control signal to the corresponding port; when Zc>192, the gating network can gating one Zc data at a time. The output of the gating network is the Zc bit width;
[0072] Step 9: The Zc-bit-width data output by the gating network is the result of the cyclic shift and can enter the post-stage module of the QC-LDPC encoding and decoding.
[0073] It is not difficult to find that the present invention adopts a two-stage cyclic shift network, which can flexibly support 51 types of Zc, and can use a specified bit width as input, and can output the result of the bit width of Zc after cyclic shift more efficiently and quickly than the existing technical solution. It can reduce the consumption of bit width conversion in the prior art, improve resource utilization when Zc is smaller, reduce the processing delay of larger Zc, and flexibly support 51 types of Zc. When Zc is smaller, the present invention can complete the corresponding cyclic shift operation through the first stage cyclic shift network, and when Zc is larger, the corresponding cyclic shift operation is completed through the two-stage cyclic network, which improves the resource utilization when Zc is smaller and effectively reduces the delay consumption when Zc is larger.
Claims
1. A NR LDPC coding cyclic shift implementation device, characterized in that: It includes a control signal generation module, an input data grouping module, a cyclic shift network module, and a gating network module; the cyclic shift network module includes a first-stage cyclic shift network and a second-stage cyclic shift network; the control signal generation module is used to generate control signals for the cyclic shift network module and the gating network module in real time according to the boosting factor Zc, the total number of cyclic shifts, and the offset of the input data; the input data grouping module is used to input the input data with a specified bit width into the cyclic shift network module successively according to the boosting factor Zc and the number of ports of the first-stage cyclic shift network; the cyclic shift network module performs a cyclic shift operation on the input data according to the control signal of the cyclic shift network module generated by the control signal generation module; the gating network module is used to complete the filtering of invalid data and the selection work during output according to the control signal of the gating network module generated by the control signal generation module; The control signal generation module includes: A calculation unit, which is used to calculate the number of cyclic shifts of the first-stage cyclic shift network and the second-stage cyclic shift network according to the boosting factor Zc and the number of ports of the first-stage cyclic shift network; A first signal generation unit, which is used to generate control signals for the first-stage cyclic shift network and the second-stage cyclic shift network according to the number of cycles of the first-stage cyclic shift network and the second-stage cyclic shift network; A second signal generation unit, which is used to generate the control signal of the gating network according to the relationship between the starting offset of the boosting factor Zc relative to the starting position of the first-stage cyclic shift network, the ending offset of the boosting factor Zc relative to the ending position of the first-stage cyclic shift network, and the total number of cyclic shifts.
2. The NR LDPC coding cyclic shift implementation device according to claim 1, characterized in that: The calculation unit includes: A first comparison sub-unit, which is used to compare the boosting factor Zc with the number of ports g1 of the first-stage cyclic shift network; A first result generation sub-unit, which is used to determine that the number of cyclic shifts s1 of the first-stage cyclic shift network is the total number of cyclic shifts s and the number of cyclic shifts s2 of the second-stage cyclic shift network is zero when the boosting factor Zc is less than or equal to the number of ports g1 of the first-stage cyclic shift network; A second result generation sub-unit, which is used to determine the number of cyclic shifts s1 of the first-stage cyclic shift network by s1 = mod(s, g1) when the boosting factor Zc is greater than the number of ports g1 of the first-stage cyclic shift network, and to determine the number of cyclic shifts s2 of the second-stage cyclic shift network by s2 = floor(s / g1)+1 when qn_i + s1 ≥ g1, and to determine the number of cyclic shifts of the second-stage cyclic shift network by s2 = floor(s / g1) when qn_i + s1 < g1, where qn_i represents the i-th port of the second-stage cyclic shift network, mod() represents the remainder operation, and floor() represents the floor operation.
3. The NR LDPC coding cyclic shift implementation device according to claim 1, characterized in that: The first signal generating unit obtains control signals of the first-stage cyclic shift network and the second-stage cyclic shift network by binary encoding the number of cycles of the first-stage cyclic shift network and the second-stage cyclic shift network.
4. The NR LDPC coding cyclic shift implementation device according to claim 1, characterized in that: The second signal generating unit comprises: A second comparing subunit is used to compare the total number of cyclic shifts s with the starting position of the lifting factor Zc relative to the starting offset pre_f of the first-stage cyclic shift network; the starting offset pre_f is the offset of the starting position of the lifting factor Zc in the first-stage cyclic shift network; The first gating rule determining subunit is used for, when the total number of cyclic shifts s is less than or equal to the starting offset pre_f of the first-stage cyclic shift network, the output switch_out of the gating network is expressed as: switch_out=[switch_in(pre_f+1:Zc+pre_f-s)switch_in(pre_f-s+1:pre_f)]; The second gating rule determining subunit is used for, when the total number of cyclic shifts s is greater than the starting offset pre_f of the first-stage cyclic shift network, the output switch_out of the gating network is expressed as: switch_out = [switch_in (pre_f + 1: Zc + pre_f - s) switch_in(Zc+2*pre_f+bac_f-s+1:Zc+pre_f+bac_f)switch_in(1:pre_f)]; Wherein, switch_in is the input of the gating network, and bac_f is the end offset of the end position of the lifting factor Zc relative to the end of the first-stage cyclic shift network.
Citation Information
Patent Citations
Rate-compatible 5G LDPC code encoding device and encoding method
CN111162797A
Cyclic shift network control method and system, storage medium and decoder
CN111404555A
