Decoding system and decoding method
10972127 ยท 2021-04-06
Assignee
Inventors
Cpc classification
H03M13/1125
ELECTRICITY
International classification
H03M13/09
ELECTRICITY
Abstract
The present disclosure provides a decoding system and method. The decoding system comprises a first decoder and a second decoder. The first decoder is configured to generate an intermediate decoding data by decoding a code data. The second decoder, coupled to the first decoder, wherein the second decoder is configured to generate a plain data by decoding the intermediate decoding data.
Claims
1. A decoding system, comprising: a first decoder, configured to generate an intermediate decoding data by decoding a code data according to a list having a variable list size in a first decoding algorithm; and a second decoder, coupled to the first decoder, wherein the second decoder is configured to generate a plain data by decoding the intermediate decoding data in a second decoding algorithm; wherein the first decoder is further configured to: decode the code data by using a polar code and execute a decoding procedure of the polar code which generates a decoding tree comprising a plurality of levels; determine the variable list size according to an error rate of each of the plurality of levels; and obtain the intermediate decoding data according to the variable list size, wherein each of the intermediate decoding data comprises a plurality of candidate data and a number of the plurality of candidate data is equal to the variable list size.
2. The decoding system of claim 1, wherein the plurality of levels comprises a first level and a second level and the first level comprises a first number of nodes and the second level comprises a second number of nodes, wherein the first decoder is further configured to: reduce the variable list size in response to the error rate of the first level being less than an error threshold; and keep the candidate data, which number is equal to the variable list size which is reduced, from the nodes of the first level.
3. The decoding system of claim 2, wherein the first decoder is further configured to: increase the variable list size in response to the error rate of the first level being larger than the error threshold; and keep the candidate data, which number is equal to the variable list size which is increased, from the nodes of the second level.
4. The decoding system of claim 1, wherein each of the candidate data comprises a redundancy data corresponding to a cyclic redundancy check (CRC) code, and the second decoder is further configured to filter the candidate data by using the redundancy data of each of the candidate data, and to choose the candidate data which passes an error detection check of the CRC code.
5. The decoding system of claim 4, wherein the second decoder is further configured to remove the redundancy data of the candidate data which is chosen in order to generate the plain data.
6. The decoding system of claim 4, wherein the decoding procedure comprises a successive cancellation list decoding procedure, wherein the first decoder is further configured to execute the successive cancellation list decoding procedure to generate a plurality of decoding paths where each of the plurality of decoding path comprises the candidate data in a first level and the candidate data in a second level, wherein each of the decoding paths comprises a correct probability.
7. The decoding system of claim 6, wherein the first decoder is configured to select a decode path which comprises a highest correct probability from the decoding paths.
8. The decoding system of claim 1, further comprising: an applied device, coupled to the first decoder, wherein the applied device is configured to output the code data to the first decoder.
9. A decoding method, suitable for a decoding system comprising a first decoder and a second decoder coupled to the first decoder, wherein the decoding method comprises: generating, by the first decoder, an intermediate decoding data by decoding a code data according to a list having a variable list size in a first decoding algorithm; generating, by the second decoder, a plain data by decoding the intermediate decoding data in a second decoding algorithm; decoding, by the first decoder, the code data by using a polar code and executing a decoding procedure of the polar code which generates a decoding tree comprising a plurality of levels; determining, by the first decoder, the variable list size according to an error rate of each of the plurality of levels; and obtaining the intermediate decoding data according to the variable list size, wherein each of the intermediate decoding data comprises a plurality of candidate data and a number of the plurality of candidate data is equal to the variable list size.
10. The decoding method of claim 9, wherein the plurality of levels comprises a first level and a second level and the first level comprises a first number of nodes and the second level comprises a second number of nodes, wherein the decoding method further comprises: reducing the variable list size in response to the error rate of the first level being less than an error threshold; and keeping the candidate data, which number is equal to the variable list size which is reduced, from the nodes of the first level.
11. The decoding method of claim 10, further comprising: increasing the variable list size in response to the error rate of the first level being more than the error threshold; and keeping the candidate data, which number is equal to the variable list size which is increased, from the nodes of the second level.
12. The decoding method of claim 9, wherein each of the candidate data comprises a redundancy data corresponding to a cyclic redundancy check (CRC) code, and the decoding method further comprises: filtering, by the second decoder, the candidate data by using the redundancy data of each of the candidate data; and choosing, by the second decoder, the candidate data which passes an error detection check by the CRC code.
13. The decoding method of claim 12, further comprising: removing, by the second decoder, the redundancy data of the candidate data which is chosen in order to generate the plain data.
14. The decoding method of claim 12, further comprising: executing, by the first decoder, a successive cancellation list decoding procedure to generate a plurality of decoding paths where each of the plurality of decoding path comprises the candidate data in a first level and the candidate data in a second level, wherein each of the decoding paths comprises a correct probability.
15. The decoding method of claim 14, further comprising: selecting a decode path which comprises a highest correct probability from the decoding paths.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The disclosure can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7) Reference will now be made in detail to the present embodiments of the disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
(8)
(9) The first encoder 110 is configured to encode the plain data, and to generate an intermediate encoding data. The first encoder 110 can be but not limited to a checksum function circuit, such as the cyclic redundancy check (CRC) coder. In some embodiments, the first encoder 110 attaches a redundancy data, which is partially captured from the plain data and then generated by a CRC code at the partially captured data, at the end of the plain data. Therefore, the generated data is the intermediate encoding data.
(10) The second encoder 120 receives the intermediate encoding data. The second encoder 120 is configured to encode the intermediate encoding data, and to generate a code data. For example, the second encoder 120 can be but not limited to a polar encoder. In some embodiments, the second encoder 120 encodes the intermediate encoding data by applying the polar code, and the polar code data is generated.
(11) The second encoder 120 includes a plurality of input channels and output channels. Taking 4 input channels U1, U2, . . . , U4, and 4 output channels X1, X2, . . . , and X4 as an example. The 4 input channels are configured to receive the plain data. For example, when the plain data has 4 bits, and each of the input channels U1-U4 receives 1 bit of the plain data. On the other hand, the second encoder 120 has the encoding circuit, for example, the exclusive or gates which execute exclusive or operator among the input channels. In some embodiments, the output channels output data as following: X1=U1U2U3U4, X2=U3U4, X3=U2U4, X4=U4.
(12) Referring to
(13) Reference is made to
(14) In operation S210, the plain data is received by the first encoder 110. In some embodiments, the plain data is the information to be processes. Subsequently, in operation S220, the plain data is encoded by the first encoder 110 to generate the intermediate encoding data. For example, the first encoder 110 calculates the redundancy information of the plain data. The redundancy information and the plain data are assembled together as the intermediate encoding data. It should be noted that any error detection codes and the error correction codes can be used at the first encoder 110 in the present disclosure.
(15) In operation S230, the intermediate data is encoded by the second encoder 120 to generate the code data. In some embodiments, the second encoder 120 applies the polar code at the intermediate encoding data in order to generate the code data. Subsequently, in operation S240, the code data is stored in the storage device or the code data is outputted to the transceiver.
(16) Reference is made to
(17) As shown in
(18) The second decoder 320 receives the intermediate decoding data. The second decoder 320 is configured to generate the plain data by decoding the intermediate decoding data. In some embodiments, the second decoder 320 is a checksum function circuit, such as the cyclic redundancy check (CRC) decoder. In some embodiments, the second decoder 320 performs the error detection algorithm and/or error correction algorithm to restore the intermediate decoding data to the plain data.
(19) Referring to
(20) Reference is made to
(21) In operation S410, the code data is retrieved from the applied device 330. The applied device can be but not limited to a storage or a receiver. In operation S420, the code data is decoded by the first decoder 310 according to a list having a variable list size and generating the intermediate decoding data. In some embodiments, the first decoder is the polar decoder and the code data is the polar code data. The decoding method implements the polar codes with the list, such as a successive cancellation list, and generates a decoding tree which has a plurality of levels. In the document, the size of the successive cancellation list varies according to an error rate of each level of the decoding tree. For more detailed illustration of the polar decoding procedure, the following statements provide exemplary embodiments.
(22) Reference is made to
(23) In some embodiment, at the level 510 shown in
(24) TABLE-US-00001 TABLE 1 the list for the level 510 List Path 1 0
(25) At the level 520, there are two possible paths by extending from the two former paths. Before pruning the path(s) from two possible paths, the first decoder 310 determines whether to change the variable list size for the level 520. In some embodiment, the first decoder 310 will compare the error rate of the level 520 with an error threshold. If the error rate of the level 520 is less than the error threshold, the variable list size will be reduced. On the other hand, of the error rate of the level 520 is larger than the error threshold, the variable list size will be increased. For example, the error rate of the level 520 is 0.000001 and the error threshold is 0.00001. The error rate of the level 520 which is less than the error threshold. Accordingly, the variable list size is reduced by half, such as 2. The variable list size is 2 in the level 520.
(26) As shown in Table 2, illustrating the list for the level 520. Since the list size is 2 which is equal to the number of the paths, the two paths will be reserved. That is, the node 521 and 523 are reserved. In some embodiments, the paths 00 and 01 are reserved.
(27) TABLE-US-00002 TABLE 2 the list for the level 520 List Path 1 00 2 01
(28) At the level 530, there are four possible paths by extending from the two former paths (for example, two paths will be extended respectively at the node 521 and 523). Before pruning the path(s) from four possible paths, the first decoder 310 determines whether to change the variable list size for the level 530. In some embodiment, the first decoder 310 will compare the error rate of the level 530 with the error threshold. If the error rate of the level 530 is larger than the error threshold, the variable list size will be increased. For example, the error rate of the level 530 is 0.0002. The error rate of the level 530 is larger than the error threshold 0.0001. Accordingly, the variable list size is increased by half, such as 4. The variable list size is 4 in the level 530.
(29) As shown in Table 3, illustrating the list for the level 530. Since the list size is 4 which is equal to the number of the paths, the four paths will be reserved. That is, the node 531, 533, 535 and 537 are reserved. In some embodiments, the paths 000, 001, 010, and 011 are reserved.
(30) TABLE-US-00003 TABLE 3 the list for the level 530 List Path 1 000 2 001 3 010 4 011
(31) Similarly, at the level 540, there are eight possible paths by extending from the four former paths (for example, four paths will be extended respectively at the node 531, 533, 535, and 537). Before pruning the path(s) from the eight possible paths, the first decoder 310 determines whether to change the variable list size for the level 540. In some embodiment, the first decoder 310 will compare the error rate of the level 540 with an error threshold. If the error rate of the level 530 is less than the error threshold, such as 0.0001, the variable list size will be reduced. For example, the error rate of the level 540 is 0.000003. The error rate of the level 540 is less than the error threshold 0.0001. Accordingly, the variable list size is decreased by half, such as 2. The variable list size is 2 in the level 540.
(32) As shown in Table 4, illustrating the list for the level 540. Since the list size is 2 which is less than the number of the possible paths, only 2 paths will be reserved and other 6 paths should be discarded from the 8 possible paths. In some embodiments, it is supposed that the paths (shown as the dash line) 0000, 0010, 0011, 0100, 0110, and 0111 contain the lower reliability information (or higher frame error rate). Hence, the paths 0000, 0010, 0011, 0100, 0110, and 0111 are discarded and the paths 0001 (node 541), and 0101 (node 543) are reserved.
(33) TABLE-US-00004 TABLE 4 the list for the level 540 List Path 1 0001 2 0101
(34) As illustrated above, each of the paths has corresponding correct probability. The higher the reliability is, the higher the correct probability is. As shown in Table 5, in traditional polar decoding procedure, the path having the highest correct probability, such as the path 0001, will be chosen as the output data, that is, the polar decoded data. However, the probabilities are estimated values and there may be some errors in the estimations. That is, the path with the highest correct probability can be the wrong data.
(35) TABLE-US-00005 TABLE 5 the correct probability of each path List Path Correct probability 1 0001 0.99 2 0101 0.9
(36) Therefore, referring to
(37) As shown in Table 5, there are two paths, that is, two candidate data of the intermediate decoding data. In some embodiments, the intermediate decoding data contains the redundancy data. Subsequently, the second decoder 320 filters the candidate data by using the redundancy data of each candidate data. For example, the second decoder 320 computes the redundancy data to examine whether there is error occurred at the candidate data or not. Therefore, the second decoder 320 chooses the candidate data which matches the requirements of the redundancy data or other CRC code.
(38) Reference is made to Table 6, illustrating the result of the examination by the second decoder 320. As shown in Table 6, the path 0001 which has the highest correct probability does not pass the error detection check by the CRC code. On the other hand, the path 0101 is the only one path passing the error detection check by the CRC code. Hence, the path 0101 will be chosen as the outputted data. The second decoder 320 decodes the outputted data, for example, the redundancy data of the outputted data is removed. Therefore, the plain data is generated.
(39) TABLE-US-00006 TABLE 6 the result of the error detecting examination List Path Correct probability PASS examination? 1 0001 0.99 NO 2 0101 0.9 YES
(40) In another embodiment, reference is made to Table 7, another result of the examination by the second decoder 320 (not shown in
(41) TABLE-US-00007 TABLE 7 the result of the error detecting examination List Path Correct probability PASS examination? 1 0001 0.99 NO 2 1001 0.9 YES 3 1011 0.88 NO 4 1111 0.8 YES
(42) In some embodiments, the coding system 100 and the decoding system 300 are disposed on a storage system. For example, the storage system may execute the method for encoding data to generate the code data. Hence, it is the code data stored. On the other hand, while the code data is retrieved, the storage system may execute the method for decoding data to generate the plain data.
(43) As illustrated above, the present disclosure provides the coding system 100 and method thereof and the decoding system 300 and method thereof, which apply the polar codes and the error detection/correction codes on data. In the polar decoding procedure, the size of the successive cancellation list is changed according to the error rate of each level in the decoding tree. The size of the successive cancellation list affects the decoding complexity, for example, the larger the list is, the larger the decoding complexity costs. The traditional polar decoding procedure applies the fixed size successive cancellation list, and hence the decoding complexity will be fixed at the larger value. Taking one level of the decoding tree as an example, such as the level 540 in
(44) Although the present invention has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the embodiments contained herein.
(45) It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.