The present invention relates to maximum a posteriori (MAP) decoding of convolutional codes and in particular to a decoding method and a turbo decoder based on the LOG-MAP algorithm.
In the field of digital data communication, error-correcting circuitry, i.e. encoders and decoders, is used to achieve reliable communications on a system having a low signal-to-noise ratio (SNR). One example of an encoder is a convolutional encoder, which converts a series of data bits into a codeword based on a convolution of the input series with itself or with another signal. The codeword includes more data bits than are present in the original data stream. Typically, a code rate of ½ is employed, which means that the transmitted codeword has twice as many bits as the original data. This redundancy allows for error correction. Many systems also additionally utilize interleaving to minimize transmission errors.
The operation of the convolutional encoder and the MAP decoder are conveniently described using a trellis diagram which represents all of the possible states and the transition paths or branches between each state. During encoding, input of the information to be coded results in a transition between states and each transition is accompanied by the output of a group of encoded symbols. In the decoder, the original data bits are reconstructed using a maximum likelihood algorithm e.g. Viterbi Algorithm. The Viterbi Algorithm is a decoding technique that can be used to find the Maximum Likelihood path in the trellis. This is the most probable path with respect to the one described at transmission by the coder.
The basic concept of a Viterbi decoder is that it hypothesizes each of the possible states that the encoder could have been in and determines the probability that the encoder transitioned from each of those states to the next set of encoder states, given the information that was received. The probabilities are represented by quantities called metrics, of which there are two types: state metrics α (β for reverse iteration), and branch metrics γ. Generally, there are two possible states leading to every new state, i.e. the next bit is either a zero or a one. The decoder decides which is the most likely state by comparing the products of the branch metric and the state metric for each of the possible branches, and selects the branch representing the more likely of the two.
The Viterbi decoder maintains a record of the sequence of branches by which each state is most likely to have been reached. However, the complexity of the algorithm, which requires multiplication and exponentiations, makes the implementation thereof impractical. With the advent of the LOG-MAP algorithm implementation of the MAP decoder algorithm is simplified by replacing the multiplication with addition, and addition with a MAX operation in the LOG domain. Moreover, such decoders replace hard decision making (0 or 1) with soft decision making (Pk0 and Pk1). See U.S. Pat. No. 5,499,254 (Masao et al) and U.S. Pat. No. 5,406,570 (Berrou et al) for further details of Viterbi and LOG-MAP decoders. Attempts have been made to improve upon the original LOG-MAP decoder such as disclosed in U.S. Pat. No. 5,933,462 (Viterbi et al) and U.S. Pat. No. 5,846,946 (Nagayasu).
Recently turbo decoders have been developed. In the case of continuous data transmission, the data stream is packetized into blocks of N data bits. The turbo encode provides systematic data bits and includes first and second constituent convolutional recursive encoders respectively providing e1 and e2 outputs of codebits. The first encoder operates on the systematic data bits providing the e1 output of code bits. An encoder interleaver provides interleaved systematic data bits that are then fed into the second encoder. The second encoder operates on the interleaved data bits providing the e2 output of the code bits. The data uk and code bits e1 and e2 are concurrently processed and communicated in blocks of digital bits.
However, the standard turbo-decoder still has shortcomings that need to be resolved before the system can be effectively implemented. Typically, turbo decoders need at least 3 to 7 iterations, which means that the same forward and backward recursions will be repeated 3 to 7 times, each with updated branch metric values. Since a probability is always smaller than 1 and its log value is always smaller than 0, α, β and γ all have negative values. Moreover, every time γ is updated by adding a newly-calculated soft-decoder output after every iteration, it becomes an even smaller number. In fixed point representation too small a value of γ results in a loss of precision. Typically when 8 bits are used, the usable signal dynamic range is −255 to 0, while the total dynamic range is −255 to 255, i.e. half of the total dynamic range is wasted.
In a prior attempt to overcome this problem, the state metrics α and β have been normalized at each state by subtracting the maximum state metric value for that time. However, this method results in a time delay as the maximum value is determined. Current turbo-decoders also require a great deal of memory in which to store all of the forward and reverse state metrics before soft decision values can be calculated.
An object of the present invention is to overcome the shortcomings of the prior art by increasing the speed and precision of the turbo decoder while better utilizing the dynamic range, lowering the gate count and minimizing memory requirements.
In accordance with the principles of the invention the quantities j(Rk,sj′,s)(j=0, 1) used in the recursion calculation employed in a turbo decoder are first normalized. This results in an increase in the dynamic range for a fixed point decoder.
According to the present invention there is provided a method of decoding a received encoded data stream having multiple states s, comprising the steps of:
The invention also provides a decoder for a convolutionally encoded data stream, comprising:
The processor speed can also be increased by performing an Smax operation on the resulting quantities of the recursion calculation. This normalization is simplified with the Smax operation.
The present invention additionally relates to a method for decoding a convolutionally encoded codeword using a turbo decoder with x bit representation and a dynamic range of 2x−1 to −(2x−1), comprising the steps of:
Another aspect of the present invention relates to a method for decoding a convolutionally encoded codeword using a turbo decoder with x bit representation and a dynamic range of 2x−1 to −(2x−1), comprising the steps of:
Another aspect of the present invention relates to a method for decoding a convolutionally encoded codeword using a turbo decoder, comprising the steps of:
The apparatus according to the present invention is defined by a turbo decoder system with x bit representation for decoding a convolutionally encoded codeword comprising:
receiving means for receiving a sequence of transmitted signals;
first trellis means with block length N defining possible states and transition branches of the convolutionally encoded codeword;
first decoding means for decoding said sequence of signals during a forward iteration through said first trellis, said first decoding means including:
second trellis means with block length N defining possible states and transition branches of the convolutionally encoded codeword;
second decoding means for decoding said sequence of signals during a reverse iteration through said trellis, said second decoding means including:
soft decision calculating means for determining the soft decision values Pk0 and Pk1; and
LLR calculating means for determining the log likelihood ratio for each state to obtain a hard decision therefor.
Another feature of the present invention relates to a turbo decoder system, with x bit representation having a dynamic range of 2x−1 to −(2x−1), for decoding a convolutionally encoded codeword, the system comprising:
receiving means for receiving a sequence of transmitted signals:
first trellis means defining possible states and transition branches of the convolutionally encoded codeword;
first decoding means for decoding said sequence of signals during a forward iteration through said first trellis, said first decoding means including:
second trellis means with block length N defining possible states and transition branches of the convolutionally encoded codeword;
second decoding means for decoding said sequence of signals during a reverse iteration through said trellis, said second decoding means including:
soft decision calculating means for calculating the soft decision values Pk0 and Pk1; and
LLR calculating means for determining the log likelihood ratio for each state to obtain a hard decision therefor.
Yet another feature of the present invention relates to a turbo decoder system for decoding a convolutionally encoded codeword comprising:
receiving means for receiving a sequence of transmitted signals:
first trellis means with block length N defining possible states and transition branches of the convolutionally encoded codeword;
first decoding means for decoding said sequence of signals during a forward iteration through said first trellis, said first decoding means including:
second trellis means with block length N defining possible states and transition branches of the convolutionally encoded codeword;
second decoding means for decoding said sequence of signals during a reverse iteration through said trellis, said second decoding means including:
soft decision calculating means for determining soft decision values Pk0 and Pk1; and
LLR calculating means for determining the log likelihood ratio for each state to obtain a hard decision therefor;
wherein the soft decision calculating means includes:
The invention now will be described in greater detail with reference to the accompanying drawings, which illustrate a preferred embodiment of the invention, wherein:
With reference to
As will be understood by one skilled in the art, the circuit shown in
where R1k represents the received information bits and parity bits from time index 1 to k[1], and
A similar structure can also be applied to the backward recursion of βk.
In
γj(Rk,s′j,s)=log(Pr(dk=j,Sk=s,Rk|Sk−1=s′j))
where Rk represents the received information bits and parity bits at time index k and dk represents the transmitted information bit at time index k[1].
A trellis diagram (
Once all of the soft decision values are determined and the required number of iterations are executed the log-likelihood ratio (LLR) can be calculated according to the following relationships:
associated with kth bit
In the decoder shown in
Also, a typical turbo decoder requires at least 3 to 7 iterations, which means that the same α and β recursion will be repeated 3 to 7 times, each with updated γj(Rk,s0′,s)(j==0, 1) values. Since the probability is always smaller than 1 and its log value is always smaller than zero, α, β are γ are all negative values. The addition of any two negative values will make the output more negative. When γ is updated by adding a newly calculated soft decoder output, which is also a negative value, γ becomes smaller and smaller after each iteration. In fixed point representation, too small value for γ means loss of precision. In the worst case scenario, the decoder could be saturated at the negative overflow value, which is 0×80 for b but implementation.
With reference to
The following is a description of the preferred branch metric normalization system. Initially, the branch metric normalization system 13 determines which branch metric γ0 or γ1 is greater. Then, the branch metric with the greater value is subtracted from both of the branch metrics, thereby making the greater of the branch metrics 0 and the smaller of the branch metrics the difference. This relationship can also be illustrated using the following equation
γ0′=0, if γ0>γ1,
or
γ0−γ1, otherwise
γ1′=0, if γ1≧γ0
or
γ1−γ0 otherwise
Using this implementation, the branch metrics γ0 and γ1 are always normalized to 0 in each turbo decoder iteration and the dynamic range is effectively used thereby avoiding ever increasingly smaller values.
In another embodiment of the present invention in an effort to utilize the entire dynamic range and decrease the processing time of the state metric normalization term, e.g. the maximum value of αk(s), is replaced by the maximum value of αk−1(s), which is pre-calculated using the previous state αk−1(s). This alleviates any delay between summator 4 and subtractor 5 while the maximum value of αk(s) is being calculated.
Alternatively, according to another embodiment of the present invention, the state metric normalization term is replaced by a variable term NT, which is dependent upon the value of αk−1(s) (see Box 12 in
For example in 8 bit representation:
if any of αk−1(s) (s=1, 2 . . . M) is greater than zero, then the NT is 4, i.e. 4 is subtracted from all of the αk(s);
if all of αk−1(s) are less than 0 and any one of αk−1(s) is greater than −64, then the NT is −31, i.e. 31 is added to all of the αk(s);
if all of αk−1(s) are less than −64, then the NT is the bit OR value of each αk−1(s).
In other words, whenever the values of αk−1(s) approach the minimum value in the dynamic range, i.e. −(2x−1), they are adjusted so that they are closer to the center of the dynamic range.
The same values can be used during the reverse iteration.
This implementation is much simpler than calculating the maximum value of M states. However, it will not guarantee that αk(s) and βk(s) are always less than 0, which a log-probability normally defines. However, this will not affect the final decision of the turbo-decoder algorithm. Moreover, positive values of αk(s) and βk(s) provide an advantage for the dynamic range expansion. By allowing αk(s) and βk(s) to be greater than 0, by normalization, the other half of the dynamic range (positive numbers), which would not otherwise be used, will be utilized.
In
To further simplify the operation, “Smax” is used to replace the true “max” operation as shown in
If any of αk−1(s=1, 2, . . . M) is larger than zero, the Smax output will take a value 4 (0×4), which means that 4 should be subtracted from all αk(s).
If all αk−1(s) are smaller than zero and one of αk−1(s) is larger than −64, the Smax will take a value −31 (0xe1), which means that 31 should be added to all αk(s).
If all αk−1(s) are smaller than −64, the Smax will take the bit OR value of all αk−1(s).
The novel implementation is much simpler than the prior art technique of calculating the maximum value of M states, but it will not guarantee that αk(s) is always smaller than zero. This does not affect the final decision in the turbo-decoder algorithm, and the positive value of αk(s) can provide an extra advantage for dynamic range expansion. If αk(s) are smaller than zero, only half of the 8-bit dynamic range is used. By allowing αk(s) to be larger than zero with appropriate normalization, the other half of the dynamic range, which would not normally be used, is used.
A similar implementation can be applied to the βk(s) recursion calculation.
By allowing the log probability αk(s) to be a positive number with appropriate normalization, the decoder performance is not affected and the dynamic range can be increased for fixed point implementation. The same implementation for forward recursion can be easily implemented for backward recursion.
Current methods using soft decision making require excessive memory to store all of the forward and the reverse state metrics before soft decision values Pk0 and Pk1 can be calculated. In an effort to eliminate this requirement the forward and backward iterations are performed simultaneously, and the Pk1 and Pk0 calculations are commenced as soon as values for βk and αk−1 are obtained. For the first half of the iterations the values for α−1 to at least αN/2-2, and βN-1 to at least βN/2 are stored in memory, as is customary. However, after the iteration processes overlap on the time line, the newly-calculated state metrics can be fed directly to a probability calculator as soon as they are determined along with the previously-stored values for the other required state metrics to calculate the Pk0, the Pk1. Any number of values can be stored in memory, however, for optimum performance only the first half of the values should be saved. Soft and hard decisions can therefore be arrived at faster and without requiring an excessive amount of memory to store all of the state metrics. Ideally two probability calculators are used simultaneously to increase the speed of the process. One of the probability calculators utilizes the stored forward state metrics and newly-obtained backward state metrics βN/2-2 to β0. This probability calculator determines a Pk0 low and a Pk1 low. Simultaneously, the other probability calculator uses the stored backward state metrics and newly-obtained forward state metrics αN/2-1 to αN-2 to determine a Pk1 high and a Pk0 high.
Number | Date | Country | Kind |
---|---|---|---|
0004765 | Mar 2000 | GB | national |
Number | Name | Date | Kind |
---|---|---|---|
4802174 | Hiraiwa et al. | Jan 1989 | A |
5721746 | Hladik et al. | Feb 1998 | A |
5933462 | Viterbi et al. | Aug 1999 | A |
6014411 | Wang | Jan 2000 | A |
6028899 | Petersen | Feb 2000 | A |
6189126 | Ulmer et al. | Feb 2001 | B1 |
6400290 | Langhammer et al. | Jun 2002 | B1 |
6477679 | Such et al. | Nov 2002 | B1 |
6484283 | Stephen et al. | Nov 2002 | B2 |
6510536 | Crozier et al. | Jan 2003 | B1 |
6563877 | Abbaszadeh | May 2003 | B1 |
6807239 | Sugimoto et al. | Oct 2004 | B2 |
Number | Date | Country |
---|---|---|
0 409 205 | Jul 1990 | EP |
0963048 | Aug 1999 | EP |
Number | Date | Country | |
---|---|---|---|
20010021233 A1 | Sep 2001 | US |