Forward error correction method, forward error correction device, electronic device and storage medium
By adopting the forward error correction method in the system bus, the data packet is divided into multiple sub-packets and error correction operations are performed in multiple forward error correction channels, which solves the problems of large delay and insufficient error correction capability of FEC technology and realizes Provides more efficient data transmission and error correction effects.
Patent Information
- Application Number
- CN202311244792.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-09-25
AI Technical Summary
The FEC technology in the existing system bus has the problems of large delay and insufficient error correction capability, especially during the signal conversion process of pulse amplitude modulation from NRZ to PAM4, which leads to increased sensitivity to noise, increased bit error rate, and affects signal integrity. .
Adopts a forward error correction method by dividing the data packet into multiple sub-packets and performing forward error correction operations independently and in parallel in multiple forward error correction channels, using error checking correction and cyclic redundancy check code verification test to improve data transmission efficiency and error correction capabilities.
It reduces data transmission delay, improves error correction capability and data transmission efficiency, and enhances signal integrity and reliability.
Smart Images

Figure CN117294392B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a forward error correction method, a forward error correction device, an electronic device, and a storage medium. Background Art
[0002] Forward Error Correction (FEC) is an error control method. It is a technology that encodes the signal according to a certain algorithm at the sending end before the signal is sent to the channel (i.e., the signal transmission channel), adds redundant codes with the characteristics of the signal itself, and decodes the received signal according to the corresponding algorithm at the receiving end, so as to find out the error codes generated during the transmission process and correct them. Summary of the invention
[0003] At least one embodiment of the present disclosure provides a forward error correction method, comprising: receiving a data packet transmitted on a system bus, wherein the data packet includes n sub-data packets, n is a positive integer and n≥2; and in response to receiving a sub-data packet among the n sub-data packets, transmitting the sub-data packet to a forward error correction channel among n forward error correction channels, wherein the n sub-data packets correspond one-to-one to the n forward error correction channels; and performing a forward error correction operation on the sub-data packet in a forward error correction channel.
[0004] At least one embodiment of the present disclosure provides a forward error correction device, including a transmission unit and n forward error correction channels, n is a positive integer and n≥2, wherein the transmission unit is configured to: receive a data packet transmitted on a system bus, wherein the data packet includes n sub-data packets; and in response to receiving a sub-data packet among the n sub-data packets, transmit the sub-data packet to a forward error correction channel among the n forward error correction channels, wherein the n sub-data packets correspond one-to-one to the n forward error correction channels; and a forward error correction channel is configured to: perform a forward error correction operation on a sub-data packet.
[0005] At least one embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a memory, comprising one or more computer program modules; wherein the one or more computer program modules are stored in the memory and configured to be executed by the one or more processors to implement the forward error correction method as described above.
[0006] At least one embodiment of the present disclosure provides a non-transitory readable storage medium having computer executable instructions stored thereon, wherein the computer executable instructions, when executed by a processor, implement the forward error correction method as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments of the present disclosure are briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, and are not intended to limit the present disclosure.
[0008] Figure 1 A schematic diagram showing exemplary non-return to zero (NRZ) and pulse amplitude modulation 4 (PAM4) eye diagrams;
[0009] Figure 2 A schematic diagram showing an exemplary three-line interleaved data structure;
[0010] Figure 3 A schematic diagram showing an exemplary FEC structure;
[0011] Figure 4 A flow chart of a forward error correction method according to at least one embodiment of the present disclosure is shown;
[0012] Figure 5 A schematic diagram of a forward error correction device according to at least one embodiment of the present disclosure is shown;
[0013] Figure 6 A schematic diagram showing an FEC structure applicable to a system bus of Peripheral Component Interconnect Express (PCIE) 6.0 according to at least one embodiment of the present disclosure is shown;
[0014] Figure 7 A schematic diagram showing a two-line interleaved data structure according to at least one embodiment of the present disclosure;
[0015] Figure 8 A schematic diagram showing an electronic device according to at least one embodiment of the present disclosure; and
[0016] Fig. 9 A schematic diagram of a non-transitory readable storage medium according to at least one embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0017] Reference will now be made in detail to specific embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings. Although the present disclosure will be described in conjunction with specific embodiments, it will be understood that it is not intended to limit the present disclosure to the described embodiments. On the contrary, it is intended to cover changes, modifications and equivalents included within the spirit and scope of the present disclosure as defined by the appended claims. It should be noted that the method operations described herein can be implemented by any functional block or functional arrangement, and any functional block or functional arrangement can be implemented as a physical entity or a logical entity, or a combination of the two.
[0018] In order to enable those skilled in the art to better understand the present disclosure, the present disclosure is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0019] Note that the examples to be introduced below are only specific examples, and are not intended to limit the embodiments of the present disclosure to the specific shapes, hardware, connection relationships, operations, values, conditions, data, sequences, etc. shown and described. Those skilled in the art can apply the concepts of the present disclosure to construct more embodiments not mentioned in the present description by reading the present description.
[0020] The terms used in the present disclosure are those common terms currently widely used in the art in consideration of the functions of the present disclosure, but these terms may vary according to the intention of a person of ordinary skill in the art, precedents, or new technologies in the art. In addition, specific terms may be selected by the applicant, and in this case, their detailed meanings will be described in the detailed description of the present disclosure. Therefore, the terms used in the specification should not be understood as simple names, but rather as an overall description based on the meaning of the terms and the present disclosure.
[0021] Flowcharts are used in this disclosure to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0022] First, the abbreviations and related terms involved in this application are defined and explained.
[0023] Cyclic Redundancy Check (CRC): A channel coding technology that generates a short fixed-bit check code based on network data packets or computer files. It is mainly used to detect or verify errors that may occur after data transmission or storage. It uses the principle of division and remainder for error detection.
[0024] Forward Error Correction (FEC): An error control method that uses data coding technology. At the sending end, it encodes the signal according to a certain algorithm before it is sent into the channel, adds redundant codes with the characteristics of the signal itself, and at the receiving end, decodes the received signal according to the corresponding algorithm to find out the error codes generated during the transmission process and correct them.
[0025] Error Check Correction (ECC): A technology that can implement "error checking and correction" to improve the stability of computer operation and increase reliability.
[0026] Peripheral Component Interconnect Express (PCIE): A high-speed serial computer expansion bus standard.
[0027] RS (Reed-Solomon) code: also known as Reed-Solomon code or Reed-solomon code, is a forward error correction channel code that is effective for polynomials generated by correcting oversampled data. RS code is a special type of non-binary BCH code with strong error correction capability. For any positive integer S, a corresponding q-based BCH code with a code length of n=qS-1 can be constructed, and q is a power of a prime number. When S=1, q>2, the q-based BCH code with a code length of n=q-1 is called RS code. When q=2 m (m>1), the binary RS code whose code element symbols are taken from F(2m) can be used to correct burst errors. It is the most commonly used RS code.
[0028] ECC Word, the object data for performing ECC operation, is embodied in the form of data bit + check information in a memory architecture supporting ECC.
[0029] It is understandable that the terms defined above are merely exemplary definitions in specific application scenarios to facilitate a better understanding of the present application, and the present disclosure is not limited thereto.
[0030] The system bus provides a standardized interface so that each component can work in coordination with each other and can read and write data, transmit commands, and perform other operations as needed. The development of the system bus brings new opportunities and challenges. At present, FEC technology is widely used in system buses or other aspects. With the development of technology, FEC technology has the disadvantages of large delay and insufficient error correction capability.
[0031] For example, there are key changes in the technology of the system bus. These changes include, for example: changes in pulse amplitude modulation (e.g., switching from non-return-to-zero (NRZ) to pulse amplitude modulation 4 (PAM4) signals, resulting in increased sensitivity to noise); changes in the flow control unit (Flit) (e.g., the switch to the flow control unit (Flit) results in changes in controller behavior and performance, and the need for tight integration between the PHY and the controller), as well as planning for interoperability and testing. Taking the PCIE6.0 bus standard as an example, the three main changes compared to the PCIE5.0 bus standard are as follows: the data rate doubles from 32GT / s to 64GT / s; the encoding format is converted from NRZ encoding to PAM4 encoding, which will bring about error correction effects; the transmission size changes from the variable-size transaction layer packet (TLP) transmitted to the fixed-size Flit (256 bytes (B)).
[0032] In addition, the system bus uses FEC, which requires reading out the data packets corresponding to the flow control unit (Flit) at a time, and then performing FEC operations. For example, the FEC used in PCIE 6.0 can read out 256B of data at a time (according to the protocol, 512 bits are read out in one cycle, which requires 4 cycles), and then use the three-line interleaving method to divide it into three FEC codes.
[0033] Combine the following Figures 1 to 3 The above exemplary aspects of using PCIE 6.0 and its FEC technology are described as examples. However, it can be understood that in combination with Figures 1 to 3 The system buses and their FEC technologies involved are only exemplary, and the related features can be mapped to other existing or future system buses and their FEC technologies.
[0034] Currently, PCIE 6.0 uses PAM4 modulation signal. Through PAM4, the data transmission per clock cycle can reach 2 bits, not just single-bit data transmission. PAM4 uses four different levels to express 2 digits per clock cycle, from 00, 01, 10 to 11. This means that within the same voltage fluctuation range and the same clock cycle.
[0035] Figure 1 Schematic diagram showing exemplary NRZ and PAM4 eye diagrams. Figure 1 Since the voltage level of PAM4 is two higher than that of PAM2, that is, the black area "eye" in the eye diagram is more and smaller, resulting in lower voltage margin and higher bit error rate, making it a very critical problem to ensure signal integrity in the device.
[0036] In order to reduce the impact of bit error rate and improve information integrity, the exemplary FEC technology uses three-line interleaving. The three-line interleaving can transmit the received data packet (i.e., 256B data corresponding to the Flit of PCIE 6.0) to three ECC decoders (see Figure 3 ). Figure 2 A schematic diagram showing an exemplary three-line interleaved data structure.
[0037] See also Figure 2 , where B0-B235 and DLP0-DLP5 (DLP is the data link layer data packet), a total of 242B is valid data, CRC0-CRC7 is 8B of CRC data, and ECC0-ECC5 is 6B of FEC coded data. A total of 1Flit 256B of data. In the three-line interleaved path (Lane):
[0038] ■ Byte 0 of Flit is mapped to the first ECC word, byte offset 0;
[0039] ■Byte 1 of Flit is mapped to the second set of ECC words, with byte offset 0;
[0040] ■Byte 2 of Flit is mapped to the third group of ECC words, with byte offset 0;
[0041] ■Byte 3 of Flit is mapped to the first set of ECC words, byte offset 1;
[0042] ■Byte 4 of Flit is mapped to the second set of ECC words, byte offset 1;
[0043] ■……
[0044] ■Byte 248 of Flit is mapped to the third set of ECC words, byte offset 82;
[0045] ■ Byte 249 of the Flit is mapped to the first set of ECC words, byte offset 83.
[0046] ■Second group of ECC words, byte offset 83 is 00h.
[0047] ■The third group of ECC words, byte offset 83 is 00h.
[0048] Then, the ECC bytes are allocated as follows:
[0049] ■Bytes 250 and 253 of the Flit are mapped to the second set of ECC words at byte offsets 84 and 85 respectively;
[0050] ■Bytes 251 and 254 of the Flit are mapped to the third set of ECC words at byte offsets 84 and 85 respectively; and
[0051] ■Bytes 252 and 255 of the Flit are mapped to the first set of ECC words at byte offsets 84 and 85 respectively.
[0052] Right now:
[0053] B0 / B3 / B6 / B9 / ... are the same group of ECC words, for example, called ECC0 words;
[0054] B1 / B4 / B7 / B10 / …are the same group of ECC words, for example, called ECC1 word, in which 1B of 00 data is added;
[0055] B2 / B5 / B8 / B11 / ...are the same group of ECC words, for example, called ECC2 words; 1B of 00 data is padded therein.
[0056] exist Figure 2, bytes with the same grayscale (for example, B0 / B3 / B6 / B9 / … have the same grayscale as described above, B1 / B4 / B7 / B10 / … have the same grayscale as described above, and B2 / B5 / B8 / B11 / … have the same grayscale as described above) are mapped to the same group and thus organized into the same ECC word.
[0057] See Figure 3 As described, the ECC0 word, the ECC1 word, and the ECC2 word are respectively subjected to ECC operations by three ECC decoders.
[0058] Figure 3 A schematic diagram showing an exemplary FEC structure is shown. Figure 3 The FEC structure described can be used in Figure 2 Describes the three-line interleaved FEC technique.
[0059] See also Figure 3 , the FEC structure includes a transmission unit 310, three ECC decoders 320-340 and a CRC check unit 380.
[0060] At the receiving end, the transmission unit 310 must completely receive 256B of data. Since the data width is 512 bits, it takes 4 cycles to fully receive and prepare 256B of data.
[0061] application Figure 2 In the three-line interleaving method shown, the transmission unit 310 sends 256B data to three ECC decoders 320-340 respectively, where 256B is divided into 86B / 85B / 85B. The number of bytes of the ECC word corresponding to the three ECC decoders 320-340 is 86B, so the last two ECC units 330 and 340 need to fill 1B of 0 to perform the ECC operation, and each ECC word 86B can correct 1B.
[0062] After the ECC operation is performed by the three ECC decoders 320-340, the corrected 242B data will be sent out, and the 242B data + 8B CRC data (a total of 250B data) will be sent to the CRC check unit 380 for integrity check. In the CRC check unit 380, the 242B data will be re-calculated with the CRC data of 8B, and then the CRC data of 8B will be checked with the 8B CRC data output from the ECC unit. If they are consistent, it means that the data is complete.
[0063] Therefore, the exemplary FEC structure can only transmit the 256B data to the ECC decoder for ECC operation after receiving the 256B data completely, and can correct the 3B data in the 256B data, and the CRC is used to ensure the data integrity. The 256B data includes 242 valid data + 8B CRC + 6B FEC. The data transmission rate is 242 / 256 = 94.53%.
[0064] There is a need for FEC technology based on, for example, a system bus with low latency and / or high error correction capability.
[0065] At least one embodiment of the present invention provides a forward error correction method, a forward error correction device, an electronic device, and a non-transitory readable storage medium for improving data transmission efficiency and / or improving error correction capability.
[0066] Figure 4 FIG. 4 is a flow chart of a forward error correction method 400 according to at least one embodiment of the present disclosure. Figure 4 The described forward error correction method 400 and its additional aspects can be found below. Figure 5 The described forward error correction device 500 is implemented in an electronic device, a hardware structure, a software structure, or a hardware structure and a software structure.
[0067] See also Figure 4 , the forward error correction method 400 includes steps S410 to S430.
[0068] In step S410, a data packet transmitted on a system bus is received, wherein the data packet includes n sub-data packets, where n is a positive integer and n≥2.
[0069] The system bus may be an information transmission line between various components of a computing device. For example, the system bus includes, but is not limited to, an ISA bus, an EISA bus, a VESA bus, a PCI bus, a Compact PCI, and a PCIE bus.
[0070] For example, a data packet may correspond to a flow control unit of a system bus. Different system buses may correspond to different flow control units. A flow control unit may be the smallest unit of a system bus operation. For example, a flow control unit of a PCIE 6.0 bus is 256B, and thus a data packet is 256B.
[0071] The data packet may be divided into n sub-data packets, each of which may include data bits + check information and may be organized into ECC words for the ECC decoder to perform ECC operations.
[0072] In step S420, in response to receiving a sub-packet among the n sub-packets, the sub-packet is transmitted to a forward error correction channel among the n forward error correction channels, wherein the n sub-packets correspond one to one with the n forward error correction channels. For example, the forward error correction channel may perform a forward error correction operation on the data transmitted thereto.
[0073] In step S430, a forward error correction operation is performed on a sub-data packet in a forward error correction channel. In some embodiments, the forward error correction operation includes error checking and correction decoding and cyclic redundancy check operations.
[0074] In some embodiments, the sub-data includes data information and check information for performing forward error correction operations. For example, the sub-data packet may include data information and check information for correcting at least 1 bit of data in the data information.
[0075] Here, the sub-data packets may perform forward error correction operations in their respective forward error correction channels, thereby facilitating independent and parallel forward error correction operations on the respective sub-data packets.
[0076] As described above, the forward error correction method according to at least one embodiment of the present disclosure can support sending out a portion of a received data packet to perform a forward error correction operation and improve data transmission efficiency.
[0077] Some exemplary additional aspects of the forward error correction method according to at least one embodiment of the present disclosure are described below.
[0078] For example, according to the forward error correction method of at least one embodiment of the present disclosure, a forward error correction operation is performed on a sub-data packet in a forward error correction channel, including: performing an error check and correction operation on the sub-data packet, obtaining a result of the error check and correction operation; and performing a cyclic redundancy check code check on the result of the error check and correction operation.
[0079] It should be noted that, in the context, the forward error correction method according to at least one embodiment of the present disclosure describes the decoding aspect of the FEC technology, and can be applicable to the receiving end supporting the FEC technology. It can be understood that decoding and encoding are inverse processes, and in addition, the forward error correction method according to at least one embodiment of the present disclosure describes that the decoding aspect of the FEC technology can be extended to the encoding aspect, and can be applicable to the sending end supporting the FEC technology. Of course, the sending end can also be implemented in other ways to obtain the data packet described in the context, and the present disclosure is not limited to this.
[0080] The cyclic redundancy check code check can ensure the integrity of the data, and the data it needs to receive is completely correct, while the error checking and correction operation not only has the function of error detection (for example, in terms of error detection, it is not weaker than the cyclic redundancy check code check), but also has the function of error correction, which ensures the correctness of the data. In this way, the forward error correction method according to at least one embodiment of the present disclosure can ensure the integrity of the data through the error checking and correction operation + cyclic redundancy check code check.
[0081] For example, according to the forward error correction method of at least one embodiment of the present disclosure, a sub-data packet is transmitted to a forward error correction channel among n forward error correction channels, including: using m-line interleaving to transmit a sub-data packet to m error check and correction decoders of a forward error correction channel, so that the number of bytes of a sub-data packet is equal to the sum of the number of bytes of the error check and correction words corresponding to the m error check and correction decoders, m is a positive integer and m≥1.
[0082] Thus, the forward error correction method according to at least one embodiment of the present disclosure does not need to fill invalid data, thereby improving the operational efficiency of error checking and correction operations and / or cyclic redundancy check code checking.
[0083] For example, the number of ECC word bytes corresponding to each error checking and correcting decoder (i.e., ECC decoder) (i.e., the number of bytes of the ECC structure of the error checking and correcting decoder) can be made equal, and the number of bytes of the sub-data packet is equal to an integer multiple of the number of bytes of the error checking and correcting word corresponding to an error checking and correcting decoder. Exemplarily, for a sub-data packet of 128B, the number of ECC word bytes corresponding to each error checking and correcting decoder is 64B, then 128B can be interleaved to two error checking and correcting decoders through two-line interleaving. For another example, for a sub-data packet of 128B, the number of ECC word bytes corresponding to each error checking and correcting decoder is 32B, and 128B can be interleaved to four error checking and correcting decoders through four-line interleaving. Of course, the exemplary disclosure is not limited to this, and it is not necessary to make the number of ECC word bytes corresponding to each error checking and correcting decoder equal. In addition, the sub-data packet can be organized according to the number of ECC word bytes corresponding to the error checking and correcting decoder, or it can be implemented by selecting a suitable error checking and correcting decoder according to the sub-data packet.
[0084] For example, according to the forward error correction method of at least one embodiment of the present disclosure, m=2, m error check correction decoders include a first error check correction decoder and a second error check correction decoder, the size of a sub-data packet is divisible by 2, and a sub-data packet is transmitted to the m error check correction decoders using m-line interleaving, including: transmitting a sub-data packet to the first error check correction decoder and the second error check correction decoder using two-line interleaving.
[0085] Thus, the forward error correction method according to at least one embodiment of the present disclosure can use two-line interleaving, thereby eliminating the need to fill invalid data, thereby improving the operational efficiency of error checking and correction operations and / or cyclic redundancy check code checking.
[0086] For example, according to the forward error correction method of at least one embodiment of the present disclosure, a sub-data packet is transmitted to a first error check correction decoder and a second error check correction decoder using two-line interleaving, including: mapping the odd bytes of a sub-data packet to a first error check correction word; and mapping the even bytes of a sub-data packet to a second error check correction word.
[0087] During data transmission, due to factors such as crosstalk or other factors, when a byte is wrong, the probability of errors in adjacent bytes increases. For example, see below Figure 7 As shown, byte 0 is mapped to ECC0 word. When byte 0 is wrong, the probability of byte 1 or 16 being wrong increases. However, bytes 1 and 16 are mapped to ECC0 word. Considering that the error correction capability of each ECC decoder is limited, for example, the error correction capability of each ECC decoder is 1 byte, and byte 1 is wrong, the wrong byte 0 and the wrong byte 1 can be mapped to different ECC words through two-line interleaving, so that the corresponding ECC decoder can correct the wrong byte 0 and the wrong byte 1 respectively. In contrast, interleaving the wrong byte 0 and the wrong byte 1 into one ECC word will cause the number of wrong bytes to exceed the error correction capability of the ECC decoder.
[0088] Thus, the forward error correction method according to at least one embodiment of the present disclosure enables the erroneous bytes to be distributed in different ECC words through the alternating mapping of odd-even bytes, thereby facilitating the error correction of the erroneous bytes by the ECC decoder.
[0089] For example, according to the forward error correction method of at least one embodiment of the present disclosure, the system bus complies with the peripheral component interconnect high-speed protocol, and n=2.
[0090] In this way, the forward error correction method according to at least one embodiment of the present disclosure can improve data transmission efficiency through two forward error correction channels when the peripheral component interconnect is high-speed.
[0091] For example, according to at least one embodiment of the present disclosure, the forward error correction method, the system bus complies with the peripheral component interconnect high-speed protocol, n=2, and the number of bytes of a sub-data is 128B, and two-line interleaving is used to transmit a sub-data packet to a first error check and correction decoder and a second error check and correction decoder, including:
[0092] ■ Map byte 0 of a sub-packet to the first set of error checking and correction words, byte offset 0;
[0093] ■ Map byte 1 of a sub-packet to the second set of error checking and correction words, with byte offset 0;
[0094] ■ Map byte 2 of a sub-packet to the first set of error check and correction words, byte offset 1;
[0095] ■ Map byte 3 of a sub-packet to the second set of error checking and correction words, byte offset 1;
[0096] ■ Map byte 4 of a sub-packet to the first set of error check and correction words, byte offset 2;
[0097] ■ Map byte 5 of a sub-packet to the second set of error checking and correction words, byte offset 2;
[0098] ■……
[0099] ■ Map byte 122 of a sub-packet to the first set of error check and correction words, byte offset 61;
[0100] ■ Map byte 123 of a sub-packet to the second set of error check and correction words, byte offset 61;
[0101] ■ Map bytes 124 and 126 of a sub-packet to the first set of error check and correction words at byte offsets 62 and 63, respectively;
[0102] ■Map bytes 125 and 127 of a sub-packet to the second set of error checking and correction words at byte offsets 62 and 63 respectively.
[0103] Therefore, according to at least one embodiment of the forward error correction method of the present disclosure, sub-data packets are organized into first ECC words and second ECC words, which are respectively transmitted to a first ECC decoder (i.e., a first error checking and correction decoder) and a second ECC decoder (i.e., a second error checking and correction decoder) by alternating mapping odd-even bytes.
[0104] Thus, the forward error correction method according to at least one embodiment of the present disclosure can realize the transmission of sub-packets to the ECC decoder through a specific 128B data transmission two-line interleaving method under the condition of high peripheral component interconnection speed, and improve the data transmission efficiency through two forward error correction channels. It can be understood that in this embodiment, n=2 is not necessary, for example, n can also be other positive integers greater than 2.
[0105] For example, according to the forward error correction method of at least one embodiment of the present disclosure, the PCI Express protocol is PCI Express version 6.0 or a version compatible with PCI Express version 6.0.
[0106] Thus, the forward error correction method according to at least one embodiment of the present disclosure can be applied to, for example, Peripheral Component Interconnect Express 6.0. For example, in the case of Peripheral Component Interconnect Express 6.0, the sub-packet is 128B, and the ECC operation can be performed by two ECC decoders corresponding to an ECC word of 64B.
[0107] For example, according to the forward error correction method of at least one embodiment of the present disclosure, the number of bytes of a sub-data includes 122B of valid data, 2B of cyclic redundancy check code (CRC) data and 4B of forward error correction (FEC) data, the number of bytes of the error check correction words corresponding to the first error check correction decoder and the second error check correction decoder is 64B, and an error check correction operation is performed on a sub-data packet to obtain a result of the error check correction operation, including: the first error check correction decoder and the second error check correction decoder respectively perform an error check correction operation on the first group of error check correction words and the second group of error check correction words to obtain 122B of valid data after error check correction (for example, DLP+TLP) and 2B of cyclic redundancy check code (CRC) data after error check correction.
[0108] Thus, the forward error correction method according to at least one embodiment of the present disclosure can use two ECC decoders with an ECC structure of 64B to process 128B sub-data packets, and enable the ECC decoder to correct, for example, at least one error through specific data input.
[0109] For example, according to the forward error correction method of at least one embodiment of the present disclosure, a cyclic redundancy check code check is performed on the result of the error check and correction operation, including: a single cyclic redundancy check code check unit performs a cyclic redundancy check code check on 122B of valid data after error check and correction to obtain 2B of cyclic redundancy check code data after cyclic redundancy check code check; the cyclic redundancy check code data after cyclic redundancy check code check of 2B is compared with the cyclic redundancy check code (CRC) data after error check and correction of 2B; and in response to the cyclic redundancy check code data after cyclic redundancy check code check of 2B being consistent with the cyclic redundancy check code (CRC) data after error check and correction of 2B, a first value is output to indicate that a sub-data packet has integrity; or in response to the cyclic redundancy check code data after cyclic redundancy check code check of 2B being inconsistent with the cyclic redundancy check code (CRC) data after error check and correction of 2B, a second value is output to indicate that a sub-data packet does not have integrity.
[0110] In this way, the forward error correction method according to at least one embodiment of the present disclosure can use a single CRC check unit to perform a CRC check operation, thereby ensuring the integrity of the data.
[0111] For example, according to the forward error correction method of at least one embodiment of the present disclosure, the first error check correction decoder and the second error check correction decoder perform error check correction operations on the first group of error check correction words and the second group of error check correction words respectively, including: the first error check correction decoder and the second error check correction decoder use the Reed-Solomon code algorithm to perform error check correction operations on the first group of error check correction words and the second group of error check correction words respectively.
[0112] Thus, the forward error correction method according to at least one embodiment of the present disclosure may adopt the RS algorithm to realize that a single ECC decoder can at least realize, for example, at least 1 byte of data error correction. However, the embodiment is not limited thereto, and other algorithms may be used to realize, for example, at least 1 byte of data error correction, and accordingly, the configuration of the input data of the ECC decoder may be changed.
[0113] For example, according to the forward error correction method of at least one embodiment of the present disclosure, the number of bytes of the n sub-data packets is equal, and the structures of the n forward error correction channels are the same.
[0114] In this way, the forward error correction method according to at least one embodiment of the present disclosure can make the corresponding forward error correction structure simple and easy to manufacture.
[0115] Corresponding to the forward error correction method 400 according to at least one embodiment of the present disclosure, at least one embodiment of the present disclosure further provides a forward error correction device.
[0116] Figure 5 A schematic diagram of a forward error correction device 500 according to at least one embodiment of the present disclosure is shown.
[0117] See also Figure 5 The forward error correction device 500 includes a transmission unit 510 and n forward error correction channels (eg, a first forward error correction channel 502 to an nth forward error correction channel 504), where n is a positive integer and n≥2.
[0118] For example, the transmission unit 510 is configured to: receive a data packet transmitted on a system bus, wherein the data packet includes n sub-data packets; and in response to receiving a sub-data packet among the n sub-data packets, transmit the sub-data packet to a forward error correction channel among n forward error correction channels, wherein the n sub-data packets correspond one-to-one to the n forward error correction channels.
[0119] For example, see Figure 5 , a data packet corresponding to a flow control unit (Flit) may be divided into a first sub-data packet to an nth sub-data packet, and each sub-data packet may have a corresponding forward error correction channel.
[0120] A forward error correction channel is configured to perform a forward error correction operation on a sub-data packet.
[0121] For example, see Figure 5 The first forward error correction channel 502 can perform a forward error correction operation on the first sub-data packet input therein, and the nth forward error correction channel 504 can perform a forward error correction operation on the nth sub-data packet input therein.
[0122] As described above, the forward error correction device according to at least one embodiment of the present disclosure can support sending out a portion of a received data packet to perform a forward error correction operation and improve data transmission efficiency.
[0123] Some exemplary additional aspects of the forward error correction device according to at least one embodiment of the present disclosure are described below.
[0124] For example, according to the forward error correction device of at least one embodiment of the present disclosure, a forward error correction channel includes an error check and correction decoder group and a cyclic redundancy check code verification unit group, the error check and correction decoder group is configured to perform an error check and correction operation on a sub-data packet and obtain a result of the error check and correction operation; and the cyclic redundancy check code verification unit group is configured to perform a cyclic redundancy check code verification on the result of the error check and correction operation. The error check and correction decoder group and the cyclic redundancy check code verification unit group may each include one or more error check and correction decoders and cyclic redundancy check code verification units.
[0125] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the error checking and correction decoder group includes m error checking and correction decoders, m is a positive integer and m≥1, and the transmission unit is further configured to: use m-line interleaving to transmit a sub-data packet to the m error checking and correction decoders, so that the number of bytes of a sub-data packet is equal to the sum of the number of bytes of the error checking and correction words corresponding to the m error checking and correction decoders.
[0126] For example, in a forward error correction device according to at least one embodiment of the present disclosure, m=2, the m error check and correction decoders include a first error check and correction decoder and a second error check and correction decoder, the size of a sub-data packet is divisible by 2, and the transmission unit is further configured to: transmit a sub-data packet to the first error check and correction decoder and the second error check and correction decoder using two-line interleaving.
[0127] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the transmission unit is further configured to:
[0128] Mapping odd bytes of a sub-data packet to a first error check correction word; and
[0129] The even-numbered bytes of a sub-data packet are mapped to the second error check correction word.
[0130] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the system bus complies with the peripheral component interconnect high-speed protocol, n=2, and the number of bytes of a sub-data is 128B, and the transmission unit is further configured as follows:
[0131] ■ Map byte 0 of a sub-packet to the first set of error checking and correction words, byte offset 0;
[0132] ■ Map byte 1 of a sub-packet to the second set of error checking and correction words, with byte offset 0;
[0133] ■ Map byte 2 of a sub-packet to the first set of error check and correction words, byte offset 1;
[0134] ■ Map byte 3 of a sub-packet to the second set of error checking and correction words, byte offset 1;
[0135] ■ Map byte 4 of a sub-packet to the first set of error check and correction words, byte offset 2;
[0136] ■ Map byte 5 of a sub-packet to the second set of error checking and correction words, byte offset 2;
[0137] ■……
[0138] ■ Map byte 122 of a sub-packet to the first set of error check and correction words, byte offset 61;
[0139] ■ Map byte 123 of a sub-packet to the second set of error check and correction words, byte offset 61;
[0140] ■ Map bytes 124 and 126 of a sub-packet to the first set of error check and correction words at byte offsets 62 and 63, respectively;
[0141] ■Map bytes 125 and 127 of a sub-packet to the second set of error checking and correction words at byte offsets 62 and 63 respectively.
[0142] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the PCI Express protocol is PCI Express version 6.0 or a version compatible with PCI Express version 6.0.
[0143] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the number of bytes of a sub-data includes 122B of valid data, 2B of cyclic redundancy check code data and 4B of forward error correction data, the number of bytes of the error check correction words corresponding to the first error check correction decoder and the second error check correction decoder is 64B, and the first error check correction decoder and the second error check correction decoder are configured to: perform error check correction operations on the first group of error check correction words and the second group of error check correction words, respectively, to obtain 122B of valid data after error check correction and 2B of cyclic redundancy check code data after error check correction.
[0144] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the cyclic redundancy check code check unit group includes a single cyclic redundancy check code check unit, and the single cyclic redundancy check code check unit is configured to: perform cyclic redundancy check code check on 122B of valid data after error check and correction to obtain 2B of cyclic redundancy check code data after cyclic redundancy check code check; compare 2B of cyclic redundancy check code data after cyclic redundancy check code check with 2B of cyclic redundancy check code data after error check and correction; and in response to the cyclic redundancy check code data after cyclic redundancy check code check of 2B being consistent with the cyclic redundancy check code data after error check and correction of 2B, output a first value to indicate that a sub-data packet has integrity; or in response to the cyclic redundancy check code data after cyclic redundancy check code check of 2B being inconsistent with the cyclic redundancy check code (CRC) data after error check and correction of 2B, output a second value to indicate that a sub-data packet does not have integrity.
[0145] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the first error check and correction decoder and the second error check and correction decoder are configured to: use the Reed-Solomon code algorithm to perform error check and correction operations on the first group of error check and correction words and the second group of error check and correction words respectively.
[0146] For example, according to the forward error correction device of at least one embodiment of the present disclosure, the number of bytes of the n sub-data packets is equal, and the structures of the n forward error correction channels are the same.
[0147] The above-mentioned additional aspects of the forward error correction device 500 according to at least one embodiment of the present disclosure may correspond to the additional aspects of the forward error correction method 400 according to at least one embodiment of the present disclosure. Therefore, the technical effects of the additional aspects of the forward error correction method 400 according to at least one embodiment of the present disclosure can also be mapped to the additional aspects of the forward error correction device 500 according to at least one embodiment of the present disclosure, which will not be repeated here.
[0148] In some embodiments, the forward error correction device 500 and additional aspects thereof according to at least one embodiment of the present disclosure may be embodied as, for example, a memory controller of a memory or included in a memory controller. Thus, the forward error correction device 500 and additional aspects thereof according to at least one embodiment of the present disclosure may be applied to a memory or a memory system.
[0149] The following describes the above combination with an example application scenario. Figure 4 and Figure 5 It is understood that the example application scenarios described below are only examples and not limitations, and are intended to implement the above combination in specific application scenarios. Figure 4 and Figure 5 One or more aspects of the present invention, and the various aspects described below in conjunction with the example application scenario can be combined with the above Figure 4 and Figure 5 one or more aspects of a combination.
[0150] The example application scenario involves Figure 6 The FEC structure applicable to the system bus is PCIE 6.0 and Figure 7 The schematic diagram of the two-line interleaved data structure is shown.
[0151] Figure 6 A schematic diagram of an FEC structure applicable to a system bus of PCIE 6.0 according to at least one embodiment of the present disclosure is shown.
[0152] See also Figure 6 The FEC structure includes a transmission unit 610, ECC decoders 620-650, and CRC check units 680 and 690. The transmission unit 610 can be used with Figure 5 The ECC decoders 620 and 630 and the CRC check unit 680 may form a forward error correction channel, and the ECC decoders 640 and 650 and the CRC check unit 690 may form another forward error correction channel, where the forward error correction channel may correspond to, for example, Figure 5 Describe the forward error correction channel.
[0153] See also Figure 6 The FEC structure described enables 256B Flit data to support two 128B data transmissions, only two 128B sub-packets. 256B data can be transmitted in two times, which can greatly reduce the data preparation time. For example, see Figure 3 The FEC structure described requires 4 cycles to prepare 256B of data. In contrast, see Figure 6The described FEC structure only needs 2 cycles to prepare 128B to perform FEC operations, such as sending to the ECC decoder and CRC check unit in the corresponding forward error correction channel for ECC and CRC operations, without having to wait for all 256B data to be read out. In this way, the FEC structure according to at least one embodiment of the present disclosure greatly reduces data transmission delay and improves data transmission efficiency.
[0154] In addition, see Figure 6 In the FEC structure described, the ECC decoders 620-650 have the same structure, for example, a 64B ECC structure can be used. The 128B data sent each time can be 122B valid data + 2B CRC data + 4B FEC, using a 2-line interleaved data structure, and no longer need to fill invalid data. In contrast, as shown in Figure 3 The FEC structure described uses a three-line interleaving structure. Since 256 cannot be divided by 3, in this three-line interleaving structure, 2B of invalid data needs to be padded to enable the ECC decoder to perform the ECC operation. In this way, see Figure 6 The FEC structure described can simplify the hardware structure. In addition, the effective data is increased from 242B to 244B, and the effective data transmission rate is 95.31%, and the data transmission rate is effectively improved. For example, compared with Figure 3 Compared to the FEC structure described in Figure 6 The described FEC structure can increase the data transmission rate by 0.8%.
[0155] Combine the following Figure 7 The data structure method of performing two-line interleaving on two 128B data (for example, upper 128B and lower 128B) is described. Figure 7 A schematic diagram of a two-line interleaved data structure according to at least one embodiment of the present disclosure is shown.
[0156] See also Figure 7 For example, for the lower 128B (byte 0 to byte 127), an exemplary two-line interleaving is:
[0157] ■Byte 0 of Flit is mapped to the first set of ECC words, byte offset 0;
[0158] ■Byte 1 of Flit is mapped to the second set of ECC words, with byte offset 0;
[0159] ■Byte 2 of Flit is mapped to the first set of ECC words, byte offset 1;
[0160] ■Byte 3 of Flit is mapped to the second set of ECC words, byte offset 1;
[0161] ■Byte 4 of Flit is mapped to the first set of ECC words, byte offset 2;
[0162] ■Byte 5 of Flit is mapped to the second set of ECC words, byte offset 2;
[0163] ■……
[0164] ■Byte 122 of Flit is mapped to the first set of ECC words, byte offset 61;
[0165] ■Byte 123 of Flit is mapped to the second set of ECC words, byte offset 61;
[0166] ■Bytes 124 and 126 of the Flit are mapped to the first set of ECC words at byte offsets 62 and 63, respectively;
[0167] ■Bytes 125 and 127 of the Flit are mapped to the second set of ECC words at byte offsets 62 and 63 respectively.
[0168] Right now:
[0169] B0 / B2 / B4 / B6 / ... are the same group of ECC words, for example, called ECC0 words;
[0170] B1 / B3 / B5 / B7 / ...are the same group of ECC words, for example, called ECC1 words.
[0171] exist Figure 7 Bytes with the same grayscale are mapped to the same group and thus organized into the same ECC word.
[0172] See Figure 6 As described above, the ECC0 word and the ECC1 word can be respectively subjected to ECC operation by the ECC decoder. Figure 6 The ECC0 word and the ECC1 word corresponding to the upper 128B can be subjected to ECC operation by the ECC decoders 620 and 630 respectively. Figure 6 The ECC0 word and the ECC1 word corresponding to the lower 128B may be subjected to ECC operations by the ECC decoders 620 and 630 , respectively.
[0173] Return to see Figure 6 , wherein ECC decoders 620-650 are shown, each of which has a 64B ECC structure (i.e., the number of bytes of the corresponding ECC word is 64B). Based on the above two-line interleaved data structure, 1B of data can be corrected at a time. When performing ECC operation on 128B data, two ECC decoders (for example, Figure 6 For the upper 128B, ECC decoders 620 and 630 may be used, or for Figure 6The lower 128B may use ECC decoders 640 and 650), and the two ECC decoders may output 122B of valid data (eg, DLP+TLP) while outputting 4B of FEC data.
[0174] The two ECC decoders will send 124B of data (including 122B of valid data and 2B, i.e., 16-bit CRC data) to the corresponding CRC check units (for example, ECC decoders 620 and 630 output the above data to CRC check unit 680, and ECC decoders 640 and 650 output the above data to CRC check unit 690). CRC check units 680 and 690 may have the same structure.
[0175] In the CRC check units 680 and 690, the CRC value of the valid data of 122B can be calculated again, and the CRC value corrected by FEC can be checked to output Flit Retry 0 / Flit Retry 1 respectively, so as to inform the software system whether the data needs to be reread. For example, for each of Flit Retry 0 / Flit Retry 1, the first value can be used to indicate that the data has integrity and does not need to be reread, and the second value can be used to indicate that the data does not have integrity and needs to be reread.
[0176] See also Figure 6 The described FEC structure can achieve one or more beneficial effects.
[0177] For example, using Figure 6 The described FEC structure can reduce data transmission delay time and data preparation time, for example, can save nearly 50%.
[0178] For example, using Figure 6 In the described FEC structure, the word size of the ECC / FEC operation unit is reduced from 86B to 64B. The matrix used in, for example, the RS algorithm will become smaller, the number of algorithm logic levels will become smaller (reduced by about 86-64=22, 22 / 86 is about 25%), and the performance will be better.
[0179] For example, using Figure 6 The FEC structure described, the effective data is increased from 242B to 244B data, the effective data transmission rate is 95.31%, and the data transmission rate is effectively improved, for example, it can be increased by 0.8%.
[0180] For example, using Figure 6 The FEC structure described in the specification has the following error correction capability: 256B can correct 4B of data, which is similar to the error correction capability of Figure 3The described FEC structure can correct 3B data by 33.33% and significantly improves reliability.
[0181] In see Figure 6 The additional aspects of the FEC structure described use more FEC coded data (from 6B to 8B), while CRC uses a smaller amount (from 8B to the current 4B). The principle is that CRC only has the function of error detection, while FEC coding uses the RS algorithm, which not only has the function of error detection, but also the function of error correction. In terms of error detection, FEC coding is not weaker than CRC coding. Therefore, the CRC+FEC coded data is adjusted. In terms of CRC coding, it has advantages in data integrity, and the received data must be completely correct in advance. If there is a bit error rate between the valid data and the CRC data, its integrity cannot be guaranteed. FEC coding is more advantageous. Therefore, see Figure 6 The described FEC structure can be extended, for example, by adding more FEC codes to increase the error correction capability and reduce the impact of the bit error rate on the system.
[0182] At least some embodiments of the present disclosure also provide an electronic device. Figure 8 A schematic diagram of an electronic device 800 according to at least one embodiment of the present disclosure is shown.
[0183] like Figure 8 As shown, the electronic device 800 includes one or more processors 810 and a memory 820. The memory 820 includes one or more computer program modules 821. The one or more computer program modules 821 are stored in the memory 820 and are configured to be executed by the processor 810. The one or more computer program modules 821 include instructions for executing the forward error correction method 400 and additional aspects thereof according to at least one embodiment of the present disclosure. When the instructions are executed by the processor 810, one or more steps of the forward error correction method 400 and additional aspects thereof according to at least one embodiment of the present disclosure can be executed. The memory 820 and the processor 810 can be interconnected through a bus system and / or other forms of connection mechanisms (not shown). For example, the bus can be a peripheral component interconnect standard (PCI) bus or an extended industrial standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0184] Exemplarily, the processor 810 may be a central processing unit (CPU), a digital signal processor (DSP), or other forms of processing units having data processing capabilities and / or program execution capabilities, such as a field programmable gate array (FPGA), etc.; for example, the central processing unit (CPU) may be a RISC-V architecture or other suitable types of architectures, etc. The processor 810 may be a general-purpose processor or a dedicated processor, and may control other components in the electronic device 800 to perform desired functions.
[0185] Exemplarily, the memory 820 may include any combination of one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, erasable programmable read-only memory (EPROM), portable compact disk read-only memory (CD-ROM), USB memory, flash memory, etc. One or more computer program modules 821 may be stored on the computer-readable storage medium, and the processor 810 may run one or more computer program modules 821 to implement various functions of the electronic device 800. The computer program module includes a plurality of computer-executable instructions. Various applications and various data, as well as various data used and / or generated by the application, etc. may also be stored in the computer-readable storage medium.
[0186] For example, the electronic device 800 may also include input devices such as a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices such as a liquid crystal display, a speaker, a vibrator, etc.; storage devices such as a magnetic tape, a hard disk (HDD or SDD), etc.; and communication devices such as a network interface card such as a LAN card, a modem, etc. may also be included. The communication device may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data, and perform communication processing via a network such as the Internet. The drive is connected to the I / O interface as needed. Removable storage media, such as a disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage device as needed.
[0187] For example, the electronic device 800 may further include a peripheral interface (not shown in the figure), etc. The peripheral interface may be various types of interfaces, such as a USB interface, a lightning interface, etc. The communication device may communicate with a network and other devices through wireless communication, such as the Internet, an intranet and / or a wireless network such as a cellular phone network, a wireless local area network (LAN), and / or a metropolitan area network (MAN). Wireless communication may use any of a variety of communication standards, protocols, and technologies, including but not limited to a global system for mobile communications (GSM), an enhanced data GSM environment (EDGE), wideband code division multiple access (W-CDMA), code division multiple access (CDMA), time division multiple access (TDMA), Bluetooth, Wi-Fi (e.g., based on IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, and / or IEEE 802.11n standards), voice transmission over Internet protocol (VoIP), Wi-MAX, protocols for email, instant messaging, and / or short message service (SMS), or any other suitable communication protocol.
[0188] The electronic device 800 may be, for example, a system on a chip (SOC) or a device including the SOC, for example, a mobile phone, a tablet computer, a laptop computer, an e-book, a game console, a television, a digital photo frame, a navigator, a home appliance, a communication base station, an industrial controller, a server, or any other device, or a combination of any data processing device and hardware, which is not limited by the embodiments of the present disclosure. The specific functions and technical effects of the electronic device 800 may refer to the description of the forward error correction method 400 and its additional aspects according to at least one embodiment of the present disclosure, and will not be repeated here.
[0189] Fig. 9 A schematic diagram of a non-transitory readable storage medium 900 according to at least one embodiment of the present disclosure is shown.
[0190] like Fig. 9 As shown, a non-transitory readable storage medium 900 stores computer instructions 910, which, when executed by a processor, perform one or more steps of the forward error correction method 400 and additional aspects thereof as described above.
[0191] Exemplarily, the non-transitory readable storage medium 900 may be any combination of one or more computer-readable storage media, for example, a computer-readable storage medium includes a program code for receiving a data packet transmitted on a system bus. For another example, a computer-readable storage medium includes a program code for transmitting a sub-data packet to a forward error correction channel among n forward error correction channels in response to receiving a sub-data packet among n sub-data packets. For another example, a computer-readable storage medium includes a program code for performing a forward error correction operation on a sub-data packet in a forward error correction channel.
[0192] Exemplarily, when the program code is read by a computer, the computer may execute the program code stored in the computer storage medium to implement, for example, one or more steps of the forward error correction method 400 and additional aspects thereof according to at least one embodiment of the present disclosure.
[0193] Exemplarily, the non-transitory readable storage medium may include a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), flash memory, and other non-transitory readable storage media or any combination thereof.
[0194] At least some of the embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referenced to each other.
[0195] It should be noted that, in this article, relational terms such as first, second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises", or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements includes not only those elements, but also further includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. In the absence of further restrictions, the elements defined by the statement "includes..." do not exclude the presence of other identical elements in the process, method, article, or device including the elements.
[0196] There are a few points to note about this disclosure:
[0197] (1) The drawings of the embodiments of the present disclosure only relate to the structures related to the embodiments of the present disclosure, and other structures may refer to the general design.
[0198] (2) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to obtain new embodiments.
[0199] The above description is merely an exemplary embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure. The protection scope of the present disclosure is determined by the appended claims.
Claims
1. A forward error correction method, include: Receive a data packet transmitted on a system bus, wherein the data packet includes n sub-data packets, n is a positive integer and n≥2, and each sub-data packet includes data information and check information; and In response to receiving one of the n sub-data packets, transmitting the one sub-data packet to one of the n forward error correction channels, wherein the n sub-data packets correspond one to one with the n forward error correction channels; as well as performing a forward error correction operation on the one sub-data packet in the one forward error correction channel, Wherein, the forward error correction operation includes an error checking and correction operation and a cyclic redundancy check code check; Among them, transmitting the one sub-data packet to one forward error correction channel among n forward error correction channels includes: using m-line interleaving to transmit the one sub-data packet to m error check and correction decoders of the one forward error correction channel, so that the number of bytes of the one sub-data packet is equal to the sum of the number of bytes of the error check and correction words corresponding to the m error check and correction decoders, m is a positive integer and m≥1.
2. The forward error correction method according to claim 1, in, The performing a forward error correction operation on the one sub-data packet in the one forward error correction channel includes: performing the error checking and correcting operation on the one sub-data packet, and obtaining a result of the error checking and correcting operation; and The cyclic redundancy check code check is performed on the result of the error checking and correcting operation.
3. The forward error correction method according to claim 2, in, m=2, the m error checking and correction decoders include a first error checking and correction decoder and a second error checking and correction decoder, the size of the sub-data packet is divisible by 2, and, The method of transmitting the one sub-data packet to the m error checking and correcting decoders using m-line interleaving comprises: The one sub-packet is transmitted to the first error check and correction decoder and the second error check and correction decoder using two-line interleaving.
4. The forward error correction method according to claim 3, in, The method of transmitting the one sub-data packet to the first error checking and correction decoder and the second error checking and correction decoder using two-line interleaving comprises: Mapping odd bytes of the one sub-data packet to a first error check correction word; and The even bytes of the one sub-data packet are mapped to a second error checking and correction word.
5. The forward error correction method according to claim 3, in, The system bus complies with the Peripheral Component Interconnect High Speed protocol, n=2, and the number of bytes of one sub-data packet is 128 bytes, The method of transmitting the one sub-data packet to the first error checking and correction decoder and the second error checking and correction decoder using two-line interleaving comprises: Mapping byte 0 of the one sub-data packet to a first set of error checking and correction words, byte offset 0; Mapping byte 1 of the one sub-data packet to a second set of error checking and correction words, with a byte offset of 0; Mapping byte 2 of the one sub-data packet to a first set of error checking and correction words, byte offset 1; Mapping byte 3 of the one sub-data packet to a second set of error checking and correction words, byte offset 1; Mapping byte 4 of the one sub-data packet to a first set of error checking and correction words, byte offset 2; Mapping byte 5 of the one sub-data packet to a second set of error checking and correction words, byte offset 2; …… Mapping byte 122 of the one sub-data packet to a first set of error checking and correction words, byte offset 61; Mapping byte 123 of the one sub-data packet to a second set of error checking and correction words, byte offset 61; Mapping bytes 124 and 126 of the one sub-data packet to the first set of error checking and correction words, respectively, with byte offsets of 62 and 63, respectively; Bytes 125 and 127 of the one sub-data packet are mapped to the second set of error checking and correction words, with byte offsets of 62 and 63 respectively.
6. The forward error correction method according to claim 5, in, The PCI Express protocol is PCI Express version 6.0 or a version compatible with the PCI Express version 6.
0.
7. The forward error correction method according to claim 5, in, The number of bytes of the sub-data includes 122 bytes of valid data, 2 bytes of cyclic redundancy check code data and 4 bytes of forward error correction data, the number of bytes of the error check correction word corresponding to the first error check correction decoder and the second error check correction decoder is 64 bytes, and, Performing an error checking and correcting operation on the one sub-data packet to obtain a result of the error checking and correcting operation includes: The first error checking and correction decoder and the second error checking and correction decoder perform error checking and correction operations on the first group of error checking and correction words and the second group of error checking and correction words respectively to obtain 122 bytes of error checking and corrected valid data and 2 bytes of error checking and corrected cyclic redundancy check code data.
8. The forward error correction method according to claim 7, in, Performing a cyclic redundancy check code check on the result of the error checking and correcting operation includes: A single cyclic redundancy check code verification unit performs cyclic redundancy check code verification on the 122-byte valid data after error checking and correction to obtain 2 bytes of cyclic redundancy check code verified cyclic redundancy check code data; Comparing the 2-byte cyclic redundancy check code data after cyclic redundancy check code verification with the 2-byte error checking and correcting cyclic redundancy check code data; and In response to the 2-byte cyclic redundancy check code data after cyclic redundancy check check being consistent with the 2-byte cyclic redundancy check code data after error checking and correction, outputting a first value to indicate that the one sub-data packet has integrity; or In response to the 2-byte cyclic redundancy check code data after cyclic redundancy check check being inconsistent with the 2-byte cyclic redundancy check code data after error checking and correction, a second value is output to indicate that the one sub-data packet does not have integrity.
9. The forward error correction method according to claim 7, in, The first error checking and correction decoder and the second error checking and correction decoder respectively perform error checking and correction operations on the first group of error checking and correction words and the second group of error checking and correction words, including: The first error checking and correction decoder and the second error checking and correction decoder use the Reed-Solomon code algorithm to perform error checking and correction operations on the first group of error checking and correction words and the second group of error checking and correction words respectively.
10. The forward error correction method according to any one of claims 1 to 9, in, The n sub-data packets have the same number of bytes, and the n forward error correction channels have the same structure.
11. A forward error correction device, comprising a transmission unit and n forward error correction channels, in, n is a positive integer and n≥2, The transmission unit is configured as follows: Receiving a data packet transmitted on a system bus, wherein the data packet includes n sub-data packets, and each sub-data packet includes data information and check information; and In response to receiving one of the n sub-packets, transmitting the one sub-packet to one of the n forward error correction channels, wherein the n sub-packets correspond one to one with the n forward error correction channels; and The one forward error correction channel is configured as: performing a forward error correction operation on the one sub-data packet, Wherein, the forward error correction operation includes an error checking and correction operation and a cyclic redundancy check code check; Wherein, the one forward error correction channel comprises an error checking and correcting decoder group and a cyclic redundancy check code checking unit group; The error checking and correcting decoder group includes m error checking and correcting decoders, m is a positive integer and m≥1, and the transmission unit is further configured as follows: The one sub-data packet is transmitted to the m error checking and correction decoders using m-line interleaving, so that the number of bytes of the one sub-data packet is equal to the sum of the number of bytes of the error checking and correction words corresponding to the m error checking and correction decoders.
12. The forward error correction device according to claim 11, in, The error checking and correction decoder group is configured to perform the error checking and correction operation on the one sub-data packet and obtain a result of the error checking and correction operation; and The cyclic redundancy check code checking unit group is configured to perform the cyclic redundancy check code checking on the result of the error checking and correcting operation.
13. The forward error correction device according to claim 11, in, m=2, the m error checking and correction decoders include a first error checking and correction decoder and a second error checking and correction decoder, the size of the one sub-data packet is divisible by 2, and the transmission unit is further configured as follows: The one sub-packet is transmitted to the first error check and correction decoder and the second error check and correction decoder using two-line interleaving.
14. The forward error correction device according to claim 13, in, The system bus complies with the Peripheral Component Interconnect High Speed protocol, n=2, and the number of bytes of the sub-data packet is 128 bytes, and the transmission unit is further configured as follows: Mapping byte 0 of the one sub-data packet to a first set of error checking and correction words, byte offset 0; Mapping byte 1 of the one sub-data packet to a second set of error checking and correction words, with a byte offset of 0; Mapping byte 2 of the one sub-data packet to a first set of error checking and correction words, byte offset 1; Mapping byte 3 of the one sub-data packet to a second set of error checking and correction words, byte offset 1; Mapping byte 4 of the one sub-data packet to a first set of error checking and correction words, byte offset 2; Mapping byte 5 of the one sub-data packet to a second set of error checking and correction words, byte offset 2; …… Mapping byte 122 of the one sub-data packet to a first set of error checking and correction words, byte offset 61; Mapping byte 123 of the one sub-data packet to a second set of error checking and correction words, byte offset 61; Mapping bytes 124 and 126 of the one sub-data packet to the first set of error checking and correction words, respectively, with byte offsets of 62 and 63, respectively; Bytes 125 and 127 of the one sub-data packet are mapped to the second set of error checking and correction words, with byte offsets of 62 and 63 respectively.
15. The forward error correction device according to claim 14, in, The number of bytes of the one sub-data includes 122 bytes of valid data, 2 bytes of cyclic redundancy check code data and 4 bytes of forward error correction data, the number of bytes of the error check correction word corresponding to the first error check correction decoder and the second error check correction decoder is 64 bytes, and the first error check correction decoder and the second error check correction decoder are configured as follows: The error checking and correcting operations are performed on the first group of error checking and correcting words and the second group of error checking and correcting words respectively to obtain 122 bytes of error checking and corrected valid data and 2 bytes of error checking and corrected cyclic redundancy check code data.
16. The forward error correction device according to claim 15, in, The cyclic redundancy check code verification unit group includes a single cyclic redundancy check code verification unit, and the single cyclic redundancy check code verification unit is configured as follows: Performing cyclic redundancy check code verification on the 122-byte valid data after error checking and correction to obtain 2 bytes of cyclic redundancy check code data after cyclic redundancy check code verification; Compare the 2-byte cyclic redundancy check code data after cyclic redundancy check code verification with the 2-byte cyclic redundancy check code data after error checking and correction; as well as In response to the 2-byte cyclic redundancy check code data after cyclic redundancy check check being consistent with the 2-byte cyclic redundancy check code data after error checking and correction, outputting a first value to indicate that the one sub-data packet has integrity; or In response to the 2-byte cyclic redundancy check code data after cyclic redundancy check check being inconsistent with the 2-byte cyclic redundancy check code data after error checking and correction, a second value is output to indicate that the one sub-data packet does not have integrity.
17. An electronic device, include: one or more processors; a memory including one or more computer program modules; The one or more computer program modules are stored in the memory and are configured to be executed by the one or more processors to implement the forward error correction method according to any one of claims 1-10.
18. A non-transitory readable storage medium having computer executable instructions stored thereon, in, When the computer executable instructions are executed by a processor, the forward error correction method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Semiconductor storage device, method of controlling the same, and error correction system
CN101946239A
Data processing method, device and system
CN102203740A
Method and device for error correction and calibration of communication data packets
CN103763067A
Forward error correction using source blocks with symbols from at least two datastreams with synchronized start symbol identifiers among the datastreams
CN105009591A
Method and apparatus for adjusting forward error correction function, computer device and storage medium
CN108684050A
