Clock error detection method, device, equipment, storage medium and product
By performing a sign operation on adjacent sample values or absolute value differences in the optical communication system, the problem of high computational complexity in clock error detection in the prior art is solved, and the clock phase tracking speed and system efficiency are improved.
Patent Information
- Application Number
- CN202410756096.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Clock error detection in existing optical communication systems requires hundreds of real number multiplication calculations, resulting in excessive computational complexity and computational delays, which reduces the clock phase tracking speed.
When the sampling rate of the input signal is doubled, the sign operation is performed on adjacent sampling values or absolute value differences to eliminate multiplication operations, reduce computational complexity, and improve clock phase tracking speed.
It effectively reduces the calculation delay, improves the clock phase tracking speed, and reduces the calculation complexity and power consumption.
Smart Images

Figure CN118337355B
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to a clock error detection method, device, equipment, storage medium and product. Background Art
[0002] In optical communication systems, clock recovery (CR) is a key part placed at the front end of digital signal processing (DSP), and its performance directly affects the normal operation of subsequent DSP modules. In CR, a simple and efficient timing error detector (TED) can estimate the timing error and input it into the CR loop to correct the time-varying sampling clock phase error.
[0003] At present, the TED used in the existing method is ABS TED, which extracts the baud rate of the clock signal by multiplying the absolute value of the sum of adjacent sampled values by the difference between the absolute values of adjacent sampled values, and shows good performance in systems with severe bandwidth limitation. However, since clock error detection usually requires hundreds of sampling points to suppress the influence of noise, each ABS-TED requires hundreds of real number multiplication calculations, which makes the calculation complexity too high, increases the calculation delay, and causes the tracking speed of the clock phase to decrease.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a clock error detection method, device, equipment and storage medium, aiming to solve the technical problem that the prior art requires hundreds of real number multiplication calculations, which makes the calculation complexity too high, increases the calculation delay, and causes the clock phase tracking speed to decrease.
[0006] To achieve the above object, the present application provides a clock error detection method, the method comprising:
[0007] When the sampling rate of the input signal is one times the sampling rate, sampling the input signal at each sampling point based on the sampling rate to obtain a plurality of sampling signals;
[0008] Determine adjacent sampling values corresponding to any adjacent sampling signals, and calculate the difference between the absolute value of a previous sampling value and the absolute value of a subsequent sampling value in the adjacent sampling values to obtain an absolute value difference;
[0009] Performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value;
[0010] A clock error of the input signal is determined according to the adjacent sample values, the absolute value difference and the sign value.
[0011] In one embodiment, the step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value comprises:
[0012] Determine a clock error component between any adjacent sampling signals according to the adjacent sampling values, the absolute value difference and the sign value;
[0013] The clock error components are summed to obtain the clock error of the input signal.
[0014] In one embodiment, the symbol value includes: a previous symbol value and a next symbol value;
[0015] The step of performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value comprises:
[0016] Performing a sign-taking operation on the previous sampling value to obtain the previous sign value;
[0017] Performing a sign-taking operation on the next sampling value to obtain the next sign value;
[0018] The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises:
[0019] Summing the previous symbol value and the next symbol value to obtain a sum of the symbol values;
[0020] The absolute value of the sum of the symbol values is multiplied by the absolute value difference to obtain a clock error component between the adjacent sampling signals.
[0021] In one embodiment, the symbol value includes: a difference symbol value;
[0022] The step of performing a sign operation on the adjacent sampling values or the sampling value difference to obtain a sign value comprises:
[0023] Performing a sign operation on the absolute value difference to obtain a sign value of the difference;
[0024] The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises:
[0025] Summing the previous sampling value and the next sampling value to obtain a sum of the sampling values;
[0026] The absolute value of the sum of the sampling values is multiplied by the difference sign value to obtain a clock error component between the adjacent sampling signals.
[0027] In one embodiment, the symbol value includes: a previous symbol value, a next symbol value, and a difference symbol value;
[0028] The step of performing a sign operation on the adjacent sampling values or the sampling value difference to obtain a sign value comprises:
[0029] Performing a sign-taking operation on the previous sampling value to obtain the previous sign value;
[0030] Performing a sign-taking operation on the next sampling value to obtain the next sign value;
[0031] Performing a sign operation on the absolute value difference to obtain a sign value of the difference;
[0032] The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises:
[0033] Summing the previous symbol value and the next symbol value to obtain a sum of the symbol values;
[0034] The absolute value of the sum of the symbol values is multiplied by the difference symbol value to obtain a clock error component between the adjacent sampling signals.
[0035] In one embodiment, the method further comprises:
[0036] When the sampling rate is a non-integer multiple of the sampling rate, determining the clock errors of the multiple input signals according to the sampling rate and the roll-off coefficient of the Nyquist signal;
[0037] Determine the reference signal and other signals in each of the input signals;
[0038] Calculating the difference between the clock error of the other signal and the clock error of the reference signal;
[0039] The time delay for receiving each of the input signals is determined according to the difference.
[0040] In addition, to achieve the above purpose, the present application also proposes a clock error detection device, the device comprising:
[0041] A value determination module, used for determining the sampling value of the input signal at each sampling point when the sampling rate of the input signal is one times the sampling rate;
[0042] A difference calculation module is used to determine adjacent sampling values corresponding to any adjacent sampling signals, and calculate the difference between the absolute value of the previous sampling value and the absolute value of the next sampling value in the adjacent sampling values to obtain an absolute value difference;
[0043] A sign taking module, used for performing a sign taking operation on the adjacent sampling values or the absolute value difference to obtain a sign value;
[0044] The error detection module is used to determine the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value.
[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a clock error detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the clock error detection method described above.
[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the clock error detection method described above are implemented.
[0047] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the clock error detection method described above are implemented.
[0048] One or more technical solutions proposed in this application have at least the following technical effects:
[0049] When the sampling rate of the input signal is one times the sampling rate, the input signal is sampled at each sampling point based on the sampling rate to obtain multiple sampling signals; the adjacent sampling values corresponding to any adjacent sampling signals are determined, and the difference between the absolute value of the previous sampling value and the absolute value of the next sampling value in the adjacent sampling values is calculated to obtain the absolute value difference; the adjacent sampling values or the absolute value difference are subjected to a sign-taking operation to obtain the sign value; the clock error of the input signal is determined according to the adjacent sampling values, the absolute value difference and the sign value. Compared with the existing ABS TED, the present application performs a sign-taking operation on the adjacent sampling values or the absolute value difference, so that the adjacent sampling values or the sampling value difference are subjected to a sign-taking operation, and the obtained sign value is 1 or -1, which can effectively eliminate the multiplication operation, reduce the complexity of the calculation, and thus reduce the calculation delay and improve the tracking speed of the clock phase. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0052] Figure 1 A flowchart of the clock error detection method embodiment 1 of the present application is provided;
[0053] Figure 2 It is a structural diagram of the existing ABS TED;
[0054] Figure 3 A flowchart of the second embodiment of the clock error detection method of the present application is provided;
[0055] Figure 4 This is a schematic diagram of the TED structure involved in Example 2 of the present application;
[0056] Figure 5 A flowchart of the third embodiment of the clock error detection method of the present application is provided;
[0057] Figure 6 This is a schematic diagram of IQ skew monitoring at the receiving end in Embodiment 3 of the present application;
[0058] Figure 7 This is a schematic diagram of the joint compensation of clock error and IQ skew at the receiving end in the third embodiment of the present application;
[0059] Figure 8 This is a schematic diagram of the module structure of the clock error detection device according to an embodiment of the present application;
[0060] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the clock error detection method in the embodiment of the present application.
[0061] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0062] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0063] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0064] The main solution of the embodiment of the present application is: the clock error detection device performs a sign operation on the absolute values of adjacent sampling values or sampling value differences to obtain a sign value, and then determines the clock error of the input signal based on the adjacent sampling values, the absolute values of the sampling value differences and the sign values.
[0065] In this embodiment, for the convenience of description, the clock error detection device is taken as the main body for explanation below.
[0066] In optical communication systems, DSP technology is widely used to compensate for various impairments in the signal transmission process, which requires DSP to continuously develop in the direction of lower power consumption and computational complexity. In the receiving end DSP program, CR is a key part placed in the front end of DSP, and the performance of CR will directly affect the normal operation of subsequent DSP modules. In CR, simple and efficient TED is very critical because it can estimate the timing error and input it to the CR loop to correct the time-varying sampling clock phase error. Traditional digital TED, such as Gardner, Godard and Lee TED, requires two samples per symbol (Samples per Symbol, SPS) operation, resulting in a high demand for analog-to-digital converter sampling rate, resulting in higher cost and power consumption. To solve this problem, the improved Godard TED and improved Lee TED are proposed, which can extract clock signals at a sampling rate of less than 2 SPS. The TED with the lowest resource requirement to meet the requirements of higher rate signal transmission can work at 1SPS, such as the classic Mueller-Müller (MM) TED. However, MM TED requires the decision value of the symbol, which is difficult to implement in practical systems because it requires a relatively complex CR loop design. To solve this problem, a sign-MM TED is proposed. This method uses simple logical operations to replace complex decision circuits, thereby reducing complexity and computational feedback delay. Although the implementation complexity is reduced, the timing jitter performance of the sign-MM TED still needs to be further improved. To further improve the performance, another baud rate TED (called ABS TED) based on the absolute value of the sampled signal to extract the clock signal is proposed and shows good performance in systems with severe bandwidth limitation. However, since each estimation of the clock phase error requires hundreds of real number multiplications, the computational complexity of the ABS TED is too high, which introduces a large computational delay, thereby reducing the tracking speed of the clock phase.
[0067] The present application provides a solution. In ABS TED, a sign operation is performed on adjacent sampling values or absolute value differences, so that after the adjacent sampling values or absolute value differences are signed, the obtained sign value is 1, 0 or -1, which can effectively eliminate multiplication operations, reduce the complexity of calculations, thereby reducing calculation delays and improving the tracking speed of the clock phase.
[0068] It should be noted that the execution subject of this embodiment may be a computing service device with clock error detection, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a clock error detection device, etc. The following takes a clock error detection device including TED and applied to a receiving end as an example to illustrate this embodiment and the following embodiments.
[0069] Based on this, the embodiment of the present application provides a clock error detection method, referring to Figure 1 , Figure 1 A flowchart diagram of the first embodiment of the clock error detection method of the present application is provided.
[0070] In this embodiment, the clock error detection method includes steps S10 to S40:
[0071] Step S10: when the sampling rate of the input signal is one times the sampling rate, sampling the input signal at each sampling point based on the sampling rate to obtain a plurality of sampling signals.
[0072] It should be noted that the above-mentioned input signal may be a discrete signal obtained after the receiving end processes the initial signal generated by the transmitting end.
[0073] It is understandable that the above sampling rate may be the number of sampled signals extracted from the input signal by the receiving end at the sampling point per second.
[0074] It should be noted that the above sampling value may be the amplitude of the extracted sampling signal.
[0075] In a specific implementation, multiple sampling points may be provided at the receiving end, and the clock error detection device may sample the input signal at each sampling point in turn based on the sampling rate to obtain multiple sampling signals, and the amplitude of each sampling signal may be the sampling value of the input signal at each sampling point.
[0076] Step S20, determining adjacent sampling values corresponding to any adjacent sampling signals, and calculating the difference between the absolute value of a previous sampling value and the absolute value of a next sampling value in the adjacent sampling values to obtain an absolute value difference.
[0077] In a specific implementation, the above-mentioned clock error detection device can determine the sampling values of any adjacent sampling signals, take the sampling value of the previous sampling signal and the sampling value of the next sampling signal in the adjacent sampling signals as adjacent sampling values, and then calculate the difference between the absolute value of the sampling value of the previous sampling signal and the absolute value of the sampling value of the next sampling signal to obtain the absolute value difference.
[0078] Step S30, performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value.
[0079] It should be noted that the reference Figure 2 , Figure 2 It is a structural diagram of the existing ABS TED. Figure 2 In n The sampled value of the sampled signal x n After entering ABS TED, on the first road, x n and x n+1 Add to obtain the sum of the sampled values, and then perform ABS operation to obtain the absolute value of the sum of the sampled values; in the second path, x n The absolute value of x n+1 The absolute value of the sampled values is subtracted to obtain the absolute value difference, and then the absolute value of the sum of the sampled values is multiplied by the absolute value difference to obtain the clock error component between adjacent sampled signals. The clock error of the input signal can be obtained by adding up the clock error components.
[0080] Among them, n +1 sampling signal can be obtained by sampling the input signal at adjacent sampling points based on the sampling rate (1 / s), which is the same as the first n The sampled signals are adjacent. x n+1 Can be the first n +1 sample value of the sampled signal.
[0081] The calculation formula for the above clock error is as follows:
[0082]
[0083] In the formula, is the clock error, N The number of sampled signals used to calculate a clock error, x n For the n The sampled value of the sampled signal, x n+1 For the n+ The sample value of a sampled signal.
[0084] It should be noted that in the above formula, | x n + x n+1 | can characterize the deviation of the signal on the time axis. The above | x n |-| x n+1 | can characterize the direction of the clock error, so | x n + x n+1 | and | x n |-| x n+1 |Multiply them to get the clock error.
[0085] It should be understood that when the signal is perfectly sampled, i.e., there is no clock error, | x n + x n+1 | and | x n |-| x n+1 |are close to zero.
[0086] From the above calculation formula, it can be seen that each calculation of ABS TED requires N -1 real number multiplication. When there are too many sampling points, the calculation becomes complicated and more resources are occupied.
[0087] In order to solve the above problem, the above clock error detection formula can perform a sign operation on the absolute value of the adjacent sampling values or the difference between the sampling values, that is, extract x n , x n+1 's symbol, or extract | x n |-| x n+1 | symbol, obtain the corresponding symbol value, for example, if you extract x n , x n+1 The symbol of x n or x n+1 When it is greater than 0, the symbol value is 1, when it is less than 0, the symbol value is -1, and when it is equal to 0, the symbol value is 0. If you extract | x n |-| x n+1 | symbol, then in |x n |-| x n+1 When | is greater than 0, the symbol value is 1, when it is less than 0, the symbol value is -1, and when it is equal to 0, the symbol value is 0, thereby eliminating the multiplication operation, reducing the complexity of the calculation, and thus reducing resource usage.
[0088] Step S40: determining a clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value.
[0089] In a specific implementation, the clock error detection device may determine the clock error of the input signal based on the clock error formula in combination with the symbol value.
[0090] In a feasible implementation, step S40 may include steps S41-S42:
[0091] Step S41, determining a clock error component between any adjacent sampling signals according to the adjacent sampling values, the absolute value difference and the sign value.
[0092] Step S42, summing up the clock error components to obtain the clock error of the input signal.
[0093] In a specific implementation, if the adjacent sampling values are signed, the obtained sign value is multiplied by the absolute value difference to obtain the clock error component; if the absolute value difference is signed, the obtained sign value is multiplied by the sum of the sampling values of the adjacent sampling values to obtain the clock error component; if both the adjacent sampling values and the absolute value difference are signed, the sum of the sign values obtained after the adjacent sampling values are signed is multiplied by the sign value of the absolute value difference to obtain the clock error component. The clock error components between each adjacent sampling value are accumulated to obtain the clock error of the input signal.
[0094] The present embodiment provides a clock error detection method, by sampling the input signal at each sampling point based on the sampling rate when the sampling rate of the input signal is one times the sampling rate, to obtain multiple sampling signals; determining the adjacent sampling values corresponding to any adjacent sampling signals, and calculating the difference between the absolute value of the previous sampling value and the absolute value of the next sampling value in the adjacent sampling values, to obtain the absolute value difference; performing a sign operation on the adjacent sampling values or the absolute value difference to obtain the sign value; determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value. Compared with the existing ABS TED, the present embodiment performs a sign operation on the adjacent sampling values or the absolute value difference, so that the adjacent sampling values or the sampling value difference are signed, and the obtained sign value is 1 or -1, which can effectively eliminate the multiplication operation, reduce the complexity of the calculation, and thus reduce the calculation delay and improve the tracking speed of the clock phase.
[0095] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , Figure 3 A flowchart diagram of the second embodiment of the clock error detection method of the present application is provided.
[0096] In this embodiment, the symbol value includes a previous symbol value and a next symbol value, the step S30 may include steps S301-S302, and the step S41 may include steps S401-S402:
[0097] Step S301, performing a sign extraction operation on the previous sampling value to obtain the previous symbol value.
[0098] Step S302, performing a sign extraction operation on the next sampling value to obtain the next symbol value.
[0099] Step S401, summing the previous symbol value and the next symbol value to obtain the sum of the symbol values.
[0100] Step S402: multiply the absolute value of the sum of the symbol values by the absolute value difference to obtain a clock error component between the adjacent sampling signals.
[0101] In a specific implementation, the clock error detection device may calculate the clock error component between adjacent sampling signals based on the following formula:
[0102]
[0103] In the formula, is the clock error, N The number of sampled signals used to calculate a clock error, x n For the n The sampled value of the sampled signal, x n+1 For the n+ The sample value of a sampled signal, sign (.) represents the sign of the operand.
[0104] For example, x n Explain the previous sample value. x n+1 The clock error detection device can detect the previous sampling value. x n Perform a sign operation to get the previous sign value sign (x n ), for the next sample value x n+1 Perform the sign operation to get the next sign value sign ( x n+1 ), and then the previous symbol value sign ( x n ) and the latter symbol value sign ( x n+1 ) to obtain the sum of the symbolic values " sign ( x n )+ sign ( x n+1 )”, the absolute value of the sum of the symbolic values “| sign ( x n )+ sign ( x n+1 )|" and the absolute value difference "| x n |-| x n+1 |” can be multiplied to obtain the clock error component between adjacent sampling signals. In the above process, in the way of taking the sign operation, the absolute value of the sum of the sign values “| sign ( x n )+ sign ( x n+1 )|” takes a value of 0 or 2, so the multiplication operation can be eliminated, ensuring that the calculation complexity and power consumption are reduced at a double sampling rate.
[0105] In a feasible implementation manner, the symbol value includes a difference symbol value, the step S30 may include step S301', and the step S41 may include steps S401'-S402':
[0106] Step S301', performing a sign operation on the absolute value difference to obtain the difference sign value.
[0107] Step S401', summing the previous sampling value and the next sampling value to obtain the sum of the sampling values.
[0108] Step S402': multiply the absolute value of the sum of the sampling values by the difference sign value to obtain a clock error component between the adjacent sampling signals.
[0109] In a specific implementation, the clock error detection device may calculate the clock error component between adjacent sampling signals based on the following formula:
[0110]
[0111] In the formula, is the clock error, N The number of sampled signals used to calculate a clock error, x n For the n The sampled value of the sampled signal, x n+1 For the n+ The sample value of a sampled signal, sign (.) represents the sign of the operand.
[0112] For example, x n Explain the previous sample value. x n+1 The latter sampling value is explained. The above clock error detection device can detect the absolute value difference "| x n |-| x n+1 |"Perform a sign operation to obtain the difference sign value" sign (| x n |-| x n+1 |)", and then the previous sample value x n The next sample value x n+1 Sum the sample values to get the sum of " x n + x n+1 ", the absolute value of the sum of the sampled values "| x n + x n+1 |" and the difference sign value" sign (| x n |-| x n+1 |)” to obtain the clock error component between adjacent sampling signals. In the above process, the difference sign value “ sign (| x n |-| x n+1The value of "|)" is 0, 1 or -1, so the multiplication operation can be eliminated, ensuring that the calculation complexity and power consumption are reduced at a single sampling rate.
[0113] In another feasible implementation manner, the symbol value includes a previous symbol value, a next symbol value, and a difference symbol value, the step S30 may include steps S301''~S303'', and the step S41 may include steps S401''~S402'':
[0114] Step S301'', performing a sign-taking operation on the previous sampling value to obtain the previous symbol value.
[0115] Step S302'', performing a sign extraction operation on the next sampling value to obtain the next symbol value.
[0116] Step S303'', performing a sign operation on the absolute value difference to obtain the difference sign value.
[0117] Step S401'', summing the previous symbol value and the next symbol value to obtain the sum of the symbol values.
[0118] Step S402'': multiply the absolute value of the sum of the symbol values by the difference symbol value to obtain a clock error component between the adjacent sampling signals.
[0119] In a specific implementation, the clock error detection device may calculate the clock error component between adjacent sampling signals based on the following formula:
[0120]
[0121] In the formula, is the clock error, N The number of sampled signals used to calculate a clock error, x n For the n The sampled value of the sampled signal, x n+1 For the n+ The sample value of a sampled signal, sign (.) represents the sign of the operand.
[0122] The method of taking operands on either side in the calculation formula of ABS TED is applicable to the case where the difference between the left and right sides is small, but is not applicable when the difference between the left and right sides is large. Therefore, another feasible implementation method is proposed.
[0123] In this embodiment, reference Figure 4 , Figure 4This is a schematic diagram of the TED structure involved in the second embodiment of the present application. The difference from the structural diagram of the existing ABS TED is that the TED structure of this embodiment adds a first path and a second path. sign Operation (sign operation). In the first path, x n and x n+1 After taking the signs, they are added to obtain the sum of the sign values, and then the absolute value of the sum of the sign values is obtained through ABS operation; in the second path, x n The absolute value of x n+1 The absolute value of the signal is subtracted and the sign is taken to obtain the difference sign value. The absolute value of the sum of the sign values is then multiplied by the difference sign value to obtain the clock error component between adjacent sampling signals. The clock error of the input signal can be obtained by accumulating the clock error components.
[0124] For example, x n Explain the previous sample value. x n+1 The clock error detection device can detect the previous sampling value. x n Perform a sign operation to get the previous sign value sign ( x n ), for the next sampling value x n+1 Perform the sign operation to get the next sign value sign ( x n+1 ), for the absolute value difference “| x n |-| x n+1 |"Perform a sign operation to obtain the difference sign value" sign (| x n |-| x n+1 |)", and then the previous symbol value sign ( x n ) and the latter symbol value sign ( x n+1 ) is summed, and then the absolute value of the sum of the symbolic values "| sign ( x n )+ sign ( x n+1 )|" and the difference sign value " sign (| x n |-| x n+1 |)” can be multiplied to obtain the clock error component between adjacent sampling signals. In the above process, in the way of taking the sign operation, the absolute value of the sum of the sign values “| sign ( x n )+ sign ( x n+1 )|" has a value of 0 or 2, and the difference sign value is " sign (| x n |-| x n+1 |)" can be 0, 1 or -1, so the multiplication operation can be eliminated, ensuring that the calculation complexity and power consumption are reduced at a single sampling rate. Therefore, the clock recovery algorithm based on the above clock error detection method can effectively reduce the cost and power consumption of the DSP chip.
[0125] Based on the above embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those of the above embodiments 1 and 2 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , Figure 5 A flowchart diagram of the third embodiment of the clock error detection method of the present application is provided.
[0126] As the baud rate of signals continues to increase, not only do related algorithms such as clock recovery need to adapt to lower sampling rates and more stringent computing resource allocation, but in coherent optical communication systems, for example, receiver impairments such as in-phase and quadrature skew (IQ skew) of synchronous and orthogonal branches will also significantly degrade system performance. In order to save cost and power consumption, actual systems often avoid using expensive optoelectronic devices to monitor and compensate for IQ skew, but instead use DSP technology in the digital domain for processing. Various multiple input multiple output (MIMO) adaptive equalizers that can be used to compensate for a variety of impairments are often used to compensate for the IQ skew of the receiver, and their tap coefficients can be used for IQ delay monitoring. However, the hardware complexity of the MIMO equalizer is high, and under the premise of keeping the tap length consistent, the compensation delay will affect its ability to compensate for polarization states and other impairments. In addition, since clock error and IQ skew will cause the same effect, that is, the time shift of the sampling point, Godard TED in the clock recovery algorithm can be used to monitor the IQ skew at the receiving end in the coherent optical communication system. IQ skew is the time delay between the co-directional (I path) component and the orthogonal (Q path) component, and its complexity is relatively low. However, Godard TED still needs to work under 2 sps conditions, resulting in higher power consumption and resource requirements of the DSP chip.
[0127] The clock error detection method involved in the above embodiment is based on ABS TED, which is applicable to a one-time sampling rate. Therefore, it cannot be applied to IQ skew monitoring under a non-integer multiple sampling rate. In order to reduce the computational complexity and thus reduce resource requirements, this embodiment is proposed, aiming to propose this embodiment based on the improved Godard TED to solve the above problem.
[0128] In this embodiment, the method further includes steps S60 to S80:
[0129] Step S60, when the sampling rate is a non-integer multiple of the sampling rate, determining the clock errors of the multiple input signals according to the sampling rate and the roll-off coefficient of the Nyquist signal.
[0130] In a specific implementation, when the sampling rate is a non-integer multiple of the sampling rate, the clock error detection device can calculate the clock error based on the following formula:
[0131]
[0132] In the formula, is the clock error, N The number of sampled signals used to calculate a clock error, X kFor input signal x k The Fourier transform of is the oversampling rate multiplier, is the roll-off factor of the Nyquist signal, >1+ , >0.
[0133] It should be noted that the above-mentioned oversampling ratio may be a non-integer sampling ratio between 1 and 2.
[0134] It is understandable that, according to the roll-off factor and the oversampling ratio, the value of the above formula can be flexibly adjusted to achieve flexible application.
[0135] Step S70: determining the reference signal and other signals in each of the input signals.
[0136] It should be noted that the reference signal may be a signal randomly selected from multiple input signals. In the multiple input signals, each signal except the reference signal may be other signals.
[0137] Step S80, calculating the difference between the clock error of the other signal and the clock error of the reference signal.
[0138] Step S90: determining the time delay of receiving each input signal according to the difference.
[0139] In a specific implementation, the clock error detection device can calculate the clock error of each input signal, and then calculate the difference between the clock error of other signals and the clock error of the reference signal, and use the difference as the delay of the receiving end (ie, IQ skew).
[0140] For example, Figure 6 To explain, Figure 6 This is a schematic diagram of IQ skew monitoring at the receiving end in Embodiment 3 of the present application. Figure 6 In the four-way receiving signal XI in , XQ in , YI in and YQ in Take multiple input signals as an example, XI in , XQ in , YI in and YQ in After non-integer sampling, the obtained sampling signals are XI (I path in the X polarization direction), XQ (Q path in the X polarization direction), YI (I path in the Y polarization direction) and YQ (Q path in the Y polarization direction). After sampling, XI, XQ, YI and YQ enter the improved Godard-TED in turn, and the clock error of XI path is calculated as , the clock error of XQ path is , the clock error of YI is , the clock output of YQ circuit is Taking XI as the reference signal, the difference between the clock errors of XQ, YI, and YQ and the clock error of XI is calculated respectively, and the IQ skew of the receiving end can be obtained. The difference between the clock error of XQ and the clock error of XI is , That is, the delay between XQ and XI. The difference between the clock error of YI and XI is , That is, the delay between YI and XI. The difference between the clock error of YQ and XI is , That is, the time delay between the YQ path and the XI path. The clock error detection device may be provided with the improved Godard-TED.
[0141] In addition, since the above IQ skew monitoring method is obtained through improved Godard-TED calculation, the existing clock recovery structure can be redesigned. Figure 7 , Figure 7 Schematic diagram of the joint compensation of clock error and receiving end IQ skew in the third embodiment of the present application, Figure 7 In the four-way receiving signal XI in , XQ in , YI in and YQ in For example, for multiple input signals, the interpolation filter is used to filter the four received signals XI in , XQ in , YI in and YQ in Resample and filter to eliminate the clock phase error and IQ skew, and obtain four output signals XI out , XQ out , YI out and YQ out Fast Fourier transform is used to convert the signal from time domain to frequency domain; the improved Godard-TED is used to detect the clock error of the four branches XI, XQ, YI, and YQ respectively. The output is monitored by the IQskew of the receiving end and the IQskew of each branch is calculated with the XI branch as a reference, that is, , , The loop filter is used to filter out-of-band noise and reduce the influence of noise on clock phase error compensation; the numerically controlled oscillator calculates the interpolation coordinates required by the interpolation filter through the output of the loop filter.
[0142] For the received dual-polarization complex signal, after the joint compensation of the IQ skew and clock error at the receiving end, since there is no need for additional compensation of IQ skew, the subsequent equalizer can focus more on compensating for other damages. At this time, the tap coefficient requirement is less than that without IQ skew compensation. That is, in addition to reducing the sampling rate, the above method can also reduce DSP cost and power consumption.
[0143] This application also provides a clock error detection device, please refer to Figure 8 , Figure 8 This is a schematic diagram of the module structure of the clock error detection device according to an embodiment of the present application.
[0144] like Figure 8 As shown, the clock error detection device proposed in the embodiment of the present application includes:
[0145] The value determination module 10 is used to determine the sampling value of the input signal at each sampling point when the sampling rate of the input signal is one times the sampling rate.
[0146] The difference calculation module 20 is used to determine adjacent sampling values corresponding to any adjacent sampling signals, and calculate the difference between the absolute value of the previous sampling value and the absolute value of the next sampling value in the adjacent sampling values to obtain the absolute value difference.
[0147] The sign extraction module 30 is used to perform a sign extraction operation on the adjacent sampling values or the absolute value difference to obtain a sign value.
[0148] The error detection module 40 is used to determine the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value.
[0149] The clock error detection device provided by the present application adopts the clock error detection method in the above embodiment, which can solve the technical problem that the prior art requires hundreds of real number multiplication calculations, which makes the calculation complexity too high, increases the calculation delay, and causes the tracking speed of the clock phase to decrease. Compared with the prior art, the beneficial effects of the clock error detection device provided by the present application are the same as the beneficial effects of the clock error detection method provided by the above embodiment, and the other technical features in the clock error detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0150] The present application provides a clock error detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the clock error detection method in the above-mentioned embodiment 1.
[0151] Reference below Fig. 9 , Fig. 9 The device structure diagram of the hardware operating environment involved in the clock error detection method in the embodiment of the present application is shown in FIG. The clock error detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The clock error detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0152] like Fig. 9 As shown, the clock error detection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the clock error detection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the clock error detection device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a clock error detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0153] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0154] The clock error detection device provided by the present application adopts the clock error detection method in the above embodiment, which can solve the technical problem that the prior art requires hundreds of real number multiplication calculations, which makes the calculation complexity too high, increases the calculation delay, and causes the tracking speed of the clock phase to decrease. Compared with the prior art, the beneficial effects of the clock error detection device provided by the present application are the same as the beneficial effects of the clock error detection method provided by the above embodiment, and the other technical features in the clock error detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0155] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0156] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0157] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the clock error detection method in the above-mentioned embodiment.
[0158] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0159] The computer-readable storage medium may be included in the clock error detection device; or may exist independently without being assembled into the clock error detection device.
[0160] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the clock error detection device, the clock error detection device: when the sampling rate of the input signal is one times the sampling rate, samples the input signal at each sampling point based on the sampling rate to obtain multiple sampling signals; determines adjacent sampling values corresponding to any adjacent sampling signals, and calculates the difference between the absolute value of the previous sampling value and the absolute value of the next sampling value in the adjacent sampling values to obtain an absolute value difference; performs a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value; and determines the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value.
[0161] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0162] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0163] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0164] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned clock error detection method, and can solve the technical problem that the prior art requires hundreds of real number multiplication calculations, which makes the calculation complexity too high, increases the calculation delay, and causes the tracking speed of the clock phase to decrease. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the clock error detection method provided by the above-mentioned embodiment, and will not be repeated here.
[0165] The present application also provides a computer program product, including a computer program, which implements the steps of the clock error detection method as described above when executed by a processor.
[0166] The computer program product provided by the present application can solve the technical problem that the prior art requires hundreds of real number multiplication calculations, which makes the calculation complexity too high, increases the calculation delay, and causes the tracking speed of the clock phase to decrease. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the clock error detection method provided by the above embodiment, and will not be repeated here.
[0167] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A clock error detection method, characterized in that: The method comprises: When the sampling rate of the input signal is one times the sampling rate, sampling the input signal at each sampling point based on the sampling rate to obtain a plurality of sampling signals; Determine adjacent sampling values corresponding to any adjacent sampling signals, and calculate the difference between the absolute value of a previous sampling value and the absolute value of a subsequent sampling value in the adjacent sampling values to obtain an absolute value difference; Performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value; A clock error of the input signal is determined according to the adjacent sample values, the absolute value difference and the sign value.
2. The clock error detection method according to claim 1, characterized in that: The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises: Determine a clock error component between any adjacent sampling signals according to the adjacent sampling values, the absolute value difference and the sign value; The clock error components are summed to obtain the clock error of the input signal.
3. The clock error detection method according to claim 2, characterized in that: The symbol value includes: a previous symbol value and a next symbol value; The step of performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value comprises: Performing a sign-taking operation on the previous sampling value to obtain the previous sign value; Performing a sign-taking operation on the next sampling value to obtain the next sign value; The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises: Summing the previous symbol value and the next symbol value to obtain a sum of the symbol values; The absolute value of the sum of the symbol values is multiplied by the absolute value difference to obtain a clock error component between the adjacent sampling signals.
4. The clock error detection method according to claim 2, characterized in that: The symbol value includes: a difference symbol value; The step of performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value comprises: Performing a sign operation on the absolute value difference to obtain a sign value of the difference; The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises: Summing the previous sampling value and the next sampling value to obtain a sum of the sampling values; The absolute value of the sum of the sampling values is multiplied by the difference sign value to obtain a clock error component between the adjacent sampling signals.
5. The clock error detection method according to claim 2, characterized in that: The symbol value includes: a previous symbol value, a next symbol value and a difference symbol value; The step of performing a sign operation on the adjacent sampling values or the absolute value difference to obtain a sign value comprises: Performing a sign-taking operation on the previous sampling value to obtain the previous sign value; Performing a sign-taking operation on the next sampling value to obtain the next sign value; Performing a sign operation on the absolute value difference to obtain a sign value of the difference; The step of determining the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the symbol value comprises: Summing the previous symbol value and the next symbol value to obtain a sum of the symbol values; The absolute value of the sum of the symbol values is multiplied by the difference symbol value to obtain a clock error component between the adjacent sampling signals.
6. The clock error detection method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the sampling rate is a non-integer multiple of the sampling rate, determining the clock errors of the multiple input signals according to the sampling rate and the roll-off coefficient of the Nyquist signal; Determine the reference signal and other signals in each of the input signals; Calculating the difference between the clock error of the other signal and the clock error of the reference signal; The time delay for receiving each of the input signals is determined according to the difference.
7. A clock error detection device, characterized in that: The device comprises: A value determination module, used for determining the sampling value of the input signal at each sampling point when the sampling rate of the input signal is one times the sampling rate; A difference calculation module is used to determine adjacent sampling values corresponding to any adjacent sampling signals, and calculate the difference between the absolute value of the previous sampling value and the absolute value of the next sampling value in the adjacent sampling values to obtain an absolute value difference; A sign taking module, used for performing a sign taking operation on the adjacent sampling values or the absolute value difference to obtain a sign value; The error detection module is used to determine the clock error of the input signal according to the adjacent sampling values, the absolute value difference and the sign value.
8. A clock error detection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the clock error detection method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the clock error detection method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the clock error detection method according to any one of claims 1 to 6 are implemented.
