The present invention relates to an apparatus and a method for generating an interleaver index, and more particularly to an apparatus and a method for generating an internal interleaver index of a turbo encoder in parallel.
In general, the relation between an input and an output of an internal interleaver of a turbo encoder follows the below equation when inputs are C0, C1, C2, . . . Ck−1 and outputs are C′0, C′1, C′2, . . . C′k−1.
C′i=C′Π(i), i=0, 1, 2, . . . K−1
Further, indexes of an input stream and an output stream follow the below equation.
Π(i)=(f1*i+f2*i2)modK
Referring to
The apparatus 100 for generating the internal interleaver index of the conventional turbo encoder receives inputs of K, which is a size of input data, f1 and f2 calculated from K, and a value of i according to an order of bits and outputs II(i) satisfying
Π(i)=(f1*i+f2*i2)modK.
The first multiplier 110 receives inputs of f2 and i and outputs a value of f2*i.
The adder 120 receives inputs of i and f2*i output through the first multiplier 110 and outputs a value of f2*i+f1.
The second multiplier 130 receives inputs of i and f2*i+f1 output through the adder 120 and outputs a value of (f2*i+f1)*i.
The divider 140 receives inputs of K and (f2*i+f1)*i, performs (f2*i+f1)*i/K, and then outputs (f2*i+f1)*imodK corresponding to the remainder.
The apparatus 100 for generating the internal interleaver index of the conventional turbo encoder outputs the index in the unit of bits, so that the time for generating the index is increased in proportion to the size of the input data. As a result, the performance of the apparatus is deteriorated.
Further, there is a problem in that the apparatus 100 for generating the internal interleaver index of the conventional turbo encoder requires the multiplier and the divider, which have high importance in an aspect of the hardware implementation, in order to generate the index.
An aspect of the present invention provides an apparatus and a method for generating an interleaver index, which calculates indexes for following bits by using an index value extracted for a predetermined bit of input data while generating interleaver indexes for a plurality of bits in parallel.
In accordance with an aspect of the present invention, there is provided an apparatus for generating indexes of an interleaver for input data, the apparatus including a main processor for calculating an index for a predetermined bit of the input data; and an index operator for receiving the index calculated by the main processor, calculating in parallel indexes for bits after the predetermined bit, and deriving a plurality of indexes.
The main processor or the index operator may calculate the index by using a difference between indexes.
The index for the predetermined bit may be calculated by an equation of
Π(i+1)−Π(i)=(f1+f2+2*f2*i)modK
A modular operation may be performed using an addition and a multiplexer.
The addition may be an addition of a dividend and a sign inverted divisor of the modular operation, and the multiplexer may receive inputs of a result of the addition and the dividend, wherein the multiplexer may output the dividend when the result of the addition is a negative number and output the result of the addition when the result of the addition is a positive number.
The main processor may calculate indexes for ith to i+15th bits (i is an integer equal to or larger than 0) of the input data, and the index operator may calculate an index for an (i+j)+16th bit (0≦j≦7) by using a difference between i+jth and (i+j)+8th bits.
The main processor may calculate (128*f2)modK and transfer the calculated (128*f2)modK to the index operator, and the index operator may calculate an index by using an equation of
Π(i+j+16)=(2*Π(i+j+8)−Π(i+j)+128*f2)modK
(0≦j≦7).
The modular operation may be performed using a first addition, a second addition, and a multiplexer through receptions of a first input, a second input, and a divisor of K.
The first addition may be an addition of the first input and a sign inverted second input, the second addition may be an addition of a result of the first addition and a divisor of K, and the multiplexer receives inputs of the result of the first addition and a result of the second addition and outputs the result of the second addition when the result of the first addition is a negative number and outputs the result of the first addition when the result of the first addition is a positive number.
In accordance with another aspect of the present invention, there is provided a method of generating indexes of an interleaver for input data, the method including performing a first step by calculating an index for a predetermined bit of the input data; and performing a second step by calculating indexes for bits after the predetermined bit in parallel by using the calculated index.
In the first step, a difference between indexes for bits may be calculated by an equation of Π(i+1)−Π(i)=(f1+f2+2*f2*i)modK and indexes for bits after the bit may be calculated using the calculated index.
A modular operation may be performed using an addition and a multiplexer, wherein the addition may be an addition of a dividend and a sign inverted divisor of the modular operation, and the multiplexer may receive inputs of a result of the addition and the dividend, wherein the multiplexer may output the dividend when the result of the addition is a negative number and output the result of the addition when the result of the addition is a positive number.
(128*f2)modK and indexes for ith to i+15th bits (i is an integer equal to or larger than 0) of the input data may be calculated in the first step, and indexes for bits from an i+16 bit may be calculated using an equation of
Π(i+j+16)=(2*Π(i+j+8)−Π(i+j)+128*f2)modK
(0≦j≦7) in the second step.
The modular operation may be performed using a first addition, a second addition, and a multiplexer through receptions of a first input, a second input, and a divisor of K, wherein the first addition may be an addition of the first input and a sign inverted second input, the second addition may be an addition of a result of the first addition and the divisor of K, and the multiplexer may receive inputs of the result of the first addition and a result of the second addition and output the result of the second addition when the result of the first addition is a negative number and output the result of the first addition when the result of the first addition is a positive number.
Specific matters of other embodiments are included in the detailed description and drawings.
The present invention has an effect of reducing the time spent for generating total indexes by generating indexes for a plurality of bits in parallel.
Also, the present invention has an effect of improving the resource efficiency and the performance in the hardware implementation by calculating indexes for following bits through the use of an index calculated for a predetermined bit without the use of a multiplier and a divider.
The foregoing and other objects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which:
The above and other objects, features and advantages of the present invention will be more apparent from the following detailed description taken in conjunction with the accompanying drawings. While the detailed description of the present invention has described certain exemplary embodiments such as a portable terminal, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Meanwhile, the terms used herein are only for describing embodiments of the present invention and do not limit the present invention.
The interleaver index generating apparatus 200 according to the embodiment of the present invention generates indexes of the interleaver for input data.
The indexes of the interleaver correspond to II(i) satisfying the an equation of Π(i)=(f1*i+f2*i2)modK, and f1 and f2 derived from the input data and values of i according to an order of bits are used in the above equation.
For example, parameters used in the above equation are as defined in the below table.
That is, indexes generated from a first example in Table 1, in which is Ki=40, f1=3, and f2=10, are sequentially 0, 13, 6, 19, 12, 25, 18, 31, 24, 37, 30, 3, 36, 9, 2, 15, 8, 21, 14, 27, 20, 33, 26, 39, 32, 5, 38, 11, 4, 17, 10, 23, 16, 29, 22, 35, 28, 1, 34, 7.
The main processor 210 calculates an index for a predetermined bit of input data.
According to an exemplary embodiment of the present invention, the main processor 210 calculates an index for a predetermined bit of input data by using the difference between index values.
A modular operation corresponds to an operation for outputting a remainder generated by multiplying a dividend by a divisor.
The adder 310 receives inputs of the dividend and the divisor and adds the dividend and a sign inverted divisor. That is, the adder 310 derives a value generated by subtracting the divisor from the dividend.
The multiplexer 320 receives inputs of a result of the addition and the dividend. The multiplexer outputs the dividend when the result of the addition is a negative number and outputs the result of the addition when the result of the addition is a positive number.
According to another exemplary embodiment of the present invention, the index for the predetermined bit is operated through the modular operation using the modular circuit 300 according to an embodiment of the present invention.
That is, although the main processor 210 does not provide the index operator 220 with the index value for the predetermined bit, the index for the predetermined bit may be operated through the modular circuit 300 according to the embodiment of the present invention and then the operated index may be provided to the index operator 220.
The modular circuit 300 according to the embodiment of the present invention has an effect of replacing the multiplier and the divider with the multiplexer and the adder, which are less important resources in an aspect of the hardware implementation.
The modular operation has an effect of managing efficient hardware resources through the replacement of the divider with the adder and the multiplexer, which are circuit elements having less importance in an aspect of the hardware implementation.
The interleaver index generating apparatus 500 according to another embodiment of the present invention receives inputs of (f1+f2)modK, (2*f2)modK, and K and sequentially outputs II(i).
The interleaver index generating apparatus 500 according to another embodiment of the present invention derives II(I) by using an equation of
Π(i+1)−Π(i)=(f1+f2+2*f2*i)modK.
For easier understanding, the above equation is organized as follows.
That is, the difference between a current index value and a subsequent index value is calculated by adding f1+f2 and double of the value of f2 multiplied by i, so that II(i) derived by the interleaver index generating apparatus 500 according to another embodiment of the present invention satisfies Π(i)=(f1*i+f2*i2)modK.
The first adder 511 receives an input of (2*f2)modK and outputs a result value of the addition of (2*f2)modK and an output value of the first modular operator 541. In an initial performance, it is not possible to receive the output value of the first modular operator 541 so the output value of the first adder 511 is in an unknown state.
The first multiplexer 521 receives inputs of the output value of the first adder 511 and “0”, outputs “0” in generating a first index by a control signal, and then outputs the output value of the first adder 511 after that. The reason why “0” is generated as the first index is that a first index of the interleaver should be “0” and also a first output value of the first adder 511 is in an unknown state.
The first D-flip flop 531 receives an input of the output value of the first multiplexer 521 and temporarily stores the output value of the first multiplexer 521 because a loop-back is performed in which an output value of the first modular operator 541 is used in the first adder 511.
Further, the first D-flip flop 531 enables the accumulation of 2*f2 according to an increase of i in Π(i+1)−Π(i)=(f1+f2+2*f2*i) mod K to be performed using the loop-back.
The first modular operator 541 receives inputs of K and the output value of the first D-flip flop 531 and performs the modular operation described through
The second adder 512 outputs a result of the addition of the output value of the first modular operator 541 and (f1+f2)modK.
The second modular operator 542 receives inputs of K and the output value of the second adder 512 and performs the modular operation described through
The third adder 513 receives an input of the output value of the second modular operator 542 and outputs a result of the addition of the output value of the second modular operator 542 and the output value of the second D-flip flop 532. In an initial performance, it is not possible to receive the output value of the second D-flip flop 532 so the output value is in an unknown state.
The third modular operator 543 receives inputs of K and the output value of the third adder 513 and performs the modular operation described through
The second multiplexer 522 receives inputs of the output value of the third modular operator 543 and “0”, outputs “0” in generating a first index by a control signal, and then outputs the output value of the third adder 543 after that. The reason why “0” is generated as the first index is that a first index of the interleaver should be “0” and also a first output value of the third adder 543 is in an unknown state.
The second D-flip flop 532 receives an input of the output value of the second multiplexer 522 and temporarily stores the output value of the second multiplexer 522 because a loop-back is performed in which the output value of the second multiplexer 522 is used in the third adder 513.
Referring back to
According to another exemplary embodiment of the present invention, the main processor 210 calculates (128*f2)modK and indexes for ith to i+15th bits (here, i is an integer equal to or larger than 0) of input data and transfers them to the index operator 220. The main processor 210 transfers K, (128*f2)modK, and index values for i+jth and (i+j)+8th bits (here, 0≦j≦7) of input data to each of the eight index operators 220.
The index operator 220 calculates indexes for bits after bits calculated by the main processor 210 in parallel by using the values transferred from the main processor 210 and derives a plurality of indexes.
According to another exemplary embodiment of the present invention, the index operator 220 receives index values for i+jth and (i+j)+8th bits (here, 0≦j≦7) of input data from the main processor 210 and calculates an index for an (i+j)+16th bit by using the difference between the indexes.
In
According to another exemplary embodiment of the present invention, the index operator 220 receives (128*f2)modK and index values for i+jth and (i+j)+8th bits (here, 0≦j≦7) of input data from the main processor 220 and calculates an index for an (i+j)+16th bit by using an equation of
Π(i+j+16)=(2*Π(i+j+8)−Π(i+j)+128*f2)modK.
The index of the interleaver has the following characteristics.
1. All Ki is a multiple of eight.
2. A first index is always “0”.
3. A remainder generated by dividing a generated index by eight has a form of being repeated every eight times.
4. When first eight indexes and second eight indexes have been generated, all indexes from third eight indexes may be generated in the unit of eights.
Accordingly, the index of the interleaver satisfies the following equation.
Π(i+j+16)=(2*Π(i+j+8)−Π(i+j)+128*f2)modK
For easier understanding, the above equation is organized as follows.
The above equation is organized as follows after adding II(i) to and then subtracting II(i) from the above equation.
The above equation is organized as follows after adding 128*f2 to and then subtracting 128*f2 from the above equation.
It is preferable that the index generator 220 includes the first storage apparatus 221, the second storage apparatus 222, and the subsequent-index generator 223. The index generator 220 receives Π(i0), Π(i1), (128*f2)modK, and K from the main processor 210, calculates indexes after II(i0), and enables outputs to be sequentially output from II(i0).
The first storage apparatus 221 receives II(i0) from the main processor 210 and stores the received II(i0) at first. After that, the first storage apparatus 221 sequentially receives II(im+1) stored in the second storage apparatus 222 and stores the received II(im+1). Further, the first storage apparatus 221 transfers stored values to the subsequent-index generator 223. And then the first storage apparatus 221 sequentially outputs stored values as output values of the index operator 220.
For example, the first storage apparatus 221 stores and outputs first II(i0), the second storage apparatus 222 receives the first stored II(i1) and then stores and outputs the received II(i1), and then the second storage apparatus 222 receives II(i2) output through II(i0) and II(i1) by the subsequent-index generator 223 and then stores and outputs the received II(i2). That is, the first storage apparatus 221 sequentially stores values from II(i0) to II(im), transfers them to the subsequent-index generator 223, and outputs them as output values of the index operator 220.
The second storage apparatus 222 receives II(i1) from the main processor 210 and stores the received II(i1). After that, the second storage apparatus 222 receives II(im+2), which is an output value of the subsequent-index generator 223, and stores the received II(im+2). Further, the second storage apparatus 222 transfers stored values to the subsequent-index generator 223 and the first storage apparatus 221. That is, the second storage apparatus 222 sequentially stores values from II(i1) to II(im+1) and transfers them to the subsequent-index generator 223 and the first storage apparatus 221.
The subsequent-index generator 223 calculates II(im+2) by using K, II(im) and II(im+1) received from the first storage apparatus 221 and the second storage apparatus 223, and (128*f2)modK received from the main processor 210. It is preferable that the subsequent-index generator 223 calculates II(im+2) by using the following equation Π(im+2)=(2*Π(im+1)−Π(im)+128*f2)modK. Further, the subsequent-index generator 223 transfers the calculated II(im+2) to the second storage apparatus 222.
It is preferable that there are eight index operators 220 and the eight index operators receive (Π(0), Π(8)), (Π(1), Π(9)), (Π(2), Π(10)), (Π(3), Π(11)), (Π(4), Π(12)), (Π(5), Π(13)), (Π(6), Π(14)), (Π(7), Π(15)) to output Π(n*8), Π(n*8+1), Π(n*8+2), Π(n*8+3), Π(n*8+4), Π(n*8+5), Π(n*8+6), Π(n*8+7), respectively (n is an integer equal to or larger than 2 and equal to or smaller than (K/8−1)).
The first adder 410 adds the first input and a sign inverted second input and outputs the added value. That is, the first adder 410 subtracts the second input from the first input.
The second adder 420 adds the output value of the first adder 410 and the divisor K and outputs the added value.
The multiplexer 430 receives inputs of the output value of the first adder 410 and the output value of the second adder 420. The multiplexer outputs the output value of the first adder 410 when the output value of the first adder 410 is a positive number and outputs the output value of the second adder 420 when the output value of the first adder 410 is a negative number.
It is preferable that 2*II(im) received by the subsequent-index generator 600 according to the embodiment of the present invention may be operated by applying a bit shift through a reception of II(im) without the use of multiplier.
The first modular operator 610 receives inputs of 2*II(im) and K, and performs the modular operation described in
The second modular operator 630 receives inputs of the output value of the first modular operator 610, II(im+1), and K, and performs the modular operation described in
The adder 640 adds the output value of the second modular operator 630 and (128*f2)modK and outputs the added value.
The third modular operator 620 receives inputs of the output value of the adder 640 and K, and performs the modular operation described in
The output value of the third modular operator 620 corresponds to the output value of the subsequent-index generator 600, which is II(im+2).
It is preferable that the aforementioned multiplexer can determine whether an input value is a negative number or a positive number by using a most significant bit value.
In step S710, the index generating apparatus calculates K, f1, and f2 from input data.
In step S720, the index generating apparatus calculates indexes for predetermined bits of the input data by using K, f1, and f2 calculated in step S710.
According to an exemplary embodiment of the present invention, the index generating apparatus calculates differences between index values for bits by using the following equation Π(i+1)−Π(i)=(f1+f2+2*f2*i)modK, and calculates indexes for bits from an i+1th bit by using the calculated differences in step S720.
According to an exemplary embodiment of the present invention, the modular operation is performed using an addition and the multiplexer. The addition refers to an addition of the dividend and the sign inverted divisor of the modular operation, and the multiplexer receives inputs of a result of the addition and the dividend. The multiplexer outputs the dividend when the result of the addition is a negative number and outputs the result of the addition when the result of the addition is a positive number.
According to another exemplary embodiment of the present invention, the index generating apparatus calculates indexes for ith to i+15th bits (here, i is an integer equal to or larger than 0) of input data and (128*f2)modK in step S720.
In step S730, the index generating apparatus calculates in parallel indexes for bits after the bit calculated using the index values calculated in step S720.
According to an exemplary embodiment of the present invention, the index generating apparatus calculates indexes for bits from an i+16th bit by using the following equation
Π(i+j+16)=(2*Π(i+j+8)−Π(i+j)+128*f2)modK
(here, 0≦j≦7) in step S730.
According to another exemplary embodiment of the present invention, the index generating apparatus receives a first input, a second input, and an input of the divisor K, and uses the modular operation performed using a first addition, a second addition, and the multiplexer in step S730. Each of the operations used in the modular operation is as follows.
The first addition refers to an addition of the first input and a sign inverted second input, and the second addition refers to an addition of a result of the first addition and the divisor K. The multiplexer receives inputs of the result of the first addition and a result of the second addition.
While the detailed description of the present invention has described certain exemplary embodiments such as a portable terminal, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
200: Interleaver Index Generating Apparatus
210: Main Processor 220: Index Operator
221: First Storage Apparatus 222: Second Storage Apparatus
223: Subsequent-Index Generator
Number | Date | Country | Kind |
---|---|---|---|
10-2012-0010658 | Feb 2012 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR2012/001441 | 2/24/2012 | WO | 00 | 7/3/2014 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2013/115429 | 8/8/2013 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
7089480 | Yun | Aug 2006 | B2 |
8281086 | Chi | Oct 2012 | B2 |
20060242475 | Sandhu | Oct 2006 | A1 |
20070220377 | Park et al. | Sep 2007 | A1 |
20080091986 | Nimbalker | Apr 2008 | A1 |
20080133998 | Nimbalker | Jun 2008 | A1 |
20090138668 | Blankenship | May 2009 | A1 |
20110066914 | Lee et al. | Mar 2011 | A1 |
20110113307 | Kang | May 2011 | A1 |
20110116359 | Li | May 2011 | A1 |
Number | Date | Country |
---|---|---|
01267713 | Oct 1989 | JP |
05145429 | Jun 1993 | JP |
2006320014 | Nov 2006 | JP |
1020040026505 | Mar 2004 | KR |
1020090003986 | Jan 2009 | KR |
1020120027405 | Mar 2012 | KR |
2008057041 | May 2008 | WO |
Entry |
---|
Shuenn-Gi Lee et al., Architecture Design of QPP Interleaver for Parallel Turbo Decoding, IEEE, 2010. |
Asghar, Flexible Interleaving Sub-systems for FEC in Baseband Processors, Linkoping Studies in Science and Technology, 2010, pp. 1-216. |
European Search Report—European Application No. 12867539.4 issued on Aug. 11, 2015, citing “Efficient hardware implementation of a highly-parallel 3GPP LTE/LTE-advance turbo decoder”, “Flexible Interleaving Sub-systems for FEC in Baseband Processors”, US 2009/138668 and WO 2008/057041. |
Sun, et al., Efficient hardware implementation of a highly-parallel 3GPP LTE/LTE-advance turbo decoder, Integration, the VLSI journal, 2011, pp. 305-315. |
International Search Report—PCT/KR2012/001441 dated Feb. 19, 2013. |
Number | Date | Country | |
---|---|---|---|
20150026535 A1 | Jan 2015 | US |