Coding method and apparatus for data communication
The coding method and apparatus address the challenge of achieving high coding gain and low latency by sharing bits across codewords, improving decoding speed and reducing system delay in data communication systems.
Patent Information
- Application Number
- JP2022559489
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-08-27
- Filing Date
- 2021-03-20
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2041-03-20
AI Technical Summary
Existing coding techniques struggle to achieve high coding gain while maintaining low latency, particularly in data communication systems with emerging technologies like Artificial Intelligence that require ultra-low latency and high reliability.
A coding method and apparatus that form a first codeword using k coded bits and n information bits, where n bits are shared with m previously formed codewords, and (2n-k) check bits are generated, ensuring each bit in the codeword is protected by multiple codewords at different times, improving decoding speed and reducing delay.
This approach enhances coding gain and reduces decoding latency by leveraging shared bits across codewords, allowing for faster data collection and decoding without long waits.
Smart Images

Figure 0007560571000027 
Figure 0007560571000028 
Figure 0007560571000029
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202010245565.1, entitled “Coding Technique and Apparatus for Error Correction,” filed with the State Intellectual Property Administration of China on March 31, 2020, and Chinese Patent Application No. 202010881014.4, entitled “Coding Method and Apparatus for Data Communication,” filed with the State Intellectual Property Administration of China on August 27, 2020. These applications are incorporated herein by reference in their entireties.
[0002] Technical Field The present application relates to coding techniques, and in particular to low-delay coding techniques and apparatus for data communication. [Background technology]
[0003] In a communication system, to transmit a large amount of information, data is usually transmitted at a transmitting end and transmitted to a receiving end through a communication channel. For example, the communication channel includes optical fiber transmission, wireless, cable, etc. However, when the transmitted signal passes through the communication channel, noise in the channel or noise of the transceiver components is superimposed on the signal, which causes errors in the signal received at the receiving end. In order to recover the original signal transmitted by the transmitting end from the erroneous received signal, it is common to use Forward Error Correction (FEC).
[0004] FEC is to generate check bits of a certain length based on the coding relationship using the information bits to be transmitted, combine the check bits with the information bits and transmit them, and correct the bit errors caused in the transmission process by using the check bits and the known coding relationship at the receiving end. At the current stage, with the emergence of new technology applications such as artificial intelligence (AI), the requirement for interconnecting ultra-low delay and high reliability becomes more and more prominent, and it becomes more and more important to improve coding gain and reduce delay. Summary of the Invention [Problem to be solved by the invention]
[0005] The present application provides a coding method and apparatus for data communication to solve the problem of the prior art in that high coding gain and low delay cannot be guaranteed at the same time. [Means for solving the problem]
[0006] According to a first aspect, there is provided a coding method for data communication, comprising: forming a first codeword, the first codeword comprising 2n bits, formed by using k coding bits, the n bits in the first codeword being from m codewords formed prior to the first codeword, and the other n bits in the first codeword comprising (kn) information bits and (2n-k) check bits, n, m and k all being positive integers, 2n>k>n>m; and transmitting the other n bits in the first codeword.
[0007] In this embodiment of the present application, the bits in the first codeword are protected by multiple codewords generated at different times, and the coding gain effect is better.In addition, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords.The bits protected by a larger amount of codewords have a higher convergence speed, so that the decoding speed of the decoder can be improved, and thus the delay is reduced.
[0008] With respect to the first aspect, in a first possible implementation of the first aspect, the method further includes: storing the other n bits for use when codewords after the first codeword are coded.
[0009] With respect to the first aspect or the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the same amount of bits in the first codeword are from all of the m codewords formed before the first codeword, where n is an integer multiple of m. In this implementation, the first codeword shares the same amount of bits with all of the m previously formed codewords, where more than one bit is shared. When a large amount of bits are shared between two codewords, the amount of codewords that need to share bits is reduced, thereby allowing the data collection and decoding process to be completed quickly at the receiving end, thereby reducing delays.
[0010] With respect to the first aspect or the first possible implementation of the first aspect, in a third possible implementation of the first aspect, the amount of bits in the first codeword from the second codeword is a, and the amount of bits contributed to the first codeword by at least one of the m codewords formed before the first codeword is different from a, where a is a positive integer and the second codeword is any of the m codewords formed before the first codeword.
[0011] In this embodiment, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords. The bits protected by a larger amount of codewords converge relatively quickly, which then drives the convergence of the bits protected by a smaller amount of codewords, thereby improving the decoding speed of the decoder and reducing the delay.
[0012] With respect to the first aspect or any one of said possible implementations, in a fourth possible implementation of the first aspect, the step of forming the first codeword specifically includes: coding n bits from m codewords formed before the first codeword and the (kn) information bits to be transmitted to form the first codeword to obtain the (2n-k) check bits.
[0013] Regarding the first aspect or any one of said possible implementations, in a fifth possible implementation of the first aspect, n bits sent from a first codeword are shared with several codewords formed after the first codeword. Furthermore, n bits sent from the first codeword are shared with m codewords formed after the first codeword. Half of the bits in each codeword are shared with the previously formed codeword and the other half are shared with the later formed codeword, ensuring that each bit is protected by a different codeword, thereby obtaining a better coding gain.
[0014] Regarding the first aspect or any one of the possible implementations thereof, in a sixth possible implementation of the first aspect, each bit in the first codeword is used by at least two codewords.
[0015]
[0023] In a seventh possible implementation of the first aspect, regarding the first aspect or any one of the possible implementations, at least a portion of the bits in the first codeword from the m previously formed codewords are check bits in a previous codeword.
[0016] With respect to the first aspect or any one of said possible implementations, in an eighth possible implementation of the first aspect, n is 360 and k is 700. It should be understood that this is a specific codeword given in this application and that the first codeword may have another amount of bits. This is not a limitation in this application.
[0017] Regarding the first aspect or any one of said possible implementations, in a ninth possible implementation of the first aspect, the m codewords formed before the first codeword are divided into b groups, and the n bits in the first codeword shared with a previous codeword are divided into b groups, each group in the first codeword corresponds to a group in the m codewords formed before the first codeword, where b is a positive integer and n and m are each an integer multiple of b.
[0018] With respect to the ninth possible implementation of the first aspect, in a tenth possible implementation of the first aspect, n is 360 and m is 256. The 256 codewords formed before the first codeword are divided into four groups, each group having 64 codewords. The 360 bits in the first codeword that are shared with the previous codeword are divided into four groups, each group having 90 bits. Each group of 90 bits is from a corresponding group of 64 codewords.
[0019] According to a second aspect, a coding device for data communication is provided, the coding device comprising a coding unit and a transmitting unit. The coding unit is configured to perform the steps of: forming a first codeword, the first codeword comprising 2n bits, formed by using k coding bits, the n bits in the first codeword being from m codewords formed before the first codeword, and the other n bits in the first codeword comprising (kn) information bits and (2n-k) check bits; and transmitting the other n bits to the transmitting unit, n, m and k all being positive integers, 2n>k>n>m. The transmitting unit is further configured to transmit the other n bits in the first codeword.
[0020] According to the coding device provided in this embodiment of the present application, the bits in the first codeword are protected by multiple codewords generated at different times, and the coding gain effect is better.Furthermore, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords.The bits protected by a larger amount of codewords have a higher convergence speed, so that the decoding speed of the decoder can be improved, and thus the delay is reduced.
[0021] With respect to the second aspect, in a first possible implementation of the second aspect, the coding apparatus further includes storing the other n bits in the first codeword for use when the coding unit codes codewords subsequent to the first codeword.
[0022] With respect to the second aspect or the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the same amount of bits in the first codeword are from all of the m codewords formed before the first codeword, where n is an integer multiple of m. In this implementation, the first codeword shares the same amount of bits with all of the m previously formed codewords, where more than one bit is shared. When a large amount of bits are shared between two codewords, the amount of codewords that need to share bits is reduced, thereby allowing the data collection and decoding process to be completed quickly at the receiving end, thereby reducing delays.
[0023] With respect to the second aspect or the first possible implementation of the second aspect, in a third possible implementation of the second aspect, the amount of bits from the second codeword in the first codeword is a, and the amount of bits provided to the first codeword by at least one of the m codewords formed before the first codeword is different from a. Here, a is a positive integer, and the second codeword is any of the m codewords formed before the first codeword. In this embodiment, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords. The bits protected by a larger amount of codewords converge relatively quickly, which then drives the convergence of the bits protected by a smaller amount of codewords, thereby improving the decoding speed of the decoder and reducing the delay.
[0024] With respect to the second aspect or any one of said possible implementations, in a fourth possible implementation of the second aspect, the coding device is specifically configured for: coding n bits from m codewords formed before the first codeword to form a first codeword and the (kn) information bits to be transmitted to obtain the (2n-k) check bits.
[0025] Regarding the second aspect or any one of said possible implementations, in a fifth possible implementation of the second aspect, n bits sent from a first codeword are shared with several codewords formed after the first codeword. Furthermore, n bits sent from the first codeword are shared with m codewords formed after the first codeword. Half of the bits in each codeword are shared with the previously formed codeword, and the other half of the bits are shared with the later formed codeword, ensuring that each bit is protected by a different codeword, thereby obtaining a better coding gain.
[0026] Regarding the second aspect or any one of the possible implementations thereof, in a sixth possible implementation of the second aspect, each bit in the first codeword is used by at least two codewords.
[0027] No. 2 In a seventh possible implementation of the first aspect, at least a portion of the bits in the first codeword from the m previously formed codewords are check bits in a previous codeword.
[0028] With respect to the second aspect or any one of said possible implementations, in an eighth possible implementation of the second aspect, n is 360 and k is 700. It should be understood that this is a specific codeword given in this application and that the first codeword may have another amount of bits. This is not a limitation in this application.
[0029] Regarding the second aspect or any one of said possible implementations, in a ninth possible implementation of the second aspect, the m codewords formed before the first codeword are divided into b groups, and the n bits in the first codeword shared with a previous codeword are divided into b groups, each group in the first codeword corresponds to a group in the m codewords formed before the first codeword, where b is a positive integer and n and m are each an integer multiple of b.
[0030] With respect to a ninth possible implementation of the second aspect, in a tenth possible implementation of the second aspect, n is 360 and m is 256. The 256 codewords formed before the first codeword are divided into four groups, each group having 64 codewords. The 360 bits in the first codeword that are shared with the previous codeword are divided into four groups, each group having 90 bits. Each group of 90 bits is from a corresponding group of 64 codewords.
[0031] According to a third aspect, there is provided a decoding method for data communication, comprising recovering a first codeword, the first codeword comprising 2n bits and formed by using k coding bits, the n bits in the first codeword being from m codewords decoded prior to the first codeword, and the other n bits in the first codeword comprising (kn) information bits and (2n-k) check bits, where n, m, and k are all positive integers and 2n>k>n>m.
[0032] It should be understood that in this embodiment, at least m codewords are decoded before the first codeword is restored. Half of the bits in the first codeword are from m previously decoded codewords, and the remaining n bits are the currently received bitstream. Furthermore, in this embodiment, different codewords share different amounts of bits with each other, and multiple codewords can share more than one bit. A larger amount of shared bits indicates a reduction in the amount of codewords that need to be associated, so that decoding can be performed without waiting for a long time, thereby reducing system delay.
[0033] With respect to the third aspect, in a first possible implementation of the third aspect, the same amount of bits in the first codeword are from all of m codewords decoded prior to the first codeword, where n is an integer multiple of m. In this implementation, the first codeword shares the same amount of bits with all of m previously decoded codewords, where two or more bits are shared. When a large amount of bits are shared between two codewords, the amount of codewords that need to share bits is reduced, thereby allowing the data collection and decoding process to be completed more quickly, thereby reducing delays.
[0034] Regarding the third aspect, in a second possible implementation of the third aspect, the amount of bits from the second codeword in the first codeword is a, and the amount of bits provided to the first codeword by at least one of the m codewords decoded before the first codeword is different from a. Here, a is a positive integer, and the second codeword is any of the m codewords decoded before the first codeword. In this embodiment, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords. The bits protected by a larger amount of codewords converge relatively quickly, which then drives the convergence of the bits protected by a smaller amount of codewords, thereby improving the decoding speed of the decoder and reducing the delay.
[0035] With respect to the third aspect or any one of said possible implementations, in a third possible implementation of the third aspect, n is 360 and k is 700. It should be understood that this is a specific codeword given in this application and that the first codeword may have another amount of bits. This is not a limitation in this application.
[0036] According to a fourth aspect, a decoding device for data communication is provided, including a decoding unit and a storage unit. The decoding unit is configured to receive a transmitted codeword, recover a first codeword, and decode the first codeword. The first codeword includes 2n bits, and the n bits in the first codeword are from m codewords decoded before the first codeword, where n and m are both positive integers, and n>m. The storage unit is configured to: store the transmitted codeword, receive decoded information from the decoding unit, update the stored codeword, and send the updated codeword back to the decoding unit in a subsequent decoding process. In this embodiment, in the decoding process, information bits obtained in previous decoding are used, and the information bits are protected by different codewords, so the decoding performance is better. Furthermore, the larger amount of bits shared between two codewords indicates a reduction in the amount of codewords that need to be associated, so that decoding can be performed without waiting for a long time, thereby reducing the system delay.
[0037] With respect to the fourth aspect, in a first possible implementation of the fourth aspect, the same amount of bits in the first codeword are from all of m codewords decoded prior to the first codeword, where n is an integer multiple of m. In this implementation, the first codeword shares the same amount of bits with all of m previously decoded codewords, where two or more bits are shared. When a large amount of bits are shared between two codewords, the amount of codewords that need to share bits is reduced, thereby allowing the data collection and decoding process to be completed more quickly, thereby reducing delays.
[0038] Regarding the fourth aspect, in a second possible implementation of the fourth aspect, the amount of bits from the second codeword in the first codeword is a, and the amount of bits provided to the first codeword by at least one of the m codewords decoded before the first codeword is different from a. Here, a is a positive integer, and the second codeword is any of the m codewords decoded before the first codeword. In this embodiment, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords. The bits protected by a larger amount of codewords converge relatively quickly, which then drives the convergence of the bits protected by a smaller amount of codewords, thereby improving the decoding speed of the decoder and reducing the delay.
[0039] With respect to the fourth aspect or any one of said possible implementations, in a third possible implementation of the fourth aspect, n is 360 and k is 700. It should be understood that this is a specific codeword given in this application and that the first codeword may have another amount of bits. This is not a limitation in this application.
[0040] According to a fifth aspect, a data communication-based concatenated coding method is provided, the method comprising the steps of receiving data bits, performing KP4 coding on the data bits to obtain a KP4 codeword, interleaving the KP4 codeword to obtain an interleaved codeword, and coding the interleaved codeword according to a coding method according to the first aspect or any one of the possible implementations of the first aspect. The interleaved codeword is not decoded before the coding according to the first aspect or any one of the possible implementations of the first aspect is performed. In this embodiment, the next step of the concatenated coding is performed directly on the interleaved KP4 codeword without decoding the KP4 codeword, thereby reducing power consumption.
[0041] According to a sixth aspect, a data communication-based concatenated coding device is provided. The concatenated coding device includes a first coding unit, an interleaving unit, and a second coding unit. The first coding unit is configured to receive data bits, perform KP4 coding on the data bits, and send the resulting KP4 codeword to the interleaving unit. The interleaving unit is configured to interleave the KP4 codeword and send the interleaved codeword to the second coding unit. The second coding unit is configured to code the interleaved codeword based on a coding method according to the first aspect or any one of the possible implementations of the first aspect. The second coding unit does not decode the interleaved codeword. In this embodiment, the next step of the concatenated coding is performed directly on the interleaved KP4 codeword without decoding the KP4 codeword, thereby reducing power consumption.
[0042] According to a seventh aspect, there is provided a coding method for data communication, comprising the steps of forming a first codeword, the first codeword comprising n image bits and n to-be-transmitted bits, the n image bits being selected from m to-be-transmitted bits in a source codeword, the source codeword being a codeword formed prior to the first codeword, n and m both being positive integers, n>m; and transmitting the n to-be-transmitted bits in the first codeword.
[0043] In this embodiment of the present application, the bits in the first codeword are protected by multiple codewords generated at different times, and the coding gain effect is better.In addition, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords.The bits protected by a larger amount of codewords have a higher convergence speed, so that the decoding speed of the decoder can be improved, and thus the delay is reduced.
[0044] With respect to the seventh aspect, in a first possible implementation of the seventh aspect, the n to-be-transmitted bits include p check bits and (np) information bits, where p is a positive integer less than n, and the p check bits are obtained by coding the n image bits and the (np) information bits.
[0045] With respect to the first possible implementation of the seventh aspect, in a second possible implementation of the seventh aspect, the n image bits include image check bits and image information bits, where the image check bits are selected from the check bits in the m source codewords and the image information bits are selected from the information bits in the m source codewords.
[0046] With respect to the second possible implementation of the seventh aspect, in a third possible implementation of the seventh aspect, the amount of image check bits is the same as the amount of check bits.
[0047] With respect to the seventh aspect or possible implementations of the seventh aspect, in a fourth possible implementation of the seventh aspect, a maximum difference in the amount of bits contributed to the first codeword by different source codewords in the m source codewords is greater than 1 bit, in which case error correction performance can be further improved while maintaining low delay.
[0048] With regard to the seventh aspect or possible implementations of the seventh aspect, in a fifth possible implementation of the seventh aspect, the code length of the first codeword is not greater than 2048 and the amount of error correction bits is not greater than 5. In this embodiment, the first codeword can have relatively good performance while ensuring low delay.
[0049] With respect to the seventh aspect or possible implementations of the seventh aspect, in a sixth possible implementation of the seventh aspect, for m source codewords, an amount of bits contributed by at least one source codeword to the first codeword differs from an amount of bits contributed by another source codeword to the first codeword; or each source codeword contributes q bits to the first codeword, where q is an integer greater than 1 and n is an integer multiple of m. In this embodiment, each bit is protected by a different codeword and one codeword can contribute more than one bit to the first codeword, thereby resulting in a higher decoding speed while still ensuring coding gain.
[0050] With respect to the seventh aspect or possible implementations of the seventh aspect, in a seventh possible implementation of the seventh aspect, p_word first codewords constitute a first frame, and the image bits in the codewords in the first frame are from bits to be transmitted in h codewords in a second frame that were generated prior to the first frame, where h and p_word are both positive integers greater than 1.
[0051] Regarding the seventh possible implementation of the seventh aspect, in an eighth possible implementation of the seventh aspect, the frame coordinates, row coordinates, and column coordinates of the bits in the h second frames are obtained through calculation using three functions Φf(), Φr(), and Φc():
number
[0052] The frame coordinate Frame, row coordinate Row_str, and column coordinate Col_str of the image bits in the codeword in the first frame are all integers, where Frame ∈ (-∞, +∞), Row_str ∈ [0, p_word-1], Col_str ∈ [0, 2n-1], frm_map(i) = h-1-i, and i ∈ [0, h-1].
[0053] When n / h is an integer, Δ = 0; when Col_str / floor(n / h) < ceiling(n / h)*h - n, Δ = floor(Col_str / floor(n / h)); or when Col_str / floor(n / h) ≥ ceiling(n / h)*h - n, Δ = ceiling(n / h)*h - n.
[0054] Regarding the eighth possible implementation of the seventh aspect, in the ninth possible implementation of the seventh aspect, the set of column coordinates Col_str of the image check bits in the codeword in the first frame is shown as follows: Col_str_vec(i,:) = [i_base(i) - Range(i) + 1:i_base(i)], where 0 ≤ i ≤ h - 1.
[0055] When i < ceiling(n / h)*h - n, i_base(i) = (i + 1)*ceiling(n / h) - i - 2; or when i ≥ ceiling(n / h)*h - n, i_base(i) = (i + 1)*ceiling(n / h) - ceiling(n / h)*h - n - 1. Range(i) = ceiling((p - i) / h) ROR (ceiling(n / h)*h - n). Here, ROR is a circular right shift of the array.
[0056] Regarding the eighth or ninth possible implementation of the seventh aspect, in the tenth possible implementation of the seventh aspect, the first codeword is a BCH(720,700) code, h = 5, and p_word = 64. In this case, the expressions of the three functions Φf(), Φr(), Φc() are shown as follows:
Number
[0057] Regarding the tenth possible implementation of the seventh aspect, in the eleventh possible implementation of the seventh aspect, the set of column coordinates Col_str of the image check bits in the codeword in the first frame is shown as follows: Col_str_vec(i, :) = {[68, 69, 70, 71], [140, 141, 142, 143], [212, 213, 214, 215], [284, 285, 286, 287], [356, 357, 358, 359]}.
[0058] Regarding the 12th possible implementation of the 7th aspect, in the 12th possible implementation of the 7th aspect, the frame coordinates Frame', row coordinates Row_str', and column coordinates Col_str' of the bits in the h number of second frames are obtained using the following equations:
Number
[0059] The frame coordinates Frame, row coordinates Row_str, and column coordinates Col_str of the image bits in the codeword in the first frame are all integers, where Frame ∈ (-∞, +∞), Row_str ∈ [0, p_word - 1], Col_str ∈ [0, 2n - 1], frm_map(i) = i, i ∈ [0, h - 1], and i is an integer.
[0060] If n / h is an integer, Δ = 0; if Col_str / floor(n / h) < ceiling(n / h) * h - n, Δ = floor(Col_str / floor(n / h)); or if Col_str / floor(n / h) ≥ ceiling(n / h) * h - n, Δ = ceiling(n / h) * h - n.
[0061] Regarding the 12th possible implementation of the 7th aspect, in the 13th possible implementation of the 7th aspect, the first codeword is a BCH(720, 700) code, h = 5, and p_word = 64. In this case,
Number
[0062] With respect to any one of the possible implementations of the seventh aspect, in a fourteenth possible implementation of the seventh aspect, the method further includes: storing the n bits to be transmitted for use when codewords after the first codeword are coded.
[0063] With respect to any one of the possible implementations of the seventh aspect, in a fifteenth possible implementation of the seventh aspect, the n bits sent from a first codeword are shared with several codewords formed after the first codeword.
[0064] Regarding any one of the possible implementations of the seventh aspect, in a sixteenth possible implementation of the seventh aspect, each bit in the first codeword is used by at least two codewords.
[0065] Regarding any one of the possible implementations of the seventh aspect, in a seventeenth possible implementation of the seventh aspect, the first codeword is a BCH(720,700) code.
[0066] According to an eighth aspect, there is provided a coding device, the coding device including a coding unit and a transmitting unit. The coding unit is configured to form a first codeword, the first codeword including n image bits and n to-be-transmitted bits, the n image bits being selected from m to-be-transmitted bits in a source codeword, the source codeword being a codeword formed before the first codeword, n and m both being positive integers, n>m. The transmitting unit is configured to transmit the n to-be-transmitted bits in the first codeword.
[0067] In this embodiment of the present application, the bits in the first codeword are protected by multiple codewords generated at different times, and the coding gain effect is better.In addition, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords.The bits protected by a larger amount of codewords have a higher convergence speed, so that the decoding speed of the decoder can be improved, and thus the delay is reduced.
[0068] With respect to the eighth aspect, in a first possible implementation of the eighth aspect, the n bits to be transmitted include p check bits and (np) information bits, where p is a positive integer less than n, and the p check bits are obtained by coding the n image bits and the (np) information bits.
[0069] With respect to the first possible implementation of the eighth aspect, in a second possible implementation of the eighth aspect, the n image bits include image check bits and image information bits, where the image check bits are selected from the check bits in the m source codewords and the image information bits are selected from the information bits in the m source codewords.
[0070] With respect to the second possible implementation of the eighth aspect, in a third possible implementation of the eighth aspect, the amount of image check bits is the same as the amount of check bits.
[0071] With respect to any one of the possible implementations of the eighth aspect, in a fourth possible implementation of the eighth aspect, a maximum difference in the amount of bits contributed to the first codeword by different source codewords within the m source codewords is greater than 1 bit.
[0072] Regarding any one of the possible implementations of the eighth aspect, in a fifth possible implementation of the eighth aspect, the code length of the first codeword is less than or equal to 2048 and the amount of error correction bits is less than or equal to 5.
[0073] Regarding any one of the possible implementations of the eighth aspect, in the sixth possible implementation of the eighth aspect, among the m source codewords, the amount of bits given to the first codeword by at least one source codeword is different from the amount of bits given to the first codeword by another source codeword; or, Each source codeword gives q bits to the first codeword, where q is an integer greater than 1 and n is an integer multiple of m.
[0074] Regarding any one of the possible implementations of the eighth aspect, in the seventh possible implementation of the eighth aspect, p_word first codewords constitute the first frame, and the image bits in the codewords in the first frame are from the bits to be transmitted in the codewords in h second frames generated before the first frame, where both h and p_word are positive integers greater than 1.
[0075] Regarding the seventh possible implementation of the eighth aspect, in the eighth possible implementation of the eighth aspect, the frame coordinates, row coordinates, and column coordinates of the bits in the h second frames are obtained through calculation using three functions Φf(), Φr(), and Φc():
Number
[0076] The frame coordinates Frame, row coordinates Row_str, and column coordinates Col_str of the image bits in the codewords in the first frame are all integers. Here, Frame ∈ (-∞, +∞), Row_str ∈ [0, p_word - 1], Col_str ∈ [0, 2n - 1], frm_map(i) = h - 1 - i, and i ∈ [0, h - 1]. When n / h is an integer, Δ = 0; when Col_str / floor(n / h) < ceiling(n / h) * h - n, Δ = floor(Col_str / floor(n / h)); or when Col_str / floor(n / h) ≥ ceiling(n / h) * h - n, Δ = ceiling(n / h) * h - n.
[0077] Regarding the eighth possible implementation of the eighth aspect, in the ninth possible implementation of the eighth aspect, the set of column coordinates Col_str of the image check bits in the codeword in the first frame is shown as follows: Col_str_vec(i,:)=[i_base(i)-Range(i)+1:i_base(i)], where 0≦i≦h-1.
[0078] When i < ceiling(n / h)*h - n, i_base(i)=(i + 1)*ceiling(n / h)-i-2; or when i≧ceiling(n / h)*h - n, i_base(i)=(i + 1)*ceiling(n / h)-ceiling(n / h)*h - n - 1. Range(i)=ceiling((p - i) / h) ROR (ceiling(n / h)*h - n). Here, ROR is the circular right shift of the array.
[0079] Regarding the eighth or ninth possible implementation of the eighth aspect, in the tenth possible implementation of the eighth aspect, the first codeword is BCH(720,700) code, h = 5, and p_word = 64. In this case, the expressions of the three functions Φf(), Φr(), Φc() are shown as follows: [Number] Here, frm_map(i)=4 - i, i∈[0,4], and i is an integer.
[0080] Regarding the tenth possible implementation of the eighth aspect, in the eleventh possible implementation of the eighth aspect, the set of column coordinates Col_str of the image check bits in the codeword in the first frame is shown as follows: Col_str_vec(i,:)={[68,69,70,71],[140,141,142,143],[212,213,214,215],[284,285,286,287],[356,357,358,359]}.
[0081] Regarding the seventh possible implementation of the eighth aspect, in the twelfth possible implementation of the eighth aspect, the frame coordinates Frame', row coordinates Row_str', and column coordinates Col_str' of the bits in the h second frames are obtained using the following equations:
Number
[0082] The frame coordinates Frame, row coordinates Row_str, and column coordinates Col_str of the image bits in the codeword in the first frame are all integers, where Frame ∈ (-∞, +∞), Row_str ∈ [0, p_word - 1], Col_str ∈ [0, 2n - 1], frm_map(i) = i, i ∈ [0, h - 1], and i is an integer.
[0083] If n / h is an integer, Δ = 0; if Col_str / floor(n / h) < ceiling(n / h) * h - n, Δ = floor(Col_str / floor(n / h)); or if Col_str / floor(n / h) ≥ ceiling(n / h) * h - n, Δ = ceiling(n / h) * h - n.
[0084] Regarding the twelfth possible implementation of the eighth aspect, in the thirteenth possible implementation of the eighth aspect, the first codeword is a BCH(720, 700) code, h = 5, and p_word = 64. In this case,
Number
[0085] Regarding any one of the possible implementations of the eighth aspect, in the fourteenth possible implementation of the eighth aspect, the method further includes: storing the n bits to be transmitted for use when the codeword after the first codeword is coded.
[0086] With respect to any one of the possible implementations of the eighth aspect, in a fifteenth possible implementation of the eighth aspect, the n bits sent from a first codeword are shared with several codewords formed after the first codeword.
[0087] Regarding any one of the possible implementations of the eighth aspect, in a sixteenth possible implementation of the eighth aspect, each bit in the first codeword is used by at least two codewords.
[0088] Regarding any one of the possible implementations of the eighth aspect, in a seventeenth possible implementation of the eighth aspect, the first codeword is a BCH(720,700) code.
[0089] According to a ninth aspect, there is provided a computer-readable storage medium having stored thereon instructions which, when executed on a terminal device, enable the terminal device to perform a method according to the first aspect or any one of the possible implementations of the first aspect, or enable the terminal device to perform a method according to the third aspect or any one of the possible implementations of the third aspect, or enable the terminal device to perform a method according to the seventh aspect or any one of the possible implementations of the seventh aspect.
[0090] According to a tenth aspect, there is provided a computer program product comprising instructions, which when executed on a terminal device, causes the terminal device to perform a method according to the first aspect or any one of the possible implementations of the first aspect, or causes the terminal device to perform a method according to the third aspect or any one of the possible implementations of the third aspect, or causes the terminal device to perform a method according to the seventh aspect or any one of the possible implementations of the seventh aspect. It is to be understood that the terminal device may be a chip, a processor, etc. This is not limited in the present application.
[0091] According to an eleventh aspect, there is provided a data communication based concatenated coding method, comprising the steps of: receiving data bits; performing KP4 coding on the data bits to obtain a KP4 codeword; interleaving the KP4 codeword to obtain an interleaved codeword; and coding the interleaved codeword according to a coding method according to the seventh aspect or any one of the possible implementations of the seventh aspect, wherein the interleaved codeword is not decoded before the coding according to the seventh aspect or any one of the possible implementations of the seventh aspect is performed. In this embodiment, the next step of the concatenated coding is performed directly on the interleaved KP4 codeword without decoding the KP4 codeword, thereby reducing power consumption.
[0092] According to a twelfth aspect, a data communication-based concatenated coding device is provided. The concatenated coding device includes a first coding unit, an interleaving unit, and a second coding unit. The first coding unit is configured to receive data bits, perform KP4 coding on the data bits, and send the resulting KP4 codeword to the interleaving unit. The interleaving unit is configured to interleave the KP4 codeword and send the interleaved codeword to the second coding unit. The second coding unit is configured to code the interleaved codeword based on a coding method according to the seventh aspect or any one of the possible implementations of the seventh aspect. The second coding unit does not decode the interleaved codeword. In this embodiment, the next step of the concatenated coding is performed directly on the interleaved KP4 codeword without decoding the KP4 codeword, thereby reducing power consumption.
[0093] In the above embodiments of the present application, the bits in the first codeword are protected by multiple codewords that are generated at different times, and the coding gain effect is better.Furthermore, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords.The bits protected by a larger amount of codewords have a higher convergence speed, so that the decoding speed of the decoder can be improved, and thus the delay is reduced. [Brief description of the drawings]
[0094] [Figure 1] FIG. 1 is a block diagram of the architecture of a communication system.
[0095] [Diagram 2] 2 is a flow chart of a coding method according to the present application;
[0096] [Diagram 3] FIG. 2 is a schematic diagram of a codeword sharing rule according to an embodiment of the present application;
[0097] [Figure 4] FIG. 2 is a schematic diagram of a codeword sharing rule according to another embodiment of the present application;
[0098] [Diagram 5] FIG. 2 is a schematic diagram of a codeword sharing rule according to another embodiment of the present application;
[0099] [Figure 6] FIG. 2 is a schematic diagram of a manner of storing FEC frames according to another embodiment of the present application;
[0100] [Figure 7] FIG. 13 is a composition diagram of bits that need to be supplemented in an FEC frame according to another embodiment of the present application;
[0101] [Figure 8]FIG. 13 is a diagram of a rule for sharing a string of bits that needs to be supplemented in an FEC frame according to another embodiment of the present application;
[0102] [Figure 9] 4 is a flowchart of a decoding method according to another embodiment of the present application;
[0103] [Figure 10] FIG. 2 is a diagram of a coding device according to another embodiment of the present application;
[0104] [Figure 11] FIG. 2 is a diagram of a decoding device according to another embodiment of the present application;
[0105] [Figure 12] FIG. 2 is a diagram of a coding device according to another embodiment of the present application;
[0106] [Figure 13] FIG. 2 is a diagram of a decoding device according to another embodiment of the present application;
[0107] [Figure 14] FIG. 2 is a structural diagram of a high-speed transmission system according to another embodiment of the present application.
[0108] [Figure 15] FIG. 2 is a structural diagram of an 800G transmission system according to another embodiment of the present application.
[0109] [Figure 16] 1 is a diagram showing a simulation result of applying the coding solution according to the present application to an 800G transmission system;
[0110] [Figure 17a] FIG. 2 is a schematic diagram of a codeword structure according to another embodiment of the present application;
[0111] [Figure 17b] FIG. 2 is a schematic diagram of a structure of an FEC frame according to another embodiment of the present application;
[0112] [Figure 18] FIG. 2 is a schematic diagram of a codeword sharing rule according to another embodiment of the present application;
[0113] [Figure 19] FIG. 2 is a schematic diagram of an interleaving solution according to another embodiment of the present application;
[0114] [Figure 20] FIG. 2 is a schematic diagram of a specific interleaving solution for FEC frames according to another embodiment of the present application;
[0115] [Figure 21] FIG. 2 is a schematic diagram of a specific interleaving solution for FEC frames according to another embodiment of the present application;
[0116] [Figure 22] FIG. 2 is a schematic diagram of a specific interleaving solution for FEC frames according to another embodiment of the present application;
[0117] [Diagram 23] FIG. 2 is a diagram of a coding architecture for an FEC frame according to another embodiment of the present application.
[0118] [Figure 24] FIG. 24 is a schematic diagram of generating image bits in a current frame using the coding architecture shown in FIG.
[0119] [Diagram 25] FIG. 2 is a schematic diagram of a specific interleaving solution for FEC frames according to another embodiment of the present application;
[0120] [Figure 26] FIG. 2 is a schematic diagram of a specific interleaving solution for FEC frames according to another embodiment of the present application;
[0121] [Figure 27] FIG. 2 is a schematic diagram of a specific interleaving solution for FEC frames according to another embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0122] Before describing the embodiments of the present application in detail, the application scenario of the embodiments of the present application will be described first. Figure 1 is a block diagram of the structure of a communication system. At the transmitting end, a source provides a data stream to be transmitted. A coder receives the data stream, codes the data stream to obtain check bits and information bits, and transmits the codeword information obtained by combining the check bits and the information bits to the receiving end through a channel. After receiving the codeword information in which errors occur due to noise or other impairments in the channel, the receiving end uses a decoder to decode the codeword information to restore the original data, and sends the original data to a sink. The coding method provided in the present application is applied to the coder shown in Figure 1, which is a very important part in a communication system.
[0123] After the data transmitted from the source passes through a coder using a coding solution, multiple codewords including data bits and check bits are successively formed to form a codeword stream. A generated codeword shares bits with previously or subsequently generated codewords, so that the bits in a codeword are protected by multiple codewords generated at different times, resulting in better coding gain.
[0124] The present application provides a coding method for data communication. As shown in Figure 2, the method includes the following steps:
[0125] 201. Form a first codeword. The first codeword includes 2n bits and is formed using k coding bits. The n bits in the first codeword are from m codewords formed prior to the first codeword, and the remaining n bits in the first codeword include (kn) information bits and (2n-k) check bits, where n, m, and k are all positive integers and 2n>k>n>m.
[0126] 202. Transmit the remaining n bits in the first codeword.
[0127] It should be understood that in this embodiment, at least m code words are generated before the first code word is formed. Half of the bits in the first code word are from the previously formed m code words, specifically, half of the bits are formed by taking a few bits from each of the m code words and shared with the previous m code words. The remaining (kn) bits are information bits at the current time. The n bits shared with the previously formed m code words and the (kn) information bits at the current time are coded to obtain (2n-k) check bits to form the first code word. In the first code word, the n bits are sent to the previously formed code word and do not need to be sent again. Thus, the remaining n bits in the first code word are sent. Specifically, the remaining (kn) information bits and the newly generated (2n-k) check bits constitute the code word to be transmitted, and the code word to be transmitted is transmitted.
[0128] In general, the first codeword shares bits with the previously formed codeword and the subsequently formed codeword. Each bit in the first codeword is located in at least one previously or subsequently formed codeword. In addition, in some embodiments, at least some of the k coding bits in the first codeword are data bits in another codeword, and at least some of the k coding bits are check bits in another codeword. In this embodiment of the present application, the bits participating in the codeword coding are coding bits, and the bits to be transmitted that are received at the current time point are information bits. In the k coding bits, n bits are shared with the previous codeword, and the remaining (kn) bits are information bits to be transmitted at the current time point.
[0129] In general, in the generated codeword stream, some initial codewords need to include padding bits, e.g., filled with all-zero bit sequences, until a sufficient amount of codewords can be formed and enough shared bits can be provided for the subsequent codewords. For example, as described in this embodiment of the present application, a codeword includes 2n bits, half of which are shared with bits in m previously formed codewords, i.e., bits in the previous codeword are used as coding bits in the current codeword. In this case, since there are no m previous codewords in the initial m codewords, sufficient coding bits cannot be obtained from the previous codeword. Thus, to generate check bits and form the first codeword, some padding bits need to be added to the codeword to supplement the amount of coding bits. It should be understood that in the initial m codewords, codewords other than the first codeword may share some bits from the previous codeword, and then the remaining part of the bits is filled. Alternatively, a codeword may not share bits with the previous codeword, and all missing coding bits are replaced with padding bits. This is not a limitation in this application.
[0130] Additionally, the remaining n bits need to be stored for use when codewords after the first codeword are coded.
[0131] In this embodiment of the present application, n bits in the first codeword are shared with m codewords formed before the first codeword. In addition, since n is greater than m, in the m codewords, there always exists a codeword that shares multiple bits with the first codeword. There are several specific sharing rules, which are described below.
[0132] (1) n is an integer multiple of m, and all of the m codewords share the same amount of bits as the first codeword. Figure 3 is a schematic diagram of a specific codeword sharing rule according to this solution. In Figure 3, the length of each codeword is 16 bits, including 14 coding bits (D in the figure) and 2 check bits (P in the figure). In the 14 coding bits, 8 bits (half the length of the codeword) are from the four previously formed codewords. Here, 2 bits are taken from each codeword. For example, the codeword surrounded by solid lines in Figure 3 is codeword X, where 2 bits are from codeword (X-1), 2 bits are from codeword (X-2), and 2 bits are from codeword (X-3). All these 6 bits are information bits in the previous codeword. The other 2 bits are from codeword (X-4), and those 2 bits are check bits in the previous codeword. The remaining 6 information bits in codeword X are the information bits to be transmitted at the current time. The 8 bits from the previous codeword and the 6 bits from the current time are encoded to obtain two check bits, forming a codeword X of length 16 bits.
[0133] Similarly, the next codeword (X+1) of codeword X is shown by the dotted line in Figure 3. Codeword (X+1) contains 16 bits, 2 bits from codeword X, 2 bits from codeword (X-1), and 2 bits from codeword (X-2). These 6 bits are also information bits in the previous codeword. The remaining 2 bits are from codeword (X-3) and are check bits in the previous codeword, and the remaining 6 bits are information bits to be transmitted at the current point. The 8 bits from the previous codeword and the current 6 bits are coded to obtain 2 check bits, forming codeword (X+1) with a length of 16 bits.
[0134] In the codeword stream disclosed in this embodiment, except for the first 4 bits and the last 4 bits (m=4), half of the bits in each of the intermediate codewords are shared with the previous codeword, and half of the bits are shared with the subsequent codeword, so that the bits in a codeword are protected by multiple codewords generated at different times, and a better coding gain is obtained. Furthermore, the amount of bits that each codeword shares with another codeword is 2, and an increase in the amount of bits shared between two codewords indicates a decrease in the amount of codewords that need to share bits, so that the data collection and decoding process can be completed quickly at the receiving end, thereby reducing the delay. Of course, the amount of shared bits may be further increased. This is not limited in this application.
[0135] (2) For m previously formed codewords, the amount of bits shared by at least one codeword with the first codeword is different from the amount of bits shared by another codeword with the first codeword. For example, n=9 and m=4. One codeword shares 3 bits with the first codeword, and the remaining three codewords each share 2 bits with the first codeword; or one codeword shares 1 bit with the first codeword, another codeword shares 2 bits with the first codeword, and the remaining two codewords each share 3 bits with the first codeword.
[0136] Figure 4 is a schematic diagram of a particular codeword sharing rule according to this solution. In Figure 4, each codeword is still 16 bits long and contains 14 coding bits (D in the figure) and 2 check bits (P in the figure). In these 14 coding bits, 8 bits (half the length of the codeword) are from the 6 previously formed codewords. The amount of bits obtained from each codeword is shown in Figure 4. For example, the codeword surrounded by a solid line in Figure 4 is codeword X, where 2 bits are from codeword (X-1), 1 bit is from codeword (X-2), 1 bit is from codeword (X-3), and 2 bits are from codeword (X-4). All these 6 bits are information bits in the previous codeword. The remaining 2 bits are both check bits in the previous codeword, where 1 bit is from codeword (X-5) and the other bit is from codeword (X-6). The remaining 6 bits of codeword X are the information bits to be transmitted at the current time. Two check bits are obtained by encoding, forming a 16-bit long codeword X. Similarly, the codeword (X+1) following codeword X is indicated by the dotted line in Figure 4 and is the same as codeword X. The details will not be described again in this application.
[0137] In addition, the amount of bits shared by at least one codeword with the first codeword may be different from the amount of bits shared by another codeword with the first codeword when n is an integer multiple of m, e.g., n=8, m=4. One codeword shares 5 bits with the first codeword, and each of the remaining codewords shares 1 bit with the first codeword; or, two codewords each share 3 bits with the first codeword, and each of the other two codewords shares 1 bit with the first codeword.
[0138] Figure 5 is a schematic diagram of another specific codeword sharing rule according to this solution. In Figure 5, each codeword is 16 bits long and contains 14 coding bits (D in the figure) and 2 check bits (P in the figure). In the 14 coding bits, 8 bits (half the length of the codeword) are from the four previously formed codewords. The amount of bits obtained from each codeword is shown in Figure 5. For example, the codeword surrounded by a solid line in Figure 4 is codeword X, where 3 bits are from codeword (X-1), 1 bit is from codeword (X-2), 3 bits are from codeword (X-3), and 1 bit is from codeword (X-4). The 8 bits include 6 information bits in the previous codeword and 2 check bits in the previous codeword. The remaining 6 bits in codeword X are the information bits to be transmitted at the current time point. The 8 bits from the previous codeword and the 6 bits at the current time point are coded to obtain 2 check bits, forming codeword X with a length of 16 bits. Similarly, the codeword (X+1) that follows codeword X is indicated by a dotted line in Figure 4 and is similar to codeword X. Details will not be described again in this application.
[0139] In the codeword stream disclosed in this embodiment, except for the first m bits and the last m bits (m=6 in FIG. 4 and m=4 in FIG. 5), half of the bits in each of the intermediate codewords are shared with the previous codeword, and half of the bits are shared with the subsequent codeword, so that the bits in the codeword are protected by multiple codewords generated at different times, and better coding gain is obtained. Furthermore, the codewords at different times share different amounts of bits with each other, so that the bits in the codeword are protected by different amounts of codewords. The bits protected by a larger number of codewords converge relatively quickly, which then drives the convergence of the bits protected by a smaller number of codewords, thereby improving the convergence speed of the decoder and reducing the delay. It should be understood that FIG. 4 and FIG. 5 only provide two different bit sharing aspects, and there are other sharing aspects. This is not limited in the present application.
[0140] Optionally, the maximum difference between the amounts of bits contributed to the first codeword by different codewords in the m previously formed codewords is greater than 1 bit, in which case error correction performance can be further improved while maintaining low delay.
[0141] From the above two different embodiments, it can be seen that, except for the first and last codewords, half of the bits in each of the intermediate codewords are from the previously formed codeword. The function of these half of the bits is to participate in the generation of check bits together with the information bits at the current time, and these half of the bits do not participate in the transmission of the current codeword. The information bits at the current time and the check bits generated by coding constitute the remaining half of the bits in the codeword. The remaining half of the bits are the bits to be transmitted and are shared with the codeword to be formed later.
[0142] For example, the first codeword is a Bose-Chaudhuri-Hocquenghem (BCH) code with a bit amount of 720, where 360 bits are from a previously formed codeword and 340 bits are information bits in a current codeword. A total of 700 coding bits can be coded based on a generator polynomial corresponding to BCH(720,700) to obtain 20 check bits. The 360 bits from the previously formed codeword do not participate in data transmission, and the 340 current information bits and the 20 check bits together form a BCH codeword to be transmitted having 360 bits. It should be understood that BCH(720,700) is obtained by shortening BCH(1023,1003) by 303 bits. The specific shortening manner may be to remove 303 most significant bits, or to remove 303 least significant bits, or may be in another manner. This is not a limitation in this application.
[0143] Another embodiment of the present application further provides a coding aspect for an FEC frame. The FEC frame includes Num codewords to be transmitted as described in the previous embodiment, which may be stored in memory in the manner shown in FIG. 6. Each column is a codeword to be transmitted, and Num is a positive integer greater than 1. When an FEC frame is generated through coding at a certain time, n bits need to be additionally supplemented for each generated codeword to be transmitted (a codeword to be transmitted includes n bits) based on the description of the previous embodiment. The n bits are from some previously formed codewords. In this embodiment, the supplemented bits are indicated as Info_Pad. Therefore, n rows and Num columns of Info_Pad need to be additionally supplemented to generate an FEC frame. The Info_Pad is from T previously formed FEC frames. The bits of Info_Pad can be represented as (Row_Inf, Col_Inf), where Row_Inf is the row number of Info_Pad, and can be any value among 0, 1, 2, ..., n-1. Col_Inf is the column number of the Info_Pad and may be any value from 0, 1, ..., Num-1. The bits in the T previously formed FEC frames are represented as (Frame, Row_str, Col_str), where Frame is the number of the FEC frame and may be any value from 0, 1, 2, ..., T-1. The zeroth frame is the FEC frame generated at the last time instant, the first frame is the FEC frame generated at the time instant before the last time instant, and so on. Row_str is the row number of the FEC frame and may be any value from 0, 1, 2, ..., n-1. Col_str is the column number of the FEC frame and may be any value from 0, 1, 2, ..., Num-1. In this case, the correspondence between each bit in the Info_Pad and a bit in a previously formed FEC frame may be calculated by the following formula: Frame=floor((Intial_Row+Row_skip*Row_Inf) / n) (1) Row_str=(Intial_Row+Row_skip*Row_Inf+floor(Row_skip*Row_Inf / n))%n (2) Col_str=(Col_Inf+Row_Inf)%Num (3)
[0144] Intial_Row represents the row number of the first row of bits shared with Info_Pad in the T FEC frames, and Row_skip represents the specific number of rows that need to be spaced apart in the T FEC frames to select a row of bits shared with Info_Pad. It should be noted that Intial_Row is an integer equal to or greater than 0, Row_skip is a positive integer, and Intial_Row+Row_skip*(n-1) cannot exceed n*(T-1).
[0145] The T FEC frames formed before the current time point described herein may be T FEC frames at any previous time point. For example, the T FEC frames may be FEC frames at T consecutive time points before the current time point, or T FEC frames obtained consecutively after a certain fixed time interval from the current time point, or FEC frames at any T non-consecutive time points before the current time point. This is not limited in the present application.
[0146] Specifically, the specific structure of Info_Pad is described below with an example in which the codeword to be transmitted is BCH(360,340) and the FEC frame contains 64 codewords to be transmitted. To generate the FEC frame, 360 rows and 64 columns of Info_Pad need to be additionally supplemented. The structure of Info_Pad is shown in FIG. 7, assuming that the Info_Pad is from four previously formed FEC frames containing a total of 256 codewords. In this case, the row number Row_Inf of Info_Pad is any value among 0, 1, 2, ..., 359, the column number Col_Inf of Info_Pad is any value among 0, 1, ..., 63, the number Frame of the FEC frame is any value among 0, 1, 2, 3, the row number Row_str of the FEC frame is any value among 0, 1, 2, ..., 359, and the column number of the FEC frame is any value among 0, 1, ..., 63.
[0147] 7, the first row number is 0 and rows of bits are selected to share with the Info_Pad in intervals of 4 rows, i.e., Intial_Row=0 and Row_skip=4. In this case, the formula for the correspondence between each bit in the Info_Pad and a bit in the previously formed FEC frame can be simplified to:
[0148] Frame=floor(Row_Inf / 90) (4) Row_str=(4*Row_Inf+floor(Row_Inf / 90)%360 (5) Col_str=(Col_Inf+Row_Inf)%64 (6)
[0149] With reference to equations (4), (5) and FIG. 7, it can be seen that when Row_Inf=0, Frame=0, and Row_str=0. Specifically, the 0th row of Info_Pad corresponds to the 0th row of the 0th frame in the four previously formed FEC frames. When Row_Inf=89, Frame=0, and Row_str=356. Specifically, the 89th row of Info_Pad corresponds to the 356th row of the zeroth frame in the four previously formed FEC frames. When Row_Inf=90, Frame=1, and Row_str=1. Specifically, the 90th row of Info_Pad corresponds to the first row of the first frame in the four previously formed FEC frames.
[0150] After the particular rows of the particular frame corresponding to each row of the Info_Pad are determined by equations (4) and (5), the particular bits in the corresponding row of the corresponding FEC frame that are shared with any bits of the particular row of the Info_Pad may be further determined by equation (6). For example, when Row_Inf=0, Col_str=Col_Inf. Specifically, in the 0th row of the Info_Pad, the 0th bit is shared with the 0th bit in the corresponding row, the 1st bit is shared with the 1st bit in the corresponding row, and so on. When Row_Inf=1, Col_str=Col_Inf+1. Specifically, in the 1st row of the Info_Pad, the 0th bit is shared with the 1st bit in the corresponding row, the 1st bit is shared with the 2nd bit in the corresponding row, and so on. When Row_Inf=64, Col_str=Col_Inf. Specifically, in the 64th row of the Info_Pad, the 0th bit is shared with the 0th bit in the corresponding row, and the 1st bit is shared with the 1st bit in the corresponding row. The sharing relationship of the 64th row of the Info_Pad is consistent with the sharing relationship of the 0th row of the Info_Pad.
[0151] In conclusion, equation (6) provides an interleaving relationship between each row of Info_Pad and the corresponding row in the previous FEC frame, and the row interleaving period is 64. That is, the interleaving relationship is repeated once every 64 rows. For example, the 0th to 63rd rows of Info_Pad have different interleaving relationships between the rows and the corresponding rows in the previous FEC frame. However, the interleaving relationship starts to be repeated from the 64th row. For example, the interleaving relationship of the 0th row of Info_Pad is the same as that of the 64th row, the interleaving relationship of the 1st row is the same as that of the 65th row, and so on. Another row interleaving relationship may be used, for example, the interleaving calculation is performed based on a Galois Field (GF).
[0152] In this embodiment, every 5760 bits (90 rows x 64 columns) of Info_Pad are obtained from one previously formed FEC frame. Since the row interleaving period is 64, among the 90 rows of bits, 26 rows of bits can only repeat the interleaving relationship used by another row. Figure 8 shows the sharing relationship between the 90 bits contained in the first column of Info_Pad and the corresponding bits in the FEC frame. The solid blocks in Figure 8 indicate the positions of the bits that are in the FEC frame and are shared with the first column of Info_Pad. The sharing relationship satisfies the conditions of equations (5) and (6). For example, Info_Pad(0,0) is shared with the bit at solid block position (0,0) in Figure 8, Info_Pad(1,0) is shared with the bit at solid block position (4,1) in Figure 8, Info_Pad(2,0) is shared with the bit at solid block position (8,2) in Figure 8, Info_Pad(64,0) is shared with the bit at solid block position (256,0) in Figure 8, and Info_Pad(89,0) is shared with the bit at solid block position (356,25) in Figure 8, where (a,b) represents row a and column b.
[0153] From Fig. 8, it can be seen that in the FEC frame, the 0th to 25th columns share 2 bits with the 0th column of Info_Pad, and the 26th to 63rd columns share 1 bit with the 0th column of Info_Pad. Similarly, it can be deduced that the 90 bits included in each column of Info_Pad share 2 bits with each of the 26 previously formed codewords to be transmitted, and share 1 bit with each of the remaining 38 previously formed codewords to be transmitted. Each column of Info_Pad includes 360 bits, and every 90 rows corresponds to one previously formed FEC frame. Thus, each column of Info_Pad shares 2 bits with each of the 104 (26 x 4 = 104) previously formed codewords to be transmitted, and shares 1 bit with each of the 152 (38 x 4 = 152) previously formed codewords to be transmitted.
[0154] In conclusion, using the first bit string in the FEC frame to be transmitted (the first bit string is denoted as the first codeword to be transmitted) as an example, in the process of generating the FEC frame to be transmitted through coding, the generation of the first codeword to be transmitted involves the first bit string of Info_Pad and the 340 currently received information bits. Specifically, the 360 bits included in the first string of Info_Pad, together with the 340 currently received information bits, are coded based on a generator polynomial corresponding to BCH(720,700) to generate 20 check bits. The 340 currently generated information bits and the 20 generated check bits constitute the first codeword to be transmitted. By analogy, 64 codewords to be transmitted can be obtained by coding and together form the currently coded FEC frame.
[0155] In short, the FEC frame coding process is as follows:
[0156] First, the information bits to be transmitted are received. In this embodiment, the amount of information bits to be transmitted is 340.
[0157] Then, 360 bits are obtained from the 256 previously formed codewords in the manner provided in this embodiment.
[0158] Further, the 360 bits are coded together with the 340 received bits to generate 20 check bits, and the 340 received bits and the 20 generated check bits are transmitted. The 340 received bits and the 20 generated check bits constitute the first to be transmitted codeword, and the 64 first to be transmitted codewords constitute the FEC frame.
[0159] In the actual coding process, one coder may perform the coding, or multiple coders may perform parallel coding, for example, eight coders perform parallel coding to obtain eight codewords to be transmitted, and then a parallel-to-serial conversion is performed to form a bitstream for transmission.
[0160] It should be understood that the codeword to be transmitted is BCH(360,340) is just a possible embodiment, the codeword to be transmitted may have another length, for example BCH(510,490) or BCH(256,238); or different coding rules may be used, such as Hamming codes and Reed-Solomon (RS) codes. This is not a limitation in this application.
[0161] According to the coding method disclosed in this embodiment, the bits in the codeword to be transmitted that is included in each FEC frame are protected by the codeword to be transmitted that is included in multiple FEC frames that are generated at different times, so that a better coding gain is obtained.In addition, different codewords share different amounts of bits with each other.The codewords that share more bits with each other have a higher convergence speed, and then the convergence of another codeword can be driven, thereby improving the convergence speed of the decoder and reducing the delay.
[0162] The present application provides a decoding method for data communication. As shown in Figure 9, the method includes the following steps:
[0163] 901. Recover a first codeword. The first codeword includes 2n bits and is formed using k coding bits, where the n bits in the first codeword are from m codewords decoded before the first codeword, and the remaining n bits in the first codeword include (kn) information bits and (2n-k) check bits, where n, m, and k are all positive integers and 2n>k>n>m.
[0164] 902. Decode the first codeword to obtain decoded bits.
[0165] It should be appreciated that in this embodiment, at least m codewords are decoded before the first codeword is restored. Half of the bits in the first codeword are from m previously decoded codewords, and the remaining n bits are the bitstream received at the current time. In general, the first codeword shares bits with the previously decoded codewords and subsequently decoded codewords. Each bit in the first codeword is located in at least one previously decoded or subsequently decoded codeword. In addition, in some embodiments, at least some of the k coded bits in the first codeword are data bits in another codeword, and at least some of the k coded bits are check bits in another codeword.
[0166] In general, in a received codeword stream, some initial codewords need to include padding bits, e.g., filled with all-zero bit sequences, until a sufficient amount of codewords are decoded. For example, in the description of this embodiment of the present application, when the first m codewords are received, there are no m previously decoded codewords, so there are not enough coding bits from the previously decoded codewords. Thus, to perform coding, some padding bits need to be added to the codewords to supplement the amount of coding bits. It should be understood that in the first received m codewords, the codewords other than the first codeword may share some bits from the previously decoded codewords, and then the remaining part of the bits is filled. Alternatively, the codewords may not share bits with the previously decoded codewords, and all missing coding bits are replaced with padding bits. This is not limited in the present application. In addition, the decoder side should be consistent with the coding end in that the padding bits are all-zero bit sequences or other forms of bit sequences in order to perform correct decoding.
[0167] In this embodiment of the present application, some erroneous bits in a previously decoded codeword are corrected. After the bits of the previously decoded codeword form a codeword with the bits received at the current time, the amount of erroneous bits in the formed codeword is reduced, and the probability of correct decoding may be increased. Furthermore, after this decoding, the remaining errors in the previous codeword may be corrected in addition to the errors in the bits newly received at the current time, thereby improving the error correction capability. In addition, different codewords share different amounts of bits with each other, and multiple codewords can share more than one bit. A larger amount of shared bits indicates a reduction in the amount of codewords that need to be associated, so that decoding can be performed without waiting for a long time, thereby reducing system delay.
[0168] Another embodiment of the present application provides a coding device for data communication. As shown in Fig. 10, the coding device includes a coding unit 1001 and a transmitting unit 1002. The coding unit 1001 receives information bits to be transmitted, codes the information bits to be transmitted to form a codeword to be transmitted, and sends the formed codeword to the transmitting unit 1002. The transmitting unit 1002 is configured to transmit the received codeword. In addition, the coding device includes a storage unit 1003 configured to store the codeword to be transmitted and send the codeword to be transmitted back to the coding unit 1001. In the coding process, the coding unit 1001 generates a new codeword to be transmitted by using bits in a previously formed codeword through coding.
[0169] In the coding process, a first codeword is formed. The first codeword includes 2n bits and is formed by using k coding bits. Here, the n bits in the first codeword are from m codewords formed before the first codeword, and the remaining n bits in the first codeword include (kn) information bits and (2n-k) check bits, where n, m, and k are all positive integers, and 2n>k>n>m. During transmission, the bits from the previous m codewords do not participate in data transmission, and the remaining n bits in the first codeword (i.e., the codeword to be transmitted) are transmitted. The specific coding process is the same as that described in the previous embodiment. The details will not be described again in this embodiment.
[0170] Another embodiment of the present application provides a decoding device for data communication. As shown in Fig. 11, the decoding device includes a decoding unit 1101 and a storage unit 1102. The decoding unit 1101 is configured to receive a transmitted codeword, recover a first codeword, and decode the first codeword. The storage unit 1102 is configured to store the transmitted codeword, receive decoding information from the decoding unit 1101, update the stored codeword, and send the updated codeword back to the decoding unit 1101. In the decoding process, the decoding unit 1101 uses information bits obtained in previous decoding, which are protected by different codewords, thereby improving the decoding performance.
[0171] In the decoding process, a first codeword is formed. The first codeword includes 2n bits, and the n bits in the first codeword are from m codewords decoded before the first codeword, where n and m are both positive integers, n>m. In this case, these n bits are decoded in a previous decoding process. Thus, the amount of error bits is reduced, and the decoding success rate of the first codeword is improved. For example, codeword (x-1) includes y errors before decoding, and some error bits in codeword (x-1) are corrected after decoding. Since some errors in codeword (x-1) are corrected, another codeword that could not be corrected before and shares bits with codeword (x-1) may now have a sufficient amount of correct bits, so that the codeword that could not be corrected before can be corrected. Similarly, codewords can be iteratively decoded.
[0172] Another embodiment of the present application provides a coding device for data communication. As shown in Fig. 12, the coding device includes an input interface 1201, a coder 1202, a memory 1203, and an output interface 1204. The coder 1202 is configured to receive information data using the input interface 1201 and send a generated codeword using the output interface 1204. The memory 1203 is configured to store the codeword sent by the coder 1202 and send the codeword back to the coder 1202 in a subsequent coding process. In the coding process, the coder 1202 uses bits in a previously formed codeword through coding to generate a new codeword. The specific coding process is the same as that described in the previous embodiment. The details will not be described again here.
[0173] Furthermore, the memory shown in Fig. 12 is a component independent of the coder. In practice, the storage function may also be implemented in the coder, i.e., there is no need for a separate memory. Furthermore, the memory 1203 may receive information data from the input interface 1201 and check data from the coder 1202. This is not a limitation in the present application.
[0174] In addition, another embodiment of the present application further provides a decoding device for data communication. As shown in FIG. 13, the decoding device includes an input interface 1301, a decoder 1302, a memory 1303, and an output interface 1304. The decoder 1302 is configured to receive a transmitted codeword using the input interface 1301 and decode the codeword. The memory 1303 is configured to store the codeword from the input interface 1301, receive decoded information from the decoder 1302, update the stored codeword, and send the updated codeword back to the decoder 1302 in a subsequent decoding process. The memory 1303 may further transmit the updated codeword by using the output interface 1304. In the decoding process, the decoder 1302 uses information bits obtained in previous decoding. Therefore, the decoding ability is improved. Similarly, in the decoding device, the storage function may be implemented in the decoder, i.e., there may be no separate memory.
[0175] Certain embodiments of the present application provide a computer readable storage medium or a computer program product configured to store a computer program, which is used to perform a coding or decoding method in accordance with method embodiments of the present application.
[0176] It can be understood that Fig. 12 shows only a simplified design of the coding device. In practical application, the coding device may include any amount of interfaces, coders, etc., and all terminals that can implement the embodiments of the present application are within the protection scope of the embodiments of the present application. Similarly, the decoding device may include any amount of interfaces, decoders, etc. to implement parallel decoding and improve decoding efficiency.
[0177] It is further understood that in embodiments of the present application, the processor may be a Central Processing Unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or another programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.
[0178] The coding solution disclosed in the present application may be used in a high-speed transmission system, such as an 800G transmission system. The structure of the high-speed transmission system is shown in FIG. 14. The transmitting end includes a first coding unit 1401, an interleaving unit 1402, and a second coding unit 1403. The first coding unit 1401 is configured to receive a data bitstream, perform KP4 coding on the received data bitstream, and send the bitstream obtained through coding to the interleaving unit 1402. The interleaving unit 1402 is configured to interleave the received bitstream, and send the interleaved bitstream to the second coding unit 1403. The second coding unit 1403 is configured to perform the coding method disclosed in the above embodiment on the interleaved bitstream, and send the generated codeword. The specific coding aspects are not described in detail here.
[0179] It should be noted that the KP4 codeword is RS(544,514,15,10), i.e., the KP4 codeword contains 544 symbols, of which 514 symbols are information symbols. A maximum of 15 symbol errors can be corrected in one decoding, and each symbol contains 10 bits. The interleaving unit may process the received bit stream in a row-column interleaving manner, i.e., write bits in row format and read the bits in column format to achieve the interleaving function. This is a relatively easy interleaving method to implement. Of course, other interleaving methods may be used. This is not a limitation in the present application.
[0180] In addition, the receiving end of the high-speed transmission system includes a first decoding unit 1404, a de-interleaving unit 1405, and a second decoding unit 1406. The first decoding unit 1404 is configured to receive the codeword transmitted by the transmitting end, perform the decoding method disclosed in the above-mentioned embodiment on the received codeword, and send the bit stream obtained through decoding to the de-interleaving unit 1405. The de-interleaving unit 1405 is configured to perform de-interleaving on the received bit stream, and send the de-interleaved bit stream to the second decoding unit 1406. The second decoding unit 1406 is configured to perform KP4 decoding on the de-interleaved bit stream to obtain the original data bits. According to the high-speed transmission system provided in this embodiment, the KP4 coding and the coding method provided in the above-mentioned embodiment are used to perform concatenated coding, which can improve the coding performance and meet the increasingly higher coding performance requirements with the increase of optical transmission speed.
[0181] In addition, in a practical high-speed transmission system, the KP4 coding and the coding method disclosed in the present application may be implemented in different chips. Taking an 800G transmission system as an example, the basic structure of an 800G transmission system is shown in FIG. 15. KP4 coding is implemented in a first chip 1501, the coding method in the present application is implemented in a second chip 1502, the decoding method disclosed in the present application is implemented in a third chip 1503, and KP4 decoding is implemented in a fourth chip 1504. The two first chips jointly output eight 100G signals to realize the function of transmitting an 800G signal. It should be understood that an 800G transmission system can include only one first chip to realize KP4 coding, and one first chip sends an 800G signal to a second chip. This is not limited in the present application.
[0182] Specifically, the second chip 1502 receives the KP4 codeword transmitted by the first chip 1501. The second chip 1502 does not perform KP4 decoding, but directly codes the KP4 code with check bits based on the coding method provided in the above embodiment. Due to the interconnection between the first chip 1501 and the second chip 1502, there exists circuit noise, which causes errors in correlated bits. Therefore, in order to break the correlation, interleaving and de-interleaving need to be performed at the transmitting end and the receiving end, respectively. Specifically, at the transmitting end, the KP4 codeword is interleaved and then sent to the second chip 1502. Similarly, at the receiving end, the codeword decoded by the third chip 1503 is de-interleaved and then sent to the fourth chip 1504. It should be noted that the first chip and the fourth chip may be integrated together, and the second chip and the third chip may be integrated together to realize the receiving / transmitting function. Furthermore, the interleaving function may be implemented in the first chip 1501 or the second chip 1502, and the de-interleaving function may be implemented in the third chip 1503 or the fourth chip 1504. This is not limited in this application.
[0183] In order to further reduce delay and power consumption, the interleaving function and data allocation function of the output port of the first chip may be integrated. Specifically, when the KP4 data is delivered, the data transmission sequence is scrambled to realize the interleaving function. Similarly, a similar process may be performed on the decoder side.
[0184] Furthermore, for example, KP4 is concatenated with the FEC frame disclosed in the above embodiment of the present application. When the decoding delay (coding delay is relatively small and is ignored here) is only 170ns, the simulation result of the coding performance is shown in Figure 16. When the Bit Error Ratio (BER) of the input signal is less than or equal to 2.5E-3, the BER of the decoded signal can be guaranteed to be less than 1E-15. In other words, when the delay is relatively small, the coding performance can also be guaranteed.
[0185] In this embodiment of the present application, the coding performance is improved by concatenating two different codewords. Furthermore, to realize the transparent transmission of KP4 codewords, KP4 does not need to be decoded at the transmitting end, and the KP4 codewords are directly coded, thereby further reducing the system power consumption.
[0186] In this embodiment of the present application, a codeword structure of another code is further provided. A specific structure is shown in FIG. 17(a). The code length of each codeword is 2n, the length of the coding bits in each codeword is k, and the length of the check bits is p=2n-k. The interleaving depth of the coding is defined as m. The first n bits in each codeword are from data at previous m time points and are called image bits. In the following n bits, (kn) bits are information bits at the current time point and the remaining (p=2n-k) bits are called check bits, where n, m, and k are all positive integers, 2n>k>n>m. If the image bits are from information bits at previous time points, the image bits are called image information bits; or if the image bits are from check bits at previous time points, the image bits are called image check bits. The entire codeword may be called a component code. In this embodiment, a BCH code or a shortened BCH code is used as the constituent code, and the amount of error correction bits in the constituent code is t.
[0187] Multiple constituent codes may make up an FEC frame. The structure of the FEC frame is shown in Figure 17(b). Each frame contains p_word constituent code words, where p_word is an integer greater than 1. It should be understood that p_word in this embodiment has the same meaning as Num in the above embodiment. All these constituent codes are coded simultaneously, and then the information bits and check bits in all the constituent codes are combined for transmission, which is a total of n*p_word bits. These n*p_word image bits are not transmitted over the channel. Furthermore, the FEC frame may be a spatially combined code.
[0188] As shown in FIG. 18, the FEC frame described in this solution may be described by a matrix with n columns and infinite rows. In this matrix, each row represents a component codeword, and the consecutive p_word rows represent the frames shown in FIG. 17(b). The bits corresponding to each column have the same bit sequence number. Assume that the frame at the current time is frame 0. Based on the frame structure provided in FIG. 17(b), the information bits and check bits in the frame are generated at the current time, and the image bits (bits marked by diagonal lines) in the current frame are obtained by interleaving and mapping the information bits and check bits (bits marked by grids) in the previous h frames (frame-h to frame-1). The image bits in the current frame are called interleaving destination, and the information bits and check bits in the previous h frames are called interleaving source. It should be understood that h in this embodiment has the same meaning as T in the previous embodiment.
[0189] The coordinates of a particular bit are represented as (Frame, Row_str, Col_str), where Frame ∈ (-∞, +∞), Row ∈ [0, p_word-1], and Column ∈ [0, 2n-1]. The function Φ([Frame, Row_str, Col_str]) is used to indicate the interleaving and mapping relationship from destination to source. Thus, the input and output of the function Φ() are each coordinated in a matrix. Φ -1 () is the inverse function of Φ() and indicates the mapping relationship from the interleave source to the interleave destination.
[0190] Specifically, Figure 19 is a schematic diagram of an interleaving solution, describing the correspondence between the source and destination. For ease of representation, p_word bits with the same column coordinate in the destination are denoted as {[0,:,Col_str]}={[0,0,Col_str],[0,1,Col_str],...,[0,p_word-1,Col_str]}. The p_word bits correspond to p_word bits in the source, and the corresponding coordinates of the p_word bits are denoted as Φ({[0,:,Col_str]) in Figure 19.
[0191] A specific interleaving solution is described as follows:
[0192] A specific expression of the function Φ() is Φ([Frame,Row_str,Col_str]) = [Φf([Frame,Row_str,Col_str]), Φr([Frame,Row_str,Col_str]), Φc([Frame,Row_str,Col_str])].
[0193] For ease of expression, three subfunctions Φf(), Φr(), and Φc() are used to indicate that the frame, row, and column coordinates of the source bit are calculated using the destination bit coordinates. The concrete expressions of these functions are as follows:
number
[0194] The functions ceiling() and floor() round up and down their inputs, respectively. Cut down,
number
[0195] Since the bits at the interleaving source and the bits at the interleaving destination are in one-to-one correspondence, the interleaving and the mapping function Φ() are bijective. For the determined amount h of interleaved and associated frames, the amount p_word of codewords per frame, the code length 2n, and the function frm_map, there exists an interleaving mapping function Φ(), which is uniquely determined. Here, h, p_word, and 2n are independent of each other and not mutually restricted. Therefore, even if p_word and 2n are determined, h can be adjusted to balance the decoding performance and the decoding delay.
[0196] Furthermore, for the codeword in this application, the code length 2n is less than or equal to 2048, the amount of error correction bits t in the component code BCH is less than or equal to 5, and the amount of frames h included in the interleaving source is greater than 1. In this case, the constructed codeword can still have a relatively good performance when ensuring low delay. It should be understood that the h FEC frames formed before the current time point described herein may be h FEC frames at any previous time point. For example, the h FEC frames may be FEC frames at h consecutive time points before the current time point, or may be h FEC frames obtained consecutively after a certain fixed time interval from the current time point, or may be FEC frames at any h non-consecutive time points before the current time point. This is not limited in this application.
[0197] Based on the above interleaving solution, if b_frm is an integer, each frame in the source provides b_frm bits for each codeword in the destination; or if b_frm is not an integer, each of the (ceiling(b_frm)-b_frm)*h frames in the source provides floor(b_frm) bits for each codeword in the destination, and each of the remaining (b_frm-floor(b_frm))*h frames provides ceiling(b_frm) bits for each codeword in the destination. Also, the following is defined: "b_word=n / (h*p_word)" represents the average amount of bits obtained by each codeword in the destination from each codeword in the source. If b_word is an integer, each codeword in the source provides b_word bits for each codeword in the destination; or if b_word is not an integer, each of the (ceiling(b_word)-b_word)*(h*p_word) codewords in the source provides floor(b_word) bits for each codeword in the destination, and each of the remaining (b_word-floor(b_word))*(h*p_word) codewords provides ceiling(b_word) bits for each codeword in the destination. It can be seen that the destination basically gets the same amount of bits from the codeword, and also basically gets the same amount of codewords from the frame. This indicates that the source is well decomposed in the interleaving scheme provided in this solution, thereby effectively improving the decoding performance. In the example shown in FIG. 19, b_frm is an integer. It can be seen that each frame in the source provides p_word*b_frmk bits to the destination.
[0198] In addition, this embodiment of the present application further describes the location of image check bits. For the FEC frame determined by parameters h, p_word, and code length 2n group shown in Figure 19, we also determine the location of a total of p*p_word image check bits in the FEC frame. For image check bits, Frame=0 and Row_str∈[0,p_word-1]. Every P coordinate Col_str is divided into h groups, and the following mainly defines Col_str corresponding to p image check bits.
[0199] First, the following is defined: each group contains a total of h coordinates i_base, where each coordinate i_base represents the maximum value of the column coordinate Col_str of the image check bits from the frame in the image bits. <N_extであれば、i_base(i)=(i+1)*ceiling(b_frm)-i-2である;または、i≧N_extであれば、i_base(i)=(i+1)*ceiling(b_frm)-N_ext-1である。ここで、0≦i≦h-1である。
[0200] Next, the following array is defined to represent the amount of coordinates corresponding to each i_base: Range(i)=ceiling((pi) / h), Range=Range ROR N_ext, where ROR is the circular right shift of the array. In this case, the set containing all coordinates Col_str is Col_str_vec(i,:)=[i_base(i)-Range(i)+1:i_base(i)].
[0201] Note that to distinguish between different types of interleaving solutions, the following definitions are given: if b_word is an integer, the association relation is a regular pattern and the interleaving solution is defined as a full regular interleaving solution; if b_word is not an integer but b_frm is an integer, the interleaving solution is defined as a partial regular interleaving solution; or if neither b_word nor b_frm are integers, the interleaving solution is defined as a non-regular interleaving solution. The following gives concrete examples of different types of interleaving solutions.
[0202] Referring to Figure 20, the present application provides a specific interleaving solution for FEC frames. The amount of frames included in the interleaving source is h=5, the amount of codewords included in each frame is p_word=64, and the code included in the FEC frame is a BCH(720,700) code. The BCH(720,700) code may be a shortened BCH code obtained by shortening the BCH(1023,1003) code in the Galois field GF(2^10) by 303 bits, and the amount of error correction bits in the BCH code is t=2.
[0203] The corresponding interleaving and mapping function Φ() may be expressed as:
number
[0204] In the interleaving solution, the 360 image bits in each codeword come from a total of 5x64 codewords in the previous 5 frames. Specifically, b_frm=360 / 5=72, where each frame in the source provides 72 bits for each codeword in the destination; b_word=360 / (5*64)=1.125, where each of the (ceiling(1.125)-1.125)*(5*64)=280 codewords in the source provides floor(1.125)=1 bit for each codeword in the destination, and each of the remaining (1.125-floor(1.125))*(5*64)=40 codewords provides ceiling(1.125)=2 bits for each codeword in the destination. Thus, the interleaving solution in this embodiment is a sub-regular interleaving solution. In the interleaving solution, the difference between the amount of bits obtained by the interleaving destination from the codeword is very small, which indicates that the interleaving source is well resolved in the interleaving scheme provided in this solution, thereby effectively improving the decoding performance.
[0205] Furthermore, in the FEC frame provided in this embodiment of the present application, each component code (i.e., codeword in the interleaved destination) contains 20 image check bits, and the 20 image check bits are divided into 5 groups. Since N_ext=ceiling(b_frm)*hn=ceiling(360 / 5)*5-360=0, and i≧N_ext, according to the formula i_base(i)=(i+1)*ceiling(b_frm)-N_ext-1, the corresponding value of Col_str is calculated as follows: i_base([0,1,2,3,4])=[71,143,215,287,359].
[0206] Also, Range(i)=ceiling((pi) / h), 0≦i≦h-1, Range=Range ROR N_ext, so Range([0,1,2,3,4])=[4,4,4,4,4,4]. Therefore, the set of column coordinates of the 20 image check bits in each interleaved codeword is Col_str_vec={[68,69,70,71],[140,141,142,143],[212,213,214,215],[284,285,286,287],[356,357,358,359]}. Note that in this embodiment of the present application, the set of column coordinates of the image check bits in the interleaved codewords is the same. Another embodiment of the present application provides another interleaving solution for FEC frames. A schematic diagram of the interleaving solution is shown in Figure 21. The amount of frames included in the interleaving source is h=7, the amount of codewords included in each frame is p_word=64, and the code included in the FEC frame is a BCH(720,700) code. The BCH(720,700) code is a shortened BCH code obtained by shortening the BCH(1023,1003) code in the Galois field GF(2^10) by 303 bits, and the amount of error correction bits in the BCH code is t=2.
[0207] The corresponding interleaving and mapping function Φ() can be expressed as:
number
[0208] In the interleaving solution, the 360 image bits in each codeword come from a total of 7x64 codewords in the previous 7 frames. Specifically, b_frm=360 / 7=51.42. In this case, there are 3 frames in the interleaving source, each of which provides 52 bits for each codeword in the interleaving destination, and each of the remaining 4 frames provides 51 bits for each codeword in the interleaving destination. If b_word=360 / (7*64)=0.803, then 88 codewords in the interleaving source provide no bits for a codeword in the interleaving destination, and each of the remaining 360 codewords provide 1 bit for each codeword in the interleaving destination. Therefore, the interleaving solution in this embodiment is a non-regular interleaving solution. In the interleaving solution, the interleaving destination obtains the same amount of bits from the 360 codewords, and the difference between the amount of bits obtained from the frame by the interleaving destination is also very small, which indicates that the interleaving source is well divided in the interleaving scheme provided in this solution, thereby effectively improving the decoding performance.
[0209] In the interleaving solution, the 20 image check bits in each interleaved codeword are divided into 7 groups. Since N_ext=ceiling(b_frm)*hn=ceiling(360 / 7)*7-360=4, for 0≦i≦6, we see that i_base(i)=(i+1)*ceiling(b_frm)-i+2 for 0≦i<4, or i_base(i)=(i+1)*ceiling(b_frm)-N_ext-1 for 4≦i≦6. Therefore, the value of Col_str is calculated as follows: i_base([0,1,2,3,4,5,6])=[50,101,152,203,255,307,359]
[0210] Also, Range(i)=ceiling((pi) / h), 0≦i≦h-1, Range=Range ROR N_ext, so Range([0,1,2,3,4,5,6])=[3,3,3,2,3,3,3]. Therefore, the set of column coordinates of the 20 image check bits in each interleaved codeword is Col_str_vec={[48,49,50],[99,100,101],[150,151,152],[202,203],[253,254,255],[305,306,307],[357,358,359]}. Note that in this embodiment of the present application, the sets of column coordinates of the image check bits in the interleaved codewords are the same.
[0211] Another embodiment of the present application further provides an interleaving solution for FEC frames. A schematic diagram of the interleaving solution is shown in Figure 22. The amount of frames included in the interleaving source is h=8, the amount of codewords included in each frame is p_word=16, and the code included in the FEC frame is an extended BCH(256,239) code. The corresponding interleaving and mapping function Φ() may be expressed as follows:
number
[0212] In the interleaving solution, the 128 image bits in each codeword are from a total of 8×16 codewords in the previous 8 frames. Furthermore, b_frm=128 / 8=16. Specifically, each frame in the source provides 16 bits for each codeword in the destination; b_word=128 / (8*16)=1. Specifically, each codeword in the source provides 1 bit for each codeword in the destination. Thus, the interleaving solution in this embodiment is a fully regular interleaving solution. In the interleaving solution, the destination obtains the same amount of bits from the codeword in the source and also obtains the same amount of bits from the frame. This indicates that the source is well decomposed in the interleaving scheme provided in this solution, which effectively improves the decoding performance.
[0213] In the interleaving solution, the 17 image check bits in each interleaved codeword are divided into 8 groups. Since N_ext=ceiling(b_frm)*hn=ceiling(128 / 8)*8-128=0, with 0≦i≦7, we see that i_base(i+1)=(i+1)*ceiling(b_frm)-N_ext-1. Therefore, the corresponding value of Col_str is calculated as follows: i_base([0,1,2,3,4,5,6,7])=[15,31,47,63,79,95,111,127].
[0214] Furthermore, Range(i)=ceiling((pi) / h) and Range=Range ROR N_ext, so Range([0,1,2,3,4,5,6,7])=[3,2,2,2,2,2,2,2,2]. Therefore, the set of column coordinates of the 17 image check bits in each interleaved codeword is Col_str_vec={[13,14,15],[30,31],[46,47],[62,63],[78,79],[94,95],[110,111],[126,127]}. Note that in this embodiment of the present application, the sets of column coordinates of the image check bits in the interleaved codewords are the same.
[0215] Furthermore, the FEC frame described in the previous embodiment may be a spatially combined code, with the coding architecture shown in Figure 23. In this block diagram, there are a total of p_word constituent code coders and one convolutional interleaver. The convolutional interleaver stores information bits and check bits in h frames before the current time point, for a total of h*n*p_word bits, which are used to generate n*p_word image bits at the current time point.
[0216] The input of the coder is (kn)*p_word information bits, which are assigned to p_word constituent code coders. The input of each constituent code coder is (kn) information bits and n image bits, and the output is (kn)k information bits and p check bits. The output of the whole coder is a total of (k-n+p)*p_word=n*p_word information bits and check bits from p_word constituent code coders. The image bits from the convolutional interleaver only participate in the coding of the constituent codes and are not transmitted. It should be understood that h, n, and p_word have the same meaning as in the previous embodiment. In this embodiment, the details will not be described again.
[0217] Figure 24 shows how to generate image bits in a current frame by using the coding architecture shown in Figure 23. The top half of Figure 24 is a matrix with h*p_word rows and n columns. In this matrix, consecutive p_word rows represent the frames shown in Figure 17(b). Thus, the convolutional interleaver stores a total of h frames (frame-h to frame-1) at the current time point. The image bits in the current frame (frame 0) are obtained by interleaving the bits in the interleaver. For ease of representation, the coordinates of a particular bit are represented as [Frame,Row_str,Col_str], where Frame coordinates are Frame ∈ (-∞, +∞), row coordinates Row_str ∈ [0,p_word-1], and column coordinates Col_str ∈ [0,n-1].
[0218] The interleaving relationship in the convolutional interleaver is divided into two layers: interframe interleaving and intercode interleaving. If the coordinates of the interleaved image bits are [Frame',Row_str',Col_str'], the convolutional interleaver describes the interleaving and mapping relationship from [Frame,Row_str,Col_str] to [Frame',Row_str',Col_str']. The specific solutions for each layer of interleaving are described below.
[0219] Inter-frame interleaving: For ease of description, the p_word bits in the interleaver with the same frame coordinate and the same column coordinate are called symbols, and are denoted as {[Frame,:,Col_str]]={[Frame,0,Col_str],[Frame,1,Col_str],...,[Frame,p_word-1,Col_str]. As shown in Figure 24, the symbols corresponding to the image bits in the current frame (Frame 0) correspond to the symbols in the interleaver, and the corresponding coordinate relationship is shown as follows: Frame' = Frame + 1 + frm_map(Col_str % h); Col_str' = (h - 1 - Col_str % h) * ceiling(b_frm) + floor(Col_str / h) - Δ.
[0220] The functions ceiling() and floor() respectively round up and round down the input, and % represents the modulo; frm_map represents a bijective function where the input field and the output field are each {0, 1,..., h - 1}. In the interleaving solution in Figure 24, the corresponding frm_map(i) = i. Here, i ∈ [0, h - 1]; "b_frm = n / h" represents the average amount of bits obtained by each symbol word in the current frame from each frame in the interleaver; Δ is an adjustment item. If b_frm is an integer, then Δ = 0; or, if b_frm is not an integer, when Col_str / floor(b_frm) < N_ext, Δ = floor(Col_str / floor(b_frm)); or when Col_str / floor(b_frm) ≥ N_ext, Δ = N_ext. Here, N_ext = ceiling(b_frm) * h - n.
[0221] From the above formula, it can be seen that the inter-frame interleaving does not involve the conversion of the row coordinates. Therefore, the sequence of bits in each symbol is the same as the sequence of bits in the interleaver.
[0222] For each symbol for which the inter-frame interleaving is executed, the inter-symbol interleaving is further executed for that symbol, so that the bits in the same symbol word after interleaving come from as many different frames as possible. The specific inter-symbol mapping relationship is shown as the following row coordinate conversion formula:
Number
[0223] In this formula,
number
[0224] The input bits and output bits in the interleaver are in one-to-one correspondence. For a deterministic amount of interleaved associated frames h, the amount of codewords per frame p_word, the code length 2n, and the function frm_map, the interleaving manner exists and is uniquely determined. Here, h, p_word, and 2n are independent of each other and are not mutually constrained. Thus, even if p_word and 2n are determined, h can be adjusted to balance the decoding performance and the decoding delay.
[0225] Based on the above interleaving solution, if b_frm is an integer, then each frame in the interleaver provides b_frm bits for each codeword in the current frame; or if b_frm is not an integer, then each of the (ceiling(b_frm)-b_frm)*h frames in the interleaver provides floor(b_frm) bits for each codeword in the current frame, and each of the remaining (b_frm-floor(b_frm))*h frames provides ceiling(b_frm) bits for each codeword in the current frame. Also, the following is defined: "b_word=n / (h*p_word)" represents the average amount of bits obtained by each codeword in the current frame from each codeword in the interleaver. If b_word is an integer, each codeword in the interleaver provides b_word bits for each codeword in the current frame; or if b_word is not an integer, each of the (ceiling(b_word)-b_word)*(h*p_word) codewords included in the interleaver provides floor(b_word) bits for each codeword in the current frame, and each of the remaining (b_word-floor(b_word))*(h*p_word) codewords provides ceiling(b_word) bits for each codeword in the current frame. It can be seen that the current frame basically gets the same amount of bits from the codewords, and also basically gets the same amount of codewords from the frames. This indicates that the bits in the interleaver can also be fully decomposed with the interleaving scheme provided in this solution, thereby effectively improving the decoding performance.
[0226] In addition, this embodiment of the present application further describes the location of image check bits. For an FEC frame determined by parameters h, p_word, and code length 2n group shown in Figure 24, we also determine the location of a total of p*p_word image check bits in the FEC frame. For image check bits, Frame=0 and Row_str∈[0,p_word-1]. Every P coordinate Col_str is divided into h groups, and the following mainly defines Col_str corresponding to p image check bits.
[0227] First, the following is defined: each group contains a total of h coordinates i_base, where each coordinate i_base represents the maximum Col_str value of the image check bits from the frame in the image bits. <N_extであれば、i_base(i)=(i+1)*ceiling(b_frm)-i-2である;または、i≧N_extであれば、i_base(i)=(i+1)*ceiling(b_frm)-N_ext-1である。ここで、0≦i≦h-1である。
[0228] Next, the following arrays are defined to represent the amount of coordinates corresponding to each i_base: Range(i)=ceiling((pi) / h), Range=Range ROR N_ext, where ROR is the circular right shift of the array. In this case, the set containing all coordinates Col_str is Col_str_vec(i,:)=[i_base(i)-Range(i)+1:i_base(i)].
[0229] In addition, to distinguish between different types of interleaving solutions, the following definitions are given: if b_word is an integer, the association relationship is a regular pattern, and the interleaving solution is defined as a full regular interleaving solution; if b_word is not an integer but b_frm is an integer, the interleaving solution is defined as a partial regular interleaving solution; or if neither b_word nor b_frm is an integer, the interleaving solution is defined as a non-regular interleaving solution. Based on the coding architecture shown in Figure 23, various types of interleaving solutions are specifically described below.
[0230] This example describes a spatially coupled code with h=5, p_word=64, and a component code BCH(720,700), which is a shortened BCH code obtained by shortening the BCH(1023,1003) code in the Galois field GF(2^10) by 303 bits, and the number of error correction bits in the BCH code is t=2.
[0231] In this example, the spatially coupled code coding architecture has 64 constituent code coders and one overall convolutional interleaver that stores the information bits and check bits of the five frames prior to the current time point, for a total of 115200 bits, which are used to generate the 23040 individual image bits for the current time point.
[0232] The input of the coder is 21760 information bits, which are assigned to 64 constituent code coders. The input of each constituent code coder is 340 information bits and 360 image bits, and the output is 340 information bits and 20 check bits. The total output of the coder is a total of 23040 information bits and check bits from the 64 constituent code coders. The image bits from the convolutional interleaver only participate in the coding of the constituent codes and are not transmitted.
[0233] As shown in Figure 25, the symbols corresponding to the image bits in the current frame correspond to the symbols in the interleaver, and the corresponding coordinate relationship is shown as follows: Frame'=Frame+1+frm_map(Col_str % 5); Col_str'=(4-Col_str % 5)*72+floor(Col_str / 5); frm_map(i) = i, where i∈[0,4]; b_frm=72; Δ=0
[0234] According to the above formula, we know the specific symbols in a specific previous frame from which the corresponding symbols in the image bits in the current frame originate, i.e., interframe interleaving is performed. Inter-code interleaving is performed based on the following correspondence, and the specific inter-code mapping relationship is shown in the following row coordinate transformation formula:
number
[0235] Please note that in the interleaved solution, the 360 image bits in each codeword are from a total of 5×64 codewords in the previous 5 frames. Specifically, the amount of bits obtained from each frame and the amount of bits obtained from each codeword are the same as those in the embodiment shown in FIG. 20. Furthermore, the set of column coordinates of the 20 image check bits included in each component code is also the same as those in the embodiment shown in FIG. 20. In this embodiment of the present application, details will not be described.
[0236] This example describes a spatially coupled code with h=7, p_word=64, and a component code BCH(720,700), which is a shortened BCH code that is a 303-bit shortening of the BCH(1023,1003) code in the Galois field GF(2^10), and the number of error correction bits in the BCH code is t=2.
[0237] In this example, the spatially coupled code coding architecture has 64 component coders and one overall convolutional interleaver, which stores the information bits and check bits of the seven frames prior to the current time point, for a total of 161280 bits, which are used to generate the 23040 image bits for the current time point.
[0238] The input of the coder is 21760 information bits, which are assigned to 64 constituent code coders. The input of each constituent code coder is 340 information bits and 360 image bits, and the output is 340 information bits and 20 check bits. The total output of the coder is a total of 23040 information bits and check bits from the 64 constituent code coders. The image bits from the convolutional interleaver only participate in the coding of the constituent codes and are not transmitted.
[0239] As shown in Figure 26, the symbols corresponding to the image bits in the current frame correspond to the symbols in the interleaver, and the corresponding coordinate relationship is shown as follows: Frame'=Frame+1+frm_map(Col_str % 7); Col_str'=(6-Col_str % 7)*52+floor(Col_str / 7)-Δ; frm_map(i)=6-i where i∈[0,6];Δ=ceiling(Col_str / 51) if Col_str / 51<4; orΔ=4 if Col_str / 51≧4; b_frm=51.42.
[0240] According to the above formula, we know the specific symbols in a specific previous frame from which the corresponding symbols in the image bits in the current frame originate, i.e., interframe interleaving is performed. Inter-code interleaving is performed based on the following correspondence, and the specific inter-code mapping relationship is shown in the following row coordinate transformation formula:
number
[0241] Please note that in the interleaved solution, the 360 image bits in each codeword are from a total of 7×64 codewords in the previous 7 frames. Specifically, the amount of bits obtained from each frame and the amount of bits obtained from each codeword are the same as those in the embodiment shown in Figure 21. Furthermore, the set of column coordinates of the 20 image check bits included in each component code is also the same as those in the embodiment shown in Figure 21. In this embodiment of the present application, details will not be described.
[0242] This example describes a spatially coupled code with h=8, p_word=16, and component code extended BCH(256,239). In this example, the spatially coupled code coding architecture has 16 component code coders and one overall convolutional interleaver. The convolutional interleaver stores information bits and check bits from the eight frames before the current time point, for a total of 16384 bits, which are used to generate 2048 image bits for the current time point.
[0243] The input of the coder is 1776 information bits, which are assigned to 16 constituent code coders. Each constituent code coder inputs 111 information bits and 128 image bits, and outputs 111 information bits and 17 check bits. The total output of the coder is a total of 2048 information bits and check bits from the 16 constituent code coders. The image bits from the convolutional interleaver only participate in the coding of the constituent codes and are not transmitted.
[0244] As shown in Figure 27, the symbols corresponding to the image bits in the current frame correspond to the symbols in the interleaver, and the corresponding coordinate relationship is shown as follows: Frame'=Frame+1+frm_map(Col_str % 8); Col_str'=(7-Col_str % 8)*16+floor(Col_str / 8); frm_map(i) = i, where i∈[0,7]; b_frm=16; Δ=0.
[0245] According to the above formula, we know the specific symbols in a specific previous frame from which the corresponding symbols in the image bits in the current frame originate, i.e., interframe interleaving is performed. Inter-code interleaving is performed based on the following correspondence, and the specific inter-code mapping relationship is shown in the following row coordinate transformation formula:
number
[0246] In the interleaved solution, the 360 image bits in each codeword are 8 Sum over frames 8Note that the number of image check bits included in each component code is 64 × 64 code words. Specifically, the amount of bits obtained from each frame and the amount of bits obtained from each code word are the same as those in the embodiment shown in Figure 22. Furthermore, the set of column coordinates of the 20 image check bits included in each component code is also the same as those in the embodiment shown in Figure 22. In this embodiment of the present application, details will not be described.
[0247] Furthermore, for the codeword in this application, the code length 2n is less than or equal to 2048, the number of error correction bits t in the component code BCH is less than or equal to 5, and the number of frames h included in the interleaving source is greater than 1. In this case, the constructed codeword can still have a relatively good performance when ensuring low delay. It should be understood that the h FEC frames formed before the current time point described herein may be h FEC frames at any previous time point. For example, the h FEC frames may be FEC frames at h consecutive time points before the current time point, or may be h FEC frames obtained consecutively after a certain fixed time interval from the current time point, or may be FEC frames at any h non-consecutive time points before the current time point. This is not limited in this application.
[0248] In addition to the above embodiments, this application may further include the following cases.
[0249] The code length is 2n=720, the number of error correction bits is t=2, and the number of interleaved and associated frames is h=4; The code length is 2n=720, the number of error correction bits is t=2, and the number of interleaved and associated frames is h=5; The code length is 2n=804, the number of error correction bits is t=2, and the number of interleaved and associated frames is h=4; The code length is 2n=1206, the number of error correction bits is t=3, and the number of interleaved and associated frames is h=4; The code length is 2n=868, the number of error correction bits is t=2, and the number of interleaved and associated frames is h=4; or The code length is 2n=1302, the number of error correction bits is t=3, and the number of interleaved and associated frames is h=4.
[0250] Each of the above constructed code words can still have relatively good performance while ensuring low delay. Furthermore, several different interleaving solutions are provided in the above embodiments, and any coding manner that fits the above interleaving solutions or has the same formula as given in the above interleaving solutions, or any equivalent or simple modification made based on the formula provided in the above interleaving solutions, falls within the protection scope of the present application.
[0251] It should be understood that "one embodiment" or "an embodiment" referred to in this specification means that a particular feature, structure, or characteristic associated with that embodiment is included in at least one embodiment of the present invention. Thus, "in one embodiment" or "in an embodiment" appearing throughout this specification do not necessarily refer to the same embodiment. Moreover, these particular features, structures, or characteristics may be combined in one or more embodiments by using any suitable aspect. The sequence numbers of the processes described above do not refer to the execution sequence in the embodiments of the present invention. The execution sequence of the processes should be determined based on the functions and internal logic of the processes, and should not be interpreted as a limitation on the implementation process of the embodiments of the present invention.
[0252] In some embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the described apparatus embodiment is merely an example. For example, the division into units is merely a logical division of functions, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be implemented through some interfaces, and the indirect couplings or communication connections between the apparatuses or units may be implemented in electrical or other forms.
[0253] Furthermore, the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
[0254] In short, what is described above is merely an illustrative embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement or improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. 1. A coding method for data communication, the method comprising: forming a first codeword, the first codeword including n image bits and n to-be-transmitted bits, the n image bits being selected from m to-be-transmitted bits in a source codeword, the source codeword being a codeword formed prior to the first codeword, n and m being both positive integers, n>m; transmitting the n bits to be transmitted in the first codeword, wherein each of the m source codewords contributes at least one image bit to the first codeword, and at least one source codeword in the m source codewords contributes two or more image bits to the first codeword, and a maximum difference in the amount of bits contributed to the first codeword by different source codewords in the m source codewords is greater than 1 bit. How to code.
2. 2. The coding method of claim 1, wherein the n bits to be transmitted include p check bits and (n-p) information bits, and the p check bits are obtained by coding the n image bits and the (n-p) information bits, where p is a positive integer less than n.
3. 3. The coding method of claim 2, wherein the n image bits include at least one image check bit and at least one image information bit, the at least one image check bit being selected from check bits in the m source codewords, and the at least one image information bit being selected from information bits in the m source codewords.
4. 4. Coding method according to claim 3, wherein the amount of said at least one image check bit is the same as the amount of said p check bits.
5. 5. The coding method according to claim 1, wherein the code length of the first codeword is less than or equal to 2048 and the amount of error correction bits is less than or equal to 5.
6. or, for the m source codewords, an amount of bits contributed to the first codeword by at least one source codeword differs from an amount of bits contributed to the first codeword by another source codeword; or each source codeword contributes q bits to the first codeword, where q is an integer greater than 1 and n is an integer multiple of m; Coding method according to any one of claims 1 to 4.
7. 7. A coding method according to claim 1, wherein p_word first codewords constitute a first frame, and image bits in a codeword in the first frame are from bits to be transmitted in h codewords in a second frame generated before the first frame, where h and p_word are both positive integers greater than 1.
8. The frame, row, and column coordinates of the bits in the h second frames are calculated using three functions Φf(), Φr(), and Φc(): [0019] where the frame coordinate Frame, row coordinate Row_str, and column coordinate Col_str of the image bit in the codeword in the first frame are all integers, Frame ∈ (−∞, +∞), Row_str ∈ [0, p_word−1], Col_str ∈ [0, 2n−1], frm_map(i)=h−1−i, and i ∈ [0, h−1]; If n / h is an integer, then Δ=0; if Col_str / floor(n / h)<ceiling(n / h)*h-n, then Δ=floor(Col_str / floor(n / h)); or if Col_str / floor(n / h)≧ceiling(n / h)*h-n, then Δ=ceiling(n / h)*h-n. The coding method according to claim 7.
9. The set of column coordinates Col_str of the image check bits in the codeword in the first frame is: [i_base(i)−Range(i)+1:i_base(i)], where 0≦i≦h−1 and [A:B] represents the set of integers from A to B; if i<ceiling(n / h)*h-n then i_base(i)=(i+1)*ceiling(n / h)-i-2; or if i≧ceiling(n / h)*h-n then i_base(i)=(i+1)*ceiling(n / h)-ceiling(n / h)*h-n-1; Range(i)=ceiling((p-i) / h) ROR(ceiling(n / h)*h-n), where ROR is the cyclic right shift of the array. The coding method according to claim 8.
10. The first codeword is a BCH(720,700) code, h=5, and p_word=64, and the equations of the three functions Φf(), Φr(), and Φc() are: [0020] where frm_map(i) = 4 - i, i ∈ [0, 4], i is an integer. A coding method according to claim 8 or 9.
11. The set of column coordinates Col_str of the image check bits in the codeword in the first frame is: {[68,69,70,71],[140,141,142,143],[212,213,214,215],[284,285,286,287],[356,357,358,359]} The coding method of claim 10, wherein the coding method is expressed as follows:
12. The frame coordinate Frame', row coordinate Row_str', and column coordinate Col_str' of the bits in the h second frames are calculated using the following formula: ##EQU00021## is obtained using the frame coordinate Frame, row coordinate Row_str, and column coordinate Col_str of the image bit in the codeword in the first frame are all integers, where Frame∈(−∞, +∞), Row_str∈[0, p_word−1], Col_str∈[0, 2n−1], frm_map(i)=i, i∈[0, h−1], where i is an integer; If n / h is an integer, then Δ=0; if Col_str / floor(n / h)<ceiling(n / h)*h-n, then Δ=floor(Col_str / floor(n / h)); or if Col_str / floor(n / h)≧ceiling(n / h)*h-n, then Δ=ceiling(n / h)*h-n. The coding method according to claim 7.
13. the first codeword is a BCH(720,700) code, h=5, and p_word=64; [0022] and frm_map(i) = i, i ∈ [0, 4]. The coding method according to claim 12.
14. 14. Coding method according to any one of claims 1 to 13, wherein the first codeword is a BCH(720,700) code.
15. A coding device for data communication, the coding device comprising a coding unit and a transmitting unit, the coding unit is configured to form a first codeword, the first codeword including n image bits and n to-be-transmitted bits, the n image bits being selected from m to-be-transmitted bits in a source codeword, the source codeword being a codeword formed prior to the first codeword, n and m being positive integers, n>m; the transmitting unit is configured to transmit the n bits in the first codeword to be transmitted, each of the m source codewords contributing at least one image bit to the first codeword, at least one source codeword in the m source codewords contributing two or more image bits to the first codeword, and a maximum difference in the amount of bits contributed to the first codeword by different source codewords in the m source codewords is greater than 1 bit; Coding device.
16. 16. The coding apparatus of claim 15, wherein the n bits to be transmitted include p check bits and (n-p) information bits, and the p check bits are obtained by coding the n image bits and the (n-p) information bits, where p is a positive integer less than n.
17. 17. The coding apparatus of claim 16, wherein the n image bits include at least one image check bit and at least one image information bit, the at least one image check bit being selected from check bits in the m source codewords, and the at least one image information bit being selected from information bits in the m source codewords.
18. 18. A coding device according to claim 17, wherein the amount of said at least one image check bit is the same as the amount of said p check bits.
19. 19. Coding device according to any one of claims 15 to 18, wherein the code length of the first codeword is less than or equal to 2048 and the amount of error correction bits is less than or equal to 5.
20. an amount of bits contributed to the first codeword by at least one source codeword differs from an amount of bits contributed to the first codeword by another source codeword; or each source codeword contributes q bits to the first codeword, where q is an integer greater than 1 and n is an integer multiple of m; Coding device according to any one of claims 15 to 18.
21. 21. A coding device according to claim 15, wherein p_word first codewords constitute a first frame, and image bits in the codewords in the first frame are from bits to be transmitted in codewords in h second frames generated before the first frame, where h and p_word are both positive integers greater than 1.
22. The frame, row, and column coordinates of the bits in the h second frames are calculated using three functions Φf(), Φr(), and Φc(): [0023] obtained through calculation using the frame coordinate Frame, row coordinate Row_str, and column coordinate Col_str of the image bit in the codeword in the first frame are all integers, where Frame ∈ (−∞, +∞), Row_str ∈ [0, p_word−1], Col_str ∈ [0, 2n−1], frm_map(i)=h−1−i, and i ∈ [0, h−1]; If n / h is an integer, then Δ=0; if Col_str / floor(n / h)<ceiling(n / h)*h-n, then Δ=floor(Col_str / floor(n / h)); or if Col_str / floor(n / h)≧ceiling(n / h)*h-n, then Δ=ceiling(n / h)*h-n. Coding device according to claim 21.
23. The set of column coordinates Col_str of the image check bits in the codeword in the first frame is: [i_base(i)-Range(i)+1:i_base(i)] where 0≦i≦h−1 and [A:B] represents the set of integers from A to B; if i<ceiling(n / h)*h-n then i_base(i)=(i+1)*ceiling(n / h)-i-2; or if i≧ceiling(n / h)*h-n then i_base(i)=(i+1)*ceiling(n / h)-ceiling(n / h)*h-n-1; Range(i)=ceiling((p-i) / h) ROR(ceiling(n / h)*h-n), where ROR is the cyclic right shift of the array. Coding device according to claim 22.
24. The first codeword is a BCH(720,700) code, h=5, and p_word=64, and the equations of the three functions Φf(), Φr(), and Φc() are: [0024] where frm_map(i) = 4 - i, i ∈ [0, 4], i is an integer. Coding device according to claim 22 or 23.
25. The set of column coordinates Col_str of the image check bits in the codeword in the first frame is: {[68,69,70,71],[140,141,142,143],[212,213,214,215],[284,285,286,287],[356,357,358,359]} 25. The coding device of claim 24, wherein the coding device is represented as follows:
26. The frame coordinate Frame', row coordinate Row_str', and column coordinate Col_str' of the bits in the h second frames are calculated using the following formula: [0025] is obtained using the frame coordinate Frame, row coordinate Row_str, and column coordinate Col_str of the image bit in the codeword in the first frame are all integers, where Frame ∈ (−∞, +∞), Row_str ∈ [0, p_word−1], Col_str ∈ [0, 2n−1], frm_map(i)=i, i ∈ [0, h−1], and i is an integer; If n / h is an integer, then Δ=0; if Col_str / floor(n / h)<ceiling(n / h)*h-n, then Δ=floor(Col_str / floor(n / h)); or if Col_str / floor(n / h)≧ceiling(n / h)*h-n, then Δ=ceiling(n / h)*h-n. Coding device according to claim 21.
27. the first codeword is a BCH(720,700) code, h=5, and p_word=64; [0026] and frm_map(i) = i, i ∈ [0, 4].
27. Coding device according to claim 26.
28. 28. Coding device according to any one of claims 15 to 27, wherein the first codeword is a BCH(720,700) code.
29. 1. A data communication based concatenated coding method, the method comprising: receiving data bits and performing KP4 coding on the data bits to obtain a KP4 codeword; interleaving the KP4 codeword to obtain an interleaved codeword; and coding the interleaved codewords according to a coding method according to any one of claims 1 to 14, wherein the interleaved codewords are not decoded before the coding according to any one of claims 1 to 14 is performed. method.
30. 15. A computer-readable storage medium having stored thereon instructions which, when executed on a terminal device, cause the terminal device to perform a method according to any one of claims 1 to 14.
31. A computer program comprising instructions which, when executed on a terminal device, cause the terminal device to carry out a method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Decoding system of data
JP1983161120A
Staircase code decoding method, device, and storage medium
JP2021502767A
Continuously interleaved error correction
US20100122149A1
Forward error correction with extended effective block size
US20120300873A1
Data Processing Method, Data Transmit End, and Data Receive End
US20180041332A1
