CN102468902B - Method for Turbo coding of rate match/de-rate match in LTE (long term evolution) system - Google Patents
Method for Turbo coding of rate match/de-rate match in LTE (long term evolution) system Download PDFInfo
- Publication number
- CN102468902B CN102468902B CN201010532617.XA CN201010532617A CN102468902B CN 102468902 B CN102468902 B CN 102468902B CN 201010532617 A CN201010532617 A CN 201010532617A CN 102468902 B CN102468902 B CN 102468902B
- Authority
- CN
- China
- Prior art keywords
- data
- address
- matrix
- check
- word
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Error Detection And Correction (AREA)
Abstract
一种LTE系统中Turbo编码速率匹配/解速率匹配的方法,该方法包括:根据编码块的数据长度K确定交织模式;由系统比特流得到系统矩阵,第一校验比特流P1与第二校验比特流P2交替存放得到校验矩阵,从系统矩阵的第1列开始每8列为一个子系统矩阵,从校验矩阵的第1列开始每8列为一个子校验矩阵;确定系统矩阵地址和校验矩阵地址;系统比特流的数据打包后放置于地址中,校验比特流数据打包后置于校验矩阵的地址中;按列输出系统矩阵地址中和校验矩阵地址中的数据,得到速率匹配/解速率匹配后的比特流。应用本发明实施例以后,能够加快速率匹配/解速率匹配的速度。
A method for Turbo encoding rate matching/de-rate matching in an LTE system, the method comprising: determining an interleaving pattern according to the data length K of an encoding block; obtaining a system matrix from a system bit stream, and the first parity bit stream P1 and the second parity bit stream The check bit stream P2 is alternately stored to obtain the check matrix, starting from the first column of the system matrix, every 8 columns is a sub-system matrix, starting from the first column of the check matrix, every 8 columns is a sub-check matrix; determine the system matrix Address and check matrix address; the system bit stream data is packed and placed in the address, and the check bit stream data is packed and placed in the address of the check matrix; output the data in the system matrix address and the check matrix address by column , to obtain the bit stream after rate matching/de-rate matching. After applying the embodiment of the present invention, the speed of rate matching/de-matching can be accelerated.
Description
技术领域 technical field
本发明涉及通信技术领域,更具体地,涉及LTE系统Turbo编码速率匹配/解速率匹配的方法。The present invention relates to the technical field of communication, and more specifically, to a method for rate matching/de-rate matching of Turbo encoding in an LTE system.
背景技术 Background technique
长期演进(LTE)是3G通信技术的长期演进,为未来的无线通信系统提供了更高的传输速率,其高速的码率给基站和终端的基带处理带来了沉重的负担。对于LTE技术中的基带处理而言,如何加快比特级的数据处理速度,尤其是传输信道的速率匹配处理速度是整个基带处理的瓶颈之一。Long-term evolution (LTE) is the long-term evolution of 3G communication technology, which provides higher transmission rate for future wireless communication systems, and its high-speed code rate brings a heavy burden to the baseband processing of base stations and terminals. For the baseband processing in the LTE technology, how to speed up bit-level data processing speed, especially the rate matching processing speed of the transmission channel is one of the bottlenecks of the entire baseband processing.
现有Turbo编码的传输信道速率匹配过程如附图1所示。发送端原始的比特流经过Turbo编码后得到系统比特流第一校验比特流第二校验比特流共计三路数据。和三路比特流的长度相同,比特流的长度等于K+4,K是编码块的数据长度,4是尾比特。尾比特是经过Turbo编码剩余的比特。和三路比特流分别输入子块交织器,即比特流送入一个R行,32列的矩阵中,逐行写入,再进行列间置换,然后逐行读出分别得到与相对应的输出比特流与相对应的输出比特流与相对应的输出比特流进入比特收集模块。在比特收集模块中,收集的方式是系统比特流在前,第一校验比特流与第二校验比特流交替存放,构成一个完整的比特流wk。再根据速率匹配的起始位置和速率匹配输出的长度,裁剪或者重复取数,直到满足输出长度要求输出比特流ek至终端。The transmission channel rate matching process of the existing Turbo coding is shown in Fig. 1 . The original bit stream at the sender is turbo-encoded to obtain the system bit stream first parity bit stream Second parity bit stream A total of three channels of data. and The lengths of the three bit streams are the same, and the length of the bit stream is equal to K+4, where K is the data length of the coding block, and 4 is the tail bit. The tail bits are the remaining bits after turbo encoding. and The three-way bit streams are respectively input into the sub-block interleaver, that is, the bit streams are sent into a matrix of R rows and 32 columns, written row by row, and then permuted between columns, and then read out row by row to obtain and corresponding output bitstream and corresponding output bitstream and corresponding output bitstream Enter the bit collection module. In the bit collection module, the collection method is that the system bit stream comes first, and the first check bit stream and the second check bit stream are alternately stored to form a complete bit stream w k . Then, according to the starting position of the rate matching and the length of the rate matching output, the number is cut or repeated until the output length requirement is met, and the bit stream e k is output to the terminal.
根据上述整体流程分析,不需要等到系统比特流第一校验比特流第二校验比特流同时到达才开始速率匹配操作,而是将Turbo后编码的各个比特流编码后分别进行速率匹配。由于需要反复读取内存中比特流中的数据,因此上述速率匹配的处理速度较低。According to the above analysis of the overall process, there is no need to wait until the system bit stream first parity bit stream Second parity bit stream The rate matching operation starts only when they arrive at the same time, but each bit stream encoded after Turbo is encoded and rate matched respectively. Since the data in the bit stream in the memory needs to be read repeatedly, the processing speed of the above-mentioned rate matching is low.
发明内容 Contents of the invention
本发明实施例提出一种LTE系统中Turbo编码速率匹配/解速率匹配的方法,能够加快速率匹配/解速率匹配的速度。The embodiment of the present invention proposes a method for rate matching/de-matching of turbo coding in an LTE system, which can speed up the speed of rate matching/de-matching.
一种LTE系统中Turbo编码速率匹配/解速率匹配的方法,该方法包括:A method for Turbo encoding rate matching/de-rate matching in an LTE system, the method comprising:
根据编码块的数据长度K确定交织模式;Determine the interleaving mode according to the data length K of the coding block;
由系统比特流得到系统矩阵,第一校验比特流P1与第二校验比特流P2交替存放得到校验矩阵,从系统矩阵的第1列开始每8列为一个子系统矩阵,从校验矩阵的第1列开始每8列为一个子校验矩阵;The system matrix is obtained from the system bit stream, and the first parity bit stream P1 and the second parity bit stream P2 are stored alternately to obtain the parity check matrix. Starting from the first column of the system matrix, every 8 columns is a subsystem matrix. Starting from the first column of the matrix, every 8 columns are a sub-check matrix;
从N=1开始并按1递增,直至N=8,依次提取每个子系统矩阵的第N列后根据交织模式计算该列数据对应的系统矩阵地址,从N=1开始并按1递增,直至N=8,依次提取每个子校验矩阵的第N列后根据交织模式计算该列数据对应的校验矩阵地址;Start from N=1 and increase by 1 until N=8, extract the Nth column of each subsystem matrix in turn and calculate the system matrix address corresponding to the column data according to the interleaving mode, start from N=1 and increase by 1 until N=8, after extracting the Nth column of each sub-parity check matrix in turn, calculate the check matrix address corresponding to the column data according to the interleaving mode;
每次提取中,选择4个系统比特流的字打包后按照预定规则置于所述系统矩阵地址中,选择4个P1的字和4个P2的字打包后按照预定规则置于所述校验矩阵的地址中,该选择包括S次循环,S等于子系统矩阵的行数R减1后除以4向下取整,R等于K加4后除以32向上取整;In each extraction, 4 words of the system bit stream are selected to be packed and placed in the address of the system matrix according to predetermined rules, and 4 words of P1 and 4 words of P2 are selected to be packed and placed in the verification according to predetermined rules In the address of the matrix, the selection includes S cycles, S is equal to the row number R of the
按列输出系统矩阵地址中和校验矩阵地址中的数据,得到速率匹配/解速率匹配后的比特流。Output the data in the address of the system matrix and the address of the check matrix in columns to obtain the bit stream after rate matching/de-matching.
所述根据编码块的数据长度K确定交织模式包括,K对32取余数,由所述余数确定交织模式。The determining the interleaving mode according to the data length K of the coding block includes taking a remainder of K to 32, and determining the interleaving mode according to the remainder.
所述依次提取每个子系统矩阵的第N列后根据交织模式计算该列数据对应的系统矩阵地址包括,根据交织模式确定交织索引,由交织索引依次偏移每个子系统矩阵的第N列中每个数据的地址得到该列每个数据的中间偏移地址,再根据交织模式和N整体偏移所述中间偏移地址得到系统矩阵地址;After extracting the Nth column of each subsystem matrix in turn, calculating the system matrix address corresponding to the column data according to the interleaving mode includes determining the interleaving index according to the interleaving mode, and sequentially offsetting each of the Nth columns of each subsystem matrix by the interleaving index. The address of the data obtains the middle offset address of each data of this column, and then obtains the system matrix address according to the described middle offset address of interleaving pattern and N overall offset;
所述依次提取每个子校验矩阵的第N列后根据交织模式计算该列数据对应的校验矩阵地址包括,根据交织模式确定交织索引,由交织索引依次偏移每个子校验矩阵的第N列中每个数据的地址得到该列每个数据的中间偏移地址,再根据交织模式和N整体偏移所述中间偏移地址得到校验矩阵地址。After extracting the Nth column of each sub-parity check matrix in turn, calculating the check matrix address corresponding to the column data according to the interleaving mode includes determining the interleaving index according to the interleaving mode, and offsetting the Nth column of each sub-parity check matrix in turn by the interleaving index The address of each data in the column obtains the middle offset address of each data in the column, and then the check matrix address is obtained by offsetting the middle offset address according to the interleaving mode and N overall.
所述由交织索引依次偏移每个子系统矩阵的第N列中每个数据的地址得到中间偏移地址之前进一步包括,计算系统矩阵的起始列位置,系统矩阵的起始位置等于k0,Ncb为速率匹配软Buffer大小,RV是冗余版本参数。Before the address of each data in the Nth column of each subsystem matrix is sequentially offset by the interleaving index to obtain the intermediate offset address, it further includes calculating the starting column position of the system matrix, and the starting position of the system matrix is equal to k 0 , N cb is the rate matching soft buffer size, and RV is the redundancy version parameter.
当k0大于32,系统矩阵的起始列位置等于k′0, When k 0 is greater than 32, the starting column position of the system matrix is equal to k′ 0 ,
所述根据交织模式和N整体偏移所述中间偏移地址得到系统矩阵地址包括,根据交织模式和N确定整体偏移量,然后根据整体偏移量整体偏移所述中间偏移地址得到系统矩阵地址;The obtaining the system matrix address by overall offsetting the intermediate offset address according to the interleaving pattern and N includes determining the overall offset according to the interleaving pattern and N, and then offsetting the intermediate offset address as a whole according to the overall offset to obtain the system matrix address. matrix address;
所述根据交织模式和N整体偏移所述中间偏移地址得到校验矩阵地址包括,根据交织模式和N确定整体偏移量,然后根据整体偏移量整体偏移所述中间偏移地址得到校验矩阵地址。Obtaining the parity check matrix address by offsetting the intermediate offset address according to the interleaving mode and N as a whole includes determining the overall offset according to the interleaving mode and N, and then offsetting the intermediate offset address as a whole according to the overall offset to obtain check matrix address.
所述根据交织模式和N确定整体偏移量包括,由交织模式确定填充比特,整体偏移量H等于32减去填充比特后与P1的第N个数据的和。The determining the overall offset according to the interleaving mode and N includes determining padding bits according to the interleaving mode, and the overall offset H is equal to the sum of 32 minus the padding bits and the Nth data of P1.
所述根据交织模式和N确定整体偏移量包括,由交织模式确定多余比特,整体偏移量H等于P1的第N个数据与填充比特的差。The determining the overall offset according to the interleaving mode and N includes determining redundant bits according to the interleaving mode, and the overall offset H is equal to the difference between the Nth data of P1 and the stuffing bits.
所述选择4个系统比特流的字打包后按照预定规则置于所述系统矩阵地址包括,The words of the selected four system bit streams are packaged and placed in the system matrix address according to predetermined rules, including,
从第0个系统字开始,每隔8个字取出比特流的字,得到第一系统字、第二系统字、第三系统字和第四系统字;分别取所述四个系统字的最高数据组成第一系统输出字,次高数据组成第二系统输出字,次低数据组成第三系统输出字,最低数据组成第四系统输出字;Starting from the 0th system word, take out the words of the bit stream every 8 words to obtain the first system word, the second system word, the third system word and the fourth system word; respectively take the highest value of the four system words The data constitutes the output word of the first system, the second highest data constitutes the output word of the second system, the second lowest data constitutes the output word of the third system, and the lowest data constitutes the output word of the fourth system;
将所述第一系统输出字放置于所述系统矩阵第S行第1个数据至第4个数据的地址中,将所述第二系统输出字放置于所述系统矩阵第S行第9个数据至第12个数据的地址中,将所述第三系统输出字放置于所述系统矩阵第S行第5个数据至第8个数据的地址中,将所述第四系统输出字放置于所述系统矩阵第S行第13个数据至第16个数据的地址中。The first system output word is placed in the address of the first data to the fourth data in the S row of the system matrix, and the second system output word is placed in the ninth row of the S row of the system matrix Data to the address of the 12th data, the third system output word is placed in the address of the 5th data to the 8th data in the S row of the system matrix, and the fourth system output word is placed in In the addresses of the 13th to 16th data in row S of the system matrix.
所述选择4个P1的字和4个P2的字打包后按照预定规则置于所述校验矩阵的地址中包括,The selection of 4 P1 words and 4 P2 words is packed and placed in the address of the check matrix according to predetermined rules, including,
顺序从P1取出第0个字和第8个字,依次记为第一校验字和第二校验字,顺序从P2取出第1个字和第9个字,依次记为第三校验字和第四校验字;Take out the 0th word and the 8th word from P1 in sequence, record them as the first check word and the second check word in sequence, take out the 1st word and the 9th word from P2 in sequence, and record them as the third check word in turn word and the fourth check word;
分别取第一校验字至第四校验字的最高数据组成第一校验输出字,次高数据组成第二校验输出字,次低数据组成第三校验输出字,最低数据组成第四校验输出字;Take the highest data from the first check word to the fourth check word to form the first check output word, the second highest data form the second check output word, the second lowest data form the third check output word, and the lowest data form the second check output word. Four verification output words;
将所述第一校验输出字放置于所述校验矩阵第S行第1个数据至第4个数据的地址中,将所述第二校验输出字放置于所述校验矩阵第S行第9个数据至第12个数据的地址中,将所述第三校验输出字放置于所述校验矩阵第S行第5个数据至第8个数据的地址中,将所述第四校验输出字放置于所述校验矩阵第S行第13个数据至第16个数据的地址中;The first check output word is placed in the address of the first data to the fourth data in the S row of the check matrix, and the second check output word is placed in the S check matrix In the address of the 9th data to the 12th data in the row, the third verification output word is placed in the address of the 5th data to the 8th data in the S row of the parity check matrix, and the Four check output words are placed in the address of the 13th data to the 16th data in the S row of the check matrix;
然后,再顺序从P1取出第16个字和第24个字,依次记为第五校验字和第六校验字,顺序从P2取出第17个数据和第25个数据,依次记为第七校验字和第八校验字;Then, take out the 16th word and the 24th word from P1 in sequence, record them as the fifth check word and the sixth check word in sequence, take out the 17th data and the 25th data from P2 in sequence, and record them as the 1st check word in turn Seven check characters and eighth check characters;
分别取第五校验字至第八校验字的最高数据组成第五校验输出字,次高数据组成第六校验输出字,次低数据组成第七校验输出字,最低数据组成第八校验输出字;Take the highest data from the fifth check word to the eighth check word to form the fifth check output word, the next highest data form the sixth check output word, the second lowest data form the seventh check output word, and the lowest data form the sixth check output word. Eight check output words;
将所述第五校验输出字放置于所述校验矩阵第S+1行第1个数据至第4个数据的地址中,将所述第六校验输出字放置于所述校验矩阵第S+1行第9个数据至第12个数据的地址中,将所述第七校验输出字放置于所述校验矩阵第S+1行第5个数据至第8个数据的地址中,将所述第八校验输出字放置于所述校验矩阵第S+1行第13个数据至第16个数据的地址中。Place the fifth check output word in the address of the first data to the fourth data in row S+1 of the check matrix, and place the sixth check output word in the check matrix In the address of the 9th data to the 12th data in the S+1th row, the seventh check output word is placed in the address of the 5th data to the 8th data in the S+1th row of the parity check matrix , the eighth check output word is placed in the addresses of the 13th to 16th data in row S+1 of the check matrix.
当S次循环后存在剩余数据时,每次取一个剩余数据放置于所述剩余数据的地址中。When remaining data exists after S cycles, one remaining data is taken each time and placed in the address of the remaining data.
当N等于8进一步包括,根据交织模式填充系统数据的多余比特,根据交织模式填充校验数据的多余比特。When N is equal to 8, it further includes filling redundant bits of system data according to the interleaving mode, and filling redundant bits of check data according to the interleaving mode.
从上述技术方案中可以看出,在本发明实施例中,首先根据编码块的数据长度确定交织模式,然后将系统矩阵分为子系统矩阵和将校验矩阵分为子校验矩阵;根据交织模式按列计算系统矩阵地址和校验矩阵地址,将每四个字的系统比特流打包放置于系统矩阵地址中,每四个字的P1和每四个字的P2打包放置于校验矩阵的地址中,按列输出系统矩阵和校验矩阵。将打包后的数据放置于相对应的地址中,有利于处理器的流水操作,从而能够加快速率匹配的速度。相同的技术方案也可以应用于解速率匹配中,从而能够加快解速率匹配的速度。As can be seen from the above technical solutions, in the embodiment of the present invention, firstly, the interleaving pattern is determined according to the data length of the coding block, and then the system matrix is divided into subsystem matrices and the check matrix is divided into sub check matrices; according to the interleaving The mode calculates the system matrix address and check matrix address by column, packs the system bit stream of every four words into the system matrix address, packs P1 of every four words and P2 of every four words and places them in the parity check matrix In the address, the system matrix and parity check matrix are output by column. Placing the packed data in the corresponding address is beneficial to the pipeline operation of the processor, thereby speeding up the speed of rate matching. The same technical solution can also be applied to de-rate matching, thereby speeding up the de-rate matching.
附图说明 Description of drawings
图1为现有技术中Turbo编码的速率匹配示意图;FIG. 1 is a schematic diagram of rate matching of Turbo coding in the prior art;
图2为本发明LTE系统中Turbo编码速率匹配的方法流程示意图;Fig. 2 is the schematic flow chart of the method for Turbo encoding rate matching in the LTE system of the present invention;
图3为本发明实施例中交织模式1的示意图;FIG. 3 is a schematic diagram of
图4为本发明实施例中交织模式2的示意图;FIG. 4 is a schematic diagram of
图5为本发明实施例中交织模式3的示意图;FIG. 5 is a schematic diagram of
图6为本发明实施例中交织模式4的示意图;FIG. 6 is a schematic diagram of
图7为本发明实施例输入数据存储示意图;Fig. 7 is a schematic diagram of input data storage according to an embodiment of the present invention;
图8为本发明实施例中数据打包操作示意图。Fig. 8 is a schematic diagram of a data packing operation in an embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明的目的、技术方案和优点表达得更加清楚明白,下面结合附图及具体实施例对本发明再作进一步详细的说明。In order to make the object, technical solution and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
在本发明实施例中,系统比特流、第一校验比特流(P1)和第二校验比特流(P2)同时并行处理,且连续4个字的数据读写操作构造出适合主流处理器实现打包数据操作的数据存取结构,并减少了对内存的读写次数。处理方式简单,循环结构清晰,不存在判断跳转等打断流水线的操作,处理器能够更快的取数据计算,并且把子块交织后的数据直接映射到输出位置上,进而加快速率匹配的速度。In the embodiment of the present invention, the system bit stream, the first parity bit stream (P1) and the second parity bit stream (P2) are processed in parallel at the same time, and the data read and write operations of four consecutive words are constructed to be suitable for mainstream processors. Realize the data access structure of packed data operations, and reduce the number of reads and writes to memory. The processing method is simple, the loop structure is clear, and there is no operation that interrupts the pipeline such as judgment jumps. The processor can fetch data and calculate faster, and directly map the interleaved data of the sub-blocks to the output position, thereby speeding up the rate matching. speed.
在本发明中,Turbo编码速率匹配包括以下步骤A至E:In the present invention, Turbo encoding rate matching includes the following steps A to E:
步骤A、根据编码块的数据长度K确定交织模式。Step A, determine the interleaving mode according to the data length K of the coded block.
步骤B、由系统比特流得到系统矩阵,P1与P2交替存放得到校验矩阵,从系统矩阵的第1列开始每8列为一个子系统矩阵,从校验矩阵的第1列开始每8列为一个子校验矩阵。Step B. Obtain the system matrix from the system bit stream, and store P1 and P2 alternately to obtain the check matrix. Starting from the first column of the system matrix, every 8 columns is a subsystem matrix, and every 8 columns starting from the first column of the check matrix is a sub-check matrix.
P1与P2交替存放得到校验矩阵与现有技术的实现方式相同,在此不再赘述。系统矩阵共32列,由四个子系统矩阵构成;校验矩阵共32列,同样的由四个子校验矩阵构成。P1 and P2 are stored alternately to obtain a parity check matrix in the same manner as in the prior art, and will not be repeated here. The system matrix has a total of 32 columns and is composed of four subsystem matrices; the check matrix has a total of 32 columns and is also composed of four sub-check matrices.
步骤C、依次提取每个子系统矩阵的第N列后根据交织模式计算该列数据对应的系统矩阵地址,依次提取每个子校验矩阵的第N列后根据交织模式计算该列数据对应的校验矩阵地址。Step C, sequentially extracting the Nth column of each subsystem matrix and then calculating the system matrix address corresponding to the column data according to the interleaving mode, sequentially extracting the Nth column of each sub-check matrix and calculating the checksum corresponding to the column data according to the interleaving mode matrix address.
每次提取子系统矩阵的第N列,子校验矩阵的第N列,直至完成8次循环,以计算系统矩阵中的数据地址和校验矩阵中的数据地址。当N小于8则继续提取每个子矩阵的第N+1列,N的初始值是1。The Nth column of the subsystem matrix and the Nth column of the sub-check matrix are extracted each time until 8 cycles are completed to calculate the data address in the system matrix and the data address in the check matrix. When N is less than 8, continue to extract the N+1th column of each sub-matrix, and the initial value of N is 1.
步骤D、选择4个系统比特流的字打包后置于所述系统矩阵地址中,选择4个P1的字和4个P2的字打包后置于所述校验矩阵的地址中,所述选择包括S次循环,S等于子矩阵的行数R减1除以4向下取整,R等于K加4后除以32向上取整。Step D, select the words of 4 system bit streams to pack and place in the address of the system matrix, select the words of 4 P1 and 4 words of P2 to pack and place in the address of the parity check matrix, the selected Including S cycles, S is equal to the number of rows of the sub-matrix R minus 1 divided by 4 and rounded down, and R is equal to K plus 4 divided by 32 and rounded up.
对系统比特流的数据打包处理放置于系统矩阵的数据地址中;对P1和P2的数据打包处理放置于校验矩阵的数据地址中。每个字包括4个数据,在本发明的技术方案中,选择四个字即选择16个数据。The data packing processing of the system bit stream is placed in the data address of the system matrix; the data packing processing of P1 and P2 is placed in the data address of the parity check matrix. Each word includes 4 data, and in the technical solution of the present invention, selecting 4 words means selecting 16 data.
步骤E、按列输出系统矩阵地址中和校验矩阵地址中的数据,得到速率匹配后的比特流。Step E, outputting the data in the address of the system matrix and the address of the parity check matrix by column to obtain the bit stream after rate matching.
参见附图2是LTE系统中Turbo编码速率匹配的方法流程示意图,具体包括以下步骤:Referring to accompanying drawing 2 is the schematic flow chart of the method for Turbo coding rate matching in the LTE system, specifically comprises the following steps:
步骤201、确定交织模式。
由于子块交织矩阵固定为32列,根据编码块的数据长度K对32取余数,余数共有四种情况即0,8,16和24,针对于不同的余数需要填充不同的比特。余数是0则该编码块属于交织模式1;余数是8则该编码块属于交织模式2;余数是16则该编码块属于交织模式3;余数是24则该编码块属于交织模式4。4种交织模式决定了矩阵数据地址的偏移量Since the sub-block interleaving matrix is fixed at 32 columns, the remainder of 32 is taken according to the data length K of the coding block. There are four cases of the remainder, namely 0, 8, 16 and 24, and different bits need to be filled for different remainders. If the remainder is 0, the coding block belongs to interleaving
LTE规定了固定的188种编码块长度,下面对这188种编码块长度进行分析:LTE specifies 188 fixed code block lengths. The following analyzes the 188 code block lengths:
步长为8的编码块长度共计60种:There are a total of 60 encoding block lengths with a step size of 8:
40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,464,472,480,488,496,504,512。40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 264, 272, 280, 288, 296, 304, 312, 320, 328, 336, 344, 352, 360, 368, 376, 384, 392, 400, 408, 416, 424, 432, 440, 448, 456, 464, 472, 480, 488, 496, 504, 512.
步长为16的编码块长度共计32种There are a total of 32 coded block lengths with a step size of 16
528,544,560,576,592,608,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,896,912,928,944,960,976,992,1008,1024。528, 544, 560, 576, 592, 608, 624, 640, 656, 672, 688, 704, 720, 736, 752, 768, 784, 800, 816, 832, 848, 864, 880, 896, 912, 928, 944, 960, 976, 992, 1008, 1024.
步长为32的编码块长度共计32种There are a total of 32 coded block lengths with a step size of 32
1056,1088,1120,1152,1184,1216,1248,1280,1312,1344,1376,1408,1440,1472,1504,1536,1568,1600,1632,1664,1696,1728,1760,1792,1824,1856,1888,1920,1952,1984,2016,2048。1056, 1088, 1120, 1152, 1184, 1216, 1248, 1280, 1312, 1344, 1376, 1408, 1440, 1472, 1504, 1536, 1568, 1600, 1632, 1664, 1696, 1728, 1760, 1792, 1824, 1856, 1888, 1920, 1952, 1984, 2016, 2048.
步长为64的编码块长度共计64种There are a total of 64 coded block lengths with a step size of 64
2112,2176,2240,2304,2368,2432,2496,2560,2624,2688,2752,2816,2880,2944,3008,3072,3136,3200,3264,3328,3392,3456,3520,3584,3648,3712,3776,3840,3904,3968,4032,4096,4160,4224,4288,4352,4416,4480,4544,4608,4672,4736,4800,4864,4928,4992,5056,5120,5184,5248,5312,5376,5440,5504,5568,5632,5696,5760,5824,5888,5952,6016,6080,6144。2112, 2176, 2240, 2304, 2368, 2432, 2496, 2560, 2624, 2688, 2752, 2816, 2880, 2944, 3008, 3072, 3136, 3200, 3264, 3328, 3392, 3456, 3520, 3584, 3648, 3712, 3776, 3840, 3904, 3968, 4032, 4096, 4160, 4224, 4288, 4352, 4416, 4480, 4544, 4608, 4672, 4736, 4800, 4864, 4928, 4992, 5056, 5120, 5184, 5248, 5312, 5376, 5440, 5504, 5568, 5632, 5696, 5760, 5824, 5888, 5952, 6016, 6080, 6144.
其中,对于步长为32和64的编码块,K对32取余数为0,均满足交织模式1的要求;步长为16的编码块,528满足交织模式3,544满足交织模式1,依次交替;步长为8的编码块中既有满足交织模式3的编码块也有满足交织模式1的编码块。Among them, for the coded blocks with a step size of 32 and 64, K takes a remainder of 0 for 32, which all meet the requirements of
上述编码块对32取余得到每个编码块所属交织模式。The remainder of 32 encoding blocks is obtained to obtain the interleaving mode to which each encoding block belongs.
交织模式1对应的编码块长度:共计127种Coding block length corresponding to interleaving mode 1: 127 types in total
64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608,640,672,704,736,768,800,832,864,896,928,960,992,1024,1056,1088,1120,1152,1184,1216,1248,1280,1312,1344,1376,1408,1440,1472,1504,1536,1568,1600,1632,1664,1696,1728,1760,1792,1824,1856,1888,1920,1952,1984,2016,2048,2112,2176,2240,2304,2368,2432,2496,2560,2624,2688,2752,2816,2880,2944,3008,3072,3136,3200,3264,3328,3392,3456,3520,3584,3648,3712,3776,3840,3904,3968,4032,4096,4160,4224,4288,4352,4416,4480,4544,4608,4672,4736,4800,4864,4928,4992,5056,5120,5184,5248,5312,5376,5440,5504,5568,5632,5696,5760,5824,5888,5952,6016,6080,6144。64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800, 832, 864, 896, 928, 960, 992, 1024, 1056, 1088, 1120, 1152, 1184, 1216, 1248, 1280, 1312, 1344, 1376, 1408, 1440, 1472, 1504, 1536, 1568, 1600, 1632, 1664, 1696, 1728, 1760, 1792, 1824, 1856, 1888, 1920, 1952, 1984, 2016, 2048, 2112, 2176, 2240, 2304, 2368, 2432, 2496, 2560, 2624, 2688, 2752, 2816, 2880, 2944, 3008, 3072, 3136, 3200, 3264, 3328, 3392, 3456, 3520, 3584, 3648, 3712, 3776, 3840, 3904, 3968, 4032, 4096, 4160, 4224, 4288, 4352, 4416, 4480, 4544, 4608, 4672, 4736, 4800, 4864, 4928, 4992, 5056, 5120, 5184, 5248, 5312, 5376, 5440, 5504, 5568, 5632, 5696, 5760, 5824, 5888, 5952, 6016, 6080, 6144.
交织模式2对应的编码块长度:共计15种Coding block length corresponding to interleaving mode 2: 15 types in total
40,72,104,136,168,200,232,264,296,328,360,392,424,456,488。40, 72, 104, 136, 168, 200, 232, 264, 296, 328, 360, 392, 424, 456, 488.
交织模式3对应的编码块长度:共计31种Coding block length corresponding to interleaving mode 3: 31 types in total
48,80,112,144,176,208,240,272,304,336,368,400,432,464,496;48, 80, 112, 144, 176, 208, 240, 272, 304, 336, 368, 400, 432, 464, 496;
528,560,592,624,656,688,720,752,784,816,848,880,912,944,976,1008。528, 560, 592, 624, 656, 688, 720, 752, 784, 816, 848, 880, 912, 944, 976, 1008.
交织模式4对应的编码块长度:共计15种Coding block length corresponding to interleaving mode 4: 15 types in total
56,88,120,152,184,216,248,280,312,344,376,408,440,472,504。56, 88, 120, 152, 184, 216, 248, 280, 312, 344, 376, 408, 440, 472, 504.
步骤202、分割系统矩阵和校验矩阵。
系统比特流依次组成四个子系统矩阵,每个子系统矩阵共8列,前7列每列有R个数据,第8列有R-1个数据;校验比特流依次组成四个子校验矩阵,每个子校验矩阵共8列,前7列每列有2(R-1)个数据,第8列有2R个数据。由于校验矩阵是由P1和P2交替存放获得的,因此校验矩阵中每列数据的长度要比系统矩阵每列数据的长度更长。The system bit stream forms four subsystem matrices in turn, and each subsystem matrix has 8 columns in total. The first 7 columns have R data in each column, and the 8th column has R-1 data; the check bit stream forms four sub-check matrices in turn, Each sub-check matrix has 8 columns in total, the first 7 columns each have 2(R-1) data, and the 8th column has 2R data. Since the check matrix is obtained by storing P1 and P2 alternately, the length of each column of data in the check matrix is longer than the length of each column of data in the system matrix.
下面对于每种交织模式举例说明:The following is an example for each interleaving mode:
交织模式1:对应填充比特ND=28,即比特流的长度中的编码块长度可以被32整除的情况。例K=6144,参见附图3。Interleaving mode 1: corresponding to stuffing bits ND =28, that is, the case where the coded block length in the length of the bit stream is divisible by 32. Example K=6144, see accompanying
前32列较短的长度对应系统矩阵,后32列较长的长度对应校验矩阵。系统比特依次由四个子系统矩阵构成,其中短的矩形条是不含多余比特的列,长度为R-1,长的矩形条是含多余比特的列,长度为R。多余比特是交织矩阵中不满足列长度多余的比特。校验比特依次由四个子校验矩阵构成,其中短的矩形条是不含多余比特的列,长度为2(R-1),长的矩形条是含多余比特的列,长度为2R。The shorter length of the first 32 columns corresponds to the system matrix, and the longer length of the last 32 columns corresponds to the parity check matrix. The system bit is composed of four subsystem matrices in turn, where the short rectangular bar is a column without redundant bits and has a length of R-1, and the long rectangular bar is a column with redundant bits and has a length of R. The extra bits are extra bits that do not satisfy the column length in the interleaving matrix. The parity bit is composed of four sub-parity check matrices in turn, wherein the short rectangular bar is a column without redundant bits and has a length of 2(R-1), and the long rectangular bar is a column containing redundant bits and has a length of 2R.
交织模式2:对应ND=20,即比特流的长度中的编码块长度对32取余为8的情况。例K=488,参见附图4。Interleaving mode 2: corresponding to N D =20, that is, the case where the modulo 32 of the coded block length in the length of the bit stream is 8. Example K=488, see accompanying
交织模式3:对应ND=12,即比特流的长度中的编码块长度对32取余为16的情况。例K=496,参见附图5。Interleaving mode 3: corresponding to N D =12, that is, the case where the modulo 32 of the coding block length in the length of the bit stream is 16. Example K=496, see accompanying
交织模式4:对应ND=4,即比特流的长度中的编码块长度对32取余为32的情况。例K=504,参见附图6。Interleaving mode 4: corresponding to N D =4, that is, the case where the modulo 32 of the coding block length in the length of the bit stream is 32. Example K=504, see accompanying drawing 6.
类似于交织模式1,交织模式2、3、4与交织模式1不同点在于K的不同,其系统矩阵与校验矩阵相应的列长度不同。Similar to interleaving
步骤203、计算第N列的系统矩阵地址和校验矩阵地址。
依次提取每个子系统矩阵的第N列后根据交织模式计算该列数据对应的系统矩阵地址,依次提取每个子校验矩阵的第N列后根据交织模式计算该列数据对应的校验矩阵地址。After sequentially extracting the Nth column of each subsystem matrix, calculate the system matrix address corresponding to the column data according to the interleaving mode, and sequentially extract the Nth column of each sub-check matrix, and calculate the check matrix address corresponding to the column data according to the interleaving mode.
每个子系统矩阵共8列,一次循环计算每个子系统矩阵的一列数据地址,共进行八次循环就可以计算出所有系统矩阵地址;相应的,每个子校验矩阵也是8列,一次循环计算每个子校验矩阵的一列数据地址,共进行八次循环就可以计算出所有校验矩阵地址。因此N的初始值是1,且N的最大值是8。Each subsystem matrix has a total of 8 columns, and the data address of one column of each subsystem matrix is calculated in one cycle, and all system matrix addresses can be calculated by performing a total of eight cycles; correspondingly, each sub-check matrix is also 8 columns, and one cycle calculates each A column of data addresses of sub-check matrices, a total of eight cycles can be used to calculate all check matrix addresses. So the initial value of N is 1, and the maximum value of N is 8.
步骤2031、计算交织索引。Step 2031, calculate the interleaving index.
交织索引是根据交织模式所确定的矩阵中每个数据地址的偏移量的列表。针对不同的交织模式,计算出每种交织模式中每个数据地址的偏移量,相应的系统矩阵中每个数据地址增加相应的偏移量得到中间偏移地址,然后根据交织模式和N整体偏移每个数据的中间偏移地址得到系统矩阵地址;校验矩阵中每个数据地址增加相应的偏移量得到中间偏移地址,然后根据交织模式和N整体偏移每个数据的中间偏移地址得到校验矩阵地址。The interleaving index is a list of offsets for each data address in the matrix determined according to the interleaving mode. For different interleaving modes, calculate the offset of each data address in each interleaving mode, and increase the corresponding offset for each data address in the corresponding system matrix to obtain the intermediate offset address, and then according to the interleaving mode and N overall Offset the middle offset address of each data to obtain the system matrix address; add the corresponding offset to each data address in the parity check matrix to obtain the middle offset address, and then offset the middle offset of each data according to the interleaving mode and N as a whole Shift the address to get the parity check matrix address.
下面详细说明交织索引的计算:The calculation of the interleaving index is described in detail below:
首先根据冗余版本参数RV和速率匹配软Buffer Ncb的大小,以及LTE协议描述的公式计算出起始列k0:First, the starting column k 0 is calculated according to the redundancy version parameter RV and the size of the rate matching soft Buffer N cb , and the formula described in the LTE protocol:
上式中,R为子系统矩阵的行数,Ncb为速率匹配软Buffer大小,RV为冗余版本参数,范围:0,1,2,3。其中,Ncb为已知参数,RV是已知参数。In the above formula, R is the number of rows of the subsystem matrix, N cb is the size of the rate matching soft buffer, RV is the parameter of the redundancy version, and the range is 0, 1, 2, 3. Among them, N cb is a known parameter, and RV is a known parameter.
另外,由于矩阵排列形式的特殊性,如果k0大于32,则系统矩阵的起始列位置等于k′0:In addition, due to the particularity of the matrix arrangement, if k 0 is greater than 32, the starting column position of the system matrix is equal to k′ 0 :
公式(2)保证了k′0的取值范围是2到53。由于校验矩阵是P1和P2合并在一起,如果校验矩阵每列数据数目与系统矩阵每列数据相同,则校验矩阵应该是是64列。而对于LTE系统而言,P1和P2单独计算,则校验矩阵共96列。如果按照原公式(1)计算,则k0的取值范围为2到74。通过公式(2)计算后,相当于把原来对应的列数折算成校验矩阵所在的列数。例如原来是74列,经过公式(2)计算后是在第53列。Formula (2) guarantees that the value range of k′ 0 is 2 to 53. Since the check matrix is a combination of P1 and P2, if the number of data in each column of the check matrix is the same as that of the system matrix, the check matrix should have 64 columns. For the LTE system, P1 and P2 are calculated separately, and the parity check matrix has 96 columns in total. If calculated according to the original formula (1), the value range of k 0 is 2 to 74. After calculation by the formula (2), it is equivalent to converting the original corresponding number of columns into the number of columns where the parity check matrix is located. For example, the original column is 74, but it is in the 53rd column after calculation by the formula (2).
系统矩阵的起始列位置确定后,根据四种交织模式分别计算交织索引。After the starting column position of the system matrix is determined, the interleaving indexes are respectively calculated according to the four interleaving modes.
对每一列的长度赋值即初始化每一列的长度,赋值可能为R,R-1或者2R,2(R-1)共计四种可能。To assign a value to the length of each column is to initialize the length of each column. The assignment may be R, R-1 or 2R, 2(R-1) in total.
第K列的开头位置的输出索引值为0,第K+1列的开头位置的输出索引值是第K列开头位置的输出索引值加上第K列的长度,以此类推。特别的,由于RV参数的原因,第0列始终会放到后面,因此第0列的开头位置的输出索引值是第63列的开头位置的输出索引值加上第63列的长度。The output index value at the beginning of column K is 0, the output index value at the beginning of column K+1 is the output index value at the beginning of column K plus the length of column K, and so on. In particular, due to the RV parameter,
此外,还需要计算多余比特的输出地址索引,对于系统矩阵,由于仅有1个比特的多余比特,多余比特的输出地址相当于该多余比特所在列的下一列的输出地址索引减1;对于校验矩阵,由于有2个比特的多余比特,多余比特的输出地址相当于该多余比特所在列的下一列的输出地址索引减2。In addition, it is also necessary to calculate the output address index of the redundant bit. For the system matrix, since there is only one redundant bit, the output address of the redundant bit is equivalent to the output address index of the next column of the column where the redundant bit is located minus 1; Since there are 2 redundant bits, the output address of the redundant bit is equal to the output address index of the next column of the column where the redundant bit is located minus 2.
结合填充比特的个数,可以得到如下4种交织模式的特点。Combined with the number of stuffing bits, the characteristics of the following four interleaving modes can be obtained.
交织模式1,ND=28,系统比特和P1的交织模式如下:
<4,20,12,28,8,24,16,0,6,22,14,30,10,26,18,2,5,21,13,29,9,25,17,1,7,23,15,31,11,27,19,3><4, 20, 12, 28, 8, 24, 16, 0, 6, 22, 14, 30, 10, 26, 18, 2, 5, 21, 13, 29, 9, 25, 17, 1, 7 , 23, 15, 31, 11, 27, 19, 3>
当系统比特流和P1取第31个元素的时候,即图3矩阵中的第59列,P2取第0个元素。这个时候取数据有一个跳变,因此,为了构造特殊的结构,需要把我们定义的矩阵中的59到64列的输出列的起始地址依次向后偏移1个单位,同时把相应列的多余比特起始地址向后偏移1个单位。When the system bit stream and P1 take the 31st element, that is, the 59th column in the matrix in FIG. 3 , P2 takes the 0th element. At this time, there is a jump in data fetching. Therefore, in order to construct a special structure, the starting addresses of the output columns of the 59 to 64 columns in the matrix we defined need to be shifted backward by 1 unit, and the corresponding column The start address of redundant bits is shifted backward by 1 unit.
交织模式2,ND=20,系统比特和P1的交织模式如下:
<12,28,20,4,16,0,24,8,14,30,22,6,18,2,26,10,13,29,21,5,17,1,25,9,15,31,23,7,19,3,27,11><12, 28, 20, 4, 16, 0, 24, 8, 14, 30, 22, 6, 18, 2, 26, 10, 13, 29, 21, 5, 17, 1, 25, 9, 15 , 31, 23, 7, 19, 3, 27, 11>
当系统比特流和P1取第31个元素的时候,即图4矩阵中的第57列,P2取第0个元素。这个时候取数据有一个跳变,因此,为了构造特殊的结构,需要把我们定义的矩阵中的57到64列的输出列的起始地址依次向后偏移1个单位,同时把相应列的多余比特起始地址向后偏移1个单位。When the system bit stream and P1 take the 31st element, that is, the 57th column in the matrix in FIG. 4 , P2 takes the 0th element. At this time, there is a jump in data fetching. Therefore, in order to construct a special structure, the starting addresses of the output columns of the 57 to 64 columns in the matrix we defined need to be shifted backward by 1 unit, and the corresponding column The start address of redundant bits is shifted backward by 1 unit.
交织模式3,ND=12,系统比特和P1的交织模式如下:
<20,4,28,12,24,8,0,16,22,6,30,14,26,10,2,18,21,5,29,13,25,9,1,17,23,7,31,15,27,11,3,19><20, 4, 28, 12, 24, 8, 0, 16, 22, 6, 30, 14, 26, 10, 2, 18, 21, 5, 29, 13, 25, 9, 1, 17, 23 , 7, 31, 15, 27, 11, 3, 19>
当系统比特流和P1取第31个元素的时候,即图5矩阵中的第58列,P2取第0个元素。这个时候取数据有一个跳变,因此,为了构造特殊的结构,需要把我们定义的矩阵中的58到64列的输出列的起始地址依次向后偏移1个单位,同时把相应列的多余比特起始地址向后偏移1个单位。When the system bit stream and P1 take the 31st element, that is, the 58th column in the matrix in FIG. 5 , P2 takes the 0th element. At this time, there is a jump in data fetching. Therefore, in order to construct a special structure, the starting addresses of the output columns of the 58 to 64 columns in the matrix we defined need to be shifted backward by 1 unit, and the corresponding column The start address of redundant bits is shifted backward by 1 unit.
交织模式4的,ND=4,系统比特和P 1的交织模式如下:For
<28,12,4,20,0,16,8,24,30,14,6,22,2,18,10,26,29,13,5,21,1,17,9,25,31,15,7,23,3,19,11,27><28, 12, 4, 20, 0, 16, 8, 24, 30, 14, 6, 22, 2, 18, 10, 26, 29, 13, 5, 21, 1, 17, 9, 25, 31 , 15, 7, 23, 3, 19, 11, 27>
当系统比特流和P1取第31个元素的时候,即矩阵中的第56列,P2取第0个元素。此时取数据有一个跳变,因此,为了构造特殊的结构,需要将矩阵中的56到64列输出列的起始地址依次向后偏移1个单位,同时把相应列的多余比特起始地址向后偏移1个单位。When the system bit stream and P1 take the 31st element, that is, the 56th column in the matrix, P2 takes the 0th element. At this time, there is a jump in the data fetching. Therefore, in order to construct a special structure, it is necessary to shift the starting addresses of the output columns of the 56 to 64 columns in the matrix backward by 1 unit, and at the same time set the redundant bits of the corresponding columns to start The address is offset backward by 1 unit.
交织索引的大小是64+56=120个长度。前64个索引存储系统矩阵32列、校验矩阵32列共计64列的起始地址索引,即开头的比特在输出缓存中的位置;后56个索引是每个特殊的长度列的多余比特在输出缓存中的位置。由于校验矩阵的含多余比特的长列中两个多余比特是紧密连接的,因此只需要计算一个地址索引即可,另外一个多余比特的地址可以根据该地址索引加The size of the interleaving index is 64+56=120 lengths. The first 64 indexes store the starting address index of 32 columns in the system matrix and 32 columns in the parity check matrix, that is, the position of the first bit in the output cache; the last 56 indexes are the extra bits of each special length column in The location in the output cache. Since the two redundant bits in the long column containing redundant bits of the check matrix are closely connected, only one address index needs to be calculated, and the address of the other redundant bit can be added according to the address index.
交织模式1的系统矩阵和校验矩阵分别有4个多余比特在最后一行,这里之所以是最后一行是把填充比特NULL放到了最后一行,因此称为多余比特,仅需要8个多余比特的索引。同样地,交织模式2需要24个剩余比特的索引。交织模式3需要40个剩余比特的索引,交织模式4需要56个剩余比特的索引。按照交织模式4取最大的长度是56,上述共计120个索引。这120个地址索引,决定了输出数据存储的偏移量。The system matrix and parity check matrix of
在速率匹配之前预先计算好上述索引参数。由于LTE系统存在多个编码块的长度相同的情况,因此对于相同的编码块仅需要计算一次交织索引即可。The above index parameters are precomputed before rate matching. Since the LTE system has multiple coding blocks with the same length, it is only necessary to calculate the interleaving index once for the same coding block.
步骤2032、根据交织模式和N整体偏移中间偏移地址分别得到系统矩阵地址和校验矩阵地址。Step 2032: Obtain the system matrix address and check matrix address respectively according to the interleaving mode and the intermediate offset address of the N overall offset.
由于子块交织器中的字块交织矩阵有32列,则编码块的填充比特等于32减去K+4对32取余。系统比特流、P1和P2的长度均等于K+4。即:交织模式1对应的填充比特ND等于28个;交织模式2对应的ND等于20个;交织模式3对应的ND等于12个;交织模式4对应的ND等于4个。Since the block interleaving matrix in the sub-block interleaver has 32 columns, the stuffing bits of the coding block are equal to 32 minus K+4 and taking the remainder of 32. The lengths of the systematic bit stream, P1 and P2 are all equal to K+4. That is: the ND corresponding to the
根据ND结合表一中P 1的交织模式的前八个数据,可以得到四种交织模式每一列数据的整体偏移量。当32减去ND后,与P1第N个数据的和小于等于32,整体偏移量H等于32减去ND后与P1第N个数据的和;当32减去ND后,与P1的第N个数据的和大于32,整体偏移量H等于P1的第N个数据减去ND。According to ND combined with the first eight data of the interleaving mode of
表1 P1校验矩阵交织模式Table 1 P1 parity check matrix interleaving mode
<0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23,15,31><0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3 , 19, 11, 27, 7, 23, 15, 31>
交织模式1:ND=28对应每一列的H分别为:4,20,12,28,8,24,16,0;Interleaving mode 1: N D = 28 corresponds to H of each column: 4, 20, 12, 28, 8, 24, 16, 0;
交织模式2:ND=20对应每一列的H分别为:12,28,20,4,16,0,24,8;Interleaving mode 2: N D = 20 corresponds to H of each column: 12, 28, 20, 4, 16, 0, 24, 8;
交织模式3:ND=12对应每一列的H分别为:20,4,28,12,24,8,0,16;Interleaving mode 3: N D = 12 corresponds to H of each column: 20, 4, 28, 12, 24, 8, 0, 16;
交织模式4:ND=4对应每一列的H分别为:28,12,4,20,0,16,8,24。Interleaving mode 4: N D =4 corresponds to H of each column: 28, 12, 4, 20, 0, 16, 8, 24.
即对于交织模式1的编码块,其子系统矩阵和子校验矩阵的第一列的整体偏移量是4,第二列的整体偏移量是20,以此类推可以得到第三列至第八列的整体偏移量。本文中的整体偏移量是指该列数据的地址的偏移量。That is, for the coding block of
步骤204、循环S次打包系统比特流的数据,打包P1和P2的数据。Step 204: Pack the data of the system bit stream in a loop S times, and pack the data of P1 and P2.
在步骤203中已经计算得到系统矩阵和校验矩阵中数据对应的地址。步骤204中将系统比特流的数据打包放置于系统矩阵中的地址;将P1和P2的数据打包放置于校验矩阵中的地址。循环次数S等于子系统矩阵的行数R减1除以4向下取整,R等于K加4后除以32向上取整。In
当S次循环后若存在剩余数据,则每次取一个剩余数据放置于剩余数据的地址中。If there is any remaining data after S cycles, one piece of remaining data is taken each time and placed in the address of the remaining data.
对于系统比特流、P1和P2的输入数据共三个码流的存放如附图7所示。在系统比特流中的第一个字由数据S0、数据S1、数据S2和数据S3构成,P1的第一个字由数据P0、数据P1、数据P2和数据P3构成,而P2的第一个字仅由在第四个位置中的数据B0构成。若系统比特流、P1和P2的输入数据不满足上述条件,则需要将不满足条件的比特流调整到上述条件。调整方式是现有技术,在此就不再赘述。The storage of three code streams for the system bit stream, P1 and P2 input data is shown in FIG. 7 . The first word in the system bit stream consists of data S 0 , data S 1 , data S 2 and data S 3 , and the first word of P1 consists of data P 0 , data P 1 , data P 2 and data P 3 constituted, while the first word of P2 consists only of data B 0 in the fourth position. If the system bit stream and the input data of P1 and P2 do not meet the above conditions, the bit streams that do not meet the conditions need to be adjusted to the above conditions. The adjustment method is a prior art, and will not be repeated here.
下面详细介绍将系统比特流的字打包放置于系统矩阵中的地址。The following describes in detail how to pack the words of the system bit stream into addresses in the system matrix.
从第0个字开始,每隔8个字取出系统比特流的字,得到第一系统字A0、第二系统字A8、第三系统字A16和第四系统字A24。参见附图8,分别取四个系统字的最高数据组成第一系统输出字B0,次高数据组成第二系统输出字B8,次低数据组成第三系统输出字B16,最低数据组成第四系统输出字B16。上述过程为数据打包过程。其中,一个字是由四个数据构成。Starting from the 0th word, the words of the system bit stream are extracted every 8 words to obtain the first system word A0, the second system word A8, the third system word A16 and the fourth system word A24. Referring to Figure 8, take the highest data of the four system words to form the first system output word B0, the second highest data to form the second system output word B8, the second lowest data to form the third system output word B16, and the lowest data to form the fourth system Word B16 is output. The above process is a data packing process. Among them, one word is composed of four data.
将B0放置于系统矩阵第S行第1个数据至第4个数据的地址中,将B8放置于系统矩阵第S行第9个数据至第12个数据的地址中,将B16放置于系统矩阵第S行第5个数据至第8个数据的地址中,将B24放置于系统矩阵第S行第四列的第13个数据至第16个数据中。Place B0 in the address of the 1st to 4th data in row S of the system matrix, place B8 in the address of the 9th to 12th data in row S of the system matrix, and place B16 in the system matrix In the address of the 5th data to the 8th data in the S row, place B24 in the 13th to 16th data in the fourth column of the S row of the system matrix.
进行S次循环后,系统比特流中的字分别放置于系统矩阵中的地址中。After performing S cycles, the words in the system bit stream are respectively placed in addresses in the system matrix.
将P1和P2的数据打包放置于校验矩阵中的地址,与对系统矩阵的数据打包不同之处在于,由于校验矩阵中的数据数目是系统矩阵中数据数目的两倍,因此系统矩阵进行一次数据打包,相应的校验矩阵进行二次数据打包。Packing the data of P1 and P2 into the addresses in the check matrix is different from the data packing of the system matrix in that the number of data in the check matrix is twice the number of data in the system matrix, so the system matrix Once the data is packaged, the corresponding parity check matrix is used for secondary data packaging.
顺序从P1取出第0个字和第8个字,依次记为第一校验字和第二校验字,顺序从P2取出第1个字和第9个字,依次记为第三校验字和第四校验字。Take out the 0th word and the 8th word from P1 in sequence, record them as the first check word and the second check word in sequence, take out the 1st word and the 9th word from P2 in sequence, and record them as the third check word in turn word and the fourth check word.
分别取第一校验字至第四校验字的最高数据组成第一校验输出字,次高数据组成第二校验输出字,次低数据组成第三校验输出字,最低数据组成第四校验输出字。Take the highest data from the first check word to the fourth check word to form the first check output word, the second highest data form the second check output word, the second lowest data form the third check output word, and the lowest data form the second check output word. Four parity output words.
将第一校验输出字放置于校验矩阵第S行第1个数据至第4个数据的地址中,将第二校验输出字放置于校验矩阵第S行第9个数据至第12个数据的地址中,将第三校验输出字放置于校验矩阵第S行第5个数据至第8个数据的地址中,将第四校验输出字放置于所述校验矩阵第S行第13个数据至第16个数据的地址中。Place the first verification output word in the address of the first data to the fourth data in the S row of the check matrix, and place the second verification output word in the ninth data to the 12th data in the S row of the check matrix In the address of the data, the third check output word is placed in the address of the 5th data to the 8th data in the S row of the check matrix, and the fourth check output word is placed in the S check matrix In the address of the 13th data to the 16th data in the row.
然后,再顺序从P1取出第16个字和第24个字,依次记为第五校验字和第六校验字,顺序从P2取出第17个字和第25个字,依次记为第七校验字和第八校验字。Then, take out the 16th word and the 24th word from P1 in sequence, record them as the fifth check word and the sixth check word in sequence, take out the 17th word and the 25th word from P2 in sequence, and record them as the 1st check word in turn The seventh checksum and the eighth checksum.
分别取第五校验字至第八校验字的最高数据组成第五校验输出字,次高数据组成第六校验输出字,次低数据组成第七校验输出字,最低数据组成第八校验输出字。Take the highest data from the fifth check word to the eighth check word to form the fifth check output word, the next highest data form the sixth check output word, the second lowest data form the seventh check output word, and the lowest data form the sixth check output word. Eight parity output words.
将第五校验输出字放置于校验矩阵第S+1行第1个数据至第4个数据的地址中,将第六校验输出字放置于校验矩阵第S+1行第9个数据至第12个数据的地址中,将第七校验输出字放置于校验矩阵第S+1行第5个数据至第8个数据的地址中,将第八校验输出字放置于校验矩阵第S+1行第13个数据至第16个数据的地址中。Place the fifth verification output word in the address of the first data to the fourth data in row S+1 of the parity check matrix, and place the sixth verification output word in the ninth row of S+1 row of the parity check matrix Data to the address of the 12th data, place the seventh verification output word in the address of the 5th data to the 8th data in the S+1 row of the verification matrix, and place the eighth verification output word in the check matrix In the address of the 13th data to the 16th data in row S+1 of the test matrix.
步骤205、判断N小于8。
判断N是否小于等于8,若N小于8,则令N+1后返回步骤103;否则,执行步骤106。Determine whether N is less than or equal to 8, if N is less than 8, set N+1 and return to step 103; otherwise, execute step 106.
由于系统矩阵由四个子系统矩阵构成,校验矩阵由四个子校验矩阵构成。子系统矩阵和子校验矩阵均有8列数据,当N=8即子系统矩阵中每列数据均放置于系统矩阵的地址中,以及子校验矩阵中每列数据均放置于校验矩阵的地址中。Since the system matrix is composed of four subsystem matrices, the check matrix is composed of four sub-check matrices. Both the subsystem matrix and the sub-check matrix have 8 columns of data. When N=8, each column of data in the subsystem matrix is placed in the address of the system matrix, and each column of data in the sub-check matrix is placed in the address of the check matrix. address.
至此,系统矩阵地址中的数据和校验矩阵地址中的数据是速率匹配后的数据。So far, the data in the address of the system matrix and the data in the address of the parity check matrix are data after rate matching.
步骤206、按列输出系统矩阵地址中的数据和校验矩阵地址中的数据。
按列从第1列至第32列,依次输出系统矩阵地址中的数据;然后,按列从第33列至第64列,依次输出校验矩阵地址中的数据,得到速率匹配后的数据。From
另外,步骤201至步骤206的技术方案还适应于LTE系统中Turbo编码解速率匹配。其技术方案的实现过程与Turbo编码速率匹配相同,不同点在于步骤2031中,起始列的位置等于0。In addition, the technical solution from
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010532617.XA CN102468902B (en) | 2010-11-01 | 2010-11-01 | Method for Turbo coding of rate match/de-rate match in LTE (long term evolution) system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010532617.XA CN102468902B (en) | 2010-11-01 | 2010-11-01 | Method for Turbo coding of rate match/de-rate match in LTE (long term evolution) system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102468902A CN102468902A (en) | 2012-05-23 |
CN102468902B true CN102468902B (en) | 2014-04-16 |
Family
ID=46072131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010532617.XA Expired - Fee Related CN102468902B (en) | 2010-11-01 | 2010-11-01 | Method for Turbo coding of rate match/de-rate match in LTE (long term evolution) system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102468902B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10103843B1 (en) * | 2017-12-08 | 2018-10-16 | Qualcomm Incorporated | On the fly interleaving/rate matching and deinterleaving/de-rate matching for 5G NR |
CN109257146B (en) * | 2018-11-16 | 2020-11-24 | 武汉虹旭信息技术有限责任公司 | LTE (Long term evolution) rapid decoding system and method based on DSP (digital Signal processor) |
CN116015546B (en) * | 2022-12-13 | 2023-10-20 | 湖北公众信息产业有限责任公司 | Random length turbo code rate matching method based on FPGA |
CN116388926B (en) * | 2023-03-15 | 2023-09-22 | 归芯科技(深圳)有限公司 | Rate matching method, device and chip |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510819A (en) * | 2009-04-08 | 2009-08-19 | 华为技术有限公司 | Method and apparatus for matching velocity |
CN101540654A (en) * | 2009-05-04 | 2009-09-23 | 普天信息技术研究院有限公司 | Method for interlacing rate matching and de-interlacing off-rate matching |
CN101783719A (en) * | 2010-03-18 | 2010-07-21 | 华为技术有限公司 | Rate matching and rate de-matching method, device and communication system |
-
2010
- 2010-11-01 CN CN201010532617.XA patent/CN102468902B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510819A (en) * | 2009-04-08 | 2009-08-19 | 华为技术有限公司 | Method and apparatus for matching velocity |
CN101540654A (en) * | 2009-05-04 | 2009-09-23 | 普天信息技术研究院有限公司 | Method for interlacing rate matching and de-interlacing off-rate matching |
CN101783719A (en) * | 2010-03-18 | 2010-07-21 | 华为技术有限公司 | Rate matching and rate de-matching method, device and communication system |
Also Published As
Publication number | Publication date |
---|---|
CN102468902A (en) | 2012-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5499366B2 (en) | Method for assigning a redundancy version to a circular buffer and apparatus comprising a circular buffer | |
CN101540654B (en) | Method for interlacing rate matching and de-interlacing off-rate matching | |
CN101510819B (en) | Method and apparatus for matching velocity | |
CN108400838A (en) | Data processing method and equipment | |
CN102468902B (en) | Method for Turbo coding of rate match/de-rate match in LTE (long term evolution) system | |
CN101938325B (en) | Rate de-matching method and device for finite length circular buffering rate matching | |
CN101090305A (en) | Radio physical layer channel code chain processing method | |
US8438448B2 (en) | Decoding method and device for low density generator matrix codes | |
KR20190111991A (en) | Method and apparatus for processing rate matching of polar code | |
CN101800625B (en) | Method and device for deinterlacing | |
WO2019029726A1 (en) | Interleaving method and device | |
CN101944972B (en) | Coding and decoding method, device and communication system | |
CN103873188B (en) | A parallel solution rate matching method and device | |
CN106506010B (en) | A kind of LDPC encoder compatible based on DVB-S2 standard multi code Rate of Chinese character | |
CN1983824A (en) | Method and system for realizing the second intersection and random access memory | |
CN102594371B (en) | The method of a kind of Turbo code interleaving process and device | |
CN103929271B (en) | Parallel achieving method and device for LTE system rate matching | |
CN103684478B (en) | The method and apparatus solved for Turbo decoders memory contention | |
CN102118220B (en) | Method and device for decoding rate matching | |
CN102480334A (en) | Method and device for rate matching | |
CN103840912B (en) | Method for rate dematching of LTE/LTE-A system traffic channel | |
CN102833044B (en) | Combined processing device and method of RS (reed-solomon) encoding and byte interlacing in CMMB (China mobile multimedia broadcasting) system | |
CN100536350C (en) | Circuit and method for realizing the coding | |
CN115225203B (en) | Data de-interleaving method and device, electronic equipment and storage medium | |
CN116318552B (en) | Interleaving or de-interleaving method for Turbo code, device, communication chip and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
ASS | Succession or assignment of patent right |
Owner name: CHINA POTEVIO CO., LTD. Free format text: FORMER OWNER: PUTIAN IT TECH INST CO., LTD. Effective date: 20130916 |
|
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20130916 Address after: 100080, No. two, 2 street, Zhongguancun science and Technology Park, Beijing, Haidian District Applicant after: CHINA POTEVIO CO.,LTD. Address before: 100080 Beijing, Haidian, North Street, No. two, No. 6, No. Applicant before: PETEVIO INSTITUTE OF TECHNOLOGY Co.,Ltd. |
|
ASS | Succession or assignment of patent right |
Owner name: PUTIAN IT TECH INST CO., LTD. Free format text: FORMER OWNER: CHINA POTEVIO CO., LTD. Effective date: 20131204 |
|
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20131204 Address after: 100080 Beijing, Haidian, North Street, No. two, No. 6, No. Applicant after: PETEVIO INSTITUTE OF TECHNOLOGY Co.,Ltd. Address before: 100080, No. two, 2 street, Zhongguancun science and Technology Park, Beijing, Haidian District Applicant before: CHINA POTEVIO CO.,LTD. |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140416 Termination date: 20211101 |
|
CF01 | Termination of patent right due to non-payment of annual fee |