The disclosure relates to the Turbo decoding process technology in the communication field, and more particularly to a Turbo code parallel interleaver and a parallel interleaving method thereof.
The Turbo code, an important channel coding method in the LTE, features high complexity and long time-delay in the coding & decoding, but excellent bit error performance. Therefore, it is suitable for the data transmission of the long code block (CB) with large quantities of data and with low time-delay requirements. The successful factors of the Turbo code lie in that: it can very well meet the randomicity condition in the Shannon's channel coding theory and it obtains coding gains by adopting the iterative decoding method, thus realizing the extreme performance approaching the Shannon limit.
The interleaver directly affects the performance of the Turbo decoder and plays a key role in the Turbo decoder. The interleaver adopted by the LTE is a Quadratic Permutation Polynomial (QPP) interleaver, which is one kind of Contention-free (CF) interleavers and whose expression is Π(i)=(f1·i+f2·i2)mod K (Formula 1-1), wherein i and Π(i) are the serial numbers before and after the interleaving, K is the CB length, and f1 and f2 are two parameters which can be specifically determined according to K, the CB length. That is, supposing the bit stream with a length K is c0, c1, . . . , ck-1 and the output of the interleaver is c′0, c′1, . . . , c′k-1, c′i can be expressed as c′i=cΠ(i).
The LTE system is required to support the peak data rate of over 100 Mbps, which puts forward higher requirements for the coding and decoding rate of the channel. To satisfy the requirements, the Turbo code in the LTE must adopt the parallel decoding algorithm. For the parallel decoding of the Turbo code, the design of the interleaver should also adapt to the requirements for the parallel decoding. The inventor found that in the related art, there is still no Turbo code interleaver or method capable of performing the parallel interleaving effectively.
The disclosure provides a Turbo code parallel interleaver and a parallel interleaving method thereof. This solution may at least solve the problem above that the parallel interleaving can not be effectively performed.
According to one aspect of the disclosure, a Turbo code parallel interleaver is provided, comprising: an interleaving unit, configured to generate a column address for parallel-reading data and a row address of each row for row-interleaving the read data, input the column address to a Code Block (CB) matrix unit as a read address, input the column address after delay to the CB matrix unit as a write address, input the row address of each row to a switching output unit, and input the row address of each row after delay to a switching input unit; the switching output unit, configured to receive data of each row output by the CB matrix unit, perform inter-row interleaving for the read data of each row according to the row address of each row, and input the interleaved data to a parallel Maximum A Posteriori (MAP) unit for MAP computing, wherein the data of each row is read by the CB matrix unit according to the read address; and the switching input unit, configured to receive the row address of each row after delay from the interleaving unit, perform the inter-row interleaving for the data of each row output by the parallel MAP unit after the MAP computing according to the row address after delay, and write the interleaved data of each row into the CB matrix unit as prior information according to the write address.
In the above, the interleaving unit comprises:
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2·i)mod K)mod K)mod K, wherein stu≦i≦stu+w;
Π(i−1)=(Π(i)−((f1+f2)mod K+(2f2·(i−1))mod K)mod K)mod K, wherein std≧i≧std−w;
Δ(i+1)=Δ(i)+(2f2)mod R wherein, stu≦i≦stu+w;
Δ(i−1)=Δ(i)(2f2)mod R, wherein std≧i≧std−w; and
row_addr(r,i)=(row_addr(0,i)+(r·Δ(i))mod R)mod R,(0≦r≦R−1,0≦i≦L−1)
In the above, the adjacent-row address computation module determines the row address increment of the initial position of the forward recursion Δ(stu) and the row address increment of the initial position of the backward recursion Δ(std) according to a formula of:
Δ(0)=(f1+f2·L)mod R,
Δ(i+1)=Δ(i)+(2f2)mod R
In the above, the basic interleaving address recursion module determines the basic interleaving address of the initial position of the forward recursion Π(stu) and the basic interleaving address of the initial position of the backward recursion Π(std) according to a formula of:
Π(0)=0;
Π(i+1)=(Π(i)+((fi+f2)mod K+(2f2·i)mod K)mod K)mod K
The first select-one-from-two module, configured to according to parity of the current number of times of the MAP operation of the parallel MAP unit, select i or the recursive basic interleaving address Π(i) obtained by the basic interleaving address recursion module to output to the modulo operation module and the division operation module; and the second select-one-from-two module, configured to according to parity of the current number of times of the MAP operation of the parallel MAP unit, select 1 or the row address increment Δ(i) obtained by the adjacent-row address computation module to output to the row address generation module.
In the above, the switching output unit comprises R select-one-from-R modules, and each select-one-from-R module is configured to according to the row address input by the interleaving unit, select and output one channel of the data from R rows of the data read, wherein R is the number of rows of a matrix in the CB matrix unit.
In the above, the switching input unit comprises R select-one-from-R modules, and each select-one-from-R module is configured to according to the row address after delay input by the interleaving unit, select and output one row of the data from R rows of the data input by the parallel MAP unit, wherein R is the number of rows of a matrix in the CB matrix unit.
According to another aspect of the disclosure, a parallel interleaving method of a Turbo code parallel interleaver is provided, comprising: an interleaving unit generating a column address for parallel-reading data and a row address of each row for row-interleaving the read data, inputting the column address to a Code Block (CB) matrix unit as a read address, inputting the column address after delay to the CB matrix unit as a write address, inputting the row address of each row to the switching output unit, and inputting the row address of each row after delay to the switching input unit; the CB matrix unit reading data of each row corresponding to the column address according to the read address and inputting the read data of each row to the switching output unit; the switching output unit performing inter-row interleaving for the read data of each row according to the row address of each row output by the interleaving unit and inputting the interleaved data to a parallel Maximum A Posteriori (MAP) unit for MAP computing; and the switching input unit receiving the row address of each row after delay from the interleaving unit, performing the inter-row interleaving for the data of each row output by the parallel MAP unit after the MAP computing according to the row address after delay, and writing the interleaved data of each row into the CB matrix unit as prior information according to the write address.
In the above, the interleaving unit generating the column address and the row address of each row comprises:
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2·i)mod K)mod K)mod K, wherein, stu≦i≦stu+w;
Π(i−1)=(Π(i)−((f1+f2)mod K+(2f2·(i−1))mod K)mod K)mod K, wherein, std≧i≧std−w;
Δ(i+1)=Δ(i)+(2f2)mod R, wherein stu≦i≦stu+w
Δ(i−1)=Δ(i)−(2f2)mod R, wherein std≧i≧std−w; and
row_addr(r,i)=(row_addr(0,i)+(r·Δ(i))mod R)mod R,(0≦r≦R−1,0≦i≦L−1)
In the above, when the interleaving unit performs the recursion for the basic interleaving address, the interleaving unit determines the basic interleaving address of the initial position of the forward recursion Π(stu) and the basic interleaving address of the initial position of the backward recursion Π(std) to a formula of:
Π(0)=0;
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2·i)mod K)mod K)mod K
In the above, when the interleaving unit performs the recursion for the row address increment, the row address increment of the initial position of the forward recursion Δ(stu) and the row address increment of the initial position of the backward recursion Δ(std) are determined according to a formula of:
Δ(0)=(f1+f2−L)mod R,
Δ(i+1)=Δ(i)+(2f2)mod R
Through the disclosure, parallel reading of a column of data is realized according to the column address generated by the interleaving unit of the Turbo code parallel interleaver. Then, row interleaving is performed for the data read according to the row address of each row generated by the interleaving unit. Thus, the intra-row and inter-row interleaving of the data is realized. The switching input unit performs the row interleaving for the data of each row after the MAP computation according to the row address of each row after delay generated by the interleaving unit, and writes the interleaved data as the prior information into the position corresponding to the column address generated by the interleaving unit in the CB matrix. Thus, this solution can perform parallel deinterleaving effectively and improve the efficiency of the interleaving and deinterleaving.
The drawings disclosed herein are provided for further understanding the disclosure, and constituting a part of the application. The exemplary embodiments of the disclosure and the description thereof are used to illustrate rather than limit the disclosure. In the drawings:
The disclosure is further described hereinafter in conjunction with the drawings and the embodiments. It should be noted that the embodiments in the application and the characteristics in the embodiments can be combined with each other if no conflict occurs.
The interleaver and deinterleaver in
In the embodiment of the disclosure, the soft bit information of the CB to be decoded and the prior information used during the decoding are stored in the format of R×L matrix, wherein R represents the number of the rows of the matrix, and L represents the number of the columns of the matrix. The parallel decoding is to read out the data of R rows of one column from the matrix and according to certain mapping rules, send the R pieces of data to the parallel MAP unit for the MAP operation with R-channel parallel.
In the above, the CB matrix unit comprises four R×L matrixes, used to store the system bit sb, check bit p0, check bit p1 and the prior information apri corresponding to one CB respectively. In the above, the number of the rows of the matrix depends on the length K of the CB. Preferably, R can be determined according to the formula below:
The number of the columns of the matrix L=K/R.
For example, supposing K=6144, the bit sequence of the CB is (c0, c1, c2, . . . , c6143), and then the arrangement order of the sequence in the R×L is as shown in
In the above, the check bit p0 and the check bit p1 do not need interleaving. Only one of p0 and p1 is selected to be input to the parallel MAP unit. When the current number of times of the MAP operation is an odd number, the check bit p0 is input to the parallel MAP unit. When the current number of times of the MAP operation is an even number, the check bit p1 is input to the parallel MAP unit. For the system bit sb and the prior information api, the CB matrix unit reads a column of data respectively according to the row address generated by the interleaving unit 10 and inputs the data to the switching output unit 20. The switching output unit 20 performs the row interleaving for the data of each row input according to the row address of each row generated by the interleaving unit 10, and then inputs to the parallel MAP unit. The parallel MAP unit performs MAP operation according to the input check bit, the system bit sb and the prior information of each row to obtain a column of the prior information, and inputs the column of the prior information to the switching input unit 30. The switching input unit 30 performs the interleaving for the data of each row input according to the row address of each row after delay, and writes the column of data as the data corresponding to the column address above into the position corresponding to the prior information api matrix in the CB matrix unit.
The Turbo code parallel interleaver above provided by the embodiment of the disclosure performs parallel-reading of a column of data according to the column address generated by the interleaving unit of the Turbo code parallel interleaver. And row interleaving is performed for the data read according to the row address of each row generated by the interleaving unit, so as to realize the intra-row interleaving and inter-row interleaving. The switching input unit performs the row interleaving for the data of each row after the MAP computation according to the row address of each row after delay generated by the interleaving unit, and writes the interleaved data as the prior information into the position corresponding to the column address generated by the interleaving unit in the CB matrix.
In one preferred embodiment of the disclosure, the interleaving unit 10 can adopt the structure as shown in
The basic interleaving address recursion module 100 can perform the recursion for the basic interleaving address from the forward direction and the backward direction according to the formula (1-2) and the formula (1-3) respectively. The scope of the forward recursion is from Π(stu) to Π(stu+w), namely stu≦i≦stu+w. The backward recursion is from Π(std) to Π(std−w) namely std≧i≧std−w. In this case, stu is the initial position of the forward recursion in the CB, std is the initial position of the backward recursion in the CB, L is the number of the columns of the CB matrix and w is the window length of the basic interleaving address.
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2−i)mod K)mod K)mod K, wherein, stu≦i≦stu+w (1-2)
Π(i−1)=(Π(i)−((f1+f2)mod K+(2f2·(i−1))mod K)mod K)mod K,(i>0) wherein, std≧i≧std−w (1-3)
In the above,
(2f2·i)mod K=(2f2·(i−1))mod K+(2f2)mod K (Formula 1-4)
(2f2·(i−1))mod K=(2f2·i)mod K(2f2)mod K (Formula 1-5)
During the forward recursion of the basic interleaving address recursion module, if i≧L, then i=i mod L. That is, during the forward recursion, i progressively increases from the initial position stu. If the column boundary is met during the progressive increasing (namely i=L), i is cleared to be zero and the progressive increase continues. That is, “increment of i mod L” is conducted so as to ensure the i value is mapped within the scope of the first row. During the backward recursion of the basic interleaving address recursion module, if i<0, then i=L+i. That is, during the backward recursion, i progressively descends from the initial position std. If the column boundary is met during the progressive descending (namely i=0), i is set to be L and the descending continues. That is, “descending value of i mod L” is conducted to ensure the i value is mapped within the scope of the first row.
In the above, R represents the number of the rows in the CB matrix, L represents the number of the columns in the CB matrix, and f1 and f2 are the interleaving parameters of the Turbo code interleaver. And, f1 and f2 correspond to the CB length K. Specifically, in the LTE system, f1 and f2 can be determined according to Table 1.
Preferably, the basic interleaving address recursion module 100 can obtain the initial values Π(stu) and Π(std) required by the recursion according to (Formula 1-6) and (Formula 1-2).
Π=0 (Formula 1-6)
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2·i)mod K)mod K)mod K (Formula 1-2)
In the (Formula 1-2), (Formula 1-3), (Formula 1-4), (Formula 1-5), and (Formula 1-6) above, (f1+f2)mod K (2f2)mod K and are constants that can be calculated in advance. The modulo operation can be realized through comparison and subtraction, and it can be ensured that the result of modulo operation each time is always less than K. Thus the recursion for the interleaving address is completely simplified to be comparison and multiplication & subtraction operation.
The modulo operation module 102 is configured to obtain the column address col_addr(i) through performing the modulo operation of the basic interleaving address Π(i) obtained via the recursion by the basic interleaving address recursion module 100 mod L.
The modulo operation module 104 is configured to obtain the row address Π(i) of the first row row_addr(0,i), 0≦i≦L−1 through calculating the quotient of dividing the basic interleaving address Π(i) obtained via the recursion by the basic interleaving address recursion module 100 by L.
The adjacent-row address calculation module 106 can perform the recursion for the row address increment Δ(i) between two adjacent rows from the forward direction and the backward direction according to (Formula 1-7) and (Formula 1-8) respectively. The scope of the forward recursion is from Δ(stu) to Δ(stu+w) (namely stu≦i≦stu+w). The scope of the backward recursion is from Δ(std) to Δ(std−w) (namely std≧i≧std−w). In this case, stu and std are the initial positions of the forward and backward recursions in the CB respectively, and L is the number of the columns of the CB matrix.
Δ(i+1)=Δ(i)+(2f2)mod R, wherein stu≦i≦stu+w (Formula 1-7)
Δ(i−1)=Δ(i)−(2f2)mod R, wherein std≧i≧std−w (Formula 1-8)
Preferably, the adjacent-row address computation module 106 can obtain the initial values Δ(stu) and Δ(std) required by the recursion in advance according to (Formula 1-7) and (Formula 1-5).
Δ(0)=(f1+f2·L)mod R (Formula 1-9)
Δ(i+1)=Δ(i)+(2f2)mod R (Formula 1-8)
During the forward recursion of the adjacent-row address computation module, if i≧L, then i=i mod L. During the backward recursion of the adjacent-row address computation module, if i<0, then i=L+i.
In the above, Δ(i) in (Formula 1-7), (Formula 1-8) and (Formula 1-9) represents the row address increment between two adjacent rows corresponding to the interleaving (or non-interleaving) address in Column i within the matrix in the CB matrix unit:
Δ(i)=row_addr(r+1,i)−row_addr(r,i),(0≦r≦R−1,0≦i≦L−1)
In (Formula 1-9), f2 is an even number, L is a multiple of 4, and R is the power of 2 and is no more than 15. Thus, f2·L is simplified to be {f2[1] & L[2],3′b000}. And, since R is the power of 2 and is no more than 15, the modulo operation of (Formula 1-7), (Formula 1-8), (Formula 1-9) and (Formula 1-10) can be simplified to be the truncation operation. To sum up, the formulae above are simplified to be comparison, multiplication & subtraction, shift, truncation operations, or simple multiplication operation. This ensures that for the hardware, the key route can be easily simplified through inserting a register to improve the performance of the circuit. And through combining the flow-line processing method, it is ensured that the recursion computation of the interleaving address can output a result each clock tick.
The row address generation module is configured to calculate the row addresses of all the rows row_addr(r,i) according to the formula below:
row_addr(r,i)=(row_addr(0,i)+(r·Δ(i))mod R)mod R,(0≦r≦R−1,0≦i≦L−1) (Formula 1-10)
In the above, the multiplication in the (Formula 1-10) is the multiplier of 4×4, thus ensuring easy realization on hardware.
It should be noted that the select-one-from-two processing of the interleaving and non-interleaving parameters processed by the two select-one-from-two modules above is only for the two matrixes used for storing the system bit sb and the prior information apri of the four matrixes in the CB matrix unit. The other two matrixes used for storing the check information p0 and p1 do not need interleaving, since the storage order (namely input sequence) of p0 in the matrix is not interleaved, and the storage order (namely input sequence) of p1 in the matrix has been interleaved. When the map_cnt is an even number, p0 is selected, and when the map_cnt is an odd number, p1 is selected. Therefore, for the two matrixes used for storing p0 and p1, one of them is selected from the CB matrix and input to the parallel MAP unit. The read address used for reading p0 and p1 from the CB matrix is not necessarily read by using the column address, but can be read by using the non-interleaving address (namely the i value in
The switching output unit 20 is an R×R interleaved array, comprising R channels of input and R channels of output. It can comprise R select-one-from-R modules (preferably, the module can be a select-one-from-R circuit). The output of each select-one-from-R module is one channel selected from the R channels of input according to the row address corresponding to the select-one-from-R module from the interleaving unit. Likewise, the switching input unit 30 is also an R×R interleaved array, also comprising R channels of input, R channels of output and R select-one-from-R circuits. The row address input by the switching input unit 30 is the row address after delay output by the interleaving unit 10. The purpose of delay is to ensure synchronization with the time delay of the MAP operation. In the above, the select-one-from-R circuit can be a tree structure of selecting R/2 from R, selecting R/4 from R/2 . . . , and 1 from R/2″, which can shorten the processing delay. For example, for 16-channel output, the tree structure of selecting 8 from 16, selecting 4 from 8, selecting 2 from 4 and selecting 1 from 2 can be adopted.
Step S602, the interleaving unit 10 generates the column address for parallel-reading data and the row address of each row for row-interleaving the read data, inputs the column address to the CB matrix unit as the read address, inputs the column address after delay to the CB matrix unit as the write address, inputs the row address of each row to the switching output unit 20, and inputs the row address of each row after delay to the switching input unit 30.
For example, the interleaving unit 10 can generate the row address of each row according to the following steps.
Step 1: the interleaving unit 10 performs the recursion for the basic interleaving address Π(i) from the forward direction and the backward direction respectively according to the formula below:
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2·i)mod K)mod K)mod K, wherein stu≦i≦stu+w; and during the forward recursion, if i≧L, then i=i mod L;
Π(i−1)=(Π(i)−((f1+f2)mod K+(2f2·(i−1))mod K)mod K)mod K, wherein std≧i≧std−w; and during the backward recursion, if i<0, then i=L+i.
In the above, f1,f2 are the interleaving parameters, stu and std are the initial positions of the forward and backward recursions in the CB respectively (0≦stu≦K−1 and 0≦std≦K−1) w is the window length of the basic interleaving address recursion, L is the number of the columns of the matrix in the CB matrix unit, R is the number of the rows of the matrix in the CB matrix unit, and K is the CB length in the CB matrix unit.
Preferably, when the interleaving unit 10 performs the recursion for the basic interleaving address, the basic interleaving addresses, Π(stu) and Π(std) of the initial positions of the forward and backward recursions are determined according to the formula below:
Π(0)=0;
Π(i+1)=(Π(i)+((f1+f2)mod K+(2f2·i)mod K)mod K)mod K
Step 2, the interleaving unit 10 obtains the column address col_addr(i) through performing the modulo operation of the basic interleaving address Π(i) obtained by recursion mod L.
Step 3, the interleaving unit 10 obtains the row address of the first row row_addr(0,i), 0≦i≦L−1 through calculating the quotient of dividing the basic interleaving address Π(i) obtained by recursion by L.
Step 4, the interleaving unit 10 performs the recursion for the row address increment Δ(i) of two adjacent rows from the forward direction and the backward direction respectively according to the formula below:
Δ(i+1)=Δ(i)+(2f2)mod R, wherein stu≦i≦stu+w;
Δ(i−1)=Δ(i)−(2f2)mod R, wherein std≧i≧std−w.
Preferably, when the interleaving unit performs the recursion for the row address increment, the row address increments Δ(stu) and Δ(std) of the initial positions of the forward and backward recursions are determined according to the formulae below:
Δ(0)=(f1+f2·L)mod R
Δ(i+1)=Δ(i)+(2f2)mod R
Step 5, the interleaving unit computes the row addresses row_addr(r,i) of all the rows according to the formula below:
row_addr(r,i)=(row_addr(0,i)+(r·Δ(i))mod R)mod R,(0r≦r≦R−1,0L−1)
Step S304, the CB matrix unit reads the data of each row corresponding to the column address above according to the read address above, and inputs the read data of each row to the switching output unit 20. The switching output unit 20 performs inter-row interleaving for the read data of each row according to the row address of each row input by the interleaving unit 10, and inputs the interleaved data to the parallel MAP unit for the MAP computation.
Step S306, the switching output unit 30 receives the row address of each row after delay from the interleaving unit 10, performs the inter-row interleaving for the data of each row output by the parallel MAP unit after the MAP computing according to the row address after delay, and writes the interleaved data as the prior information into the CB matrix unit according to the write address above.
Through the above parallel interleaving method of the Turbo code interleaver provided by the embodiment of the disclosure, the intra-row and inter-row interleaving of the data is realized by parallel-reading of a column of data according to the column address generated by the interleaving unit of the Turbo code parallel interleaver. Row interleaving is performed for the read data according to the row address of each row generated by the interleaving unit. The switching input unit performs the row interleaving for the data of each row after the MAP computation according to the row address of each row after delay generated by the interleaving unit, and writes the interleaved data as the prior information into the position corresponding to the column address generated by the interleaving unit in the CB matrix. Thus, this solution performs the parallel deinterleaving effectively and improves the efficiency of the interleaving and deinterleaving.
In the practical applications, the above parallel interleaving method of the Turbo code interleaver provided by the disclosure can be realized through the above embodiments of Turbo code interleaver. The corresponding technical effects of the embodiments of the Turbo code interleaver above can be achieved. No repeated detail is given herein.
From the description above, we can see that the disclosure realizes the following technical effects: 1. supporting the Turbo parallel decoding and increasing the decoding speed; 2. the computation process of row & column addresses adopts the method of recursion without the requirement for any caching and table searching operations, thus saving hardware resources; 3. the multiplication operation and the modulo operation involved in the recursion of the interleaving row & column addresses are resolved into simple addition and comparison operation, thus simplifying the critical path and improving the hardware performance; and 4. combining with the pipeline processing method, this solution can output one result of the computing the interleaving address each clock tick, thus ensuring the linear rate of the data stream of the decoder.
It is obvious for those skilled in this field that the modules or steps of the disclosure above can be also realized by a general computer device. They can be integrated in a single computer device or distributed on the network composed of several computer devices, or alternatively achieved by executable codes of a computer device, so as to store them in a storage unit for execution by a computer device, or make them into different integrated circuit modules or make multiple modules or steps of them to a single integrated circuit module for realization of the disclosure. In this way, the disclosure is not restricted to the combination of any specific hardware and software.
The description above is just the preferred embodiments of the disclosure, and should not be used to limit the disclosure. For those skilled in this field, the disclosure can have various alterations and changes. Any such change, equivalent substitution or improvement made within the principle of the disclosure should be covered in the protection scope of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010293964.1 | Sep 2010 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN2011/072187 | 3/25/2011 | WO | 00 | 3/25/2013 |