AN OPTIMAL SOFT-OUTPUT DECODER FOR TAIL-BITING TRELLIS CODES

Abstract: A circular MAP decoder for error-correcting trellis codes that employ tail biting produces soft-decision outputs provides an estimate of the probabilities of the states in the first stage of the trellis, which probabilities replace the a priori knowledge of the starting state in a conventional MAP decoder. The circular MAP decoder provides the initial state probability distribution in either of two ways. The first involves a solution to an eigenvalue problem for which the resulting eigenvector is the desired initial state probability distribution; with knowledge of the starting state, the circular MAP decoder performs the rest of the decoding according to the MAP decoding algorithm. The second is based on arecursion for which the iterations converge to a starting state distribution. After sufficient iterations, a state on the circular sequence of states is known with high probability, and the circular MAP decoder performs the rest of the decoding according to the MAP decoding algorithm.

Description: AN OPTIMAL SOFT-OUTPUT DECODER FOR TAIL-BITING TRELLIS CODES Field of the Invention The present invention relates generally to decoders for error- correcting codes and, more particularly, to a decoder for tail-biting trellis codes. Background of the Invention The Viterbi algorithm (VA) is a maximum-likelihood decoding method which determines the most probable data sequence or word for the case of additive white Gaussian channel noise; i.e., it minimizes the probability of a decoded word error. This scheme is essentially a dynamic program to find the path through the code trellis that is closest to the received sequence of channel outputs. On the other hand, the symbol or bit error probability is minimized by using a so-called maximum a posteriori (MAP) decoder. The MAP decoder was first formally described by Bahl, Cocke, Jelinek and Raviv (hence the alternative name "the BCJR algorithm") in "Optimal Decoding of Linear codes for Minimizing Symbol Error Rate," IEEE Transactions on Information Theory, pp. 284-287, March 1974. The term MAP decoder, or BCJR Algorithm, is taken herein to mean a data decoder that puts out a probability distribution of the states at each stage of the trellis and that may also take in a priori knowledge of the data bit statistics. The MAP decoder is optimal in the sense that it produces these state probabilities, or "soft output," with perfect accuracy while other, albeit simpler, decoders exist that can produce only an approximation to these probabilities. Variants of the algorithm put out related information, such as the probability distribution of the data symbols at each stage, or the distribution of the encoder output symbols at each stage. A MAP decoder requires that the starting state in a trellis code transmission be known, and in some applications, that the ending state be known as well. Unfortunately, therefore, a MAP decoder cannot be used for decoding trellis codes which employ tail-biting, i.e., codes for which the starting and ending states of the encoder cannot be known in advance. In particular, a trellis code transmission is said to employ "tail biting" when the starting state of the encoder is identical to the eventual ending state for a given block of input bits. It is straightforward for a feed-forward encoder to know from the data bits what the ending state will be; it is merely the last km bits of the message block, where k is the number of bits per encoder input symbol and m is the code's memory. A tail-biting encoder is to be distinguished from an ordinary encoder in which the starting state is a pre-arranged state, usually the all-zero state. Ordinary encoders may also terminate in a pre-arranged state by appending a "tail" of km bits to the input message block. What distinguishes a tail-biting decoder is that it must estimate the encoder's starting state in addition to its other functions. Since a tail-biting encoder has a cylindrical trellis, a codeword generated by such an encoder may be visualized as a circle of symbols. The decoder must start from some arbitrary point on the circle, achieve a measure of synchronization, and then decode the data bits. A number of tail-biting decoders have been proposed that are analogs to the VA decoder, that is, they produce a maximum likelihood estimate of the circular trellis codeword. A soft -output decoder, on the other hand, would have to estimate the state probabilities around the cylindrical trellis, and no such decoder is presently available. In particular, as explained hereinabove, a soft -output MAP decoder requires that the starting state in the trellis be known, and in some applications, that the ending state be known as well. Hence, application of the MAP decoder is limited to ordinary codes without tail biting which, in turn, has precluded obtaining the advantages of tail biting in improving the error correction performance of systems that transmit shoπ data blocks (e.g., in packet transmission) when true, soft output is needed Accordingly, it is desirable to provide an accurate, low- complexity, soft-output decoder for tail-biting trellis codes. Summarv of the Invention In accordance with the present invention, a circular MAP decoder for error-correcting trellis codes that employ tail biting produces soft- decision outputs. The circular MAP decoder provides an estimate of the probabilities of the states in the first stage of the trellis, which probabilities replace the a priori knowledge of the starting state in a conventional MAP decoder. According to the present invention, the circular MAP decoder provides the initial state probability distribution in either of two ways. The first involves a solution to an eigenvalue problem for which the resulting eigenvector is the desired initial state probability distribution; with knowledge of the starting state, the circular MAP decoder performs the rest of the decoding according to the MAP decoding algorithm. The second is based on a recursion for which the iterations converge to a starting state distribution. After sufficient iterations, a state on the circular sequence of states is known with high probability, and the circular MAP decoder performs the rest of the decoding according to the MAP decoding algorithm. Brief Description of the Drawings The features and advantages of the present invention will become apparent from the following detailed description of the invention when read with the accompanying drawings in which: FIG. 1 illustrates a cylindrical trellis for a four-state tail-biting trellis code having binary input symbols; FIG.2 illustrates circular encoder state and encoder output sequences for a tail-biting trellis code; FIG. 3 is a simplified block diagram illustrating one embodiment of a circular MAP decoder in accordance with the present invention; FIG. 4 illustrates a time line for a circular MAP decoder in accordance with the present invention; FIG.5 illustrates a time line for a preferred embodiment of a circular MAP decoder in accordance with the present invention; FIG. 6 graphically illustrates bit error rate versus signal-to-noise ratio for a circular MAP decoder when decoding a rate ■ = r • memory = 6 tail- biting convolution^ code in accordance with the present invention; FIG. 7 graphically illustrates bit error rate versus signal-to-noise ratio with biased source statistics for a circular MAP decoder when decoding a rate = **■* , memory = 6 tail-biting convolutional code in accordance with the present invention; and FIG. 8 is a simplified block diagram illustrating a preferred embodiment of a circular MAP decoder in accordance with the present invention. Detailed Description of the Invention A tail-biting encoder has a cylindrical trellis; therefore, a codeword generated by such an encoder may be visualized as a circle of symbols. FIG. 1 illustrates an examplary cylindrical trellis for a tail-biting trellis encoder having four states and binary input symbols. The lack of a priori knowledge regarding the initial state of the encoder in the case of such tail-biting trellis codes degrades the reliability of decoding via the standard MAP (or BCJR) decoding algorithm for the first portion of a received message. The encoder output sequence for a tail-biting trellis code forms a circular pattern as depicted in FIG. 2. The encoder states are viewed as being arranged around a circle. If S 0 is one of these states, the encoder starts from shift register state S 0 at that time to in the encoding process and, after traversing around the circle in a series of state transitions, ends in the same state S 0 . A decoder that works with the encoded sequence as a circle in this way with each encoder state leading to the next one around the circle is a tail-biting or circular decoder. In accordance with the present invention, a circular MAP decoder for error-correcting trellis codes that employ tail biting produces soft- decision ouφuts. By way of contrast, in a conventional MAP decoder, the decoder is given a starting state, or trellis node; it then decodes the encoder trellis path that descends from this state. In a tail-biting decoder, however, the decoder must first identify a state in the encoder state sequence, and only then can it begin decoding. The circular MAP decoder according to the present invention provides an estimate of the probabilities of the states in the first stage of the trellis, which probabilities replace the a priori knowledge of the starting state in a conventional MAP decoder. The circular MAP decoder of the present invention provides the initial state probability distribution in either of two ways. The first involves a solution to an eigenvalue problem for which the resulting eigenvector is the desired initial state probability distribution; with knowledge of the starting state, the circular MAP decoder performs the rest of the decoding according to the conventional MAP (or BCJR) decoding algorithm. The second is based on a certain recursion for which the iterations converge to a starting state distribution. After sufficient iterations, a state on the circular sequence of states is known with high probability, and the circular MAP decoder performs the rest of the decoding according to the conventional MAP (or BCJR) decoding algorithm. The objective of the conventional MAP ( or BCJR) decoding algorithm is to find the conditional probabilities: Pfstate m at time t / receive channel ouφuts y j ,...,yι) • The term L in this expression represents the length of the data block in units of the number of encoder symbols. (The encoder for an (n, k) code operates on k- bit input symbols to generate n-bit output symbols.) The teπny, is the channel output (symbol) at time t. The MAP decoding algorithm actually first finds the probabilities: λ/m) = P(S t = m; rj) ; (1) that is, the joint probability that the encoder state at time t, 5, , is m and the set of channel ouφuts YJ = {y l yj is received. These are the desired probabilities multiplied by a constant (Pfϊ j ), the probability of receiving the set of channel outputs {y } ,...,y j j) . Now define the elements of a matrix -TJ by r/ij) = P {state j at time t; y t / state i at time t-I .} The matrix -T, is calculated as a function of the channel transition probability R(Y t , X), the probability prfm/m') that the encoder makes a transition from state m' to m at time r, and the probability q^Xlm',m) that the encoder's output symbol is X given that the previous encoder state is m and the present encoder state is m. In particular, each element of r, is calculated by summing over all possible encoder ouφuts X as follows: (2) γ{m',m) = ∑pdm/m') q,(X/m',m) R(Y,, X) . X The MAP decoder calculates L of these matrices, one for each trellis stage. They are formed from the received channel output symbols and the nature of the trellis branches for a given code. Next define the M joint probability elements of a row vector α. by <x,(j) = Pfstatej at time t; y j ,...,y,} (3) and the M conditional probability elements of a column vector β t by β,(J) = p {y t +i'- yL 1 5tate J at time $ (4 > for j = 0,1 (M-l) where M is the number of encoder states. (Note that matrices and vectors are denoted herein by using boldface type.) The steps of the MAP decoding (or BCJR) algorithm are as follows: (i) Calculate α 7 , ..., a L by the forward recursion: α, = a hi r t , t=l,...JL . (5) (ii) Calculate β ]t .... β L _ j by the backward recursion: (iii) Calculate the elements of λ\ by: λ/i) = afi) β/i) , all i, t=l,...JL . (7) (iv) Find related quantities as needed. For example, let Af be the set of states 5, = {S , Sr Sr*} such that the j* element of S tl S*. is equal to zero. For a conventional non-recursive trellis code, & t = d t, the j J - **1 data bit at time t. Therefore, the decoder's soft-decision output is where P{Y^} = ∑λ L (m) and m m is the index that corresponds to a state S t . The decoder's hard-decision or decoded bit output is obtained by applying P{d ( = 0/rή} to the following decision rule: / That is, if/γ</ = 0/ ϊjy > j, then &-J ! » 0; if P{J = 0/ Y^} < j , then 2*^ ' = 1; otherwise, randomly assign d the value 0 or 1. As another example of a related quantity for step (iv) hereinabove, the matrix of probabilities σ ( comprises elements defined as follows: σ. (i,j) = P(S,.ι = i; S, = j; ή) = α,. y (i) γ t (i, j) β t (j) These probabilities are useful when it is desired to determine the a posteriori probability of the encoder ouφut bits. In the standard application of the MAP decoding algorithm, the forward recursion is initialized by the vector O Q = (1,0 0), and the backward recursion is initialized by β L = (1,0, ...0) τ These initial conditions are based on assumptions that the encoder's initial state S 0 = 0 and its ending state S L = 0. In accordance with one embodiment of the present invention, the circular MAP decoder determines the initial state probability distribution by solving an eigenvalue problem as follows. Let ct { , β r F, and λ ( be as before, but take the initial O Q and β L as follows: Set β L to the column vector ( 111... l) τ . Let O Q be an unknown (vector) variable. Then, (i) Calculate if. for t = 1, 2, ... L according to equation (2). (ii) Find the largest eigenvalue of the matrix product f / F 2 ... T L . Normalize the corresponding eigenvector so that its components sum to unity. This vector \ V L] is the solution for O Q . The eigenvalue is Pj (iii) Form the succeeding a ( by the forward recursion set forth in equation (5). (iv) Starting from β L , initialized as above, form the β t by the backward recursion set forth in equation (6). (v) Form the λ t as in (7), as well as other desired variables, such as, for example, the soft-decision ouφut Pfd - 011.} or the matrix of probabilities O r described hereinabove. The inventors have shown that the unknown variable O Q satisfies the matrix equation From the fact that this formula expresses a relationship among probabilities, we know that the product of f) matrices on the right has largest eigenvalue equal to that the corresponding eigenvector must be a probability vector. With the initial β L = (Ul...l) τ , equation (6) gives β L , j . Thus, repeated applications of this backward recursion give all the β t . Once <X Q is known and β L is set, all computations in the circular MAP decoder of the present invention follow the conventional MAP decoding algorithm. FIG. 3 is a simplified block diagram illustrating a circular MAP decoder 10 for decoding an error-correcting tail-biting trellis code in accordance with the eigenvector method described hereinabove. Decoder 10 comprises a r t calculator 12 which calculates J " ) as a function of the channel output y t . The r t calculator receives as inputs the following from a memory 30: the channel transition probability R(Yt, X), the probability P t (m/m') that the encoder makes a transition from state m to m at time t, and the probability qάXIm'jn) that the encoder's ouφut symbol is X given that the previous encoder state is m' and the present encoder state is m. The f) calculator calculates each element of -T, by summing over all possible encoder ouφuts X in accordance with equation (2). The calculated values of f} are provided to a matrix product calculator 14 to form the matrix product r, r 2 ... Γ L using an identity matrix 16, e.g., received from memory, a switch 18 and a delay circuit 20. At time t = 1, the identity matrix is applied as one input to the matrix product calculator. t-l For each subsequent time from / = 2 to t = L, the matrix product J~| T * gets 1= 1 fed back via the delay circuit to the matrix product calculator. Then, at time t = L, the resulting matrix product is provided via a switch 21 to a normalized eigenvector computer 22 which calculates the normalized eigenvector corresponding to the largest eigenvalue of the matrix product input thereto. With ceo tiius initialized, i.e., as this normalized eigenvector, the succeeding α* vectors are determined recursively according to equation (5) in a matrix product calculator 24 using a delay 26 and switch 28 circuitry, as shown. Appropriate values of i " ) are retrieved from a memory 30, and the resulting α* are then stored in memory 30. The values of β t are determined in a matrix product calculator 32 using a switch 34 and delay 36 circuitry according to equation (6). Then, the probabilities A, are calculated from the values of cr* and β t in an element-by- element product calculator 40 according to equation (7). The values of Λ/ are provided to a decoded bit value probability calculator 50 which determines the probability that the j Λ decoded bit at time t, d , equals zero. This probability is provided to a threshold decision device 52 which implements the following decision rule: If the probability from calculator 50 is greater than ** ; . then decide that the decoded bit is zero; if the probability is less than * j , then decide that the decoded bit is one; if it equals ** > . then the decoded bit is randomly assigned the value 0 or 1. The ouφut of the threshold decision device is the decoder's ouφut bit at time t. The probability that the decoded bit equals zero (Pfd = 0}) is also shown in FIG. 3 as being provided to a soft ouφut function block 54 for providing a function of the probability, i.e., f(Pfd = 0}), such as, for example, the likelihood ratio as the decoder's soft-decision ouφut. Another useful function of Pfd = 0} is the log likelihood ratio . Alternatively, a useful function for block 54 may simply be the identity function so that the soft output is just Pfd - 0} . A circular MAP decoder according to an alternative embodiment of the present invention determines the state probability distributions by a recursion method. In particular, in one embodiment (the dynamic convergence method), the recursion continues until decoder convergence is detected . In this recursion (or dynamic convergence) method, steps (ii) and (iii) of the eigenvector method described hereinabove are replaced as follows: (ii.a) Starting with an initial O Q equal to (UM,..., UM), where M is the number of states in the trellis, calculate the forward recursion L times. Normalize the results so that the elements of each new α. sum to unity. Retain all L a t vectors. (ii.b) Let O Q equal a L from the previous step and, starting &t t = l, calculate the first L w a. probability vectors again. min ' M-l That is, calculate a/m) = ∑a t . ] (i) yf,i,m) for m = 0, 1 M-l and t = t=0 12,...^ where L w is a suitable minimum number of trellis stages. min min Normalize as before. Retain only the most recent set of L o's found by the recursion in steps (ii.a) and (ϋ.b) and the a L found previously in step w min (ϋ.a). (ii.c) Compare a L from step (ii.b) to the previously found set from step w min (ii.a). If the M corresponding elements of the new and old a L are within a ~ w min tolerance range, proceed to step (iv) set forth hereinabove. Otherwise, continue to step (ii.d). (ii.d) Let t = t + 1 and calculate a t = a hj T r Normalize as before. Retain only the most recent set of L a's calculated and the a t found previously in step (ii.a). (ii.e) Compare the new a t 's to the previously found set. If the M new and old a t 's are within a tolerance range, proceed to step (iv). Otherwise, continue with step (ii.d) if the two most recent vectors do not agree to within the tolerance range and if the number of recursions does not exceed a specified maximum (typically 2L); proceeding to step (iv) otherwise. The circular "time line" of FIG. 4 summarizes the process of steps (ii.a) - (ii.e) above for calculating the a { for t = 1, 2 L for the circular MAP decoder, resulting in an estimation of all L α. vectors. This method then continues with steps (iv) and (v) given hereinabove with respect to the eigenvector method to produce the soft-decision ouφuts and decoded ouφut bits of the circular MAP decoder. In the circular MAP decoder, note that O Q is initialized as O Q = (1/M 1/M) since the initial encoder state is unknown. It is also assumed that all M initial states are equally likely. (If this is not true, the initial values a^m) can be assigned according to any a priori knowledge regarding the probabilities of the initial starting state. Thus, the decoder described herein is also advantageously applicable to partial tail-biting trellis codes.) An explanation of the operation of the circular MAP decoder according to the present invention is facilitated by considering the definition of a/m) . The term a/m) is the joint probability that the encoder is in state m at time t and that the decoder has observed the symbol sequence (y j ,...,y t ) from the channel. Examination of equation (5), the recursive calculation of α., reveals the effect of not knowing the initial state of the tail-biting trellis encoder. It is evident from equation (5) that not knowing the initial state of the tail-biting trellis encoder will bias aj(m) in the sense that the computed joint probability that the encoder is in state m at time t - 1 and that the decoder has observed the the channel ouφut y ; will be greater than is actually the case for descendents of incorrect initial states and less than is actually the case for descendents of the correct initial state. While this bias will tend to propagate due the recursive calculation of a/m), it also fortunately tends to decrease with the observation of more channel ouφut symbols. Therefore, if the message block length L is large enough, the a L (m) will be much more accurate than the Oςfm) since the decoder now has the benefit of observing the entire sequence of symbols from the channel. The a L (m) may now be used as the θø(m) in a second decoding iteration as indicated in step (ii.b) above. Advantageously, the recursive (or dynamic convergence) method according to the present invention compares the values obtained from each iteration and terminates the recursive calculation of α, when convergence is detected. Hence, this technique reduces the number of calculations required as it is often not necessary to recompute α, for all L trellis stages. In another alternative embodiment of the present invention, a circular MAP decoder using the recursion method described hereinabove is modified so that the decoder only needs to process a predeterrnined, fixed number of trellis stages for a second time, that is, a predeterrnined wrap depth. This is advantageous for implementation purposes because the number of computations required for decoding is the same for every encoded message block. Consequently, hardware and software complexities are reduced. The wrap depth described herein is found in the context of a bounded distance decoder which is a decoder that corrects any combination ofe or fewer errors occurring in the observation length L obs trellis levels. This extends directly to decoders built to achieve other criteria, such as the minimization of decoder error probability. One way to estimate the required wrap depth for MAP decoding of a tail-biting convolutional code is to determine it from hardware or software experimentation, requiring that a circular MAP decoder with a variable wrap depth be implemented and experiments be conducted to measure the decoded bit error rate versus EJ/N Q for successively increasing wrap depths. The minimum decoder wrap depth that provides the minimum probability of decoded bit error for a specified is found when further increases in wrap depth do not decrease the error probability. If a decoded bit error rate that is greater than the minimum achievable at a specified is tolerable, it is possible to reduce the required number of trellis stages processed by the circular MAP decoder. In particular, the wrap depth search described hereinabove may simply be terminated when the desired average probability of bit error is obtained. Another way to determine the wrap depth for a given code is by using the code's distance properties. To this end, it is necessary to define two distinct decoder decision depths. As used herein, the term "correct path" refers to the sequence of states or a path through the trellis that results from encoding a block of data bits. The term "incorrect subset of a node" refers to the set of all incorrect (trellis) branches out of a coσect path node and their descendents. Both the decision depths defined below depend on the convolutional encoder. (For illustrative purposes, this embodiment of the present invention is described herein with reference to a convolutional encoder, however, it is to be understood that the present invention is not limited to convolutional codes. ) The decision depths are defined as follows: (i) Define the forward decision depth for e-error correction, LF(e) , to be the first depth in the trellis at which all paths in the incorrect subset of a correct path initial node, whether later merging to the correct path or not, lie more than a Hamming distance 2e from the correct path. The significance of LF(e) is that if there are e or fewer errors forward of the initial node, and encoding is known to have begun there, then the decoder must decode correctly. A formal tabulation of forward decision depths for convolutional codes was provided by J.B. Anderson and K. Balachandran in "Decision Depths of Convolutional Codes", IEEE Transactions on Information Theory, vol. IT-35, pp. 455-59, March 1989. A number of properties of LF(e) are disclosed in this reference and also by J.B. Anderson and S. Mohan in Source and Channel Coding - An Algorithmic Approach, Kluwer Academic Publishers, Norwell, MA, 1991. Chief among these properties is that a simple linear relation exists between LF and e; for example, with rate 112 codes, LF is approximately 9.08e . (ii) Next define the unmerged decision depth for e-error correction, LUfe) , to be the first depth in the trellis at which all paths in the trellis that never touch the correct path lie more than a Hamming distance of 2e away from the correct path. The significance ofLU(e) for soft-decision circular MAP decoding is that the probability of identifying a state on the actual transmitted path is high after the decoder processes LU(e) trellis stages. Therefore, the minimum wrap depth for circular MAP decoding is LXJ(e). Calculations of the depth LUfe) show that it is always larger than LF(e) but that it obeys the same approximate law. This implies that the minimum wrap depth can be estimated as the forward decision depth LF(e) if the unmerged decision depth of a code is not known. By finding the minimum unmerged decision depth for a given encoder, we find the fewest number of trellis stages that must be processed by a practical circular decoder that generates soft-decision ouφuts. An algorithm to find LF(e), the forward decision depth, was given by J.B. Anderson and K. Balachandran in "Decision Depths of Convolutional Codes", cited hereinabove. To find LU(e): (i) Extend the code trellis from left to right, starting from all trellis nodes simultaneously, except for the zero-state. (ii) At each level, delete any paths that merge to the correct (all- zero) path; do not extend any paths out of the correct (zero) state node. (iϋ) At level k, find the least Hamming distance, or weight, among paths terminating at nodes at this level. (iv) If this least distance exceeds 2e, stop. Then, LU(e) = k. Experimentation via computer simulation has lead to two unexpected results: (1) wrapped processing of'/7. improves decoder performance; and (2) the use of a wrap depth of LU(e) + LF(e) =2 LF(e) improves performance significantly. These unexpected results precipitated modifications of the circular MAP decoder for tail-biting trellis codes based on recursion. Hence, a preferred embodiment of the circular MAP decoder algorithm based on recursion comprises the following steps: (i) Calculate T. for t = 1, 2, ... L according to equation (2). (ii) Starting with an initial O Q equal to (1/M 1/M), where M is the number of states in the trellis, calculate the forward recursion of equation (5) (L + L^) times for u = 1, 2. ... (L + L w ) where L w is the decoder's wrap depth. The trellis-level index t takes on the values ((u-1) mod L) + 1. When the decoder wraps around the received sequence of symbols from the channel, a L is treated as O Q . Normalize the results so that the elements of each new a ( sum to unity. Retain the L most recent a vectors found via this recursion. (iii) Starting with an initial β L equal to (I l) τ , calculate the backward recursion of equation (6) (L + L^) times for u - 1, 2, ... (L + L^. The trellis-level index t takes on the values L-(u mod L). When the decoder wraps around the received sequence, β j is used as β L+j and -T / is used as -T / , + 7 when calculating the new β L . Normalize the results so that the elements of each new β t sum to unity. Again, retain the L most recent β vectors found via this recursion. The next step of this preferred recursion method is the same as step (v) set forth hereinabove with respect to the eigenvector method to produce the soft-decisions and decoded bits ouφut by the circular MAP decoder. The circular "time line" of FIG. 5 summarizes the process for calculating the a t and β ( for u = 1, 2, .... (L+L^J for the circular MAP decoder according to this preferred recursion method. The performance of this preferred embodiment of the circular MAP decoder has been tested for the soft-decision, additive white Gaussian noise (AWGN) channel via computer simulation assuming binary antipodal signaling (e.g. binary phase shift keying). Simulations were run using the best- known rate = 1/2, memory = 6 convolutional code. (It is the best in the sense of having the largest free distance.) All simulation results presented herein were generated by a decoder that utilized a wrap depth equal to twice the forward decision depth of the code (40 trellis stages). Also, short message blocks comprising 48 bits were used in the simulations. FIG. 6 is the resulting plot of average probability of decoded bit error versus Eg/N.,. The source bits were equally likely to be 0 or 1. However, when this simulation was repeated with biased source statistics that were known a priori by the decoder, the circular MAP decoder's average probability of bit error at a given E j /N 0 decreased significantly. FIG. 7 compares bit error rate versus EJ/N Q plots for the following three cases: equally likely source bits; Pf source bit is I } = 0.67; and Pf source bit is 1 } = 0.91. In the second case, Pf source bit is 1 } =2 Pf source bit is O}, while in the third case Pf source bit is 1 } " lO Pf source bit is O). FIG. 8 is a simplified block diagram illustrating a circular MAP decoder 80 in accordance with this preferred embodiment of the present invention. Decoder 80 comprises a J", calculator 82 which calculates J " . as a function of the channel ouφut y t . The channel ouφuts y j ,...,y L are provided to the r t calculator via a switch 84. With the switch in the down position, L channel ouφut symbols are loaded into a r, calculator 82 and a shift register 86 one at a time. Then, switch 84 is moved to the up position to allow the shift register to shift the first Lw received symbols into the r, calculator again, i.e., to provide circular processing. The r t calculator receives as inputs from memory 96 the channel transition probability R(Y ( , X), the probability p t fm/m') that the encoder makes a transition from state m to m at time t, and the probability qι(X/m', m) that the encoder's ouφut symbol is X given that the previous encoder state is m and the present encoder state is m. The I") calculator calculates each element of r, by summing over all possible encoder ouφuts X in accordance with equation (2). The calculated values of i " , are provided to a matrix product calculator 90 which multiplies the fj matrix by the α* .. matrix, which is provided recursively via a delay 92 and demultiplexer 94 circuit Control signal CNTRL 1 causes demultiplexer 94 to select O Q from memory 96 as one input to matrix product calculator 90 when t = 1. When 2 5 1 5 L, control signal CNTRL 1 causes demultiplexer 94 to select α,., from delay 92 as one input to matrix product calculator 90. Values of r t and a, are stored in memory 96 as required. The β t vectors are calculated recursively in a matrix product calculator 100 via a delay 102 and demultiplexer 104 circuit. Control signal CNTRL2 causes demultiplexer 104 to select β L from memory 96 as one input to matrix product calculator 100 when t = L-l. When L-2 ? t > /, control signal CNTRL2 causes demultiplexer 104 to select β t+j from delay 102 as one input to matrix product calculator 100. The resulting values of β art multiplied by the values of Or in an element-by-elcment product calculator 106 to provide the probabilities A, , as described hereinabove. In the same manner as described hereinabove with reference to FIG. 3, the values of λ t are provided to a decoded bit value probability calculator 50, the ouφut of which is provided to a threshold decision device 52, resulting in the decoder's decoded ouφut bits. The probability that the decoded bit equals zero (Pfd ( = 0 / ή }) is also shown in FIG. 8 as being provided to a soft ouφut function block 54 for providing a function of the probability, i.e., i(Pfd t = 0 / Y 1 ,}), such as, for example, the 1 - Pid^ oι ^ } likelihood ratio =- P{d t = o / γ J l } as the decoder's soft-decision ouφut. Another useful function of Pfd t = 0/ Y*,} is the 1 - Pfd^ O/ ^} log likelihood ratio = log] ; / . δ L Pfd = 0} J Alternatively, a useful function for block 54 may simply be the identity function so that the soft output is just Pfd, = 0 / Y J t } . Several practical, powerful methods of coding depend critically on the MAP decoder's soft ouφut information, e.g., methods of serial concatenated coding. In one such method in which the outer decoder utilizes errors and erasures decoding, the soft-decision ouφut of a MAP inner decoder can be processed as an indicator of decoding reliability by a ternary-decision device that can assign the value 0 or 1 to a decoded bit or declare an erasure. In addition, soft decoder ouφut can often be used to advantage by a following processor, such as a speech or image decoder. For example, the speech synthesizer of a vocoder can utilize the soft-decision ouφuts to identify likely transmission errors in a received speech frame in order to invoke error concealment methods to improve speech quality in equipment operating over very noisy channels. Until the present invention, MAP decoding was not possible with tail-biting codes. The significance of tail-biting is that it extracts the ultimate error-correction performance from short codewords, for which it is difficult to obtain large coding gains. Short codewords naturally occur in packet data systems and voice communication systems with low-rate speech coding. In addition, the present invention is useful in channels with fading or low-signal-to-noise power ratio which are common characteristics in very small aperture terminal (VSAT) satellite communications and mobile radio communications. While the preferred embodiments of the present invention have been shown and described herein, it will be obvious that such embodiments are provided by way of example only. Numerous variations, changes and substitutions will occur to those of skill in the art without departing from the invention herein. Accordingly, it is intended that the invention be limited only by the spirit and scope of the appended claims.

Claims: WHAT IS CLAIMED IS: 1. A decoder for a tail-biting trellis code generated by an encoder, which decoder decodes by determining the joint probability that the state of the encoder at time t, S t , is m and that a sequence of L channel ouφuts having values Y} = fy j^ . ^ yj is received, as represented by λ/m) = PfS t = m; Trj}, said trellis code having M encoder states, said decoder determining L probability matrices -T) , one at each of L trellis levels, the elements of said probability matrices being defined by: r/ij) = Pf state} at time t-l; y t / state i at time t-l} ; by determining row vectors α, having M joint probability elements defined by: oψ) - Pf state jot time t;y j ,...,y} ; and by determining column vectors β t having M conditional probability elements defined by: β/J ) = p fy,+i'-yL ι state J aϊ ""* 0 forj - 0, 1, .... (M-l), said decoder comprising: a f, calculator for receiving said channel ouφuts, the channel transition probability R(Y,, X), the probability p^mjm ) that the encoder makes a transition from state m' to m at time t, and the probability q^X/m , m) that the encoder's ouφut symbol is X given that the previous encoder state is m' and the present encoder state is m, and for determining the scalar elements of said probability matrices /" / therefrom; a -H matrix product calculator for receiving said scalar elements from said JH, calculator and computing a matrix product F 7 F 2 ... f L therefrom; a normalized eigenvector computer for receiving said matrix product r, r 2 ... r L and computing a normalized eigenvector OQ corresponding to the largest eigenvalue PfYJ} of said matrix product; a ct j matrix product calculator for receiving said normalized eigenvector oto and forming the succeeding a, by a forward recursion as follows: α, = a h] T t , t-1,...^. ; memory for storing said probability matrices T t and said row vectors α,; a β t matrix product calculator for providing said column vectors by initializing β L = (/, /, 1, .... l) τ and forming the preceding β t by a backward recursion as follows: an element-by-element product calculator for forming the joint probability vectors λ, , the elements of which are said joint probabilities λ/ij), by multiplying the elements of said row vectors by the elements of said column vectors as follows: λ/i) = α/i) β/i) , all i, t=l,...JL ; and a decoded bit value probability calculator for determining from λ, the probability that a given data bit inputted to the encoder at time = t is equal to zero, the data bit being the m lh of k data bits, and providing a soft ouφut as a function of said probability. 2. The decoder of claim 1 , further comprising a threshold decision device for receiving the probability that the data bit inputted to the encoder at time = t is equal to zero and for implementing a decision rule to provide decoded output bits therefrom. 3. The decoder of claim 1 wherein said tail-biting trellis code comprises a convolutional code. 4. The decoder of claim 1 comprising a bounded distance decoder. 5. A decoder for a tail-biting trellis code generated by an encoder, which decoder decodes by determining the joint probability that the state of the encoder at time t, S t , is m and that a sequence of L channel ouφuts having values Y] = fy j .-.-.y i J is received , as represented by λ/m) = PfS t = m; Y}}, said trellis code having M encoder states, said decoder determining L conditional probability matrices 7 * . , one at each of L trellis levels, the elements of said probability matrices being defined by: r/ij) = Pf state} at time t; y t / state i at time t-l} ; by determining row vectors a t having M joint probability elements defined by: oψ) = P f state j at time t;y j ,...,y,} ; and by determining column vectors β t having M conditional probability elements defined by: β/j ) - Pfy l+ ι- yL I staϊe J ω ύ ™ 0 fory ■ = 0, 1, ..., (M-l), said decoder comprising: a r t calculator for receiving said channel ouφuts, the channel transition probability R(Y ( , X), the probability p t (m/m') that the encoder makes a transition from state m' to m at time r, and the probability qtfX/m', m) that the encoder's ouφut symbol is X given that the previous encoder state is m and the present encoder state is m, and for determining the scalar elements of said probability matrices /} therefrom; a α, matrix product calculator for receiving said scalar elements of r t from said r t calculator and providing said row vectors a t ; a β t matrix product calculator for providing said column vectors A ; an element-by-element product calculator for forming the joint probability vectors A, , the elements of which are said joint probabilities λ/ij); said α. matrix product calculator, said β t matrix product calculator, and said element-by-element product calculator forming said vectors α, , β r and λ t , respectively , by: (i.a) starting with an initial O Q equal to (1/M,..., 1/M), calculating L times the forward recursion: a^ a^ ^ , t=l,...JL ; and noπnaiizing the results so that the elements of each α ; sum to unity, retaining all L a t vectors; (i.b) letting O Q equal a L from step (i.a) and, starting at t = /, calculating α f = a^ η , t=/,..X v nun where L is a predetermined minimum number of trellis stages; min normalizing the results so that the elements of each a { sum to unity, retaining only the most recent set of L O t 's found by the recursion in steps (i.a) and (i.b) and the a L found in step (i.a); nun (i.c) comparing a, from step (i.b) to the a L w nun nun found in step (i.a) and proceeding to step (ii) if within a tolerance range; otherwise, continuing to step (i.d); (i.d) letting t - t + / and calculating a ( = α./), normalizing the results of the recursion so that the elements of each α, sum to unity, retaining only the most recent set of L a t 's calculated and this a t found previously in step (i.a). (i.e) comparing the a t to the most recent, previously- calulated a t from steps (i.a), (i.b) and (i.d) and proceeding to step (ii) if within a tolerance range, continuing with step (i.d) if the two most recent vectors do not agree to within said tolerance range and if the number of recursions does not exceed a predetermined maximum; proceeding to step (ii) otherwise; (ii) initializing β L - (1, 1, 1, .... l) τ and forming the preceding β t by a backward recursion as follows: A = r . +/ A +7 ' t = L-l,...,l ; and normalizing the results of the recursion so that the elements of each β { sum to unity, retaining all L β t vectors; (iii) forming the joint probability vectors A, , the elements of which are said joint probabilities A f , by multiplying the elements of said row vectors by the elements of said column vectors as follows: memory for storing said probability matrices and said row vectors; and a decoded bit value probability calculator for determining from λ t the probability that a given data bit inputted to the encoder at time = t is equal to zero, the data bit being the m Λ of k data bits, and providing a soft ouφut as a function of said probability. 6. The decoder of claim 5, further comprising a threshold decision device for receiving the probability that the data bit inputted to the encoder at time = t is equal to zero and for implementing a decision rule to provide decoded ouφut bits therefrom. 7. The decoder of claim 5 wherein said tail-biting trellis code comprises a convolutional code. 8. The decoder of claim 5 comprising a bounded distance decoder. 9. The decoder of claim 5 wherein the encoder encodes a block of data bits, said data bits being grouped into k-bit symbols for encoding, the predetermined maximum number of recursions comprising two times the number of k-bit input symbols in a block of data bits. 10. A decoder for a tail-biting trellis code generated by an encoder, which decoder decodes by determining the joint probability that the state of the encoder at time t, S t , m and that a sequence of L channel ouφuts having values ij - = m: Y}}, said trellis code having M encoder states, said decoder determining L conditional probability matrices -T. , one at each of L trellis levels, the elements of said probability matrices being defined by: r/ij) = P {state j at time t; y ( / state i at time t-l} ; by deteπnining row vectors Of. having M joint probability elements defined by: o:/}) - Pfstate j ot time f. y^.-.yj ; and by deteπnining column vectors β { having M conditional probability elements defined by: β/}) = p {y l+ p -yL I state i at time ti for; = 0, 1, ..., (M-l), said decoder comprising: a f / calculator for receiving said channel ouφuts, the channel transition probability R(Y t , X), the probability p^mfm') that the encoder makes a transition from state m to m at time r, and the probability qrfXlm', m) that the encoder's ouφut symbol is X given that the previous encoder state is m and the present encoder state is m, and for determining the scalar elements of said probability matrices f} therefrom; a a\ matrix product calculator for receiving said scalar elements of r t from said -T. calculator and providing said row vectors a,; a β ( matrix product calculator for providing said column vectors Pr an element- by -element product calculator for forming the joint probability A, : said a ( matrix product calculator, said β ( matrix product calculator, and said element-by-element product calculator forming said vectors a, , β r and A, , respectively , by: (i.a) starting with an initial O Q equal to (1/M,..., 1/M), calculating L times the forward recursion: a t = a h] r t , t-l,.:.JL ; and normalizing the results so that the elements of each α, sum to unity, retaining all -L α : vectors; (i.b) letting O Q equal a L from step (i.a) and, starting at t = 1, calculating α. = a hl r ( , foτ t = l, 2, ... L w ; where the wrap depth L*, is a predetermined number of trellis stages; normalizing the results so that the elements of each α. sum to unity, replacing the a t calculated in step (i.a) with the CL calculated in step (i.b) for t = 1, 2, ... L W ; (ii.a) initializing β L = (1, 1, 1, .... l) T and forming the preceding β ( by a backward recursion as follows: A = r <+ι Aw - ' = ■ £-'...../ and normalizing the results of the recursion so that the elements of each β t sum to unity, retaining all L β ( vectors; (ii.b) letting β L+I equal β 1 from step (ii.a) and letting r L+} , = r 1 , starting at t = L, and calculating β t = r ι+] β l+I for t = L, (L-l) L - (L w + 1) where the wrap depth L w is a predeterrnined number of trellis stages; normalizing the results of the recursions so that the elements of each β t sum to unity, replacing the β t calculated in step (ii.a) with the β t calculated in step (ii.b) for t - L, (L-l), ..., L • (Lw + 1)\ (iii) forming the joint probability vectors A, , the elements of which are said joint probabilities λ/ij) , by multiplying the elements of said row vectors by the elements of said column vectors as follows: λ/i) = a/i) β/i) , ali i, t= /,...,£ ; memory for storing said probability matrices and said row vectors; and a decoded bit value probability calculator for determining from λ t the probability that a given data bit inpuned to the encoder at time = t is equal to zero, the data bit being the m Λ of k data bits, and providing a soft ouφut as a function of said probability. 11. The decoder of claim 10, further comprising a threshold decision device for receiving the probability that the data bit inputted to the encoder at time = t is equal to zero and for implementing a decision rule to provide decoded ouφut bits therefrom. 12. The decoder of claim 10 wherein said tail-biting trellis code comprises a convolutional code. 13. The decoder of claim 10 comprising a bounded distance decoder. 14. The decoder of claim 10 wherein the encoder encodes a block of data bits, said data bits being grouped into k-bit symbols for encoding, the predetermined maximum number of recursions comprising two times the number of k-bit input symbols in a block of data bits. 15. A method for decoding a tail-biting trellis code generated by an encoder by determining the joint probability that the state of the encoder at time t, 5. , is m and that a sequence of L channel ouφuts having values YJ = fY j ,...,y i ) is received, as represented by λ/m) = PfS t - m; Y]}, said trellis code having M encoder states, said method comprising steps for determining L probability matrices JTJ , one at each of L trellis levels, the elements of said probability matrices being defined by: r/ij) = P {state j at time t-l; y t j state i at time t-l} ; and for determining row vectors α. having M joint probability elements defined by: cc/}) = P {state} at time t; y j ,...,yj ; and for determining column vectors β t having M conditional probability elements defined by: β/j) - p fy,+ι> -yL I smte J at time ti fory = 0, 1, ..., (M-l), the steps of said method comprising: determining the scalar elements of said probability matrices r t from said channel ouφuts, the channel transition probability R(Y t , X), the probability pr(m/m') that the encoder makes a transition from state m' to m at time t, and the probability qrfX/m', m) that the encoder's ouφut symbol is X given that the previous encoder state is m' and the present encoder state is m; computing a matrix product r } r 2 ... r L from said scalar elements of -T. ; computing a normalized eigenvector OQ corresponding to the largest eigenvalue PfY]} of said matrix product -Tj -T 2 ... r L ; forming the succeeding a t by a forward recursion as follows: a t = a h} r t , t=l,...£ ; providing said column vectors by initializing β L = (1, 1, 1 l) τ and forming the preceding β, by a backward recursion as follows: forming the joint probability vectors A, , the elements of which are said joint probabilities λ/ij), by multiplying the elements of said row vectors by the elements of said column vectors as follows: λ/i) = a/i) β/i) , all i, .=/,...£ ; and determining from A. the probability that a given data bit inputted to the encoder at time = t is equal to zero, the data bit being the m Λ of k data bits, and providing a soft ouφut as a function of said probability. 16. The method of claim 15, further comprising the step of implementing a decision rule to provide decoded ouφut bits from the probability that the data bit inputted to the encoder at time = t is equal to zero . 17. The method of claim 15 wherein said tail-biting trellis code comprises a convolutional code. 18. A method for decoding a tail-biting trellis code generated by an encoder by determining the joint probability that the state of the encoder at time r, S t , is m and that a sequence of L channel ouφuts having values Y] = m; Y}}, said trellis code having M encoder states, said method comprising steps for determining L probability matrices J " ) one at each of L trellis levels, the elements of said probability matrices being defined by: r/ij) = Pf state} at time t-l; y t / state i at time t-l} ; and for determining row vectors a t having M joint probability elements defined by: a/}) = P f state j at time t; y j ,...,y^ ; and for determining column vectors β, having M conditional probability elements defined by: β,0) - Pfyi+i.-yL I state J aϊ time ti for./ = 0, 1, .... (M-l), the steps of said method comprising: determining the scalar elements of said probability matrices T t from said channel ouφuts, the channel transition probability R(Y,, X), the probability pdm/m') that the encoder makes a transition from state m' to m at time t, and the probability qtfX/m', m) that the encoder's ouφut symbol is X given that the previous encoder state is m and the present encoder state is m; forming said vectors a t , β ( , and λ t , respectively , by: (i.a) starting with an initial O Q equal to (UM,..., UM), calculating L times the forward recursion: α. = α,. / r. , t=7,...X ; and normalizing the results so that the elements of each α, sum to unity, retaining all L a, vectors; (i.b) letting O Q equal a L from step (i.a) and, starting at t - 1, calculating α, = a ( ., r, , for ι = 1, 2 L nun where L w is a predetermined minimum number of trellis stages; nun normalizing the results so that the elements of each α, sum to unity, retaining only the most recent set of L C-t's found by the recursion in steps (i.a) and (i.b) and the a, found in step (i.a); w nun (i.c) comparing a, from step (i.b) to the a, W mt • nun mm found in step (i.a) and proceeding to step (ii) if within a tolerance range; otherwise, continuing to step (i.d); (i.d) letting t * = t + 1 and calculating α, = <*,.;/ "* ,, normalizing the results of the iteration so that the elements of each σ. sum to unity, retaining only the most recent set of L as calculated and this a, found previously in step (i.a). (i.e) comparing the a t to the most recent, previously- calulated α, from steps (i.a), (i.b) and (i.d) and proceeding to step (ii) if within a tolerance range, continuing with step (i.d) if the two most recent vectors do not agree to within said tolerance range and if the number of recursions does not exceed a predetermined maximum; proceeding to step (ii) otherwise; (ii) initializing β L = (1, 1, 1, .... l) τ and forming the preceding β t by a backward recursion as follows: and normalizing the results of the recursion so that the elements of each β t sum to unity, retaining all L β t vectors; (iii) forming the joint probability A / vectors, the elements of which are said joint probabilities λ/i, j) by multiplying the elements of said row vectors by the elements of said column vectors as follows: λ/i) = a/i) β/i) , ali i, t=l,...L ; and determining from A. the probability that a given data bit inputted to the encoder at time = t is equal to zero, the data bit being the m* of k data bits, and providing a soft ouφut as a function of said probability. 19. The method of claim 18 further comprising the step of implementing a decision rule to provide decoded ouφut bits from the probability that the data bit inputted to the encoder at time = t is equal to zero. 20. The method of claim 18 wherein said tail-biting trellis code comprises a convolutional code. 21. The method of claim 18 wherein the encoder encodes a block of data bits, said data bits being grouped into k-bit symbols for encoding, the predeterrnined maximum number of recursions comprising two times the number of k-bit input symbols in a block of data bits. 22. A method for decoding a tail-biting trellis code generated by an encoder by determining the joint probability that the state of the encoder at time t, S t , is m and that a sequence of L channel ouφuts having values Y} = fyp -yi) is observed, as represented by λ/m) = P{S t = m; Y}}, said trellis code having M encoder states, said method comprising steps for determining L conditional probability matrices F. , one at each of L trellis levels, the elements of said probability matrices being defined by: r/ij) = Pf state} at time t;y { / state i at time t-l} ; and for determining row vectors a ( having M joint probability elements defined by: <*/}) = Pf state} at time t; y /( ...,y./ ; and for determining column vectors β t having M conditional probability elements defined by: β/j) = p {y t+ ι.-y L I state J at time ti for; = 0, 1, .... (M-l), the steps of said method comprising: determining the scalar elements of said probability matrices -T, from said channel ouφuts, the channel transition probability R(Y t , X), the probability p t (mjm') that the encoder makes a transition from state m' to m at time t, and the probability q t fX/m', m) that the encoder's ouφut symbol is X given that the previous encoder sute is m and the present encoder state is m; forming said vectors a t , β v and λ t , respectively , by: (i.a) starting with an initial O Q equal to (UM,..., UM), calculating L times the forward recursion: α, = a ( , j r t , t=l,...L ; and noπnaiizing the results so that the elements of each α, sum to unity, retaining all L a t vectors; (i.b) letting O Q equal a L from step (i.a) and, starting at t = /, calculating α, = a hI r t , for t = l, ... L w , where the wrap depth L w is a predetermined number of trellis stages; normalizing the results so that the elements of each a, sum to unity, replacing the α, calculated in step (i.a) with the a, calculated in step (i.b) for r = 1, 2, ... L w ; (ii.a) initializing β L = (1, 1, 1, .... l) τ and forming the preceding /?, by a backward recursion as follows: and normalizing the results of the recursion so that the elements of each β t sum to unity, retaining all L β t vectors; (ii.b) letting β L+1 equal β l from step (ii.a) and letting r L+I S Ty, starting at t = L, and calculating A = r /W AW • for ' = L* (L - J) > - L <^ + 7 * where the wrap depth Lw is a predetermined number of trellis stages; normalizing the results so that the elements of each β t sura to unity, replacing the β t calculated in step (ii.a) with the β t calculated in step (ii.b) for t = L, (L-l), .... L - (L w +1); (iii) forming the joint probability A, vectors, the elements of which are said joint probabilities A., by multiplying the elements of said row vectors by the elements of said column vectors as follows: λ/i) = a/i) β/i) , all i, t=l,...L ; and deteπnining from A. the probability that a given data bit inputted to the encoder at time = t is equal to zero, the data bit being the m th of k data bits, and providing a soft ouφut as a function of said probability. 23. The method of claim 22, further comprising the step of implementing a decision rule to provide decoded ouφut bits from the probability that the data bit inputted to the encoder at time = / is equal to zero. 24. The method of claim 22 wherein said tail-biting trellis code comprises a convolutional code. 25. The method of claim 22 wherein the encoder encodes a block of data bits, said data bits being grouped into k-bit symbols for encoding, the predetermined maximum number of recursions comprising two times the number of k-bit input symbols in a block of data bits.

Inventors: ANDERSON JOHN BAILEY, HLADIK STEPHEN MICHAEL, ANDERSON, JOHN, BAILEY, HLADIK, STEPHEN, MICHAEL
Applicants: GEN ELECTRIC, GENERAL ELECTRIC COMPANY
Application year: 1997
Main classification: H03M13
IPC codes: H03M13