Minimum phase channel skew correction method, apparatus, electronic device, and storage medium
By acquiring the training results data and cross-correlation calculations of gigabit Ethernet wire pairs, the timing offset is determined, and the receiving order of the wire pairs is corrected. This solves the decoding interference problem caused by wire pair skew in gigabit Ethernet and achieves a highly efficient skew correction effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI WU QI MICROELECTRONICS CO LTD
- Filing Date
- 2023-08-17
- Publication Date
- 2026-05-12
AI Technical Summary
In Gigabit Ethernet, delay errors caused by the unevenness of each wire pair result in interference and errors in the decoding of 4D modulation symbols, and existing technologies are unable to effectively correct the skew.
By acquiring the training result data of line pairs in the training mode, and using the tap coefficient sequence of the decision feedback equalizer and the cross-correlation algorithm, the timing offset data is determined, thereby correcting the receiving order of the line pairs and achieving skew correction.
It achieves low-complexity, high-reliability skew correction, ensuring the accuracy of data transmission and the effectiveness of correction during the rapid startup phase.
Smart Images

Figure CN117014263B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus, electronic device, and storage medium for minimum phase channel skew correction. Background Technology
[0002] In Gigabit Ethernet (1000BASE-T), data is 4D data, meaning a 4D symbol is transmitted and received simultaneously across four twisted pairs of wires. The data on these four pairs forms a 4D symbol at the same time. Therefore, the data must be aligned across the four pairs to ensure correct demodulation of each symbol. However, due to the unevenness of the wire pairs, each pair has a different delay error, known as pair skew. This can cause the 4D modulation symbols at the receiving end to be out of order, resulting in decoding interference and errors. Therefore, the delay of the four pairs must be aligned before the 4D data enters the demodulator for demodulation, i.e., data skew correction must be performed. Summary of the Invention
[0003] The purpose of this invention is to provide a minimum phase channel skew correction method, apparatus, electronic device and storage medium to achieve skew correction with low complexity and high reliability.
[0004] In a first aspect, embodiments of the present invention provide a minimum phase channel skew correction method, comprising:
[0005] The training result data corresponding to each of the multiple line pairs in the target communication system under training mode is obtained. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In the training mode, the target communication system transmits the idle symbol sequence through each of the multiple line pairs according to a preset coding rule. The multiple line pairs include a baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained by feedforward equalization.
[0006] Based on the tap coefficient sequence corresponding to each line pair and the preset cross-correlation algorithm, the time offset data is determined. The time offset data includes the time position offset of each line pair to be corrected relative to the baseline line pair.
[0007] Based on the timing offset data and the received symbol sequence corresponding to each line pair, the receiving order of each line pair is determined, so as to perform skew correction on the target communication system in the data transmission mode based on the timing offset data and the receiving order of each line pair.
[0008] Further, determining the time-series offset data based on the tap coefficient sequence corresponding to each of the line pairs and a preset cross-correlation algorithm includes:
[0009] Based on the first tap coefficient sequence of the baseline pair at the current time, and the second tap coefficient sequence of each line pair to be corrected at the current time, a series cross-correlation operation is performed through a sliding window to obtain multiple correlation values corresponding to the line pair to be corrected; wherein, the first tap coefficient sequence includes multiple tap coefficient values within a first preset time range at the current time, the second tap coefficient sequence includes multiple tap coefficient values within a second preset time range at the current time, the second preset time range is located within the first preset time range, and the second preset time range corresponds to the window length of the sliding window;
[0010] Based on multiple relevant values corresponding to each line pair to be corrected, the temporal position offset of the line pair to be corrected relative to the baseline pair is determined.
[0011] Further, based on the first tap coefficient sequence of the baseline pair at the current time and the second tap coefficient sequence of each line pair to be corrected at the current time, a series cross-correlation operation is performed through a sliding window to obtain multiple correlation values corresponding to the line pair to be corrected, including:
[0012] Based on the third tap coefficient sequence of the baseline pair at the current time and the fourth tap coefficient sequence of each line pair to be corrected at the current time, the normalized coefficient of the line pair to be corrected at the current time is determined; wherein, the third tap coefficient sequence includes multiple tap coefficient values within a third preset time range at the current time, the fourth tap coefficient sequence includes multiple tap coefficient values within a fourth preset time range at the current time, and the fourth preset time range is located within the third preset time range;
[0013] Based on the normalized coefficients of each line pair to be corrected at the current time, a normalized sequence cross-correlation operation is performed on the window data in each sliding window of the first tap coefficient sequence of the baseline pair at the current time and the second tap coefficient sequence of the line pair to be corrected at the current time to obtain multiple correlation values corresponding to the line pair to be corrected.
[0014] Further, determining the temporal position offset of the line pair to be corrected relative to the baseline pair based on multiple correlation values corresponding to each line pair to be corrected includes:
[0015] For each pair of lines to be corrected, determine the maximum value among the multiple relevant values corresponding to that pair of lines;
[0016] The number of slides corresponding to the maximum value is determined as the temporal position offset of the line pair to be corrected relative to the baseline pair.
[0017] Further, determining the reception order of each line pair based on the timing offset data and the received symbol sequence corresponding to each line pair includes:
[0018] Based on the timing offset data, timing skew correction is performed on the received symbol sequence corresponding to each line pair to obtain the target received symbol sequence corresponding to the line pair.
[0019] Based on the target received symbol sequence corresponding to each line pair, determine the target transmitted symbol sequence corresponding to the line pair;
[0020] The receiving sequence of each target and the transmitting sequence of each target are matched to obtain the receiving order of each line pair.
[0021] Further, determining the target transmitted symbol sequence corresponding to each line pair based on the target received symbol sequence corresponding to each line pair includes:
[0022] For each line pair, the target scrambling sequence corresponding to the line pair is determined according to the target received symbol sequence corresponding to the line pair and the correspondence between the preset scrambling sequence and the received symbol sequence.
[0023] Based on the target scrambling sequence corresponding to the line pair and the pre-defined correspondence between the transmitted symbol sequence and the scrambling sequence, the target transmitted symbol sequence corresponding to the line pair is determined.
[0024] Further, the matching of each of the target received symbol sequences and each of the target transmitted symbol sequences to obtain the reception order of each of the line pairs includes:
[0025] For each target received symbol sequence, the correlation between the target received symbol sequence and each target transmitted symbol sequence is calculated to obtain the correlation result;
[0026] The target transmitted symbol sequence with the highest correlation among the correlation results is determined as the matching result of the target received symbol sequence;
[0027] The receiving order of each line pair is determined based on the matching results of each target received symbol sequence.
[0028] Secondly, embodiments of the present invention also provide a minimum phase channel skew correction device, comprising:
[0029] The data acquisition module is used to acquire training result data corresponding to each of the multiple line pairs in the target communication system under training mode. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In the training mode, the target communication system transmits an idle symbol sequence through each of the multiple line pairs according to a preset coding rule. The multiple line pairs include a baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained by feedforward equalization.
[0030] The offset determination module is used to determine the time offset data based on the tap coefficient sequence corresponding to each line pair and a preset cross-correlation calculation algorithm. The time offset data includes the time position offset of each line pair to be corrected relative to the baseline line pair.
[0031] The sequence determination module is used to determine the receiving order of each line pair based on the timing offset data and the received symbol sequence corresponding to each line pair, so as to perform skew correction on the target communication system in the data transmission mode based on the timing offset data and the receiving order of each line pair.
[0032] Thirdly, embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the minimum phase channel skew correction method described in the first aspect.
[0033] Fourthly, embodiments of the present invention also provide a storage medium storing a computer program, wherein the computer program is executed by a processor to perform the minimum phase channel skew correction method described in the first aspect.
[0034] The minimum phase channel skew correction method, apparatus, electronic device, and storage medium provided in this invention, when performing skew correction, first acquire the training result data corresponding to each line pair in multiple line pairs of the target communication system in training mode. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In training mode, the target communication system transmits idle symbol sequences through each line pair according to a preset coding rule. The multiple line pairs include a baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained through feedforward equalization. Then, based on the tap coefficient sequence corresponding to each line pair and a preset cross-correlation algorithm, the timing offset data is determined. The timing offset data includes the timing position offset of each line pair to be corrected relative to the baseline line pair. Furthermore, based on the timing offset data and the received symbol sequence corresponding to each line pair, the receiving order of each line pair is determined. Based on the timing offset data and the receiving order of each line pair, the target communication system in data transmission mode is skew corrected. This achieves low-complexity, high-reliability skew correction, which can be completed quickly during the startup phase, ensuring the accuracy of data transmission. Attached Figure Description
[0035] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0036] Figure 1 A diagram illustrating the architecture of a four-wire-pair gigabit Ethernet network provided in an embodiment of the present invention;
[0037] Figure 2 This invention provides a physical layer architecture for Gigabit Ethernet in training mode.
[0038] Figure 3 This invention provides a physical layer architecture for Gigabit Ethernet in data transmission mode, as exemplified by this invention.
[0039] Figure 4 A schematic diagram of a channel impulse response for Gigabit Ethernet provided in an embodiment of the present invention;
[0040] Figure 5 A flowchart illustrating a minimum phase channel skew correction method provided in an embodiment of the present invention;
[0041] Figure 6 This is a schematic diagram of a minimum phase channel skew correction device provided in an embodiment of the present invention;
[0042] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0043] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0044] In Gigabit Ethernet, the data on the four wire pairs need to be aligned to ensure that each symbol is demodulated correctly. Based on this, the present invention provides a minimum phase channel skew correction method, device, electronic device and storage medium, which can achieve skew correction based on minimum phase channel estimation.
[0045] The embodiments of the present invention can be applied to Gigabit Ethernet, i.e., IEEE 802.3ab or 1000BASE-T. Among them, 1000BASE-T uses Category 5 twisted pair cable (i.e., CAT-5, which includes 4 pairs of wires consisting of 8 wires), with a transmission distance of 100m and full-duplex baseband transmission.
[0046] Figure 1 A diagram of a four-wire-pair gigabit Ethernet architecture is shown. Figure 1 In the context of "ECHO," "NEXT" refers to Near-end Cross Talk, and "FEXT" refers to Far-end Cross Talk. Figure 1 As shown, the 1000BASE-T transmission rate is 1000Mb / s, transmitted and received through 4 wire pairs, with a transmission rate of 250Mb / s per wire pair and a baseband signal modulation rate of 125Mb / s per wire pair. This means that one symbol (in quaternary) carries 2 bits of information. The symbols transmitted by the transmitter are selected from four-dimensional 5-level symbols (i.e., using a 4D-PAM5-four-level 2B1Q encoding scheme, where ±2V, ±1V, and 0V levels are selected to carry symbol information). Each four-dimensional symbol can be considered as a quadruple (An, Bn, Cn, Dn) of one-dimensional quinary symbols extracted from the set {2, 1, 0, –1, –2}, where n is the symbol in the time sequence. In the absence of data, idle symbols are transmitted. Idle symbols are a subset of the code group (i.e., 2, 1, 0, –1, –2), and each symbol in the idle symbols is restricted to the set {2, 0, –2} to improve synchronization. Each symbol has a duration of 8 ns.
[0047] Gigabit Ethernet uses four transmission pairs as a transmission channel. Each pair includes both transmission and reception. Ethernet communication is a full-duplex system, meaning it transmits and receives signals simultaneously. The signal transmitted by the transmitter is superimposed on the signal received by the receiver, causing interference known as echo (ECHO). ECHO significantly interferes with the received signal. Therefore, an adaptive filter based on the LMS (Least Mean Square) algorithm can be used to generate a copy of the ECHO signal. This copy is subtracted before the signal enters the decoder to suppress echo interference; this is the typical function of an ECHO cancellation filter. For 1000BASE-T, on a 100-meter transmission line, the ECHO cancellation filter may require hundreds of taps. The number of taps required varies depending on the line length and the system's data rate (compatible with both 100BASE and 10BASE). The ECHO cancellation filter coefficients can be trained at startup by sending IDLE symbols, and data transmission only begins after the training converges.
[0048] See Figure 2 The diagram shows a physical layer architecture for Gigabit Ethernet in training mode. Figure 2 (Only the structure of one line pair is shown). In training mode, the transmitter encodes the transmitted data through the physical coding layer and then splits it into symbols on line pairs. Symbols from the same line pair from the transmitter undergo pulse shaping and D / A conversion (i.e., digital-to-analog conversion) before being transmitted through the mixer. The received data from the same line pair received by the mixer undergoes A / D conversion (i.e., digital-to-analog conversion) and is then processed by FFE (Feed-Forward Equalization) to remove the pre-label interference. Symbols from the other three line pairs from the transmitter are processed by the 3NEXT canceller to generate post-label interference copies for eliminating near-end crosstalk. Symbols from the same line pair from the transmitter are processed by the ECHO canceller to generate master label copies for eliminating echoes. The DFE shown in the dashed box is used for tap coefficient training. After DFE training is complete, the coefficients (i.e., tap coefficients) are passed to DFSE (Decision-Feedback Sequence Estimation) to achieve joint decoding equalization. The decoded bits are processed by the physical coding layer and then sent to the application layer.
[0049] See Figure 3 The diagram illustrates a physical layer architecture for Gigabit Ethernet in data transmission mode, and... Figure 2Compared to previous versions, a new skew correction module has been added, positioned after the FFE, 3NEXT canceller, and ECHO canceller. Received data from the same wire pair, after FFE and skew correction, is combined with skew-corrected received data from the other three wire pairs from the receiver through a DFSE for decoding and equalization. The decoded bits are then processed by the physical coding layer and sent to the application layer. The DFSE also outputs data and clock recovery signals to the A / D module to achieve stable skew correction.
[0050] Figure 4 A schematic diagram of the channel impulse response for Gigabit Ethernet is shown, comprising a preamble, a master target, and multiple postscripts. After the adaptive equalization tap coefficients converge, the output signal of the FFE (Fast Forward Equalization) is the minimum-phase signal. This means that the FFE equalization eliminates the preamble interference from dropped wires to the channel, while the ECHO and NEXT equalizers generate master target and postscript interference copies for the wire pair channel, thus achieving channel estimation. The minimum-phase signal refers to a signal whose frequency response, after Fourier transform, exhibits minimum phase characteristics; its phase spectrum is a strictly monotonically decreasing function at any frequency point and has minimal phase delay. In some possible embodiments, the maximum mismatch between the four wire pairs can reach 50 ns, meaning a maximum delay of approximately 7 symbols between the four wire pairs.
[0051] To facilitate understanding of this embodiment, a minimum phase channel skew correction method disclosed in this embodiment of the invention will first be described in detail.
[0052] This invention provides a minimum phase channel skew correction method, which can be executed by an electronic device with data processing capabilities. See also... Figure 5 The flowchart shown is a method for minimum phase channel skew correction. The method mainly includes the following steps S502 to S506:
[0053] Step S502: Obtain the training result data corresponding to each line pair in the multiple line pairs of the target communication system in the training mode. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In the training mode, the target communication system sends the idle symbol sequence through each line pair according to the preset coding rules. The multiple line pairs include the baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained by feedforward equalization.
[0054] The target communication system can be an Ethernet communication system. One of the four wire pairs in the Ethernet communication system can be used as the baseline wire pair, and the other three wire pairs are the wire pairs to be corrected. According to the definition of the IEEE 802.3 standard, the physical coding layer sends an IDLE sequence (i.e., a sequence of idle symbols) before sending data. The IDLE sequence follows special coding characteristics that make skew correction easier.
[0055] Step S504: Based on the tap coefficient sequence corresponding to each line pair and the preset cross-correlation calculation algorithm, determine the timing offset data. The timing offset data includes the timing position offset of each line pair to be corrected relative to the baseline line pair.
[0056] In some possible embodiments, step S504 can be implemented through the following process: based on the first tap coefficient sequence of the baseline pair at the current time and the second tap coefficient sequence of each line pair to be corrected at the current time, a cross-correlation operation is performed through a sliding window to obtain multiple correlation values corresponding to the line pair to be corrected; wherein, the first tap coefficient sequence includes multiple tap coefficient values within a first preset time range at the current time, the second tap coefficient sequence includes multiple tap coefficient values within a second preset time range at the current time, the second preset time range is located within the first preset time range, and the second preset time range corresponds to the window length of the sliding window; based on the multiple correlation values corresponding to each line pair to be corrected, the temporal position offset of the line pair to be corrected relative to the baseline pair is determined.
[0057] Furthermore, considering resource limitations, a normalization approach can be used when performing sequence cross-correlation operations. Based on this, the multiple correlation values corresponding to the line pairs to be corrected can be obtained as follows: Based on the third tap coefficient sequence of the baseline line pair at the current time and the fourth tap coefficient sequence of each line pair to be corrected at the current time, determine the normalized coefficients of the line pairs to be corrected at the current time; wherein, the third tap coefficient sequence includes multiple tap coefficient values within a third preset time range at the current time, and the fourth tap coefficient sequence includes multiple tap coefficient values within a fourth preset time range at the current time, with the fourth preset time range falling within the third preset time range; based on the normalized coefficients of each line pair to be corrected at the current time, perform a normalized sequence cross-correlation operation between the window data within each sliding window of the first tap coefficient sequence of the baseline line pair at the current time and the second tap coefficient sequence of the line pair to be corrected at the current time, to obtain the multiple correlation values corresponding to the line pairs to be corrected.
[0058] Optionally, when the sliding window has a window length of 8 and a step size of 1, the first preset time range can be from 7 moments before the current moment to 14 moments after the current moment, in which case the first tap coefficient sequence includes 22 data points; the second preset time range can be from the current moment to 7 moments after the current moment, in which case the second tap coefficient sequence includes 8 data points, and the number of slides is 14 (0~13); the third preset time range can be from 7 moments before the current moment to 20 moments after the current moment, in which case the third tap coefficient sequence includes 28 data points; and the fourth preset time range can be from the current moment to 6 moments after the current moment, in which case the fourth tap coefficient sequence includes 7 data points.
[0059] Optionally, the timing position offset of the line pair to be corrected relative to the baseline pair can be determined as follows: for each line pair to be corrected, determine the maximum value among the multiple correlation values corresponding to the line pair to be corrected; and determine the number of slides corresponding to the maximum value as the timing position offset of the line pair to be corrected relative to the baseline pair.
[0060] Step S506: Based on the timing offset data and the received symbol sequence corresponding to each line pair, determine the receiving order of each line pair, and perform skew correction on the target communication system in the data transmission mode based on the timing offset data and the receiving order of each line pair.
[0061] In some possible embodiments, step S506 can be implemented by the following process: according to the timing offset data, perform timing skew correction on the received symbol sequence corresponding to each line pair to obtain the target received symbol sequence corresponding to the line pair; according to the target received symbol sequence corresponding to each line pair, determine the target transmitted symbol sequence corresponding to the line pair; match each target received symbol sequence and each target transmitted symbol sequence to obtain the receiving order of each line pair.
[0062] Optionally, the target transmitted symbol sequence can be determined as follows: for each line pair, the target scrambling sequence corresponding to the line pair is determined according to the target received symbol sequence corresponding to the line pair and the correspondence between the preset scrambling sequence and the received symbol sequence; the target transmitted symbol sequence corresponding to the line pair is determined according to the target scrambling sequence corresponding to the line pair and the correspondence between the preset transmitted symbol sequence and the scrambling sequence.
[0063] Optionally, the receiving order can be determined as follows: for each target received symbol sequence, the correlation between the target received symbol sequence and each target transmitted symbol sequence is calculated to obtain the correlation result; the target transmitted symbol sequence with the highest correlation in the correlation result is determined as the matching result of the target received symbol sequence; and the receiving order of each line pair is determined according to the matching result of each target received symbol sequence.
[0064] For example, for four line pairs A, B, C, and D, if the target received symbol sequence of line pair A matches the target transmitted symbol sequence of line pair B, the target received symbol sequence of line pair B matches the target transmitted symbol sequence of line pair C, the target received symbol sequence of line pair C matches the target transmitted symbol sequence of line pair D, and the target received symbol sequence of line pair D matches the target transmitted symbol sequence of line pair A, then the receiving order is D, A, B, C.
[0065] The minimum phase channel skew correction method provided in this invention first acquires the training result data corresponding to each line pair in the target communication system under training mode. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. Under training mode, the target communication system transmits idle symbol sequences through each line pair according to a preset coding rule. The multiple line pairs include a baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple time points obtained through feedforward equalization. Then, based on the tap coefficient sequence corresponding to each line pair and a preset cross-correlation algorithm, timing offset data is determined. The timing offset data includes the timing position offset of each line pair to be corrected relative to the baseline line pair. Furthermore, based on the timing offset data and the received symbol sequence corresponding to each line pair, the receiving order of each line pair is determined. Based on the timing offset data and the receiving order of each line pair, skew correction is performed on the target communication system under data transmission mode. This achieves low-complexity, high-reliability skew correction, which can be completed quickly during the startup phase, ensuring the accuracy of data transmission.
[0066] To facilitate understanding, the specific process of the minimum phase channel skew correction method described above will be introduced below.
[0067] 1. Assume the sampling interval of the adaptive filter is 8ns.
[0068] 2. Let the sequence numbers of the 4 line pairs be A, B, C, and D (this is a guessed order; the actual receiving order may be scrambled and will be corrected by subsequent algorithm processing).
[0069] 3. The channel tap coefficients of the DFE after FFE feedforward equalization are h A (k), h B (k), h C (k) and h D (k), where k is the symbol number at the current time.
[0070] 4. Using h A (k) is the reference base. It is known that the longest channel suffix is approximately 14 symbols. Therefore, the complete 14 tap coefficient values at the current time are stored, along with at least 7 tap coefficient values before and after these 14 tap coefficient values, i.e., h.A (k-7): h A (k+13+7).
[0071] 5. Tap coefficient normalization: Similarly, we can obtain g AC g AD .
[0072] 6. Using h A (k) is the reference datum, h A (k) The long sequence (symbol numbers k-7 to k+14) is slid from the first data point (time k-7) with a window length of 8 and a step size of 1 (a total of 14 sliding windows). Each sliding window is connected to h. B (k), h C (k) and h D Perform a cross-correlation operation on the nearest sequences (symbol numbers k to k+7) of (k), i.e.
[0073] Similarly, we can obtain corrAC(i) and corrAD(i).
[0074] 7. Find the maximum value among corrAB(i), corrAC(i), and corrAD(i), and the index i that maximizes this value, denoted as _i_, ... This refers to the skewness of line pairs B, C, and D relative to line pair A.
[0075] 8.k is the symbol number at the current time. The value range is [k-7, k+14].
[0076] The above yields the skewness errors of the remaining three line pairs relative to the baseline pair.
[0077] 9. Assume the signals of the 4-line pair transmitted data (after symbol scrambling and XORing) are denoted as: TAn[k], TBn[k], TCn[k], and TDn[k], respectively; according to the definition of the IEEE 802.3 standard, the relationship between the original data after scrambling (i.e., the scrambling sequence) Scrn[0] and TAn is as follows: The same logic applies to TBn, TCn, and TDn. Therefore, based on... Based on the received signal An, a scrambling sequence Scrn[0:32] with 33 symbol periods can be obtained, and then TAn[k] can be obtained. The same applies to other line pairs.
[0078] 10. Assuming the received data signals of the four lines are denoted as An[k], Bn[k], Cn[k], and Dn[k], the data after skew correction are respectively...
[0079] 11. An[k], Match with TAn[k], TBn[k], TCn[k], and TDn[k] to correct the order of the four line pairs ABCD.
[0080] Specifically, matching can be performed based on correlation; the two lines with the highest correlation are matched. Taking the correlation calculation of An[k] and TAn[k] as an example, the correlation calculation formula can be any of the following:
[0081]
[0082]
[0083] Where m is the number of values that k can take, and m ≥ 2.
[0084] In summary, this invention proposes a low-complexity, high-reliability skew correction scheme based on the characteristics of minimum phase channels and utilizing the IEEE 802.3 protocol rules. This scheme can quickly complete skew correction during the startup phase, ensuring the accuracy of data transmission.
[0085] Corresponding to the minimum phase channel skew correction method described above, this embodiment of the invention also provides a minimum phase channel skew correction device, see [link to relevant documentation]. Figure 6 The diagram shows a structural schematic of a minimum phase channel skew correction device, which includes:
[0086] The data acquisition module 601 is used to acquire the training result data corresponding to each line pair in the multiple line pairs of the target communication system in the training mode. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In the training mode, the target communication system sends the idle symbol sequence through each line pair according to the preset coding rules. The multiple line pairs include the baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained by feedforward equalization.
[0087] The offset determination module 602 is used to determine the timing offset data based on the tap coefficient sequence corresponding to each line pair and the preset cross-correlation calculation algorithm. The timing offset data includes the timing position offset of each line pair to be corrected relative to the baseline line pair.
[0088] The sequence determination module 603 is used to determine the receiving order of each line pair based on the timing offset data and the corresponding received symbol sequence of each line pair, so as to perform skew correction on the target communication system in the data transmission mode based on the timing offset data and the receiving order of each line pair.
[0089] Further, the aforementioned offset determination module 602 is specifically used to: based on the first tap coefficient sequence of the baseline pair at the current time, and the second tap coefficient sequence of each line pair to be corrected at the current time, perform a sequence cross-correlation operation through a sliding window to obtain multiple correlation values corresponding to the line pair to be corrected; wherein, the first tap coefficient sequence includes multiple tap coefficient values within a first preset time range at the current time, the second tap coefficient sequence includes multiple tap coefficient values within a second preset time range at the current time, the second preset time range is located within the first preset time range, and the second preset time range corresponds to the window length of the sliding window; and determine the temporal position offset of the line pair to be corrected relative to the baseline pair based on the multiple correlation values corresponding to each line pair to be corrected.
[0090] Furthermore, the aforementioned offset determination module 602 is also used to: determine the normalized coefficients of the line pairs to be corrected at the current time based on the third tap coefficient sequence of the baseline pair at the current time and the fourth tap coefficient sequence of each line pair to be corrected at the current time; wherein, the third tap coefficient sequence includes multiple tap coefficient values within a third preset time range at the current time, the fourth tap coefficient sequence includes multiple tap coefficient values within a fourth preset time range at the current time, and the fourth preset time range is located within the third preset time range; based on the normalized coefficients of each line pair to be corrected at the current time, perform normalized sequence cross-correlation operation on the window data in each sliding window of the first tap coefficient sequence of the baseline pair at the current time and the second tap coefficient sequence of the line pair to be corrected at the current time to obtain multiple correlation values corresponding to the line pairs to be corrected.
[0091] Furthermore, the offset determination module 602 is also used to: for each pair of lines to be corrected, determine the maximum value among the multiple related values corresponding to the pair of lines to be corrected; and determine the number of sliding steps corresponding to the maximum value as the temporal position offset of the pair of lines to be corrected relative to the baseline pair.
[0092] Furthermore, the sequence determination module 603 is specifically used for: correcting the timing skew of the received symbol sequence corresponding to each line pair based on the timing offset data to obtain the target received symbol sequence corresponding to the line pair; determining the target transmitted symbol sequence corresponding to the line pair based on the target received symbol sequence corresponding to each line pair; and matching each target received symbol sequence with each target transmitted symbol sequence to obtain the receiving order of each line pair.
[0093] Furthermore, the sequence determination module 603 is also used to: for each line pair, determine the target scrambling sequence corresponding to the line pair according to the target received symbol sequence corresponding to the line pair and the correspondence between the preset scrambling sequence and the received symbol sequence; and determine the target transmitted symbol sequence corresponding to the line pair according to the target scrambling sequence corresponding to the line pair and the correspondence between the preset transmitted symbol sequence and the scrambling sequence.
[0094] Furthermore, the sequence determination module 603 is also used to: for each target received symbol sequence, perform correlation calculation between the target received symbol sequence and each target transmitted symbol sequence to obtain correlation results; determine the target transmitted symbol sequence with the highest correlation in the correlation results as the matching result of the target received symbol sequence; and determine the receiving order of each line pair according to the matching results of each target received symbol sequence.
[0095] The minimum phase channel skew correction device provided in this embodiment has the same implementation principle and technical effect as the aforementioned minimum phase channel skew correction method embodiment. For the sake of brevity, any parts not mentioned in the minimum phase channel skew correction device embodiment can be referred to the corresponding content in the aforementioned minimum phase channel skew correction method embodiment.
[0096] like Figure 7 As shown, an electronic device 700 provided in this embodiment of the invention includes: a processor 701, a memory 702 and a bus. The memory 702 stores a computer program that can run on the processor 701. When the electronic device 700 is running, the processor 701 and the memory 702 communicate through the bus. The processor 701 executes the computer program to implement the above-mentioned minimum phase channel skew correction method.
[0097] Specifically, the memory 702 and processor 701 mentioned above can be general-purpose memory and processor, without any specific limitations here.
[0098] This invention also provides a storage medium storing a computer program, which, when executed by a processor, performs the minimum phase channel skew correction method described in the preceding method embodiments. The storage medium includes various media capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), RAM, magnetic disk, or optical disk.
[0099] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limitations; therefore, other examples of exemplary embodiments may have different values.
[0100] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A minimum phase channel skew correction method, characterized in that, include: The training result data corresponding to each of the multiple line pairs in the target communication system under training mode is obtained. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In the training mode, the target communication system transmits the idle symbol sequence through each of the multiple line pairs according to a preset coding rule. The multiple line pairs include a baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained by feedforward equalization. Based on the tap coefficient sequence corresponding to each line pair and the preset cross-correlation algorithm, the time offset data is determined. The time offset data includes the time position offset of each line pair to be corrected relative to the baseline line pair. The cross-correlation algorithm performs sequence cross-correlation calculation through a sliding window. Based on the timing offset data and the received symbol sequence corresponding to each line pair, the receiving order of each line pair is determined, so as to perform skew correction on the target communication system in the data transmission mode based on the timing offset data and the receiving order of each line pair.
2. The minimum phase channel skew correction method according to claim 1, characterized in that, The determination of time-series offset data based on the tap coefficient sequence corresponding to each line pair and a preset cross-correlation algorithm includes: Based on the first tap coefficient sequence of the baseline pair at the current time, and the second tap coefficient sequence of each line pair to be corrected at the current time, a series cross-correlation operation is performed through a sliding window to obtain multiple correlation values corresponding to the line pair to be corrected; wherein, the first tap coefficient sequence includes multiple tap coefficient values within a first preset time range at the current time, the second tap coefficient sequence includes multiple tap coefficient values within a second preset time range at the current time, the second preset time range is located within the first preset time range, and the second preset time range corresponds to the window length of the sliding window; Based on multiple relevant values corresponding to each line pair to be corrected, the temporal position offset of the line pair to be corrected relative to the baseline pair is determined.
3. The minimum phase channel skew correction method according to claim 2, characterized in that, The first tap coefficient sequence of the baseline pair at the current time, and the second tap coefficient sequence of each line pair to be corrected at the current time, are used to perform a cross-correlation operation through a sliding window to obtain multiple correlation values corresponding to the line pair to be corrected, including: Based on the third tap coefficient sequence of the baseline pair at the current time and the fourth tap coefficient sequence of each line pair to be corrected at the current time, the normalized coefficient of the line pair to be corrected at the current time is determined; wherein, the third tap coefficient sequence includes multiple tap coefficient values within a third preset time range at the current time, the fourth tap coefficient sequence includes multiple tap coefficient values within a fourth preset time range at the current time, and the fourth preset time range is located within the third preset time range; Based on the normalized coefficients of each line pair to be corrected at the current time, a normalized sequence cross-correlation operation is performed on the window data in each sliding window of the first tap coefficient sequence of the baseline pair at the current time and the second tap coefficient sequence of the line pair to be corrected at the current time to obtain multiple correlation values corresponding to the line pair to be corrected.
4. The minimum phase channel skew correction method according to claim 2, characterized in that, The step of determining the temporal position offset of the line pair to be corrected relative to the baseline pair based on multiple relevant values corresponding to each line pair to be corrected includes: For each pair of lines to be corrected, determine the maximum value among the multiple relevant values corresponding to that pair of lines; The number of slides corresponding to the maximum value is determined as the temporal position offset of the line pair to be corrected relative to the baseline pair.
5. The minimum phase channel skew correction method according to claim 1, characterized in that, The step of determining the reception order of each line pair based on the timing offset data and the received symbol sequence corresponding to each line pair includes: Based on the timing offset data, timing skew correction is performed on the received symbol sequence corresponding to each line pair to obtain the target received symbol sequence corresponding to the line pair. Based on the target received symbol sequence corresponding to each line pair, determine the target transmitted symbol sequence corresponding to the line pair; The receiving sequence of each target and the transmitting sequence of each target are matched to obtain the receiving order of each line pair.
6. The minimum phase channel skew correction method according to claim 5, characterized in that, The step of determining the target transmitted symbol sequence corresponding to each line pair based on the target received symbol sequence corresponding to each line pair includes: For each line pair, the target scrambling sequence corresponding to the line pair is determined according to the target received symbol sequence corresponding to the line pair and the correspondence between the preset scrambling sequence and the received symbol sequence. Based on the target scrambling sequence corresponding to the line pair and the pre-defined correspondence between the transmitted symbol sequence and the scrambling sequence, the target transmitted symbol sequence corresponding to the line pair is determined.
7. The minimum phase channel skew correction method according to claim 5, characterized in that, The step of matching each of the target received symbol sequences and each of the target transmitted symbol sequences to obtain the reception order of each of the line pairs includes: For each target received symbol sequence, the correlation between the target received symbol sequence and each target transmitted symbol sequence is calculated to obtain the correlation result; The target transmitted symbol sequence with the highest correlation among the correlation results is determined as the matching result of the target received symbol sequence; The receiving order of each line pair is determined based on the matching results of each target received symbol sequence.
8. A minimum phase channel skew correction device, characterized in that, include: The data acquisition module is used to acquire training result data corresponding to each of the multiple line pairs in the target communication system under training mode. The training result data includes the tap coefficient sequence of the decision feedback equalizer (DFE) and the received symbol sequence. In the training mode, the target communication system transmits an idle symbol sequence through each of the multiple line pairs according to a preset coding rule. The multiple line pairs include a baseline line pair and multiple line pairs to be corrected. The received symbol sequence is the minimum phase signal at multiple times obtained by feedforward equalization. The offset determination module is used to determine the time offset data based on the tap coefficient sequence corresponding to each line pair and a preset cross-correlation algorithm. The time offset data includes the time position offset of each line pair to be corrected relative to the baseline line pair. The cross-correlation algorithm performs sequence cross-correlation calculation through a sliding window. The sequence determination module is used to determine the receiving order of each line pair based on the timing offset data and the received symbol sequence corresponding to each line pair, so as to perform skew correction on the target communication system in the data transmission mode based on the timing offset data and the receiving order of each line pair.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the minimum phase channel skew correction method according to any one of claims 1-7.
10. A storage medium storing a computer program, characterized in that, The computer program is executed by the processor to perform the minimum phase channel skew correction method according to any one of claims 1-7.