Summary of the invention
The object of the present invention is to provide a kind of coding method of convolution code and device, make carrying out in convolution code decode procedure, is not only to rely on CRC check to carry out error detection, thereby reduces the false alarm probability of convolution code decoding.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of coding method of convolution code, comprise following steps:
A. carrying out in Viterbi Viterbi decode procedure, preserve decoding average information;
B. the data that described Viterbi decoding obtained, carry out cyclic redundancy check (CRC) code CRC check;
If C. CRC check is correct, in conjunction with described decoding average information, the data that described CRC check is obtained, carry out secondary verification;
If D. the result of described secondary verification meets the condition setting in advance, judge that convolution code decoding is correct; Otherwise judge it is flase drop.
Embodiments of the present invention also provide a kind of convolution code code translator, comprise: Viterbi decoding module, decoding average information memory module, CRC check module and secondary correction verification module;
Described Viterbi decoding module carries out Viterbi Viterbi decoding;
Described decoding average information memory module is kept at the decoding average information producing in described Viterbi decoding module decode procedure;
The data that described CRC check module obtains described Viterbi decoding module, carry out cyclic redundancy check (CRC) code CRC check; Whether and it is correct in described secondary correction verification module to export CRC check;
Described secondary correction verification module is in the time that described CRC check module output CRC check is correct, and in conjunction with described decoding average information, the data that described CRC check module is obtained, carry out secondary verification; And in the time that the result of described secondary verification meets the condition setting in advance, judge that convolution code decoding is correct; In the time that the result of described secondary verification does not meet the condition setting in advance, judgement is flase drop.
Embodiment of the present invention in terms of existing technologies, carrying out, in Viterbi decode procedure, utilizing the information in decode procedure, carry out secondary verification in conjunction with CRC check information, not only to rely on CRC check to carry out error detection, thereby reduced the false alarm probability of convolution code decoding.
In addition, carrying out in Viterbi decode procedure, the decoding average information of preserving can comprise: retain the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state ratio, retain metric corresponding to the last current state in path, retain in path any one in last current state maximal metric value and time ratio of large metric or combine; Correspondingly, in the time carrying out secondary verification, described in the condition that sets in advance be: metric corresponding to last current state that the ratio of the metric that metric corresponding to the last current state in described retention path is corresponding with initial equilibrium state is greater than the first threshold value, described retention path is greater than last current state maximal metric value and time ratio of large metric in the second threshold value, described retention path and is greater than in the 3rd threshold value and corresponding any one of described decoding average information or combination in any; Wherein, in the time that the described condition setting in advance is the combination of two kinds or two kinds above conditions, if all conditions all meets, judge that convolution code decoding is correct; Otherwise judge it is flase drop.
By preservation retain the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state ratio, retain metric corresponding to the last current state in path, retain last current state maximal metric value and time these decoding average informations of ratio of large metric in path, be used for judging flase drop, can make the present invention realize simply, substantially can not increase the complexity of convolution code decoding.
In addition, carrying out in Viterbi decode procedure, if what adopt is tail-biting convolutional code, described decoding average information can be: retain ratio that whether initial equilibrium state in path and last current state are the metrics that metric corresponding to same state, the last current state of retaining path is corresponding with initial equilibrium state, retain metric corresponding to the last current state in path, retain any one or combination in any in the ratio of last current state maximal metric value in path and time large metric; Correspondingly, in the time carrying out secondary verification, described in the condition that sets in advance be that the initial equilibrium state in described retention path and last current state are that metric corresponding to last current state that the ratio of the metric that metric corresponding to the last current state in same state, described retention path is corresponding with initial equilibrium state is greater than the first threshold value, described retention path is greater than last current state maximal metric value and time ratio of large metric in the second threshold value, described retention path and is greater than in the 3rd threshold value and corresponding any one of described decoding average information or combination in any; Wherein, in the time that the described condition setting in advance is the combination of two kinds or two or more conditions, if all conditions all meets, judge that convolution code decoding is correct; Otherwise judge it is flase drop.
In tail-biting convolutional code decoding, the initial equilibrium state and the last current state that make full use of retention path are that this feature of same state judges flase drop, can further reduce the false alarm probability of convolution code decoding.
In addition, in Viterbi decode procedure, comprise following sub-step:
If described Viterbi is decoded as the channel decoding of the Physical Downlink Control Channel LTEPDCCH in long evolving system, judges under same Downlink Control Information DCI configuration and whether detect and exceed a DCI configuration;
In this way, the metric corresponding to last current state in the final retention path of the lower all DCI configuration correspondences that detect of directly more same DCI configuration, metric corresponding to last current state that retains maximum retention path is described decoding average information; Or, more finally retain the ratio of path last current state metric and initial equilibrium state metric, the ratio that retains the metric that metric corresponding to the last current state in maximum retention path is corresponding with initial equilibrium state is described decoding average information.
For LTE PDCCH, being defined in lower of some identical configuration and may having a kind of DCI configuration according to standard, if there is flase drop, cause detecting and exceed DCI configuration, corresponding decoding average information also there will be multiple, occurs the situation that some cannot be judged, by retaining maximum average information while making secondary verification, be conducive to secondary verification, thereby further reduce the false alarm probability of convolution code decoding.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in the each execution mode of the present invention, in order to make reader understand the application better, many ins and outs are proposed.But, even without these ins and outs and the many variations based on following execution mode and modification, also can realize the each claim of the application technical scheme required for protection.
The first execution mode of the present invention relates to a kind of coding method of convolution code, and flow process as shown in Figure 4, specifically comprises following steps:
Step 401, carries out Viterbi Viterbi decoding, and preserves decoding average information.
The most frequently used folding coding algorithm is all Viterbi decoding algorithm at present, the algorithm basic thought of this decoding is the possible state transitions metric of step-by-step calculation, each state of every one-level only retains larger branch, after afterbody, start to recall (Traceback) from the state of metric maximum, rule out the original coding bit in maximal metric value respective path.This method is a kind of interpretation method of maximum likelihood, and the final path retaining is maximum likelihood path.
When Viterbi algorithm has successfully solved searching maximum likelihood path, amount of calculation is with this problem of length coding length N exponential increase.This algorithm adopts the mode iterating to seek most probable path.It is divided into N step and iterates, and in each step, it first calculates the path metric in all paths that enter each state, then compares, and preserves path and the path metric thereof that optimal path is measured, and abandon other path.Be saved the path of getting off and be called as retention path.And after in the end a step iterates, from the retention path of each state, choose the information bit having on the retention path that maximum path measures as decode results, this path is exactly maximum likelihood path.
Conventionally convolution code is all used as channel error correction, analyze some INFORMATION DISCOVERYs that obtain in decode procedure, decoding average information in decode procedure also can be for judging flase drop, and these packets of information contain: retain metric corresponding to the last current state in path, retain the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state ratio, retain in path last current state maximal metric value and time large ratio of metric.Utilize above-mentioned information, after CRC check, can do again further judgement, be i.e. secondary verification (DoubleCheck).Below take the decoding average information of preserving as the ratio of retaining the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state as example is specifically described, step 402 to 407 in, carry out CRC check and secondary verification, to judge that whether convolution code decoding is correct.
Specifically, in step 402, the data that decoding obtains to Viterbi, carry out CRC check;
Step 403, judges whether CRC check is passed through; If verification failure, performs step 407; Otherwise, execution step 404;
Step 404, in conjunction with decoding average information, that is: retains the ratio of the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state, and the data that CRC check is obtained, carry out secondary verification;
Step 405, judges that whether the result of secondary verification meets the condition setting in advance, and whether the ratio of retaining the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state is greater than the first threshold value, in this way, performs step 406; Otherwise, execution step 407;
Step 406, judges that convolution code decoding is correct;
Step 407, judges convolution code decoding error.
In step 406, the first threshold value can be determined in the following way: input different training sequences and carry out convolution code decoding, preserve the ratio of the metric that metric corresponding to the last current state in the retention path in each convolution code decode procedure is corresponding with initial equilibrium state, between ratio when ratio that can be in the time of correct decoding and wrong decoding, determine a representative value or scope, as the first threshold value.
In addition, if decoding average information comprises: retain the metric corresponding to last current state in path, so, in the time of secondary verification, the condition setting in advance is: metric corresponding to last current state of retaining path is greater than the second threshold value.Definite method of the second threshold value can be similar with definite method of the first threshold value herein, do not repeat them here.
Or, if decoding average information comprises: retain last current state maximal metric value and time ratio of large metric in path, so, in the time of secondary verification, the condition setting in advance is: retain last current state maximal metric value in path and be greater than the 3rd threshold value with time ratio of large metric.Definite method of the 3rd threshold value can be similar with definite method of the first threshold value herein, do not repeat them here.
Or, decoding average information also can comprise: metric corresponding to last current state of retaining path, retain the ratio of the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state, two kinds or the combination of three kinds in retention path in the ratio of last current state maximal metric value and time large metric, correspondingly, in the time of secondary verification, the condition setting in advance is: the ratio of retaining the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state is greater than the first threshold value, metric corresponding to last current state of retaining path is greater than the second threshold value, retain last current state maximal metric value in path and time large ratio of metric and be greater than in the 3rd threshold value two kind or the combination of three kind corresponding with decoding average information, wherein, in the time that the condition setting in advance is the combination of two kinds or three kinds conditions, if all conditions all meets, judge that convolution code decoding is correct, otherwise judge it is flase drop.Such as, if decoding average information is the ratio of the metric that metric corresponding to the last current state in metric corresponding to the last current state in retention path, retention path is corresponding with initial equilibrium state, so, in the time of secondary verification, the condition setting in advance is: the ratio of retaining the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state is greater than the first threshold value, and the metric corresponding to last current state in retention path is greater than the second threshold value.
By preservation retain the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state ratio, retain metric corresponding to the last current state in path, retain last current state maximal metric value and time these decoding average informations of ratio of large metric in path, be used for judging flase drop, can make present embodiment realize simple, substantially can not increase the complexity of convolution code decoding.
Compared with prior art, present embodiment, carrying out, in Viterbi decode procedure, utilizing the information in decode procedure, is carried out secondary verification in conjunction with CRC check information, is not only to rely on CRC check to carry out error detection, thereby has reduced the false alarm probability of convolution code decoding.
The second execution mode of the present invention relates to a kind of coding method of convolution code.The second execution mode has done further improvement on the first execution mode basis, main improvements are: in second embodiment of the invention, if in convolution code decode procedure, what adopt is tail-biting convolutional code, so, can also preserve and retain whether initial equilibrium state and the last current state in path is that same state is as decoding average information; In the time carrying out secondary verification, be same state if retain initial equilibrium state and the last current state in path, think that decode results is correct, otherwise think flase drop.
In addition, the decoding average information of preservation can be also: retain ratio that whether initial equilibrium state in path and last current state are the metrics that metric corresponding to same state, the last current state of retaining path is corresponding with initial equilibrium state, retain metric corresponding to the last current state in path, retain any one or combination in any in the ratio of last current state maximal metric value in path and time large metric; Correspondingly, in the time of secondary verification, the condition setting in advance is that to retain the initial equilibrium state in path and last current state be that the ratio of the metric that metric corresponding to same state, the last current state of retaining path is corresponding with initial equilibrium state is greater than the first threshold value, or metric corresponding to last current state of retaining path is greater than the second threshold value, retains last current state maximal metric value and the inferior ratio of metric greatly in path and be greater than in the 3rd threshold value corresponding any one or combination in any with decoding average information; Wherein, in the time that the condition setting in advance is the combination of two kinds or two or more conditions, if all conditions all meets, judge that convolution code decoding is correct; Otherwise judge it is flase drop.
In tail-biting convolutional code decoding, the initial equilibrium state and the last current state that make full use of retention path are that this feature of same state judges flase drop, can further reduce the false alarm probability of convolution code decoding.
The 3rd execution mode of the present invention relates to a kind of coding method of convolution code.The 3rd execution mode has done further improvement on the first execution mode or the second execution mode basis, main improvements are: in third embodiment of the invention, for LTE PDCCH, being defined in lower of some identical configuration and may having a kind of DCI configuration according to standard, if there is flase drop, cause detecting and exceed DCI configuration, the directly metrics corresponding to last current state in final retention paths corresponding to more several configurations, only retain maximum; Or more finally retain the ratio of path last current state metric and initial equilibrium state metric, only reservation maximum.
Specifically, if Viterbi is decoded as the channel decoding of the Physical Downlink Control Channel LTEPDCCH in long evolving system, judges under same DCI configuration and whether detect and exceed a Downlink Control Information DCI configuration; In this way, the metric corresponding to last current state in the final retention path of the lower all DCI configuration correspondences that detect of directly more same DCI configuration, metric corresponding to last current state that retains maximum retention path is decoding average information; Or, more finally retain the ratio of path last current state metric and initial equilibrium state metric, the ratio that retains the metric that metric corresponding to the last current state in maximum retention path is corresponding with initial equilibrium state is decoding average information.
For LTE PDCCH, being defined in lower of some identical configuration and may having a kind of DCI configuration according to standard, if there is flase drop, cause detecting exceeding to detect and exceed a DCI configuration, corresponding decoding average information also there will be multiple, occurs the situation that some cannot be judged, by retaining maximum average information while making secondary verification, be conducive to secondary verification, thereby further reduce the false alarm probability of convolution code decoding.
The step of the whole bag of tricks is divided above, just in order being described clearly, can to merge into a step or some step is split while realization, is decomposed into multiple steps, as long as comprise identical logical relation, all in the protection range of this patent; To adding inessential modification in algorithm or in flow process or introducing inessential design, but the core design that does not change its algorithm and flow process is all in the protection range of this patent.
Four embodiment of the invention relates to a kind of convolution code code translator, as shown in Figure 5, comprises: Viterbi decoding module, decoding average information memory module, CRC check module and secondary correction verification module.
Viterbi decoding module carries out Viterbi Viterbi decoding.
Decoding average information memory module is kept at the decoding average information producing in Viterbi decoding module decode procedure; Decoding average information comprises: retain metric corresponding to the last current state in path, retain the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state ratio, retain any one or combination in any in the ratio of last current state maximal metric value in path and time large metric.
The data that CRC check module obtains Viterbi decoding module, carry out cyclic redundancy check (CRC) code CRC check; And whether export CRC check correctly to secondary correction verification module.
Secondary correction verification module is in the time that CRC check module output CRC check is correct, and in conjunction with decoding average information, the data that CRC check module is obtained, carry out secondary verification; And in the time that the result of secondary verification meets the condition setting in advance, judge that corresponding decode results is correct; Otherwise judge it is flase drop.The Conditional Include that this sets in advance: metric corresponding to last current state that the ratio of retaining the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state is greater than the first threshold value, retain path be greater than the second threshold value, retain last current state maximal metric value in path and time large ratio of metric is greater than in the 3rd threshold value and corresponding any one of decoding average information or combination in any; Wherein, in the time that the condition setting in advance is the combination of two kinds or two or more conditions, if all conditions all meets, judge that convolution code decoding is correct; Otherwise judge it is flase drop.
Be not difficult to find, present embodiment is the system embodiment corresponding with the first execution mode, present embodiment can with the enforcement of working in coordination of the first execution mode.The correlation technique details of mentioning in the first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the first execution mode.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, can be also a part for a physical location, can also realize with the combination of multiple physical locations.In addition, for outstanding innovation part of the present invention, in present embodiment, the unit not too close with solving technical problem relation proposed by the invention do not introduced, but this does not show not exist in present embodiment other unit.
Fifth embodiment of the invention relates to a kind of convolution code code translator.The 5th execution mode has done further improvement on the 4th execution mode basis, main improvements are: in the 5th execution mode, adopt when tail-biting convolutional code at Viterbi decoding module, decoding average information comprises: retain ratio that whether initial equilibrium state in path and last current state are the metrics that metric corresponding to same state, the last current state of retaining path is corresponding with initial equilibrium state, retain metric corresponding to the last current state in path, retain any one or combination in any in the ratio of last current state maximal metric value in path and time large metric.
The condition setting in advance in secondary correction verification module is: metric corresponding to last current state that the ratio of retaining the initial equilibrium state in path and last current state and be the metric that metric corresponding to same state, the last current state of retaining path is corresponding with initial equilibrium state is greater than the first threshold value, retain path be greater than the second threshold value, retain last current state maximal metric value in path and time large ratio of metric is greater than in the 3rd threshold value and corresponding any one of decoding average information or combination in any; Wherein, in the time that the condition setting in advance is the combination of two kinds or two or more conditions, if all conditions all meets, judge that convolution code decoding is correct; Otherwise judge it is flase drop.
Because the second execution mode is mutually corresponding with present embodiment, therefore present embodiment can with the enforcement of working in coordination of the second execution mode.The correlation technique details of mentioning in the second execution mode is still effective in the present embodiment, and the technique effect that can reach in the second execution mode can be realized in the present embodiment too, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the second execution mode.
Sixth embodiment of the invention relates to a kind of convolution code code translator.The 6th execution mode has done further improvement on the 4th execution mode or the 5th execution mode basis, main improvements are: in the 6th execution mode, for LTE PDCCH, Viterbi decoding module comprises: DCI configuration determination submodule, comparison sub-module.
Whether DCI configuration determination submodule, in the time that Viterbi decoding module is applied to the channel decoding of the Physical Downlink Control Channel LTE PDCCH in long evolving system, judges under same DCI configuration and detects and exceed a Downlink Control Information DCI configuration.
Comparison sub-module detects under same DCI configuration in the judgement of DCI configuration determination submodule while exceeding a DCI configuration, more same DCI configures lower all metrics corresponding to last current state that detect final retention paths corresponding to DCI configuration, or more finally retains the ratio of path last current state metric and initial equilibrium state metric.
The maximum that decoding average information memory module preservation comparison sub-module obtains is retained the metric corresponding to last current state in path; Or preserve the maximum that obtains of comparison sub-module and retain the ratio of the metric that metric corresponding to the last current state in path is corresponding with initial equilibrium state.
Because the 3rd execution mode is mutually corresponding with present embodiment, therefore present embodiment can with the enforcement of working in coordination of the 3rd execution mode.The correlation technique details of mentioning in the 3rd execution mode is still effective in the present embodiment, and the technique effect that can reach in the 3rd execution mode can be realized in the present embodiment too, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the 3rd execution mode.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above are to realize specific embodiments of the invention, and in actual applications, can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.