FEC Decoding Apparatus and Method
AssigneeHuawei Technologies Co., Ltd.
InventorsZhiyu Xiao, Mo Li
Life of this patent
Estimating the term…
Abstract
A decoding apparatus and method. When all the code words in the to-be-decoded group meet that a checksum is 0, forward error correction (FEC) decoding is not performed, and only the sign bit decision is performed. That is, in a process of performing multiple times of decoding on each code word, FEC decoding is not always performed every time. This reduces power consumption required by FEC decoding.
Claims15
A forward error correction (FEC) decoding apparatus, comprising:
- a memory comprising instructions;
- and
- a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
- obtain a to-be-decoded group, wherein the to-be-decoded group comprises a preset quantity of code words;
- detect whether all the code words in the to-be-decoded group meet that a checksum is 0;
- perform a sign bit decision on the to-be-decoded group when all the code words in the to-be-decoded group meet that the checksum is 0, wherein the sign bit decision is to decide a nonnegative number to be 1 and to decide a negative number to be 0;
- detect whether there is at least one code word on which the sign bit decision has been performed in the to-be-decoded group when all the code words in the to-be-decoded group do not meet that the checksum is 0;
- perform data restoration on each code word on which the sign bit decision has been performed when there is at least one code word on which the sign bit decision has been performed in the to-be-decoded group, wherein the data restoration is to restore 0 to a negative number of a maximum value obtained after analog-to-digital conversion, and wherein the data restoration is to restore 1 to a positive number of the maximum value obtained after the analog-to-digital conversion;
- and
- construct a new to-be-decoded group using each code word obtained after the data restoration and each code word on which the sign bit decision has not been performed, to perform FEC decoding.
A forward error correction (FEC) decoding method, comprising:
- obtaining a to-be-decoded group, wherein the to-be-decoded group comprises a preset quantity of code words;
- detecting whether all the code words in the to-be-decoded group meet that a checksum is 0;
- performing a sign bit decision on the to-be-decoded group when all the code words in the to-be-decoded group meet that the checksum is 0, wherein the sign bit decision is to decide a nonnegative number to be 1 and to decide a negative number to be 0;
- detecting whether there is at least one code word on which the sign bit decision has been performed in the to-be-decoded group when all the code words in the to-be-decoded group do not meet that the checksum is 0;
- performing data restoration on each code word on which the sign bit decision has been performed when there is at least one code word on which the sign bit decision has been performed in the to-be-decoded group, wherein the data restoration is to restore 0 to a negative number of a maximum value obtained after analog-to-digital conversion, and wherein the data restoration is to restore 1 to a positive number of the maximum value obtained after the analog-to-digital conversion;
- and
- constructing a new to-be-decoded group using each code word obtained after the data restoration and each code word on which the sign bit decision has not been performed, to perform FEC decoding.
A computer program product comprising a non-transitory computer readable storage medium storing program code thereon for forward error correction (FEC) decoding, the program code comprising instructions for executing a method that comprises:
- obtaining a to-be-decoded group, wherein the to-be-decoded group comprises a preset quantity of code words;
- detecting whether all the code words in the to-be-decoded group meet that a checksum is 0;
- performing a sign bit decision on the to-be-decoded group when all the code words in the to-be-decoded group meet that the checksum is 0, wherein the sign bit decision is to decide a nonnegative number to be 1 and is to decide a negative number to be 0;
- detecting whether there is at least one code word on which the sign bit decision has been performed in the to-be-decoded group when all the code words in the to-be-decoded group do not meet that the checksum is 0;
- performing data restoration on each code word on which the sign bit decision has been performed when there is at least one code word on which the sign bit decision has been performed in the to-be-decoded group, wherein the data restoration is to restore 0 to a negative number of a maximum value obtained after analog-to-digital conversion, and wherein the data restoration is to restore 1 to a positive number of the maximum value obtained after the analog-to-digital conversion;
- and
- constructing a new to-be-decoded group using each code word obtained after the data restoration and each code word on which the sign bit decision has not been performed, to perform FEC decoding.
Dependencies are inferred from the claim text.