Abstract:
A novel device which efficiently decodes data encoded with a cyclic code in communications systems where a convolutional code is applied after the cyclic code during encoding. Specifically, the device accepts data provided in time reversed order by a Viterbi decoder which decodes the convolutional code. In a preferred version, the device employs linear feedback shift registers with multiple feedback paths. A set of multipliers corresponding to a set of coefficients is interposed in the feedback paths such that when data is shifted through the feedback shift registers, the device performs division by x for an input bit equal to 0, and, for an input bit equal to 1, performs division by x and then adds x k+m−1 . The set of multipliers includes a set of weighting multipliers corresponding to coefficients of a weighting polynomial such that addition of x k+m−1  is performed for an input bit equal to 1. In another preferred version, the device compares a known initial state to a final state generated by shifting time reversed data through the linear feedback shift registers such that the final state equals the known initial state if there are no errors.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    1. Field of the Invention  
           [0002]    This invention relates to the field of electronic communications. In particular, the present invention concerns optimally decoding data encoded with a cyclic code in communications systems where a convolutional code is applied after the cyclic code during the encoding process.  
           [0003]    2. Description of the Related Art  
           [0004]    In the field of electronic communications, channel coding is used to ensure the accuracy of data transmitted from one point to another. Channel coding refers to a class of signal transformations designed to improve communications performance by enabling the transmitted signals to better withstand the effects of various communications channel impairments, such as noise, fading, and jamming.  
           [0005]    One set of channel coding techniques is referred to as linear block codes, which transform a block of k message bits into a longer block of n codeword bits. Binary cyclic codes are an important subclass of linear block codes. The codes are easily implemented with feedback shift registers in integrated circuits, and the underlying algebraic structure of cyclic codes lends itself to efficient decoding methods. Cyclic Redundancy Checks (CRC) are cyclic codes which are commonly used in communications systems, including cellular applications.  
           [0006]    Another set of channel coding techniques is referred to as convolutional codes, which are described by three integers, n, k, and K. The integer K is a parameter known as the constraint length; it represents the number of k-tuple stages in the encoding shift register. An important characteristic of convolutional codes, which is not shared by linear block codes, is that the encoder has memory: The n-tuple emitted by the convolutional encoding procedure is not only a function of an input k-tuple, but also of the previous K−1 input k-tuples. Data which has been convolutionally encoded is often decoded using Viterbi decoders, which generally output decoded data in time reversed order.  
           [0007]    Convolutional and linear block coding techniques are often combined, for example in wireless cellular communications systems, resulting in signficantly improved overall performance. Typical communications systems encode data first with a cyclic code for error detection, and then with a convolution code for error correction. A conventional receiver for such a system first uses a Viterbi decoder to decode the convolutional code and correct as many errors as possible. Then, a different decoder is used to decode the cyclic code and determine whether all of the errors were corrected or not.  
           [0008]    In Code-Division Multiple Access (CDMA), Time-Division Multiple Access and most other cellular communications systems, data is divided into a number of “frames” including frame quality indicator bits (sometimes called “CRC bits”) generated using a CRC code. The conventional method of calculating CRC bits is using a circuit provided in TIA Standards Proposal #3384, “Personal Station Base Station Compatibility Requirements for 1.8 to 2.0 GHz Code Division Multiple Access Personal Communications Systems,” and several related TIA Standards. The conventional method requires that the input bits be in normal time order (first bit in first), which is disadvantageous for the following reasons.  
           [0009]    In most applications, the CRC bits in a receiver are calculated after a Viterbi decoder. Optimal Viterbi decoding requires a full “traceback” to calculate the input bits, which results in the input bits to the CRC generator being available in time reversed order. If the conventional method of calculating the CRC bits is used, the input bits need to be buffered up and fed into the CRC generator after all of the input bits are generated. It would be preferable to calculate CRC bits from a frame of data that is available in time reversed order (i.e., last bit available first) since this would allow the quality of a frame to be checked simultaneously with the Viterbi decoding, without buffering any bits. This reduces the hardware and other device complexity in implementation.  
           [0010]    Therefore, an object of this invention is to provide a circuit which can decode in time reversed order, without buffering any bits, data encoded with a cyclic code in systems where a convolution code is applied after the cyclic code during the encoding process.  
         SUMMARY OF THE INVENTION  
         [0011]    This object is achieved by the present invention, which comprises a device which efficiently decodes data encoded with a cyclic code in communications systems where a convolutional code is applied after the cyclic code during encoding, wherein the device accepts data provided in time reversed order by a Viterbi decoder which decodes the convolutional code. In a preferred version, the device employs linear feedback shift registers having a plurality of feedback paths. A set of multipliers corresponding to a set of coefficients is interposed in the feedback paths such that when data is shifted through the feedback shift registers, the device performs division by x for an input bit equal to 0, and, for an input bit equal to 1, performs division by x and then adds x k+m−1 . The set of multipliers includes a set of weighting multipliers corresponding to coefficients of a weighting polynomial such that addition of x k+m−1  is performed for an input bit equal to 1. In another preferred version, the device compares a known initial state to a final state generated by shifting time reversed data through the linear feedback shift registers such that the final state equals the known initial state if there are no errors.  
           [0012]    As a result of this novel configuration, the quality of a data frame can be checked simultaneously with Viterbi decoding, without buffering any bits. This reduces the hardware and other device complexity in implementation. These and other aspects, features, and advantages of the present invention will be apparent to those persons having ordinary skill in the art to which the present invention relates from the foregoing description and the accompanying drawings. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0013]    [0013]FIG. 1 is a block diagram of a conventional CRC circuit.  
         [0014]    [0014]FIG. 2 is a block diagram of a preferred version of the CRC circuit of the present invention.  
         [0015]    [0015]FIG. 3 is a block diagram of another preferred version of the CRC circuit of the present invention.  
         [0016]    [0016]FIG. 4 is a block diagram of a wireless communications system;  
         [0017]    [0017]FIG. 5 is a block diagram of the basic architecture of a mobile station. 
     
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS  
       [0018]    A. CRC Characteristics and the Conventional Decoding Method  
         [0019]    The conventional method for calculating the CRC is described in the J-STD-008 standard, pages 3-34-36. FIG. 1 shows a conventional circuit for calculating a k-bit CRC. The behavior of this circuit can be analyzed using Galois field theory. The coefficients, g i , can be represented as a polynomial with the following form: 
           g ( x )= g   k   x   k   +g   k−1   x   k−1   + . . . +g   1   x+g   0   (1) 
         [0020]    where the coefficients are taken from GF(2), which is simply the set {0,1}. The state of the shift registers above are defined by a polynomial h(x) with the following form, 
           h ( x )= h   k−1   x   k−1   +h   k−2   x   k−2    . . . +h   0   (2) 
         [0021]    where the coefficients are also taken from GF(2). The input bits are represented by a polynomial, 
           a ( x )= a   0   +a   1   x+a   2   x   2   + . . . +a   m−1   x   m−1   (3) 
         [0022]    where a i  represents the input bits, a 0  is the first input bit, and m is the total number of input bits for a frame. The conventional circuit shown in FIG. 1 multiplies the state polynomial h(x) by x, and takes the remainder with respect to the generator polynomial g(x). (Note: The “remainder” of a polynomial with respect to g(x) is the remainder after dividing the polynomial by g(x).) This circuit is similar to circuits commonly used to generate pseudorandom number (PN) sequences. What makes this circuit different from a PN sequence generator is the presence of the input data stream.  
         [0023]    For each input bit, if the input bit is a 0, the state polynomial is multiplied by x and the remainder is taken with respect to the generator polynomial g(x). If taking the remainder with respect to g(x) is denoted by &lt;&gt; g(x) , this operation can be expressed as: 
           h ( x )=&lt; h ( x )* x&gt;   g ( x )  (4) 
         [0024]    If the input bit is a 1, the state polynomial is multiplied by x, then x k  is added to the polynomial, and then the remainder with respect to g(x) is taken. This can be expressed as: 
           h ( x )=&lt; h ( x )* x+x   k &gt; g(x)   (5) 
         [0025]    Since the result is the same whether or not the remainder with respect to g(x) is taken at each step or after all of the input bits, the CRC can be represented by the polynomial c(x) given by: 
           c ( x )=&lt; h′ ( x ) x   m   +x   k   [a   0   x   m−1   +a   1   x   m−2   + . . . +a   m−1 ]&gt; g(a)   (6) 
         [0026]    where h′(x) is the initial state of the registers. For J-STD-008, the initial state of the registers is all ones, which can be represented by: 
           h′ ( x )= x   k−1   +x   k−2   + . . . +x +1  (7) 
         [0027]    The problem with the conventional method is that the circuit requires the first input to be the first data bit of the packet. In implementing a standard Viterbi decoder, the output bits are calculated during traceback, which starts at the end of the data packet and moves toward the beginning. The simplest solution is to buffer the input bits and feed them through the CRC generator after the Viterbi decoder traceback is complete. This, however, requires extra complexity in the data flow. A more desirable solution is to derive a circuit that will compute the same CRC, but accept the input bits in time reversed order.  
         [0028]    B. Time Reversed Data Implementation  
         [0029]    In receivers for many practical communications systems, including J-STD-008, the CRC is calculated after the Viterbi decoder. A Viterbi decoder generally outputs data in time reversed order if a full traceback is done. It is generally desirable to just push CRC input data into the CRC generator circuit as it becomes available instead of buffering up all of the data and taking the extra step to generate the CRC after the Viterbi decoder is finished. What is needed is a circuit that produces the same CRC, given by c(x) above, but accepts the input data in time reversed order.  
         [0030]    An approach that will generate the same CRC if the first input bit is a m−1  is now described. In a preferred version of the present invention, the initial state of the registers is: 
           h ( x )=&lt; h′ ( x ) x   2m &gt; g(x)   (8) 
         [0031]    where h′(x) is the initial state for the standard method. For each input bit, if the input bit is a 0, the state polynomial is divided by x, and then the remainder is taken with respect to g(x), which can be expressed as: 
           h ( x )=&lt; h ( x )* x   −1 &gt; g(x)   (9) 
         [0032]    If the input bit is a 1, the state polynomial is divided by x, x k+m−1  is added to the result, and then the remainder is taken with respect to g(x). This can be expressed as: 
           h ( x )=&lt; h ( x )* x   −1   +x   k+m−1 &gt; g(x)   (10) 
         [0033]    This yields the same expression for the CRC as the conventional method. The only disadvantage to this method is that the initial state and the polynomial that is added when the input is a 1 are dependent on m, which is the length of the input packet For CDMA systems, this is a minor disadvantage as there are only six different values of m for all of the rates in both rate sets, and these polynomials can be computed ahead of time.  
         [0034]    A circuit which implements the time reversed CRC generation is shown in FIG. 2. The coefficients, g i , represent the generator polynomial and are identical to those of the conventional method described above. The weighting polynomial, w(x), is the polynomial that is added to accomplish the addition by x k+m−1 , and is given by: 
           w ( x )=w k−1   x   k−1   +w   k−2   x   k−2    . . . +w   0   =&lt;x   k+m−1 &gt; g(x)   (11) 
         [0035]    For J-STD-008, the initial state of the registers is given by: 
           h ( x )=&lt; x   2m   [x   k−1   +x   k−2   + . . . +x +1]&gt; g(x)   (12) 
         [0036]    The division by x is performed by reversing the direction of the shift registers and adding the generator polynomial when x 0  is a 1. The input bits are inserted into multiple stages of the shift register sequence, as opposed to just the end for the conventional method.  
         [0037]    Another detail needed for implementation is the value of h(x) and w(x) for the six different CRC/packet size combinations. A table for w(x) and h(x) for the CDMA standard is given below:  
                                               TABLE 1                           Polynomials for Time Reversed CRC Generator                h(x)   w(x)                            12 bit - Rate Set 1   0x3B7   0x441           12 bit - Rate Set 2   0xF96   0x43C           10 bit   0x3D2   0x184            8 bit - Rate Set 1   0xC5   0x68            8 bit - Rate Set 2   0x6F   0x83            6 bit   0x2E   0x2F                      
 
         [0038]    All of the coefficients are represented as a single hex number where the LSB corresponds to W 0 /h 0 .  
         [0039]    C. Alternative Time Reversed Implementation  
         [0040]    The goal of generating a CRC is to check if the input frame was decoded correctly. It is desirable to do this with time reversed input data because that is how data is available in certain communications systems such as CDMA systems. An alternative approach is to start with the ending state of the shift register in the conventional method and work backwards to the starting state. If there are no errors in the input sequence, then the final state of the alternative method will equal the initial state of the conventional method.  
         [0041]    [0041]FIG. 3 shows a circuit which will perform this function. The decision of whether the frame is correct involves comparing the initial state of the standard method to the state of the shift registers after the time reversed data is clocked into the circuit of FIG. 3. The difference between this method and the previously described methods is that it generates a fixed initial state from the received CRC, instead of generating a CRC from the received data and comparing it to the received CRC.  
         [0042]    One advantage of this circuit is that the received CRC is at the end of the received data and can be loaded into the shift registers simply by considering it to be part of the received data that is clocked into the registers. If the CRC is to be loaded in this way, the initial state of the registers must be all zeros. A further advantage of this circuit is that, if the initial state of the registers is all zeros, then any extra zeros at the beginning of the time reversed input data will have no effect on the final state. Therefore, the tail (which by definition is all zeros regardless of the received data), the CRC, and the received packet, which together are the total output of the Viterbi decoder, can be input to the circuit shown in FIG. 3. If there are no errors in the received packet, the final state of the registers will be the initial state in the standard method. For J-STD-008, the initial state for all of the CRC generators is all ones.  
         [0043]    D. Application in Wireless Systems.  
         [0044]    By way of example but not of limitation, one possible application of the present invention is in wireless cellular communications systems. As shown in FIG. 4, a cellular network is comprised of three fundamental parts:  
         [0045]    (1) a mobile station  1  (which is carried by the subscriber);  
         [0046]    (2) a base station subsystem  2  (which controls the radio link with the mobile station); and  
         [0047]    (3) a network subsystem  3  (which is interfaced to the public fixed network  4  and the base station subsystem). The network subsystem and the base station subsystem communicate across an interface  5 , while the mobile station and the base station subsystem communicate using a radio link  6 .  
         [0048]    Mobile Station  
         [0049]    The mobile station is the “phone” part of the wireless communication system. The mobile station may be fixed or portable. Fixed mobile stations are permanently installed in a car or a stationary location. Portable units include bag phones and hand-portable phones (commonly called “cell phones”). Hand-portable phones are becoming increasingly popular because they can be carried easily on the person of the subscriber. A mobile station includes an antenna  7  for transmitting and receiving radio signals from the base station subsystem.  
         [0050]    Base Station Subsystem  
         [0051]    The base station subsystem comprises two fundamental elements, (1) one or more base transceiver stations ( 8  and  9 ) and (2) a base station controller  10 . These components communicate across another interface  11 . A base transceiver station includes radio transceivers that handle radio-link protocols with the mobile station and an antenna  12  for communication with mobile stations.  
         [0052]    The base station controller manages the radio resources of the base transceiver stations. It also manages handovers (passing the audio from cell to cell during a call), frequency hopping (changing operating frequency to maintain signal quality) and radio-channel setup.  
         [0053]    Network Subsystem  
         [0054]    The basic element of the network subsystem is the mobile services switching center (MSC)  13 . The MSC is the interface of the cellular network to the public fixed network and, as such, basically performs the functions of a switching node of the public fixed network The MSC also routes calls from the public fixed network (via the base station controller and the base transceiver station) to the mobile station. The MSC also provides the wireless system with individual information about the various mobile stations and performs the functions of authentication, location updating, and registration. The MSC may operate in conjunction with other functional entities which further comprise a network subsystem, such as registers which hold information regarding current mobile station location and subscriber information.  
         [0055]    Radio Link  
         [0056]    In conventional wireless communications technology, user data (e.g. speech) is encoded in a radio frequency for transmission and reception between a base station and a mobile unit. Because the number of available radio frequencies, or “channels,” for cellular system is less than the number of all possible users, the system is “trunked.” Trunking is the process whereby users share a limited number of channels in some predetermined manner.  
         [0057]    A common form of trunked access is the frequency-division multiple access (FDMA) system. In FDMA, the limited channels are shared by all users as needed. However, once a channel is assigned to a user, the channel is used exclusively by the user until the user no longer needs the channel. This limits the number of concurrent users of each channel to one, and the total number of users of the entire system, at any instant, to the number of available channels.  
         [0058]    Another common trunking system is the time-division multiple access (TDMA) system. TDMA is commonly used in telephone networks, especially in cellular telephone systems, in combination with an FDMA structure. In TDMA, data (speech) is digitized and compressed to eliminate redundancy and silent periods, thus decreasing the amount of data which is required to be transmitted and received for the same amount of information. Each of the channels used by the TDMA system is divided into “frames” and each of the users sharing the common channel is assigned a time slot within the frames. The TDMA system appears, to each of the users sharing the channel, to have provided an entire channel to each user.  
         [0059]    Code-division multiple access (CDMA), yet another common trunking system, is an application of spread spectrum techniques. The main advantage of CDMA systems as compared to TDMA systems is that all the mobile stations can share the full transmission spectrum asynchronously, that is, there is no need for synchronization among mobile stations (only between a mobile station and a base station).  
         [0060]    Mobile Station Architecture  
         [0061]    As shown in FIG. 5, mobile stations generally comprise two basic parts, the RF (radio frequency) part  20  and the digital part (or baseband processing circuitry)  21 . The RF part operates receiving, transmitting, and modulation functions. The digital part handles data processing, control, and signaling functions. As shown, the radio frequency part includes an antenna  27  for receiving and transmitting radio signals. A radio signal received by the radio frequency part is converted to a lower frequency signal and delivered  22  to the digital part. Likewise, a signal generated by the digital part is delivered  23  to the radio frequency part, which in turn converts the signal to a higher frequency signal, and transmits that higher frequency signal.  
         [0062]    The digital part is operatively connected to a handset  24 , which has a speaker  25  and a mouthpiece  26 . All or part of the radio frequency part and the digital part can be disposed within the handset, as is the case with cell phones.  
         [0063]    Also included in the mobile station architecture (but not shown in FIG. 5) is a reference clock, which is used to drive the digital hardware. Clock circuitry may also include tuning circuitry or temperature compensation circuitry to make the reference signal more accurate. A control processor performs the control functions of the mobile station, including, for example, power control and the selection of different channels.  
         [0064]    For CDMA systems, mobile stations generally include the following elements. Transmitting circuitry transmits as spread spectrum signals data (e.g. speech) provided by a user, while receiving circuitry receives spread spectrum signals and converts the signals into a form intelligible to the user. Pseudorandom noise (PN) sequence generator circuitry operationally connected to the transmitting circuitry and the receiving circuitry enables the mobile station to transmit and receive spread spectrum signals. Prior to transmission, each data bit is spread into a number of “chips” which can be transmitted in a bandwidth-limited channel along with signals of many other users, who can all share the channel. A chip rate clock, operating at a chip rate, clocks the PN sequence generator circuitry.  
         [0065]    Although the present invention has been described in detail with regard to the exemplary embodiments and drawings thereof, it should be apparent to those skilled in the art that various adaptations and modifications of the present invention may be accomplished without departing from the spirit and the scope of the invention. Accordingly, the invention is not limited to the precise embodiment shown in the drawings and described in detail hereinabove. Therefore, it is intended that all such variations not departing from the spirit of the invention be considered as within the scope thereof as limited solely by the claims appended hereto.  
         [0066]    In the following claims, those elements which do not include the words “means for” are intended not to be interpreted under 35 U.S.C. § 112 ¶6.