The present invention generally relates to a Viterbi decoder, and more specifically to a prediction device applicable in a Viterbi decode, and a method of forming the same.
A Viterbi decoder can be used in convolutional decoding, and is widely used in communication systems. The Viterbi decoder employs the method of searching for the maximum likelihood sequence and calculating the minimum path metric to accomplish the error correction. The recent wireless communication products all utilize the Viterbi decoder. However, without the external power source, the wireless communication products can only be sued for a limited duration as the power consumption is relatively high for the battery-powered products. Therefore, the criterion of low power consumption is important for the design of wireless communication products.
The Viterbi decoder is the module that consumes much power in the wireless communication products. The conventional Viterbi decoder uses the following two approaches: register exchange approach and traceback approach.
The conventional Viterbi decoder utilizes path memory to store each stage and the survivor branch of each stage. The tracebacking starts when the depth of the stored stages reaches about 5-6 times of the constraint length. During the traceback, the state of last stage having the minimum path metric is first found, and then the survivor path in the path memory is read to compute the state of the previous stage in the survivor path. This process must be done stage by stage, and the path memory must be accessed in each stage. Until tracebacking to the end of the survivor path, the decoded bits can be obtained. Because the number of memory accesses is large, the power consumption of this method is also large.
In this conventional prediction method, six corresponding state buffers are used in addition to the six path memories of a conventional Viterbi decoder. The state buffers record the state sequence of the previous traceback path and the most likely correct state sequence predicted by the prediction mechanism. When the predicted minimum states are connected, the state of the minimum path metric in the previous stage is recorded in the state buffer. During the tracebacking, if the traceback path overlaps the path in the state buffer, the connected state stored in the state buffer can be directly used to obtain the decoded bits. Thus, no further path memory access is required for the decoding. When the channel condition is good, that is, the path prediction mechanism is correct, 75% of memory access is saved in comparison to the traceback approach of the conventional Viterbi decoder. The power consumption is greatly reduced.
Take the structure of the conventional three-pointer even method as example. There are four memory blocks operating simultaneously in the Viterbi decoder using a traceback approach. The conventional prediction method, when the path prediction mechanism is completely correct, writes the state of the minimum path metric of the previous stage into only one memory block. When the channel condition is good, that is, the path prediction mechanism is correct, it still requires to use the tracebacking to observe the connected relationship to obtain the decoded bits.
For wireless communication products, the power consumption criterion is more restrictive because of the mobility. Although the traceback approach uses less power and less memory area than the register exchange approach, and is already widely used, it is still a challenge to further lower the power consumption.
The present invention has been made to overcome the aforementioned drawback of conventional Viterbi decoder. The primary object of the present invention is to provide a prediction device applicable to the Viterbi decoder using the traceback approach for reducing the count of memory accesses and lowering the power consumption in a low BER system. The Viterbi decoder includes a path computing module, a path metric comparison module, a plurality of path memories, a traceback module, and a storage control module. In accordance with the present invention, the prediction device comprises a prediction module and a plurality of decoded bit storages.
Based on the following: (1) a prediction activation signal from the storage control module, (2) a path source of each state in the current stage from the path computing module, (3) the state of the minimum path metric of the current stage from the path metric comparison module and (4) the state of the minimum path metric of the previous stage stored in the prediction module, the prediction module determines whether the state of the minimum path metric of the previous stage is connected to the state of the minimum path metric of the current stage, stores the state of the minimum path metric of the current stage, generates at least a decoded bit, and outputs a prediction success signal to the storage control module.
Each of the plurality of decoded bit storages corresponds to a path memory, and stores at least a decoded bit outputted by prediction module or by the traceback module sequentially. A signal is arranged by the storage control module to be outputted to a decoded bit storage at a preset output time, and all the decoded bits stored in this decoded bit storage are outputted.
Another object of the present invention is to provide a prediction method applicable to the aforementioned Viterbi decoder, where the storage control module of the Viterbi decoder includes a plurality of counters, and each counter corresponds to a decoded bit storage. The prediction method comprises the following steps of: (a) using a prediction module to determine, based on a plurality of parameters from the Viterbi decoder and a state of the minimum path metric of the previous stage stored in the prediction module, whether the state of the minimum path metric of the current stage being connected to the state of the minimum path metric of the previous stage; if not, stopping the prediction method until a preset activation condition being met and returning to step (a); (b) generating at least a decoded bit of the current stage, storing sequentially the decoded bit to one of the plurality of decoded bit storage, and adjusting the counter corresponding to the decoded bit storage being currently processed; (c) using a traceback mechanism to determine whether to directly output all the decoded bits in one of the decoded bit storage at a preset output time; and (d) the storage control module transmitting a decoded bit signal to the decoded bit storage corresponding to the last path memory being already traced-back, and the decoded bit storage outputting all decoded bits stored in it.
During writing to the path memory of the Viterbi decoder, the prediction device of the present invention records the decoded bits when the predicted minimum states are connected. During the tracebacking, if the state of the current stage equals to the combination of the decoded bits of the previous several stages, it means the paths are overlapping. Thus, no further path memory access is required for the decoding, and the decoded bits can be directly outputted. When the channel condition is good, that is, the path prediction mechanism is correct, 75% of memory access is saved in comparison to the traceback approach of he conventional Viterbi decoder. The power consumption is greatly reduced.
The foregoing and other objects, features, aspects and advantages of the present invention will become better understood from a careful reading of a detailed description provided herein below with appropriate reference to the accompanying drawings.
As shown in
Viterbi decoder 520 comprises a path computing module 521, a path metric recording module 522, a path metric comparison module 523, a plurality of path memories 541-54N, a traceback module 524, and a storage control module 525.
Path computing module 521 is for computing the path metric of each state. By adding the tallied path metric of the previous stage to that of the survivor branch of each state, the current path metric can be obtained. Path metric recording module 522 is for recording the path metric of all the states and providing to path metric comparison module 523 for comparison. Path metric comparison module 523 compares the path metric of all the states, and finds the minimum as the starting point for traceback path. Storage control module 525 is for power management of the memories and the activation control of its peripheral modules.
As shown in
Each decoded bit storage 51N corresponds to a path memory 54N, and sequentially stores the decoded bits outputted by prediction module 501 or the decoded bits outputted by traceback module 524. A signal for outputting decoded bits is transmitted at a preset output time by storage control module 525 to a decoded bit storage 51N to output all the decoded bits stored in this decoded bit storage 51N.
As shown in
According to the conventional three-pointer even method for memory management shown in
Traceback sub-module 524b is for the tracebacking of the second path memory. The operation mode of the tracebacking is similar to that of the traceback sub-module 524a. Traceback and output sub-module 524c is for the tracebacking of the third path memory. The operation mode of the tracebacking is similar to those of the traceback sub-modules 524a, 524b. When finishing tracebacking, the decoded bits stored in the decoded bit storage are all outputted.
As shown in
According to the present invention, parameters from the Viterbi decoder include a prediction activation signal from storage control module 525, a path source of each state in the current stage from path computing module 521, and the state of the minimum path metric of the current stage from path metric comparison module 523. The preset activation condition is set at the time when the current path memory is full and the writing to the next path memory is about to start. At this time, storage control module 525 sends an activation signal to activate prediction module 501.
Step 702 is to generate at least a decoded bit of the current stage, stores sequentially the decoded bit to one of the plurality of decoded bit storages 511-51N, and adjusts the counter corresponding to the decoded bit storage being currently processed. Step 703 is to use a prediction and traceback mechanism to determine whether to directly output all the decoded bits in one of the decoded bit storages at a preset output time. Finally, in step 704, storage control module 525 transmits a decoded bit signal to decoded bit storage 51N corresponding to the last path memory 54N being already traced-back, and decoded bit storage 51N outputs all decoded bits stored in it.
The following uses the radix-4 design in
Prediction module 501 uses the plurality of parameters from the Viterbi decoder and the parameter stored in prediction module 501 to determine if the state of the minimum path metric of the current stage is connected to the state of the minimum path metric of the previous stage (as in step 701). If connected, the two decoded bits of this stage are generated and stored sequentially to one of the six decoded bit storages, and counter 53N corresponding to the currently processed decoded bit storage is incremented by 1 (step 702). Then a prediction and traceback module is used to determine whether to directly output all the 32 decoded bits in one of the decoded bit storages at a preset output time (step 703). Finally, the decoded bit storage corresponding to the last path memory being already traced-back outputs all the 32 decoded bits stored in it.
In step 711, a test is conducted to determine whether the number of the path memories that are full equals to the preset traceback number. If so, the tracebacking starts and step 712 is taken. Otherwise, repeat step 711. According to the three-pointer even method for memory management, when three path memories are full, the tracebacking starts and the writing to the next path memory continues.
In step 712, a test is conducted to determine whether the current path memory being traced back meets the criteria to waiver the tracebacking. If so, skip to step 715; otherwise, take step 713. As shown in
Step 713 is to use a traceback module to store the decoded bits generated in each stage to the decoded bit storage during tracebacking the corresponding path memory, and determine whether the state of the current stage equals to the combination of the decoded bits of the previous several stages. If so, no further tracebacking is required and step 715 is taken; otherwise, step 714 is taken.
At the beginning of tracebacking, storage control module 525 refers to the counter of the corresponding decoded bit storage of the first path memory being traced back. If the count in the counter is not 16, sub-module 524a is activated and the tracebacking starts with the use of values stored in path memory. Traceback sub-module 524a stores the decoded bits to corresponding decoded bit storage. When the number of the traced back stages equals to the sum of the count in the counter and 1, storage control module 525 determines whether the state of the minimum path metric of the current stage equals to the combination of the decoded bits of the previous several stages. If so, it means the paths are overlapping. Then, the counter is set to 16 and traceback sub-module 524a is shut down. Otherwise, tracebacking is continued until the end of the path memory is reached. For example, during the tracebacking, when the state of the current stage (6 bits) equals to the effective combination of the decoded bits of the previous three stages, the paths overlap, and the sub-module 524a can be shut down. When tracebacking reaches k-th stage, the state is 011100, and the decoded bits of (k-1)th stage, (k-2)th stage, and (k-3)th stage are 00, 11, and 01, respectively, the paths overlap.
Traceback sub-module 524b is for the tracebacking of the second path memory. The operation mode of the tracebacking is similar to that of the traceback sub-module 524a. Traceback and output sub-module 524c is for the tracebacking of the third path memory, and is required to perform tracebacking and decoding. The operation mode of the tracebacking is similar to those of the traceback sub-modules 524a, 524b. When finishing tracebacking, the decoded bits stored in the decoded bit storage are all outputted.
Step 714 is to determine if the current path memory is completely traced back. If so, proceed the next path memory for tracebacking and take step 715; otherwise, return to step 713.
Finally, step 715 is to determine whether the number of the traced back path memories equals to the preset number. If so, go to step 704; otherwise, return to step 712. According to the conventional three-pointer even method for memory management, when three path memories are traced back, step 704 can be taken to output all the decoded bits stored in the decoded bit storage corresponding to the third path memory.
In addition to the path memory of a conventional Viterbi decoder, the present invention also includes decoded bit register (as shown in
The simulation simulates the number of traceback of each packet at various data rates. The number of packets is 1000, and each packet is 1000-byte long. In a conventional three-pointer even method, the required traceback is 11947 times at all data rates. However, as it is found that less than 1/5 tracebacks are required when the prediction device is activated. From the simulation results, it shows that the number of memory access is reduced, and the power consumption is also reduced.
The difference between the present invention and the conventional techniques is that the present invention stores decoded bits in the decoded bit storage, while the conventional techniques store the state value. The conventional techniques require traceback to output decoded bits, while the present invention can directly output the decoded bits when the path overlapping occurs.
Although the present invention has been described with reference to the preferred embodiments, it will be understood that the invention is not limited to the details described thereof. Various substitutions and modifications have been suggested in the foregoing description, and others will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
093138115 | Dec 2004 | TW | national |