A timing calibration method and system
By filtering and calculating the configuration parameters of the multiphase clock, determining the optimal configuration parameters to reduce interleaved harmonics, the performance degradation of time-interleaved DACs under non-ideal clock signals is solved, and the calibration accuracy and the stability of the communication system are improved.
Patent Information
- Application Number
- CN202411884158.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-20
AI Technical Summary
Time-interleaved DACs will experience interleaved harmonics under non-ideal clock signals, resulting in a drop in ENOB and an increase in bit error rate. The multiphase clock needs to be timing calibration to reduce duty cycle error and clock offset.
By finding the harmonic energy values corresponding to K configuration parameters, filter out the fixed set and the set to be selected, calculate the harmonic energy values of each point, and determine the optimal configuration parameters to improve calibration accuracy.
It improves the accuracy and efficiency of calibration, reduces noise interference, improves the repeatability of the algorithm and the stability of the communication system.
Smart Images

Figure CN119341562B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a timing calibration method and system. Background Art
[0002] For today's communication systems, integrated transceivers based on DAC (Digital to Analog Converter) and ADC (Analog to Digital Converter) are needed to implement software-defined transmitters (TX) and receivers (RX). DSP (Digital Signal Processing) technology enables software-defined waveforms to have flexible modulation bandwidth and modulation format, making them compatible with advanced coding technology as well as pre-equalization and post-equalization technology. Timing calibration technology can greatly improve the performance of transceivers and reduce the bit error rate of the entire system, becoming an important technology in advanced optical communication systems.
[0003] As energy efficiency becomes increasingly important for optical communication networks, DACs based on low-power CMOS (Complementary Metal-Oxide Semiconductor) processes have become key components for actually generating transmitter signals. In addition, CMOS DACs can be integrated with DSPs on a single chip to prevent the interface data transmission rate between the DAC and DSP from becoming a bottleneck for the system transmission rate. As the DAC bandwidth increases, the optical wavelengths required to achieve the same channel capacity will become fewer. A time-interleaved DAC uses multiple parallel DACs and additional circuits to generate a combined electrical signal that has a higher equivalent sampling rate and bandwidth than a single DAC. Taking a four-way time-interleaved DAC as an example, its circuit structure and clock waveform are as follows Figure 1 shown.
[0004] For time-interleaved DACs, non-ideal clock signals, such as Figure 2 As shown in the figure, there are duty cycle errors and clock skews between different phase clocks, which will cause interleaving spurs in the output spectrum, resulting in a decrease in the ENOB (Effective Number of Bits) of the DAC, which in turn affects the BER (Bit Error Rate) of the entire system. Therefore, it is necessary to perform timing calibration on the multi-phase clocks to minimize the duty cycle errors and clock skews between different phase clocks. Summary of the invention
[0005] The present application provides a timing calibration method and system to improve the accuracy of calibration.
[0006] In a first aspect, the present application provides a timing calibration method, comprising the steps of:
[0007] Find the target configuration parameter according to the harmonic energy values corresponding to the K configuration parameters; the K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer;
[0008] Filtering a fixed set from the K points corresponding to the K configuration parameters, the fixed set comprising N consecutive reference points, the reference points being located on one side of the extreme value point corresponding to the target configuration parameter, and the reference point in the fixed set closest to the extreme value point being spaced from the extreme value point by M points corresponding to the configuration parameters;
[0009] Filter out at least two candidate sets from the K points corresponding to the K configuration parameters, the candidate sets including N consecutive candidate points, the candidate points being located on the other side of the extreme point; there is a different candidate point between two adjacent candidate sets;
[0010] Calculation is performed based on the harmonic energy values corresponding to the N reference points in the fixed set and the harmonic energy values corresponding to the N candidate points in at least two of the candidate sets, and the optimal configuration parameters are determined based on all calculation results.
[0011] In some embodiments, the configuration parameters include any one or both of an offset configuration parameter and a duty cycle configuration parameter, the duty cycle configuration parameter is used to adjust the duty cycle of the clock signal, and the offset configuration parameter is used to adjust the clock offset of the clock signal.
[0012] In some implementations, there is a different candidate point between two adjacent to-be-selected sets.
[0013] In some implementations, determining the optimal configuration parameters according to the fixed set and at least two of the candidate sets comprises the steps of:
[0014] The sum of squares of energy differences is calculated according to the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in any of the candidate sets;
[0015] The average configuration parameters are calculated according to the configuration parameters corresponding to the reference points of the fixed set and the configuration parameters corresponding to the candidate points of the target set, and the average configuration parameters are used as the optimal configuration parameters; the target set is a candidate set corresponding to the smallest sum of squares of the energy differences.
[0016] In some embodiments, the step of calculating the sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in any of the candidate sets comprises the following steps:
[0017] Substituting the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in the candidate set into the following formula, the corresponding sum of squares of the energy differences is calculated;
[0018] ;
[0019] Wherein, Lj is the square sum of the energy differences between the fixed set and the jth selected set, Ei is the harmonic energy value corresponding to the i-th reference point in the fixed set, is the harmonic energy value corresponding to the i-th candidate point in the j-th candidate set, and i and j are both positive integers.
[0020] In a second aspect, the present application also provides a timing calibration system, comprising:
[0021] An acquisition module is used to find out a target configuration parameter according to the harmonic energy values corresponding to K configuration parameters; the K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer;
[0022] A screening module, configured to screen out a fixed set from the K points corresponding to the K configuration parameters, wherein the fixed set includes N consecutive reference points, the reference points are located on one side of the extreme value point corresponding to the target configuration parameter, and the reference point in the fixed set closest to the extreme value point is separated from the extreme value point by M points corresponding to the configuration parameters;
[0023] The screening module is further used to screen out at least two candidate sets from the K points corresponding to the K configuration parameters, wherein the candidate sets include N consecutive candidate points, and the candidate points are located on the other side of the extreme point; there is a different candidate point between two adjacent candidate sets;
[0024] The processing module calculates according to the harmonic energy values corresponding to the N reference points in the fixed set and the harmonic energy values corresponding to the N candidate points in at least two of the candidate sets, and determines the optimal configuration parameters according to all the calculation results.
[0025] In some embodiments, the configuration parameters include any one or both of an offset configuration parameter and a duty cycle configuration parameter, the duty cycle configuration parameter is used to adjust the duty cycle of the clock signal, and the offset configuration parameter is used to adjust the clock offset of the clock signal.
[0026] In some implementations, there is a different candidate point between two adjacent to-be-selected sets.
[0027] In some embodiments, the processing module includes:
[0028] A calculation unit, configured to calculate a sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in any of the candidate sets;
[0029] A processing unit is used to calculate an average configuration parameter based on the configuration parameters corresponding to the reference points of the fixed set and the configuration parameters corresponding to the candidate points of the target set, and use the average configuration parameter as the optimal configuration parameter; the target set is a candidate set corresponding to the smallest sum of squares of the energy differences.
[0030] In some implementations, the calculation unit is used to substitute the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in the candidate set into the following formula to calculate the corresponding sum of squares of the energy differences;
[0031] ;
[0032] Wherein, Lj is the square sum of the energy differences between the fixed set and the jth selected set, Ei is the harmonic energy value corresponding to the i-th reference point in the fixed set, is the harmonic energy value corresponding to the i-th candidate point in the j-th candidate set, and i and j are both positive integers.
[0033] The timing calibration method and system provided by the present application, finds the target configuration parameter according to the harmonic energy value corresponding to K configuration parameters; the K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer; a fixed set is screened out from the K configuration parameters, the fixed set includes N continuous reference points, the reference point is located on one side of the extreme point corresponding to the target configuration parameter, and there are M points between the N reference points and the extreme point; at least two to-be-selected sets are screened out from the K configuration parameters, the to-be-selected sets include N continuous candidate points, the N candidate points are located on the other side of the extreme point, and there are M points between the N candidate points and the extreme point; there is a different candidate point between two adjacent to-be-selected sets; the optimal configuration parameter is determined according to the fixed set and at least two to-be-selected sets. The present application can improve the accuracy of calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 It is a schematic diagram of the circuit structure and clock waveform of a four-way time-interleaved DAC.
[0036] Figure 2 It is a schematic diagram of the effect of interleaving harmonics caused by duty cycle deviation and clock offset between clocks of different phases.
[0037] Figure 3 It is a scenario diagram of the timing calibration method provided in an embodiment of the present application.
[0038] Figure 4 It is a flow chart of a timing calibration method provided in an embodiment of the present application.
[0039] Figure 5 It is a scenario diagram of the timing calibration method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0041] In the description of the embodiments of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0042] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, the known process will not be elaborated in detail to avoid unnecessary details that make the description of the present application embodiment obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in accordance with the embodiments of the present application.
[0043] The timing performance of the circuit can be improved by adjusting the duty cycle and clock offset of the clock signal. The duty cycle refers to the ratio of the high level and low level time of the clock signal, while the clock offset refers to the phase deviation of the clock signal under different paths or frequencies. This deviation will cause the clock signal to arrive at different locations at different times, that is, the clock signal is delayed or advanced relative to the ideal state. In the circuit design stage, the duty cycle and clock offset of different phase clocks are set to be adjustable. When timing calibration is required, the configuration parameters of the clock signal (including duty cycle configuration parameters or clock offset configuration parameters) are changed, and the clock signals corresponding to different configuration parameters are continuously scanned. The interleaved harmonic energy of the time-interleaved DAC output signal is observed using the instrument or the ADC inside the circuit, such as Figure 3 As shown, the configuration parameter with the lowest harmonic energy can be selected as the optimal value for this calibration. However, to obtain accurate calibration results, it is necessary to improve the scanning resolution of the configuration parameters. Since the scanning resolution needs to be scanned point by point, it takes a long time. In addition, due to the presence of noise in the actual circuit and the limited accuracy of the instrument or ADC used to observe the interleaved harmonic energy, when the configuration parameter is close to the optimal value, the observed interleaved harmonic energy will drop sharply. At this time, the interleaved harmonic energy value near the optimal value will be disturbed by the noise, resulting in the optimal value P1 selected by the algorithm may not be the actual optimal value P0, causing random deviations. In addition, in actual operation, the calibration will continue for multiple rounds. The random deviation of the optimal value selection caused by the noise interference of this round of calibration will accumulate and affect the next round of calibration, which will eventually lead to poor algorithm repeatability and large differences in the results obtained by starting the algorithm multiple times.
[0044] The timing calibration method and system of the present application are described below in conjunction with the accompanying drawings to solve the above-mentioned problems.
[0045] Reference Figure 4 As shown, Figure 4 is a flow chart of a timing calibration method provided in an embodiment of the present application. Figure 4 The flowcharts shown in the figures or other figures show a logical order, but in some cases, the steps shown or described may be performed in a different order than that shown in the figure. The timing calibration method provided in the embodiment of the present application is applied to a timing calibration system, such as Figure 4 As shown, the timing calibration method includes the steps of:
[0046] S100. Find a target configuration parameter according to the harmonic energy values corresponding to K configuration parameters; the K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer.
[0047] Specifically, K is a positive integer, and an instrument or ADC for observing interleaved harmonic energy can be used to detect the harmonic energy value corresponding to each of the K configuration parameters, that is, K harmonic energy values. The K configuration parameters are arranged in order from large to small or from small to large, and the minimum harmonic energy value is found from the K harmonic energy values corresponding to the K configuration parameters, and the configuration parameter corresponding to the minimum harmonic energy value is used as the target configuration parameter.
[0048] For example, a coordinate system may be established with the configuration parameter as the horizontal axis and the harmonic energy value as the vertical axis, the coordinate system includes K continuous discrete points, the K continuous discrete points include K points with the configuration parameter as the horizontal axis and the harmonic energy value as the vertical axis, so that the harmonic energy value corresponding to the discrete point closest to the horizontal axis can be obtained from the coordinate system as the minimum harmonic energy value, and the configuration parameter of the discrete point corresponding to the minimum harmonic energy value is used as the target configuration parameter. Of course, a coordinate system may also be established with the harmonic energy value as the horizontal axis and the configuration parameter as the vertical axis, the coordinate system includes K continuous discrete points, the K continuous discrete points include K points with the harmonic energy value as the horizontal axis and the configuration parameter as the vertical axis, so that the harmonic energy value corresponding to the discrete point closest to the vertical axis can be obtained from the coordinate system as the minimum harmonic energy value, and the configuration parameter of the discrete point corresponding to the minimum harmonic energy value is used as the target configuration parameter.
[0049] S200. Filter out a fixed set CE from the K points corresponding to the K configuration parameters, wherein the fixed set CE includes N consecutive reference points, and the reference points are located on one side of the extreme point P corresponding to the target configuration parameters, and the reference point in the fixed set CE closest to the extreme point P is spaced from the extreme point P by M points corresponding to the configuration parameters.
[0050] Specifically, since the K configuration parameters are arranged in order of magnitude, N continuous reference points located on one side of the extreme point P corresponding to the target configuration parameter can be selected from the K configuration parameters arranged in order of magnitude as the fixed set CE, and the reference point closest to the extreme point P among the N reference points included in the fixed set CE is separated from the extreme point P by M interference points, the reference point is the point corresponding to the configuration parameter on one side of the extreme point P, and the interference point is all the points corresponding to the K configuration parameters, that is, the points located on one side of the extreme point P among the K points and excluding all the reference points in the fixed set CE. For example, Figure 5 As shown in the figure, assuming N=3, M=5, the configuration parameters are the horizontal axis, and the harmonic energy value is the vertical axis. At this time, the 5 configuration parameters on the left side of the extreme point P correspond to the interference point Q L0 , Q L1 , Q L2 , Q L3 and Q L4 , the fixed set CE includes N fixed reference points, namely the first reference point E0 to the third reference point E2.
[0051] S300, selecting at least two candidate sets CHw from the K points corresponding to the K configuration parameters, wherein the candidate sets CHw include N consecutive candidate points, and the candidate points are located on the other side of the extreme point P; there is a different candidate point between two adjacent candidate sets CHw.
[0052] Specifically, since the K configuration parameters are arranged in order of magnitude, N consecutive candidate points located on the other side of the extreme point P corresponding to the target configuration parameter can be selected from the K configuration parameters arranged in order of magnitude as a candidate set CHw. Similarly, another candidate set CHw can also be selected. The candidate point is the point corresponding to the configuration parameter on the other side of the extreme point P. For example, Figure 5 As shown, assuming N=3, the configuration parameter is the horizontal axis, and the harmonic energy value is the vertical axis. At this time, a candidate set CHw on the right side of the extreme point P, namely the first candidate set CH1, includes the first candidate point H0 to the third candidate point H2, and another candidate set CHw on the right side of the extreme point P, namely the second candidate set CH2, includes the second candidate point H1 to the fourth candidate point H3. The first candidate set CH1 is adjacent to the second candidate set CH2 and there is partial overlap.
[0053] S400, performing calculations based on the harmonic energy values corresponding to the N reference points in the fixed set CE and the harmonic energy values corresponding to the N candidate points in at least two candidate sets CHw, and determining optimal configuration parameters based on all calculation results.
[0054] Specifically, the calculation result corresponding to the combination can be calculated based on the fixed set CE and any one of the at least two candidate sets CHw as a combination, and the calculation result corresponding to the combination can be calculated based on the fixed set CE and another candidate set CHw of the at least two candidate sets CHw as another combination, and so on. According to the number of candidate sets CHw obtained in the above embodiment, the corresponding number of calculation results can be calculated. An optimal configuration parameter is screened from the K configuration parameters according to a number of calculation results that are the same as the number of candidate sets CHw.
[0055] Since the optimal value point has a chance to appear at half the scanning step length, the application improves the equivalent adjustment resolution, and can reduce the total number of scanning points to half of the original under the same scanning resolution. Therefore, a higher scanning resolution can be obtained under the same number of scanning points, or the total number of scanning points can be reduced under the premise of maintaining the same scanning resolution. Because the total number of scanning points is reduced under the premise of maintaining the same scanning resolution, the scanning time is greatly reduced, thereby improving the calibration efficiency. In addition, the application performs calculations based on a fixed set CE and at least two selected sets CHw, and determines the optimal configuration parameters based on all calculation results, which can avoid the interference of noise, resulting in the optimal value point selected by the algorithm may not be the actual optimal value point, causing random deviations, so that the random interference of noise on the algorithm's selection of the optimal value point can be greatly reduced, the repeatability of the algorithm can be improved, and the performance fluctuations after multiple starts of the algorithm can be reduced.
[0056] In some embodiments, the configuration parameters include any one or both of an offset configuration parameter and a duty cycle configuration parameter, the duty cycle configuration parameter is used to adjust the duty cycle of the clock signal, and the offset configuration parameter is used to adjust the clock offset of the clock signal.
[0057] Specifically, the configuration parameter may be an offset configuration parameter for adjusting the clock offset of the clock signal, or a duty cycle configuration parameter for adjusting the duty cycle of the clock signal, or an offset configuration parameter for adjusting the clock offset of the clock signal and a duty cycle configuration parameter for adjusting the duty cycle of the clock signal.
[0058] In some implementations, there is a different candidate point between two adjacent to-be-selected sets CHw.
[0059] Specifically, there is a different candidate point between each two adjacent candidate sets CHw on the other side of the extreme point P. Continuing with the above example, there is a different candidate point between the first candidate set CHw and the second candidate set CHw, that is, the candidate point H0 is different from the candidate point H3, that is, the two adjacent candidate sets CHw slide in a manner of scanning step S of 1, with a difference of one candidate point, and the scanning step of 1 includes that the horizontal axis scanning unit step is 1 and the vertical axis scanning unit step is 1.
[0060] In some implementations, the step S400, calculating according to the harmonic energy values corresponding to the N reference points in the fixed set CE and the harmonic energy values corresponding to the N candidate points in at least two of the candidate sets CHw, and determining the optimal configuration parameters according to all calculation results includes the steps of:
[0061] S410: Calculate the sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set CE and the harmonic energy values corresponding to all the candidate points in any of the candidate sets CHw.
[0062] Specifically, Figure 5 As shown, there are N reference points in the fixed set CE, each of which corresponds to a harmonic energy value, and there are N candidate points in each candidate set CHw, each of which corresponds to a harmonic energy value. According to the harmonic energy values corresponding to all reference points in the fixed set CE and the harmonic energy values corresponding to all candidate points in the current candidate set CHw, the square sum of the energy differences corresponding to the fixed set CE and the current candidate set CHw can be calculated. Similarly, the square sum of the energy differences corresponding to the fixed set CE and another candidate set CHw can be calculated. In this way, the square sum of the energy differences corresponding to the fixed set CE and each candidate set CHw can be calculated.
[0063] In some implementations, the step of calculating the sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set CE and the harmonic energy values corresponding to all the candidate points in any of the candidate sets CHw comprises the following steps:
[0064] Substitute the harmonic energy values corresponding to all the reference points in the fixed set CE and the harmonic energy values corresponding to all the candidate points in the candidate set CHw into the following formula to calculate the corresponding energy difference square sum;
[0065] ;
[0066] Wherein, Lj is the square sum of the energy differences between the fixed set CE and the jth selected set CHw, Ei is the harmonic energy value corresponding to the i-th reference point in the fixed set CE, is the harmonic energy value corresponding to the i-th candidate point in the j-th candidate set CHw, and i and j are both positive integers.
[0067] Specifically, Figure 5 As shown, there are N reference points in the fixed set CE, each of which corresponds to a harmonic energy value, and the N reference points in the fixed set CE can be sorted by serial number according to the distance between each reference point and the extreme point P. For example, the serial number of the N reference points in the fixed set CE is positively correlated with the distance between the N reference points and the extreme point P (the distance in this application is the absolute value of the distance value), the greater the distance between the reference point and the extreme point P, the greater the serial number of the reference point, and the smaller the distance between the reference point and the extreme point P, the smaller the serial number of the reference point, that is, the reference point closest to the extreme point P in the fixed set CE (that is, the distance to the extreme point P is the smallest) can be marked as the first reference point, the reference point second closest to the extreme point P in the fixed set CE (that is, the distance to the extreme point P is the second smallest) can be marked as the second reference point, and so on, the reference point farthest from the extreme point P in the fixed set CE (that is, the distance to the extreme point P is the largest) can be marked as the Nth reference point. Similarly, there are N candidate points in each candidate set CHw, and each candidate point corresponds to a harmonic energy value. The N reference points in the fixed set CE can be sorted by the distance between each reference point and the extreme point P. For example, the candidate point in the candidate set CHw that is closest to the extreme point P (that is, the distance to the extreme point P is the smallest) can be marked as the first candidate point, and the candidate point in the candidate set CHw that is second closest to the extreme point P (that is, the distance to the extreme point P is the second smallest) can be marked as the second candidate point, and so on, the candidate point in the candidate set CHw that is farthest from the extreme point P (that is, the distance to the extreme point P is the largest) can be marked as the Nth candidate point. The energy difference is calculated by calculating the difference between the harmonic energy values corresponding to the reference points and candidate points with the same sequence number in the fixed set CE and the current candidate set CHw, and the square of the energy difference is calculated to obtain the square of the energy difference. The square of the energy difference corresponding to all the reference points and candidate points with the same sequence number in the fixed set CE and the current candidate set CHw can be calculated, that is, N squares of energy difference are obtained, and the sum of the squares of the energy difference corresponding to the fixed set CE and the current candidate set CHw is calculated by summing these N squares of energy difference. Similarly, the square sum of the energy difference corresponding to the fixed set CE and another candidate set CHw can be calculated, so the square sum of the energy difference corresponding to the fixed set CE and each candidate set CHw can be calculated.
[0068] Of course, the serial numbers of the N reference points in the fixed set CE are negatively correlated with the distance between the N reference points and the extreme point P. The larger the distance between the reference point and the extreme point P, the smaller the serial number of the reference point, and the smaller the distance between the reference point and the extreme point P, the larger the serial number of the reference point. Similarly, the serial numbers of the N candidate points in the candidate set CHw are negatively correlated with the distance between the N candidate points and the extreme point P. The larger the distance between the candidate point and the extreme point P, the smaller the serial number of the candidate point, and the smaller the distance between the candidate point and the extreme point P, the larger the serial number of the candidate point.
[0069] S420. Calculate average configuration parameters according to the configuration parameters corresponding to the reference points of the fixed set CE and the configuration parameters corresponding to the candidate points of the target set, and use the average configuration parameters as the optimal configuration parameters; the target set is a candidate set CHw corresponding to the minimum sum of squares of energy differences.
[0070] Specifically, Figure 5 As shown, the average configuration parameter is calculated based on the configuration parameters corresponding to the reference points and candidate points of the same sequence number in the fixed set CE and the target set. For example, assuming that the candidate set CHw is the target set, the first reference point E0 in the fixed set CE is axially symmetric with the first candidate point H0 in the target set along the line segment L0, the second reference point E1 in the fixed set CE is axially symmetric with the second candidate point H1 in the target set along the line segment L0, and the third reference point E2 in the fixed set CE is axially symmetric with the third candidate point H2 in the target set along the line segment L0. In this way, the average configuration parameter can be calculated based on the configuration parameter W corresponding to the first reference point E0 in the fixed set CE. E0 The configuration parameter W corresponding to the first candidate point H0 in the target set H0 The calculated mean is used as the average configuration parameter W0, that is, W0=(W E0 +W H0 ) / 2. It is also possible to use the configuration parameter W corresponding to the second reference point E1 in the fixed set CE E1 The configuration parameter W corresponding to the second candidate point H1 in the target set H1 The calculated mean is used as the average configuration parameter W0, that is, W0=(W E1 +W H1 ) / 2. Of course, it is also possible to use the configuration parameter W corresponding to the third reference point E2 in the fixed set CE E2 and the configuration parameter W corresponding to the third candidate point H2 in the target set H2 The calculated mean is used as the average configuration parameter W0, that is, W0=(W E2 +W H2 ) / 2.
[0071] This application is based on theoretical research on time-interleaved DAC. By continuously scanning the duty cycle of the clock or the clock offset configuration parameters, the observed output interleaved harmonic energy curve will strictly present a left-right symmetrical "V" shape with the optimal value point. The points farther away from the optimal value point are less affected by noise because the interleaved harmonic energy itself is larger and much higher than the noise energy. This application uses the comparison between the candidate set CHw and the fixed set CE to find the best alignment position by minimizing the energy value difference of the data on both sides, that is, using the harmonic energy values of multiple discrete points farther away from the minimum value point of the harmonic energy value, the midpoint of the symmetry axis is obtained as the optimal value point, as follows Figure 5 As shown, first scan and obtain the clock signals corresponding to multiple configuration parameters, obtain the harmonic energy values under all configuration parameters, and find the configuration parameter with the smallest harmonic energy value; in addition to the M points on the left side of the configuration parameter with the smallest harmonic energy value, select N consecutive points as the fixed set CE for calculating the symmetry axis, taking N=3 as an example, and their harmonic energy values are recorded as E0, E1, and E2 respectively; on the other side of the configuration parameter with the smallest harmonic energy value, select N consecutive points as the candidate set CHw for calculating the symmetry axis, taking N=3 as an example, and their harmonic energy values are recorded as H0, H1, and H2 respectively, and calculate the square sum of the energy differences of the corresponding points on both sides L0=(E0-H0) 2 +(E1-H1) 2 +(E2-H2) 2 , the candidate set CHw on the right slides j times in turn, and the square sum of the energy differences between the fixed set CE and the candidate set CHw corresponding to each slide can be calculated by referring to the above process respectively L1=(E0-H1) 2 +(E1-H2) 2 +(E2-H3) 2 , the sum of squares of energy differences L2=(E0-H2) 2 +(E1-H3) 2 +(E2-H4) 2 , until the corresponding energy difference square sum Lj=(E0-Hj) 2 +(E1-Hj+1) 2 +(E2-Hj+2) 2 Find the minimum value among L0, L1, L2, ..., Lj. The configuration parameter corresponding to the midpoint between the position of the candidate set CHw and the position of the fixed set CE is the optimal configuration parameter. Figure 5 As shown, through the above embodiment, assuming that L0 is the minimum value, the midpoint between the position of the first candidate set CH0 and the position of the fixed set CE is the interference point Q L0 , interference point Q L0 The corresponding configuration parameters are the optimal configuration parameters.
[0072] The optimal value point of this application has a chance to appear at half the scanning step length, which improves the equivalent adjustment resolution and can reduce the total number of scanning points to half of the original while maintaining the same scanning resolution. This application reduces the interference of noise on the optimal value point selected by the algorithm, improves the repeatability of the algorithm, and reduces performance fluctuations after multiple starts of the algorithm.
[0073] In a second aspect, the present application also provides a timing calibration system, comprising:
[0074] An acquisition module is used to find out a target configuration parameter according to the harmonic energy values corresponding to K configuration parameters; the K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer;
[0075] A screening module, configured to screen out a fixed set CE from the K points corresponding to the K configuration parameters, wherein the fixed set CE includes N consecutive reference points, the reference points are located on one side of the extreme point P corresponding to the target configuration parameter, and the reference point in the fixed set CE closest to the extreme point P is separated from the extreme point P by M points corresponding to the configuration parameters;
[0076] The screening module is further used to screen out at least two candidate sets CHw from the K points corresponding to the K configuration parameters, wherein the candidate sets CHw include N consecutive candidate points, and the candidate points are located on the other side of the extreme point P; there is a different candidate point between two adjacent candidate sets CHw;
[0077] The processing module calculates according to the harmonic energy values corresponding to the N reference points in the fixed set CE and the harmonic energy values corresponding to the N candidate points in at least two candidate sets CHw, and determines the optimal configuration parameters according to all the calculation results.
[0078] In some embodiments, the configuration parameters include any one or both of an offset configuration parameter and a duty cycle configuration parameter, the duty cycle configuration parameter is used to adjust the duty cycle of the clock signal, and the offset configuration parameter is used to adjust the clock offset of the clock signal.
[0079] In some implementations, there is a different candidate point between two adjacent to-be-selected sets CHw.
[0080] In some embodiments, the processing module includes:
[0081] A calculation unit, configured to calculate the sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set CE and the harmonic energy values corresponding to all the candidate points in any of the candidate sets CHw;
[0082] A processing unit is used to calculate an average configuration parameter according to the configuration parameters corresponding to the reference points of the fixed set CE and the configuration parameters corresponding to the candidate points of the target set, and use the average configuration parameter as the optimal configuration parameter; the target set is a candidate set CHw corresponding to the minimum sum of squares of the energy differences.
[0083] In some implementations, the calculation unit is used to substitute the harmonic energy values corresponding to all the reference points in the fixed set CE and the harmonic energy values corresponding to all the candidate points in the candidate set CHw into the following formula to calculate the corresponding sum of squares of the energy differences;
[0084] ;
[0085] Wherein, Lj is the square sum of the energy differences between the fixed set CE and the jth selected set CHw, Ei is the harmonic energy value corresponding to the i-th reference point in the fixed set CE, is the harmonic energy value corresponding to the i-th candidate point in the j-th candidate set CHw, and i and j are both positive integers.
[0086] In specific implementation, each of the above units or modules can be implemented as an independent entity, or can be arbitrarily combined and implemented as the same or several entities. Each of the above units or modules can be applied to the timing calibration system with reference to the previous method embodiment, and will not be repeated here. The high-speed communication system includes a timing calibration system to reduce the interference of noise on the optimal value point selected by the algorithm, improve the repeatability of the algorithm, reduce the performance fluctuation after multiple startups of the algorithm, and thus improve the communication stability of the high-speed communication system.
[0087] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by a processor to implement the above method embodiments. The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0088] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the timing calibration system and its corresponding units described above can refer to the description of the timing calibration method in the above embodiment, and will not be repeated here.
[0089] The above is a detailed introduction to a timing calibration method and system provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A timing calibration method, characterized in that: Includes steps: Find the target configuration parameter according to the harmonic energy values corresponding to the K configuration parameters; the K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer; Filtering a fixed set from the K points corresponding to the K configuration parameters, the fixed set comprising N consecutive reference points, the reference points being located on one side of the extreme value point corresponding to the target configuration parameter, and the reference point in the fixed set closest to the extreme value point being spaced from the extreme value point by M points corresponding to the configuration parameters; Filter out at least two candidate sets from the K points corresponding to the K configuration parameters, the candidate sets including N consecutive candidate points, the candidate points being located on the other side of the extreme point; there is a different candidate point between two adjacent candidate sets; Calculation is performed based on the harmonic energy values corresponding to the N reference points in the fixed set and the harmonic energy values corresponding to the N candidate points in at least two of the candidate sets, and the optimal configuration parameters are determined based on all calculation results.
2. The timing calibration method according to claim 1, characterized in that: The configuration parameters include any one or both of an offset configuration parameter and a duty cycle configuration parameter. The duty cycle configuration parameter is used to adjust the duty cycle of the clock signal, and the offset configuration parameter is used to adjust the clock offset of the clock signal.
3. The timing calibration method according to claim 1, characterized in that: There is a different candidate point between two adjacent to-be-selected sets.
4. The timing calibration method according to claim 1, characterized in that: The step of calculating the harmonic energy values corresponding to the N reference points in the fixed set and the harmonic energy values corresponding to the N candidate points in at least two of the candidate sets, and determining the optimal configuration parameters according to all the calculation results comprises the following steps: The sum of squares of energy differences is calculated according to the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in any of the candidate sets; The average configuration parameters are calculated according to the configuration parameters corresponding to the reference points of the fixed set and the configuration parameters corresponding to the candidate points of the target set, and the average configuration parameters are used as the optimal configuration parameters; the target set is a candidate set corresponding to the smallest sum of squares of the energy differences.
5. The timing calibration method according to claim 4, characterized in that: The step of calculating the sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in any of the candidate sets comprises the following steps: Substituting the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in the selected set into the following formula, the corresponding sum of squares of the energy differences is calculated; ; Wherein, Lj is the square sum of the energy differences between the fixed set and the jth selected set, Ei is the harmonic energy value corresponding to the i-th reference point in the fixed set, is the harmonic energy value corresponding to the i-th candidate point in the j-th candidate set, and i and j are both positive integers.
6. A timing calibration system, characterized in that: include: An acquisition module is used to find out the target configuration parameters according to the harmonic energy values corresponding to the K configuration parameters; The K configuration parameters are arranged in order of size, the target configuration parameter is the configuration parameter with the smallest harmonic energy value, and K is a positive integer; A screening module, configured to screen out a fixed set from the K points corresponding to the K configuration parameters, wherein the fixed set includes N consecutive reference points, the reference points are located on one side of the extreme value point corresponding to the target configuration parameter, and the reference point in the fixed set closest to the extreme value point is separated from the extreme value point by M points corresponding to the configuration parameters; The screening module is further used to screen out at least two candidate sets from the K points corresponding to the K configuration parameters, wherein the candidate sets include N consecutive candidate points, and the candidate points are located on the other side of the extreme point; there is a different candidate point between two adjacent candidate sets; The processing module calculates according to the harmonic energy values corresponding to the N reference points in the fixed set and the harmonic energy values corresponding to the N candidate points in at least two of the candidate sets, and determines the optimal configuration parameters according to all the calculation results.
7. The timing calibration system according to claim 6, characterized in that: The configuration parameters include any one or both of an offset configuration parameter and a duty cycle configuration parameter. The duty cycle configuration parameter is used to adjust the duty cycle of the clock signal, and the offset configuration parameter is used to adjust the clock offset of the clock signal.
8. The timing calibration system according to claim 6, characterized in that: There is a different candidate point between two adjacent to-be-selected sets.
9. The timing calibration system according to claim 6, characterized in that: The processing module comprises: A calculation unit, configured to calculate a sum of squares of energy differences according to the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in any of the candidate sets; A processing unit is used to calculate an average configuration parameter based on the configuration parameters corresponding to the reference points of the fixed set and the configuration parameters corresponding to the candidate points of the target set, and use the average configuration parameter as the optimal configuration parameter; the target set is a candidate set corresponding to the smallest sum of squares of the energy differences.
10. The timing calibration system according to claim 9, characterized in that: The calculation unit is used to substitute the harmonic energy values corresponding to all the reference points in the fixed set and the harmonic energy values corresponding to all the candidate points in the candidate set into the following formula to calculate the corresponding sum of squares of the energy differences; ; Wherein, Lj is the square sum of the energy differences between the fixed set and the jth selected set, Ei is the harmonic energy value corresponding to the i-th reference point in the fixed set, is the harmonic energy value corresponding to the i-th candidate point in the j-th candidate set, and i and j are both positive integers.
Citation Information
Patent Citations
System and method for timing calibration of time-interleaved data converters
US20060250288A1
Compensating for harmonic distortion in an instrument channel
US20080158026A1