CN117240427A - TIADC system time skew error calibration method based on AGA algorithm - Google Patents
TIADC system time skew error calibration method based on AGA algorithm Download PDFInfo
- Publication number
- CN117240427A CN117240427A CN202310648241.6A CN202310648241A CN117240427A CN 117240427 A CN117240427 A CN 117240427A CN 202310648241 A CN202310648241 A CN 202310648241A CN 117240427 A CN117240427 A CN 117240427A
- Authority
- CN
- China
- Prior art keywords
- time skew
- channel
- chromosomes
- chromosome
- tiadc system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 title claims abstract description 51
- 210000000349 chromosome Anatomy 0.000 claims abstract description 129
- 238000005070 sampling Methods 0.000 claims abstract description 36
- 230000035772 mutation Effects 0.000 claims abstract description 35
- 238000001514 detection method Methods 0.000 claims abstract description 20
- 230000002068 genetic effect Effects 0.000 claims abstract description 17
- 108090000623 proteins and genes Proteins 0.000 claims abstract description 5
- 230000003044 adaptive effect Effects 0.000 claims description 16
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000005314 correlation function Methods 0.000 claims description 6
- 238000010187 selection method Methods 0.000 claims description 4
- 230000001186 cumulative effect Effects 0.000 claims description 3
- 230000003111 delayed effect Effects 0.000 claims description 3
- 238000010845 search algorithm Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 5
- 238000012545 processing Methods 0.000 abstract description 2
- 230000006978 adaptation Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 14
- 238000012795 verification Methods 0.000 description 9
- 238000001228 spectrum Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
本发明属于信号采样与处理技术领域,具体涉及基于AGA算法的TIADC系统时间偏斜误差校准方法。本发明包括:S1:评估时间偏斜对TIADC系统性能的影响;S2:随机选取一组时间偏斜τi与采样周期TS之比r作为种群中的染色体;S3:计算种群中染色体的适应值来推进染色体的交叉和变异;S4:选择种群中优秀的染色体进行繁衍并遗传其优秀的基因;S5:对种群中染色体遗传信息进行交换从而得到更加优良的染色体;S6:根据染色体的适应值自适应调整突变概率;S7:寻找出种群中最优染色体;S8:利用可变延迟线对通道进行校准。本发明方法对于时间偏斜的检测速度较快,估计精度和校准精度较高,并且当输入信号接近奈奎斯特频率时也有良好的校准效果。
The invention belongs to the technical field of signal sampling and processing, and specifically relates to a TIADC system time skew error calibration method based on the AGA algorithm. The invention includes: S1: Evaluate the impact of time skew on the performance of the TIADC system; S2: Randomly select a group of time skew τ i and the ratio r of the sampling period T S as the chromosomes in the population; S3: Calculate the adaptation of the chromosomes in the population value to promote the crossover and mutation of chromosomes; S4: Select the excellent chromosomes in the population for reproduction and inherit their excellent genes; S5: Exchange the genetic information of the chromosomes in the population to obtain better chromosomes; S6: According to the fitness value of the chromosomes Adaptively adjust the mutation probability; S7: Find the optimal chromosome in the population; S8: Calibrate the channel using a variable delay line. The method of the present invention has fast detection speed for time skew, high estimation accuracy and calibration accuracy, and also has good calibration effect when the input signal is close to the Nyquist frequency.
Description
技术领域Technical field
本发明属于信号采样与处理技术领域,具体涉及基于AGA算法的TIADC系统时间偏斜误差校准方法。The invention belongs to the technical field of signal sampling and processing, and specifically relates to a TIADC system time skew error calibration method based on an AGA algorithm.
背景技术Background technique
现代通信技术的许多应用如雷达通信、示波器等都需要高速高精度模数转换器(ADC),由于精度与采样速率之间的相互制约,单个ADC很难同时满足高精度和高采样率。分时交替采样技术的出现解决了该难题,该技术利用多个高精度的ADC循环交替采样,以此来同时实现高精度和高采样率,这些ADC组成了分时交替模数转换器(TIADC)系统。Many applications of modern communication technology, such as radar communications, oscilloscopes, etc., require high-speed and high-precision analog-to-digital converters (ADCs). Due to the mutual constraints between accuracy and sampling rate, it is difficult for a single ADC to meet high accuracy and high sampling rate at the same time. The emergence of time-sharing alternating sampling technology solves this problem. This technology uses multiple high-precision ADCs to cyclically alternate sampling to achieve high accuracy and high sampling rate at the same time. These ADCs form a time-sharing alternating analog-to-digital converter (TIADC). )system.
然而,由于电路的非理想特性以及TIADC不同通道之间的不匹配特性,就会造成额外的误差,从而导致TIADC系统的性能下降。因此,为了更好的发挥TIADC的作用,研究如何校准TIADC系统中的各种失配误差,改善TIADC系统的整体性能具有很重要的意义。However, due to the non-ideal characteristics of the circuit and the mismatch characteristics between different TIADC channels, additional errors will be caused, resulting in a degradation of the performance of the TIADC system. Therefore, in order to better play the role of TIADC, it is of great significance to study how to calibrate various mismatch errors in the TIADC system and improve the overall performance of the TIADC system.
通道失配可以分为偏置失配、增益失配和时间失配,其中对于偏置失配以及增益失配的校准较为简单,而对于时间偏失配的校准则较为困难,且校准方法存在许多限制和缺陷。文献Z.Lu,X.Peng,Z.Ren,H.Tang and B.Guo,"A Timing Mismatch BackgroundCalibration Technique with High-Precision Skew Estimation,"2021IEEE 14thInternational Conference on ASIC(ASICON),2021,pp.1-4,doi:10.1109/ASICON52560.2021.9620473.利用通道输出之间的互相关来估计子ADC的时间偏斜,并利用延迟线进行校准,该方法复杂度较低,但是该方法过于依赖输入信号的统计特征,在实际中,输入的幅度、带宽和统计特征会随时间而变化。文献M.V.N.Chakravarthi andC.M.Bhuma,"Detection and Correction ofSampling-Time-Errors in an N-ChannelTime-Interleaved ADC using Genetic Algorithm,"201714th IEEE India CouncilInternational Conference(INDICON),2017,pp.1-6,doi:10.1109/INDICON.2017.8487561.采用遗传算法来检测子ADC的时间偏斜,并且通过分数延迟滤波器实现校准,其缺点在于该方法需要引入多条参考通道,以此来完成时间偏斜检测,硬件资源消耗较大。文献Y.X.Zou andX.J.Xu,"Blind Timing Skew Estimation Using SourceSpectrum Sparsity in Time-Interleaved ADCs,"in IEEE Transactions onInstrumentation and Measurement,vol.61,no.9,pp.2401-2412,Sept.2012,doi:10.1109/TIM.2012.2192337.利用输入信号的稀疏特征并通过通道输出的频谱信息估计出时间偏斜,该方法由于使用子通道输出的频谱信息来检测时间偏斜,故存在频谱泄露的问题。大多数校准方法都存在依赖输入信号特征、硬件资源消耗大、时间偏斜估计速度慢、估计精度差等问题。Channel mismatch can be divided into offset mismatch, gain mismatch and time mismatch. The calibration of offset mismatch and gain mismatch is relatively simple, while the calibration of time offset mismatch is more difficult, and calibration methods exist. Many limitations and flaws. Document Z.Lu, 4, doi:10.1109/ASICON52560.2021.9620473. Use the cross-correlation between channel outputs to estimate the time skew of the sub-ADC, and use the delay line for calibration. This method has low complexity, but this method relies too much on the statistics of the input signal. Characteristics,In practice, the amplitude, bandwidth, and statistical,characteristics of the input change over time. Document M.V.N.Chakravarthi and C.M.Bhuma, "Detection and Correction ofSampling-Time-Errors in an N-ChannelTime-Interleaved ADC using Genetic Algorithm," 201714th IEEE India Council International Conference (INDICON), 2017, pp.1-6, doi: 10.1109/INDICON.2017.8487561. A genetic algorithm is used to detect the time skew of the sub-ADC, and calibration is achieved through a fractional delay filter. The disadvantage is that this method requires the introduction of multiple reference channels to complete the time skew detection, hardware resources Consumption is large. Document Y.X.Zou andX.J.Xu, "Blind Timing Skew Estimation Using SourceSpectrum Sparsity in Time-Interleaved ADCs," in IEEE Transactions on Instrumentation and Measurement, vol.61, no.9, pp.2401-2412, Sept.2012, doi :10.1109/TIM.2012.2192337. The sparse characteristics of the input signal are used to estimate the time skew through the spectrum information of the channel output. This method uses the spectrum information of the sub-channel output to detect the time skew, so there is a problem of spectrum leakage. Most calibration methods have problems such as dependence on input signal characteristics, high hardware resource consumption, slow time skew estimation, and poor estimation accuracy.
发明内容Contents of the invention
本发明的目的在于:本发明提出了基于AGA算法的TIADC系统时间偏斜误差校准方法,该方法解决了TIADC系统中估计和校准最难的时间偏斜问题。此外,本发明提出的方法对于时间偏斜的检测速度较快,估计精度和校准精度较高,并且当输入信号接近奈奎斯特频率时也有良好的校准效果。The purpose of the present invention is: the present invention proposes a TIADC system time skew error calibration method based on the AGA algorithm, which solves the most difficult time skew problem in estimation and calibration in the TIADC system. In addition, the method proposed by the present invention has faster detection speed of time skew, higher estimation accuracy and calibration accuracy, and has good calibration effect when the input signal is close to the Nyquist frequency.
本发明为实现上述发明目的,采取的技术方案如下:In order to achieve the above-mentioned object, the technical solutions adopted by the present invention are as follows:
基于AGA算法的TIADC系统时间偏斜误差校准方法,包括以下步骤:The TIADC system time skew error calibration method based on the AGA algorithm includes the following steps:
S1:评估时间偏斜:评估时间偏斜τi对TIADC系统性能的影响;S1: Evaluate time skew: evaluate the impact of time skew τ i on TIADC system performance;
S2:建立初始种群:随机选取一组时间偏斜τi与采样周期TS之比r作为种群中的染色体,然后对其乘以1000并将其转化为10位二进制数,在最高位前增加一位二进制位,表示时间偏斜的正负;其最高位为1代表的时间偏斜为超前的情况,0代表滞后的情况;S2: Establish the initial population: Randomly select a group of time skew τ i and the ratio r of the sampling period T S as the chromosomes in the population, then multiply it by 1000 and convert it into a 10-digit binary number, increasing before the highest bit One binary bit represents the positive or negative of the time skew; the highest bit is 1, which means the time skew is leading, and 0, which is lagging;
S3:计算种群中染色体的适应值:选取经过可变延迟线校准后的通道输出与相邻通道输出之间的平均绝对差作为适应值函数,推进染色体的交叉和变异;S3: Calculate the fitness value of chromosomes in the population: select the average absolute difference between the channel output calibrated by the variable delay line and the output of adjacent channels as the fitness value function to promote the crossover and mutation of chromosomes;
S4:染色体选择:使用指数排序选择算法作为AGA的选择策略,选择种群中优秀的染色体进行繁衍并遗传其优秀的基因;S4: Chromosome selection: Use the exponential sorting selection algorithm as the selection strategy of AGA to select excellent chromosomes in the population for reproduction and inherit their excellent genes;
S5:自适应交叉:依据交叉概率Pc对种群中染色体的遗传信息进行交换从而得到更加优良的染色体;S5: Adaptive crossover: According to the crossover probability P c, the genetic information of the chromosomes in the population is exchanged to obtain better chromosomes;
S6:自适应变异:根据染色体的适应值f自适应调整变异概率Pm,保留优秀的染色体,同时采用多点变异的方法来对染色体进行突变,使得种群更具多样性;S6: Adaptive mutation: Adaptively adjust the mutation probability P m according to the fitness value f of the chromosome, retain the excellent chromosomes, and use the multi-point mutation method to mutate the chromosomes to make the population more diverse;
S7:寻找最优染色体:找出种群中适应值最小的染色体;S7: Find the optimal chromosome: find the chromosome with the smallest fitness value in the population;
S8:校准:完成对通道的时间偏斜检测后,利用可变延迟线对通道进行校准。S8: Calibration: After completing the time skew detection of the channel, use the variable delay line to calibrate the channel.
进一步的作为本发明的优选技术方案,所述步骤S1具体包括以下步骤:As a further preferred technical solution of the present invention, step S1 specifically includes the following steps:
S1.1:采用正弦信号作为TIADC系统的输入信号,正弦信号的表达式为:S1.1: Use a sinusoidal signal as the input signal of the TIADC system. The expression of the sinusoidal signal is:
x(t)=sin(ωint)x(t)=sin(ω in t)
其中,ωin为正弦信号的频率;Among them, ω in is the frequency of the sinusoidal signal;
S1.2:经过TIADC系统采样后S1.1中输入的正弦信号的表达式为:S1.2: The expression of the sinusoidal signal input in S1.1 after sampling by the TIADC system is:
其中,M为TIADC系统的通道数目,TS为TIADC系统内单个ADC的采样周期,τi为TIADC系统中第i个通道的时间偏斜量;Among them, M is the number of channels in the TIADC system, T S is the sampling period of a single ADC in the TIADC system, and τ i is the time skew of the i-th channel in the TIADC system;
S1.3:对S1.1中输入信号的表达式进行傅里叶变换FT得到:S1.3: Perform Fourier transform FT on the expression of the input signal in S1.1 to obtain:
S1.4:对S1.2中经过TIADC系统采样后正弦信号的表达式进行离散傅里叶变换DFT得到其在频域的表达式为:S1.4: Perform discrete Fourier transform DFT on the expression of the sinusoidal signal sampled by the TIADC system in S1.2 to obtain its expression in the frequency domain:
其中,ωS为TIADC系统的采样频率;Among them, ω S is the sampling frequency of the TIADC system;
S1.5:步骤S1.4中得到了时间偏斜误差在频域所产生的影响,在任意M通道TIADC系统中,由于时间偏斜误差引起的谐波分量位于:S1.5: In step S1.4, the impact of time skew error in the frequency domain was obtained. In any M-channel TIADC system, the harmonic component caused by time skew error is located at:
S1.6:采用时间偏斜和无杂散动态范围SFDR来衡量TIADC系统的性能,对两者建立的函数关系为:S1.6: Time skew and spurious-free dynamic range SFDR are used to measure the performance of the TIADC system. The functional relationship between the two is:
进一步的作为本发明的优选技术方案,所述步骤S3具体包括以下步骤:As a further preferred technical solution of the present invention, step S3 specifically includes the following steps:
S3.1:对于TIADC系统,选取经过可变延迟线校准后的通道输出与相邻通道输出之间的平均绝对差作为适应值函数:S3.1: For the TIADC system, select the average absolute difference between the channel output after variable delay line calibration and the adjacent channel output as the fitness value function:
Fi=|E(|xi_d-xref1|-|xref2-xi_d|)|F i =|E(|x i_d -x ref1 |-|x ref2 -x i_d |)|
其中,xref1和xref2为相邻的参考通道,xi_d为经可变延迟线延迟后的通道输出;Among them, x ref1 and x ref2 are adjacent reference channels, and x i_d is the channel output after being delayed by the variable delay line;
S3.2:选择四通道TIADC系统中的两个通道作为适应值计算对象,假设通道0是理想的,通道1只包含时间偏斜,建立|x1-x0|与|x2-x1|与时间偏斜的关系;S3.2: Select two channels in the four-channel TIADC system as fitness value calculation objects. Assume that channel 0 is ideal and channel 1 only contains time skew. Establish |x 1 -x 0 | and |x 2 -x 1 |Relationship with time skew;
S3.3:在S3.2中x1表示通道1的采样值,x0表示通道0的采样值,x2表示通道0的下一个采样值,从统计角度来看,当样本数量较多时,|x1-x0|与|x2-x1|的平均差值与时间偏斜成比例,平均差值与时间偏斜的关系为:S3.3: In S3.2, x 1 represents the sample value of channel 1, x 0 represents the sample value of channel 0, and x 2 represents the next sample value of channel 0. From a statistical point of view, when the number of samples is large, The average difference between |x 1 -x 0 | and |x 2 -x 1 | is proportional to the time skew. The relationship between the average difference and the time skew is:
E[(x1-x0)2]-E[(x2-x1)2]∝τ1 E[(x 1 -x 0 ) 2 ]-E[(x 2 -x 1 ) 2 ]∝τ 1
其中,τ1表示TIADC系统内单个ADC通道的时间偏斜量;Among them, τ 1 represents the time skew of a single ADC channel in the TIADC system;
S3.4:将S3.3中通道1的采样值x1与通道0的采样值x0的相关函数E[(x1-x0)2]展开得到:S3.4: Expand the correlation function E[(x 1 -x 0 ) 2 ] between the sampling value x 1 of channel 1 and the sampling value x 0 of channel 0 in S3.3 to get:
其中,σ2表示平均功率;Among them, σ 2 represents the average power;
S3.5:将S3.3中通道0的下一个采样值x2与通道1的采样值x1的相关函数E[(x2-x1)2]展开得到:S3.5: Expand the correlation function E[(x 2 -x 1 ) 2 ] between the next sample value x 2 of channel 0 and the sample value x 1 of channel 1 in S3.3 to get:
S3.6:将S3.4和S3.5中的包含时间偏斜函数与平均功率的展开式相减得:S3.6: Subtract the expansion of the time skew function and the average power in S3.4 and S3.5 to get:
E[(x1-x0)2]-E[(x2-x1)2]=-2R(TS+τ1)E[(x 1 -x 0 ) 2 ]-E[(x 2 -x 1 ) 2 ]=-2R(T S +τ 1 )
+2R(TS-τ1)+2R(T S -τ 1 )
S3.7:基于S3.6中得到的时间偏斜通常较小,并且R(TS±τ1)可以近似等于R(TS)±τ1dR/dτ,将步骤S3.6中得到的表达式更改为:S3.7: Based on the time skew obtained in S3.6 is usually small, and R(T S ±τ 1 ) can be approximately equal to R(T S )±τ 1 dR/dτ, convert the time skew obtained in step S3.6 The expression changes to:
S3.8:由步骤S3.7可见时间偏斜与E[(x1-x0)2]和E[(x2-x1)2]的差值成比例,当时间偏斜被校准后,E[(x1-x0)2]与E[(x2-x1)2]的差值接近0;当染色体的适应值越小,染色体越优秀,其代表的时间偏斜越接近实际的时间偏斜,而适应值越大,则染色体越差,其代表的时间偏斜越偏离实际的时间偏斜。S3.8: It can be seen from step S3.7 that the time skew is proportional to the difference between E[(x 1 -x 0 ) 2 ] and E[(x 2 -x 1 ) 2 ]. When the time skew is calibrated , the difference between E[(x 1 -x 0 ) 2 ] and E[(x 2 -x 1 ) 2 ] is close to 0; when the fitness value of the chromosome is smaller, the chromosome is better, and the time skew it represents is closer The actual time skew, and the larger the fitness value, the worse the chromosome, and the time skew it represents deviates further from the actual time skew.
进一步的作为本发明的优选技术方案,所述步骤S4具体包括以下步骤:Further, as a preferred technical solution of the present invention, step S4 specifically includes the following steps:
S4.1:以指数排序选择算法作为AGA的选择策略,按照排序的等级分配选择概率;在步骤S3时间偏斜检测中,适应值越小则染色体越优秀,则根据染色体的适应值大小进行降序排序,使染色体适应值最大的为1,适应值最小的为N;S4.1: Use the exponential sorting selection algorithm as the selection strategy of AGA, and assign the selection probability according to the ranking level; in step S3 time skew detection, the smaller the fitness value, the better the chromosome, and the descending order is based on the fitness value of the chromosome. Sort so that the chromosome with the largest fitness value is 1 and the chromosome with the smallest fitness value is N;
S4.2:根据步骤S4.1中染色体的排序计算被选中的概率,其公式如式为:S4.2: Calculate the probability of being selected based on the sorting of chromosomes in step S4.1. The formula is as follows:
其中,i表示第i条染色体,c为设置的参数,其值必须在0~1之间,该值越接近于1,该选择方法的“指数性”越低;Among them, i represents the i-th chromosome, c is the set parameter, and its value must be between 0 and 1. The closer the value is to 1, the lower the "exponentiality" of the selection method;
S4.3:按染色体顺序将染色体的概率进行累积和,得到累积和的概率sumi,并随机产生0~1的随机数σ;S4.3: Cumulatively sum the probabilities of chromosomes according to the sequence of chromosomes, obtain the probability sum i of the cumulative sum, and randomly generate a random number σ from 0 to 1;
S4.4:若随机数σ大于sumi-1且小于sumi,则第i条染色体被选中。S4.4: If the random number σ is greater than sum i-1 and less than sum i , then the i-th chromosome is selected.
进一步的作为本发明的优选技术方案,所述步骤S5具体包括以下步骤:Further, as a preferred technical solution of the present invention, step S5 specifically includes the following steps:
S5.1:交叉操作可使种群中染色体的遗传信息进行交换,交叉过后的种群中出现更加优良的染色体;交叉操作的进行取决于所设置的交叉概率Pc,Pc越大,新染色体引入种群的速度就越快,当若交叉概率Pc太大,则出现高性能染色体被丢弃的速度比选择产生改进的速度更快;S5.1: The crossover operation can exchange the genetic information of chromosomes in the population, and better chromosomes will appear in the population after crossover; the execution of the crossover operation depends on the set crossover probability P c . The larger the P c , the more excellent chromosomes will be introduced. The faster the population, when the crossover probability P c is too large, high-performance chromosomes will be discarded faster than selection can produce improvements;
S5.2:采用自适应交叉的方法,该方法根据染色体的适应值产生交叉概率,其公式为:S5.2: Use the adaptive crossover method, which generates crossover probability based on the fitness value of the chromosome. The formula is:
其中,fmin为染色体适应值中的最小值;f′为两个待交叉的染色体中适应值较小者;fmean为染色体的平均适应值,以此保证所有适应值大于平均值的染色体都进行交叉操作;将k1和k3设置为1以防止在最优解搜索过程中陷入局部最优的情况;Among them, f min is the minimum fitness value of the chromosome; f′ is the smaller fitness value of the two chromosomes to be crossed; f mean is the average fitness value of the chromosome, thus ensuring that all chromosomes with fitness values greater than the average are Perform a crossover operation; set k 1 and k 3 to 1 to prevent falling into a local optimum during the optimal solution search process;
S5.3:选取一对染色体并依据S5.2中交叉概率公式计算其交叉概率,同时随机产生一个随机数,若随机数小于交叉概率,则进行交叉操作。S5.3: Select a pair of chromosomes and calculate their crossover probability according to the crossover probability formula in S5.2. At the same time, a random number is randomly generated. If the random number is less than the crossover probability, a crossover operation is performed.
进一步的作为本发明的优选技术方案,所述步骤S6具体包括以下步骤:As a further preferred technical solution of the present invention, step S6 specifically includes the following steps:
S6.1:采用自适应变异解决变异概率Pm较大所导致的遗传算法变成纯粹的随机搜索算法,以及Pm较小则可能会使得遗传算法过早收敛的现象,自适应变异公式为:S6.1: Adaptive mutation is used to solve the problem that the genetic algorithm becomes a pure random search algorithm when the mutation probability P m is large, and the genetic algorithm may converge prematurely when P m is small. The adaptive mutation formula is: :
其中,将k2和k4设置为0.5,以防止AGA算法陷入局部最优;Among them, k 2 and k 4 are set to 0.5 to prevent the AGA algorithm from falling into local optimum;
S6.2:完成变异概率的计算后,采用多点变异的方法来对染色体进行突变,使得种群更具多样性;该方法通过随机选取多个突变点,对该点的信息进行突变,若该点的信息为1,则突变为0,若信息为0,则突变为1。S6.2: After completing the calculation of mutation probability, use the multi-point mutation method to mutate the chromosome to make the population more diverse; this method randomly selects multiple mutation points to mutate the information at that point. If the If the information of the point is 1, it mutates to 0; if the information is 0, it mutates to 1.
进一步的作为本发明的优选技术方案,所述步骤S7具体包括以下步骤:As a further preferred technical solution of the present invention, step S7 specifically includes the following steps:
S7.1:依据步骤S3,找到适应值最小的染色体,判断其适应值是否满足所设定的条件Fbest<Fset;S7.1: According to step S3, find the chromosome with the smallest fitness value, and determine whether its fitness value meets the set condition F best <F set ;
S7.2:若满足S7.1中的条件,则该染色体所对应的时间偏斜为第i通道的时间偏斜,若该条件不满足,则回到步骤S4并重复后续步骤直至满足该条件。S7.2: If the conditions in S7.1 are met, the time skew corresponding to the chromosome is the time skew of the i-th channel. If the condition is not met, return to step S4 and repeat subsequent steps until the condition is met. .
进一步的作为本发明的优选技术方案,所述步骤S8具体包括以下步骤:Further, as a preferred technical solution of the present invention, step S8 specifically includes the following steps:
S8.1:对于4通道TIADC系统,将通道0作为参考通道,检测通道2的时间偏斜并对其进行校准;S8.1: For a 4-channel TIADC system, use channel 0 as the reference channel, detect the time skew of channel 2 and calibrate it;
S8.2:将通道0和通道2作为参考通道,检测通道1和通道3的时间偏斜并对其进行校准。S8.2: Use channel 0 and channel 2 as reference channels, detect the time skew of channel 1 and channel 3 and calibrate them.
本发明所述的基于AGA算法的TIADC系统时间偏斜误差校准方法,采用以上技术方案与现有技术相比,具有以下技术效果:The TIADC system time skew error calibration method based on the AGA algorithm of the present invention adopts the above technical solution and has the following technical effects compared with the existing technology:
(1)本发明提出的基于AGA算法的TIADC系统时间偏斜误差校准方法,采用的是全数字估计与校准方案,易于实现。(1) The TIADC system time skew error calibration method proposed by the present invention based on the AGA algorithm adopts a fully digital estimation and calibration scheme, which is easy to implement.
(2)本发明采用自适应遗传算法AGA对时间偏斜进行校准,与传统的LMS、GA算法相比,解决了种群规模较大、时间偏斜的估计准确度较低、时间偏斜收敛所需要的迭代次数相对较多的问题;并且本发明所采用的校准方法对近乎整个奈奎斯特频带内的输入信号都有良好的校准效果。(2) The present invention uses the adaptive genetic algorithm AGA to calibrate the time skew. Compared with the traditional LMS and GA algorithms, it solves the problems of large population size, low accuracy of time skew estimation, and time skew convergence. The problem of requiring a relatively large number of iterations; and the calibration method adopted in the present invention has a good calibration effect on input signals in almost the entire Nyquist band.
(3)本发明所提出的TIADC通道时间偏斜校准方法适用于18bit高分辨率TIADC系统的低频输入校准,进一步提高了适用范围。(3) The TIADC channel time skew calibration method proposed by the present invention is suitable for low-frequency input calibration of the 18-bit high-resolution TIADC system, further improving the scope of application.
(4)本发明算法运算难度低,可推广到任意M通道TIADC系统,应用前景广泛。(4) The algorithm of the present invention has low computational difficulty, can be extended to any M-channel TIADC system, and has broad application prospects.
附图说明Description of drawings
图1为本发明的方法步骤示意图;Figure 1 is a schematic diagram of the method steps of the present invention;
图2为M通道分时交替模数转换器的工作原理图;Figure 2 is the working principle diagram of the M-channel time-sharing alternating analog-to-digital converter;
图3为TIADC系统内部单个ADC的时间偏斜在时域上引起误差的原理图;Figure 3 is a schematic diagram showing the error caused by the time skew of a single ADC in the TIADC system in the time domain;
图4为本发明中采用AGA算法对TIADC系统内每个子ADC进行时间偏斜检测的原理图;Figure 4 is a schematic diagram of using the AGA algorithm to detect time skew in each sub-ADC in the TIADC system in the present invention;
图5为本发明中对TIADC系统内部子ADC进行适应值计算的原理图;Figure 5 is a schematic diagram of fitness value calculation for the internal sub-ADC of the TIADC system in the present invention;
图6(a)为本发明中对两对染色体进行多点交叉的原理图;Figure 6(a) is a schematic diagram of multi-point crossover of two pairs of chromosomes in the present invention;
图6(b)为本发明中对两对染色体进行多点变异的原理图;Figure 6(b) is a schematic diagram of multi-point mutation of two pairs of chromosomes in the present invention;
图7为本发明中对4通道TIADC系统内部子ADC进行校准的原理图;Figure 7 is a schematic diagram for calibrating the internal sub-ADC of the 4-channel TIADC system in the present invention;
图8(a)为本发明中采用AGA算法在不同大小的Fset的情况下对通道1的时间偏斜检测的收敛情况的对比图;Figure 8(a) is a comparison diagram of the convergence of time skew detection on channel 1 using the AGA algorithm in the present invention under different sizes of Fset;
图8(b)为本发明中采用AGA算法在不同大小的Fset的情况下对通道2的时间偏斜检测的收敛情况的对比图;Figure 8(b) is a comparison diagram of the convergence of time skew detection on channel 2 using the AGA algorithm in the present invention under different sizes of Fset;
图8(c)为本发明中采用AGA算法在不同大小的Fset的情况下对通道3的时间偏斜检测的收敛情况的对比图;Figure 8(c) is a comparison diagram of the convergence of time skew detection on channel 3 using the AGA algorithm in the present invention under different sizes of Fset;
图9为GA、LMS、AGA三种算法在时间偏斜检测方面的迭代次数对比图;Figure 9 is a comparison chart of the number of iterations of the three algorithms GA, LMS, and AGA in time skew detection;
图10为AGA算法、GA算法、LMS算法对相同的TIADC系统进行时间偏斜误差校准后各性能对比图;Figure 10 is a performance comparison chart of the AGA algorithm, GA algorithm, and LMS algorithm after calibrating the time skew error of the same TIADC system;
图11(a)为本发明的四通道TIADC系统在经可变延迟线进行误差校准前所对应的输出频谱图;Figure 11(a) is the corresponding output spectrum diagram of the four-channel TIADC system of the present invention before error calibration through the variable delay line;
图11(b)为本发明的四通道TIADC系统在经可变延迟线进行误差校准后所对应的输出频谱图;Figure 11(b) is the corresponding output spectrum diagram of the four-channel TIADC system of the present invention after error calibration through a variable delay line;
图12(a)为本发明的四通道TIADC系统在经可变延迟线进行误差校准前后所对应的SNDR对比图;Figure 12(a) is a comparison chart of the SNDR of the four-channel TIADC system of the present invention before and after error calibration through the variable delay line;
图12(b)为本发明的四通道TIADC系统在经可变延迟线进行误差校准前后所对应的SFDR对比图;Figure 12(b) is a comparison chart of the SFDR of the four-channel TIADC system of the present invention before and after error calibration through the variable delay line;
图12(c)为本发明的四通道TIADC系统在经可变延迟线进行误差校准前后所对应的ENOB对比图。Figure 12(c) is a comparison chart of the ENOB of the four-channel TIADC system of the present invention before and after error calibration through the variable delay line.
具体实施方式Detailed ways
下面结合附图详细的描述本发明的作进一步的解释说明,以使本领域的技术人员可以更深入地理解本发明并能够实施,但下面通过参考实例仅用于解释本发明,不作为本发明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings for further explanation, so that those skilled in the art can have a deeper understanding of the present invention and be able to implement it. However, the following reference examples are only used to explain the present invention and do not serve as the basis for the present invention. restrictions.
实施例1Example 1
具体实施时,如图1所示,基于AGA算法的TIADC系统时间偏斜误差校准系统及方法包括:S1:评估时间偏斜对TIADC系统性能的影响;S2:随机选取一组时间偏斜τi与采样周期TS之比r作为种群中的染色体;S3:计算种群中染色体的适应值来推进染色体的交叉和变异;S4:选择种群中优秀的染色体进行繁衍并遗传其优秀的基因;S5:对种群中染色体遗传信息进行交换从而得到更加优良的染色体;S6:根据染色体的适应值自适应调整突变概率;S7:寻找出种群中最优染色体;S8:利用可变延迟线对通道进行校准。During specific implementation, as shown in Figure 1, the TIADC system time skew error calibration system and method based on the AGA algorithm includes: S1: Evaluate the impact of time skew on TIADC system performance; S2: Randomly select a set of time skew τ i The ratio r to the sampling period T S is used as the chromosome in the population; S3: Calculate the fitness value of the chromosome in the population to promote the crossover and mutation of the chromosome; S4: Select the excellent chromosomes in the population to reproduce and inherit its excellent genes; S5: Exchange the genetic information of chromosomes in the population to obtain better chromosomes; S6: Adaptively adjust the mutation probability according to the fitness value of the chromosome; S7: Find the optimal chromosome in the population; S8: Use variable delay lines to calibrate the channel.
如图2所示,分时交替采样技术利用多个高精度的ADC循环交替采样,以此来同时实现高精度和高采样率,多个子ADC组成了分时交替模数转换器(TIADC)系统。As shown in Figure 2, time-sharing alternating sampling technology uses multiple high-precision ADCs to cyclically alternate sampling to achieve high accuracy and high sampling rate at the same time. Multiple sub-ADCs form a time-sharing alternating analog-to-digital converter (TIADC) system. .
如图3所示,由于TIADC系统内部各子ADC的时间偏斜不匹配,使得采样时钟电路的实际采样时刻偏离理想的采样时刻,进而导致采样值出现误差,图3中τi为第i个子ADC的时间偏斜,Error为时间偏斜所产生的采样值偏差。As shown in Figure 3, due to the time skew mismatch of each sub-ADC within the TIADC system, the actual sampling time of the sampling clock circuit deviates from the ideal sampling time, which in turn causes errors in the sampling values. In Figure 3, τi is the i-th sub-ADC. time skew, Error is the sampling value deviation caused by time skew.
图4至图7,本实施例的基于AGA算法的TIADC系统时间偏斜误差校准系统及方法具体包括以下步骤:Figure 4 to Figure 7, the TIADC system time skew error calibration system and method based on the AGA algorithm of this embodiment specifically includes the following steps:
基于AGA算法的TIADC系统时间偏斜误差校准系统及方法,包括以下步骤:The TIADC system time skew error calibration system and method based on the AGA algorithm includes the following steps:
S1:评估时间偏斜:评估时间偏斜τi对TIADC系统性能的影响;S1: Evaluate time skew: evaluate the impact of time skew τ i on TIADC system performance;
S2:建立初始种群:随机选取一组时间偏斜τi与采样周期TS之比r作为种群中的染色体,然后对其乘以1000并将其转化为10位二进制数,在最高位前增加一位二进制位,表示时间偏斜的正负;S2: Establish the initial population: Randomly select a group of time skew τ i and the ratio r of the sampling period T S as the chromosomes in the population, then multiply it by 1000 and convert it into a 10-digit binary number, increasing before the highest bit One binary bit represents the positive or negative time skew;
其最高位为1代表的时间偏斜为超前的情况,0代表滞后的情况;The highest bit is 1, which represents the time skew leading, and 0, which represents lagging;
S3:计算种群中染色体的适应值:选取经过可变延迟线校准后的通道输出与相邻通道输出之间的平均绝对差作为适应值函数,推进染色体的交叉和变异;S3: Calculate the fitness value of chromosomes in the population: select the average absolute difference between the channel output calibrated by the variable delay line and the output of adjacent channels as the fitness value function to promote the crossover and mutation of chromosomes;
S4:染色体选择:使用指数排序选择算法作为AGA的选择策略,选择种群中优秀的染色体进行繁衍并遗传其优秀的基因;S4: Chromosome selection: Use the exponential sorting selection algorithm as the selection strategy of AGA to select excellent chromosomes in the population for reproduction and inherit their excellent genes;
S5:自适应交叉:依据交叉概率Pc对种群中染色体的遗传信息进行交换从而得到更加优良的染色体;S5: Adaptive crossover: According to the crossover probability P c, the genetic information of the chromosomes in the population is exchanged to obtain better chromosomes;
S6:自适应变异:根据染色体的适应值f自适应调整变异概率Pm,保留优秀的染色体,同时采用多点变异的方法来对染色体进行突变,使得种群更具多样性;S6: Adaptive mutation: Adaptively adjust the mutation probability P m according to the fitness value f of the chromosome, retain the excellent chromosomes, and use the multi-point mutation method to mutate the chromosomes to make the population more diverse;
S7:寻找最优染色体:找出种群中适应值最小的染色体;S7: Find the optimal chromosome: find the chromosome with the smallest fitness value in the population;
S8:校准:完成对通道的时间偏斜检测后,利用可变延迟线对通道进行校准。S8: Calibration: After completing the time skew detection of the channel, use the variable delay line to calibrate the channel.
步骤S1具体包括以下步骤:Step S1 specifically includes the following steps:
S1.1:采用正弦信号作为TIADC系统的输入信号,正弦信号的表达式为:S1.1: Use a sinusoidal signal as the input signal of the TIADC system. The expression of the sinusoidal signal is:
x(t)=sin(ωint)x(t)=sin(ω in t)
其中:ωin为正弦信号的频率;Among them: ω in is the frequency of the sinusoidal signal;
S1.2:经过TIADC系统采样后S1.1中输入的正弦信号的表达式为:S1.2: The expression of the sinusoidal signal input in S1.1 after sampling by the TIADC system is:
其中:M为TIADC系统的通道数目,TS为TIADC系统内单个ADC的采样周期,τi为TIADC系统中第i个通道的时间偏斜量;Among them: M is the number of channels in the TIADC system, T S is the sampling period of a single ADC in the TIADC system, τ i is the time skew of the i-th channel in the TIADC system;
S1.3:对S1.1中输入信号的表达式进行傅里叶变换(FT)得到:S1.3: Perform Fourier transform (FT) on the expression of the input signal in S1.1 to obtain:
S1.4:对S1.2中经过TIADC系统采样后正弦信号的表达式进行离散傅里叶变换DFT得到其在频域的表达式为:S1.4: Perform discrete Fourier transform DFT on the expression of the sinusoidal signal sampled by the TIADC system in S1.2 to obtain its expression in the frequency domain:
其中:ωS为TIADC系统的采样频率;Among them: ω S is the sampling frequency of the TIADC system;
S1.5:步骤S1.4中得到了时间偏斜误差在频域所产生的影响,在任意M通道TIADC系统中,由于时间偏斜误差引起的谐波分量位于:S1.5: In step S1.4, the impact of time skew error in the frequency domain was obtained. In any M-channel TIADC system, the harmonic component caused by time skew error is located at:
S1.6:采用时间偏斜和无杂散动态范围SFDR来衡量TIADC系统的性能,对两者建立的函数关系为: S1.6: Time skew and spurious-free dynamic range SFDR are used to measure the performance of the TIADC system. The functional relationship between the two is:
步骤S3具体包括以下步骤:Step S3 specifically includes the following steps:
S3.1:对于TIADC系统,选取经过可变延迟线校准后的通道输出与相邻通道输出之间的平均绝对差作为适应值函数:S3.1: For the TIADC system, select the average absolute difference between the channel output after variable delay line calibration and the adjacent channel output as the fitness value function:
Fi=|E(|xi_d-xref1|-|xref2-xi_d|)|F i =|E(|x i_d -x ref1 |-|x ref2 -x i_d |)|
其中:xref1和xref2为相邻的参考通道,xi_d为经可变延迟线延迟后的通道输出。Among them: x ref1 and x ref2 are adjacent reference channels, and x i_d is the channel output after being delayed by the variable delay line.
S3.2:选择四通道TIADC系统中的两个通道作为适应值计算对象,假设通道0是理想的,通道1只包含时间偏斜,建立|x1-x0|与|x2-x1|与时间偏斜的关系;S3.2: Select two channels in the four-channel TIADC system as fitness value calculation objects. Assume that channel 0 is ideal and channel 1 only contains time skew. Establish |x 1 -x 0 | and |x 2 -x 1 |Relationship with time skew;
S3.3:在S3.2中x1表示通道1的采样值,x0表示通道0的采样值,x2表示通道0的下一个采样值,从统计角度来看,当样本数量较多时,|x1-x0|与|x2-x1|的平均差值与时间偏斜成比例,平均差值与时间偏斜的关系为:S3.3: In S3.2, x 1 represents the sample value of channel 1, x 0 represents the sample value of channel 0, and x 2 represents the next sample value of channel 0. From a statistical point of view, when the number of samples is large, The average difference between |x 1 -x 0 | and |x 2 -x 1 | is proportional to the time skew. The relationship between the average difference and the time skew is:
E[(x1-x0)2]-E[(x2-x1)2]∝τ1 E[(x 1 -x 0 ) 2 ]-E[(x 2 -x 1 ) 2 ]∝τ 1
其中:τ1表示TIADC系统内单个ADC通道的时间偏斜量;Among them: τ 1 represents the time skew of a single ADC channel in the TIADC system;
S3.4:将S3.3中通道1的采样值x1与通道0的采样值x0的相关函数E[(x1-x0)2]展开得到:S3.4: Expand the correlation function E[(x 1 -x 0 ) 2 ] between the sampling value x 1 of channel 1 and the sampling value x 0 of channel 0 in S3.3 to get:
其中:σ2表示平均功率;Among them: σ 2 represents the average power;
S3.5:将S3.3中通道0的下一个采样值x2与通道1的采样值x1的相关函数E[(x2-x1)2]展开得到:S3.5: Expand the correlation function E[(x 2 -x 1 ) 2 ] between the next sample value x 2 of channel 0 and the sample value x 1 of channel 1 in S3.3 to get:
S3.6:将S3.4和S3.5中的包含时间偏斜函数与平均功率的展开式相减得:S3.6: Subtract the expansion of the time skew function and the average power in S3.4 and S3.5 to get:
E[(x1-x0)2]-E[(x2-x1)2]=-2R(TS+τ1)E[(x 1 -x 0 ) 2 ]-E[(x 2 -x 1 ) 2 ]=-2R(T S +τ 1 )
+2R(TS-τ1)+2R(T S -τ 1 )
S3.7:基于S3.6中得到的时间偏斜通常较小,并且R(TS±τ1)可以近似等于R(TS)±τ1dR/dτ,将步骤S3.6中得到的表达式更改为:S3.7: Based on the time skew obtained in S3.6 is usually small, and R(T S ±τ 1 ) can be approximately equal to R(T S )±τ 1 dR/dτ, convert the time skew obtained in step S3.6 The expression changes to:
S3.8:由步骤S3.7可见时间偏斜与E[(x1-x0)2]和E[(x2-x1)2]的差值成比例,当时间偏斜被校准后,E[(x1-x0)2]与E[(x2-x1)2]的差值接近0;染色体的适应值越小,则染色体越优秀,其代表的时间偏斜越接近实际的时间偏斜,而适应值越大,则染色体越差,其代表的时间偏斜越偏离实际的时间偏斜。S3.8: It can be seen from step S3.7 that the time skew is proportional to the difference between E[(x 1 -x 0 ) 2 ] and E[(x 2 -x 1 ) 2 ]. When the time skew is calibrated , the difference between E[(x 1 -x 0 ) 2 ] and E[(x 2 -x 1 ) 2 ] is close to 0; the smaller the fitness value of the chromosome, the better the chromosome, and the closer the time skew it represents The actual time skew, and the larger the fitness value, the worse the chromosome, and the time skew it represents deviates further from the actual time skew.
步骤S4具体包括以下步骤:Step S4 specifically includes the following steps:
S4.1:以指数排序选择算法作为AGA的选择策略,按照排序的等级分配选择概率;在步骤S3时间偏斜检测中,适应值越小则染色体越优秀,则根据染色体的适应值大小进行降序排序,使染色体适应值最大的为1,适应值最小的为N;S4.1: Use the exponential sorting selection algorithm as the selection strategy of AGA, and assign the selection probability according to the ranking level; in step S3 time skew detection, the smaller the fitness value, the better the chromosome, and the descending order is based on the fitness value of the chromosome. Sort so that the chromosome with the largest fitness value is 1 and the chromosome with the smallest fitness value is N;
S4.2:根据步骤S4.1中染色体的排序计算被选中的概率,其公式如式为:S4.2: Calculate the probability of being selected based on the sorting of chromosomes in step S4.1. The formula is as follows:
其中:i表示第i条染色体,c为设置的参数,其值必须在0~1之间,该值越接近于1,该选择方法的“指数性”越低;Among them: i represents the i-th chromosome, c is the set parameter, and its value must be between 0 and 1. The closer the value is to 1, the lower the "exponentiality" of the selection method;
S4.3:按染色体顺序将染色体的概率进行累积和,得到累积和的概率sumi,并随机产生0~1的随机数σ;S4.3: Cumulatively sum the probabilities of chromosomes according to the sequence of chromosomes, obtain the probability sum i of the cumulative sum, and randomly generate a random number σ from 0 to 1;
S4.4:若随机数σ大于sumi-1且小于sumi,则第i条染色体被选中。S4.4: If the random number σ is greater than sum i-1 and less than sum i , then the i-th chromosome is selected.
步骤S5具体包括以下步骤:Step S5 specifically includes the following steps:
S5.1:交叉操作可使种群中染色体的遗传信息进行交换,交叉过后的种群中出现更加优良的染色体;交叉操作的进行取决于所设置的交叉概率Pc,Pc越大,新染色体引入种群的速度就越快,但是若交叉概率Pc太大,会出现高性能染色体被丢弃的速度比选择产生改进的速度更快;S5.1: The crossover operation can exchange the genetic information of chromosomes in the population, and better chromosomes will appear in the population after crossover; the execution of the crossover operation depends on the set crossover probability P c . The larger the P c , the more excellent chromosomes will be introduced. The faster the population, but if the crossover probability P c is too large, high-performance chromosomes will be discarded faster than selection can produce improvements;
S5.2:基于AGA算法的TIADC系统时间偏斜误差校准系统采用自适应交叉的方法来解决S5.1中存在的问题,该方法根据染色体的适应值产生交叉概率,其公式为:S5.2: The TIADC system time skew error calibration system based on the AGA algorithm uses the adaptive crossover method to solve the problems in S5.1. This method generates crossover probability based on the fitness value of the chromosome. The formula is:
其中:fmin为染色体适应值中的最小值;f′为两个待交叉的染色体中适应值较小者;fmean为染色体的平均适应值,以此保证所有适应值大于平均值的染色体都进行交叉操作;将k1和k3设置为1以防止在最优解搜索过程中陷入局部最优的情况;Among them: f min is the minimum fitness value of the chromosome; f′ is the smaller fitness value of the two chromosomes to be crossed; f mean is the average fitness value of the chromosome, so as to ensure that all chromosomes with fitness values greater than the average are Perform a crossover operation; set k 1 and k 3 to 1 to prevent falling into a local optimum during the optimal solution search process;
S5.3:选取一对染色体并依据S5.2中交叉概率公式计算其交叉概率,同时随机产生一个随机数,若随机数小于交叉概率,则进行交叉操作;S5.3: Select a pair of chromosomes and calculate their crossover probability according to the crossover probability formula in S5.2, and randomly generate a random number. If the random number is less than the crossover probability, perform a crossover operation;
步骤S6具体包括以下步骤:Step S6 specifically includes the following steps:
S6.1:采用自适应变异解决变异概率Pm较大所导致的遗传算法变成纯粹的随机搜索算法,以及Pm较小则可能会使得遗传算法过早收敛的现象,自适应变异公式为:S6.1: Adaptive mutation is used to solve the problem that the genetic algorithm becomes a pure random search algorithm when the mutation probability P m is large, and the genetic algorithm may converge prematurely when P m is small. The adaptive mutation formula is: :
其中:将k2和k4设置为0.5,以防止AGA算法陷入局部最优;Among them: set k 2 and k 4 to 0.5 to prevent the AGA algorithm from falling into local optimal;
S6.2:完成变异概率的计算后,采用多点变异的方法来对染色体进行突变,使得种群更具多样性;该方法通过随机选取多个突变点,对该点的信息进行突变,若该点的信息为1,则突变为0,若信息为0,则突变为1。S6.2: After completing the calculation of mutation probability, use the multi-point mutation method to mutate the chromosome to make the population more diverse; this method randomly selects multiple mutation points to mutate the information at that point. If the If the information of the point is 1, it mutates to 0; if the information is 0, it mutates to 1.
步骤S7具体包括以下步骤:Step S7 specifically includes the following steps:
S7.1:依据步骤S3,找到适应值最小的染色体,判断其适应值是否满足所设定的条件Fbest<Fset;S7.1: According to step S3, find the chromosome with the smallest fitness value, and determine whether its fitness value meets the set condition F best <F set ;
S7.2:若满足S7.1中的条件,则该染色体所对应的时间偏斜为第i通道的时间偏斜,若该条件不满足,则回到步骤S4并重复后续步骤直至满足该条件;S7.2: If the conditions in S7.1 are met, the time skew corresponding to the chromosome is the time skew of the i-th channel. If the condition is not met, return to step S4 and repeat subsequent steps until the condition is met. ;
步骤S8具体包括以下步骤:Step S8 specifically includes the following steps:
S8.1:对于4通道TIADC系统,将通道0作为参考通道,检测通道2的时间偏斜并对其进行校准;S8.1: For a 4-channel TIADC system, use channel 0 as the reference channel, detect the time skew of channel 2 and calibrate it;
S8.2:将通道0和通道2作为参考通道,检测通道1和通道3的时间偏斜并对其进行校准。S8.2: Use channel 0 and channel 2 as reference channels, detect the time skew of channel 1 and channel 3 and calibrate them.
实施例2Example 2
为了验证本发明能够实现对18bit高分辨率TIADC系统时间偏斜误差的估计和校准,下面以四通道TIADC系统模型为例进行验证,结合TIADC系统和仿真结果进行详细说明。In order to verify that the present invention can realize the estimation and calibration of the time skew error of the 18-bit high-resolution TIADC system, the following is a verification using a four-channel TIADC system model as an example, and a detailed description is given in combination with the TIADC system and simulation results.
验证步骤包括:Verification steps include:
首先,对本验证的TIADC系统进行说明,本验证例以四通道TIADC仿真系统为例,该系统的整体采样速率为1GS/s,由四个完全相同的18bit单通道ADC组成。为了便于对时间偏斜误差的分析,假设TIADC系统不受偏置失配误差和增益失配误差的影响,然后对TIADC系统各个通道的时间偏斜进行配置,假设0通道没有时间偏斜,通道1、通道2、通道3的时间偏斜分别为τ1=2e-11,τ2=-5e-11,τ3=1e-11。本验证例以频率为47.71MHz的正弦信号作为输入信号,AGA的指数排序选择法的参数c设置为0.9。First, let’s explain the TIADC system for this verification. This verification example takes a four-channel TIADC simulation system as an example. The overall sampling rate of this system is 1GS/s and it is composed of four identical 18-bit single-channel ADCs. In order to facilitate the analysis of time skew error, it is assumed that the TIADC system is not affected by offset mismatch error and gain mismatch error, and then configure the time skew of each channel of the TIADC system. It is assumed that channel 0 has no time skew, and channel 0 has no time skew. 1. The time skew of channel 2 and channel 3 are τ 1 =2e-11, τ 2 =-5e-11, and τ 3 =1e-11 respectively. This verification example uses a sinusoidal signal with a frequency of 47.71MHz as the input signal, and the parameter c of the AGA's exponential sorting selection method is set to 0.9.
图8显示了本验证例中AGA在不同大小的Fset的情况下对各个通道的时间偏斜检测的收敛情况,tc为时间偏斜检测的收敛时间,其中Fset值越小,AGA对时间偏斜估计的准确度越高,但收敛时间的迭代次数增加,综合考虑,本验证例将Fset设置为2.6e-4以得到实际时间偏斜的近似估计值。由图8(a)、图8(b)、图8(c)可知,通道1在经过10次迭代后其时间偏斜收敛到0.02TS,通道2和通道3的时间偏斜估计在经过10次和9次迭代后分别收敛到-0.05TS和0.01TS。Figure 8 shows the convergence of AGA’s time skew detection for each channel under different sizes of F set in this verification example. t c is the convergence time of time skew detection. The smaller the F set value, the better the AGA’s time skew detection. The higher the accuracy of the skew estimation, but the number of iterations of the convergence time increases. Taking comprehensive considerations into account, this verification example sets Fset to 2.6e-4 to obtain an approximate estimate of the actual time skew. It can be seen from Figure 8(a), Figure 8(b), and Figure 8(c) that the time skew of channel 1 converges to 0.02T S after 10 iterations, and the time skew of channel 2 and channel 3 is estimated after 10 iterations. It converges to -0.05T S and 0.01T S after 10 and 9 iterations respectively.
图9显示了GA、LMS、AGA三种算法在时间偏斜检测方面的对比图,从图可以看出,在相同的时间偏斜误差的前提下,AGA算法的迭代次数为10次、GA算法和LMS算法的迭代次数分别为29次和117次,可见本发明提出的校准方法对时间偏斜检测速度较快。Figure 9 shows a comparison chart of the three algorithms GA, LMS, and AGA in terms of time skew detection. It can be seen from the figure that under the premise of the same time skew error, the number of iterations of the AGA algorithm is 10, and that of the GA algorithm is 10. The number of iterations of the and LMS algorithms are 29 and 117 respectively. It can be seen that the calibration method proposed by the present invention has a faster detection speed of time skew.
图10为LMS、GA、AGA算法在相同的时间偏斜误差前提下,三种方法的性能对比图。由图可知,AGA算法对本验证例四通道TIADC系统所检测到的时间偏斜误差为0.02,相较于LMS算法和GA算法所检测到的0.0199和0.0210更加准确;AGA算法的迭代次数以及收敛时间相较于传统的LMS、GA算法均有大幅度的提升;LMS、GA、AGA算法需要采集的样本个数分别为42.5K、72.5K和25K,可见AGA算法需要采集的样本数更少;AGA算法的运行时间为0.13092秒,比LMS算法和GA算法的检测速度更快;Figure 10 is a performance comparison chart of the three methods of LMS, GA, and AGA algorithms under the same time skew error. As can be seen from the figure, the time skew error detected by the AGA algorithm for the four-channel TIADC system in this verification example is 0.02, which is more accurate than the 0.0199 and 0.0210 detected by the LMS algorithm and GA algorithm; the number of iterations and convergence time of the AGA algorithm Compared with the traditional LMS and GA algorithms, there are significant improvements; the number of samples that the LMS, GA, and AGA algorithms need to collect are 42.5K, 72.5K, and 25K respectively. It can be seen that the AGA algorithm needs to collect fewer samples; AGA The running time of the algorithm is 0.13092 seconds, which is faster than the detection speed of the LMS algorithm and GA algorithm;
图11(a)显示了本验证例中具有时间偏斜误差的TIADC模型的频域图,其中输入信号在47.71MHz处产生峰值频谱,其余峰值为时间偏斜误差产生的噪声频谱;图11(b)显示了经可变延时线准后TIADC系统的输出频谱图,其中由时间偏斜误差产生的毛刺被有效抑制,信噪比从40.7dB提高到了106.6dB,有效位数从6.4bit提升到了17.4bit。Figure 11(a) shows the frequency domain diagram of the TIADC model with time skew error in this verification example, in which the input signal produces a peak spectrum at 47.71MHz, and the remaining peaks are the noise spectrum generated by the time skew error; Figure 11( b) shows the output spectrum of the TIADC system after calibrating the variable delay line. The glitches caused by the time skew error are effectively suppressed, the signal-to-noise ratio is increased from 40.7dB to 106.6dB, and the effective number of bits is increased from 6.4 bits. To 17.4bit.
图12显示了校准前后SNDR、SFDR、ENOB与输入信号频率的相关性,可以看出,TIADC系统的SNDR、SFDR、ENOB经过基于AGA算法TIADC系统时间偏斜误差校准系统后都有较大的改善,且此校准方法在对近乎整个奈奎斯特频带内的输入信号都有良好的校准效果。Figure 12 shows the correlation between SNDR, SFDR, ENOB and the input signal frequency before and after calibration. It can be seen that the SNDR, SFDR, and ENOB of the TIADC system have been greatly improved after the TIADC system time skew error calibration system based on the AGA algorithm. , and this calibration method has good calibration effects on input signals in almost the entire Nyquist band.
采用了上述技术方案,本发明提出了一种用于TIADC系统时间偏斜误差的全数字校准方法,采用AGA算法对TIADC系统的时间偏斜误差进行校准,适用于任意M通道TIADC系统。Adopting the above technical solution, the present invention proposes a fully digital calibration method for the time skew error of the TIADC system, using the AGA algorithm to calibrate the time skew error of the TIADC system, and is suitable for any M-channel TIADC system.
本发明所提出的TIADC系统失配误差校准方法适用于通道中时间偏斜误差的校准,显著改善了TIADC的SNR和SFDR等动态性能,且发明结构设计简单,算法运算难度低,不受通道数目限制,应用前景广泛。The TIADC system mismatch error calibration method proposed by the present invention is suitable for calibrating the time skew error in the channel, and significantly improves the dynamic performance of TIADC such as SNR and SFDR. The invention has a simple structural design, low algorithm operation difficulty, and is independent of the number of channels. limitations and broad application prospects.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above-mentioned specific embodiments further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above-mentioned are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310648241.6A CN117240427A (en) | 2023-06-02 | 2023-06-02 | TIADC system time skew error calibration method based on AGA algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310648241.6A CN117240427A (en) | 2023-06-02 | 2023-06-02 | TIADC system time skew error calibration method based on AGA algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117240427A true CN117240427A (en) | 2023-12-15 |
Family
ID=89095477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310648241.6A Pending CN117240427A (en) | 2023-06-02 | 2023-06-02 | TIADC system time skew error calibration method based on AGA algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117240427A (en) |
-
2023
- 2023-06-02 CN CN202310648241.6A patent/CN117240427A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101674087B (en) | Method for obtaining channel mismatching error of time alternative ADC system | |
WO2021114939A1 (en) | Time-interleaved successive approximation analog to digital converter and calibration method thereof | |
CN108494402A (en) | A kind of TIADC systematic error estimations and compensation method based on Sine-Fitting | |
CN103746695B (en) | Correction Method of Sampling Time Mismatch Between Channels of Time-Interleaved Analog-to-Digital Converter | |
CN104253613B (en) | A kind of low pressure ultra-low-power high-precision comparator of SAR ADC | |
CN109361390B (en) | Module and method for sampling time error correction between time interleaved ADC channels | |
WO2014121530A1 (en) | Threshold correction method for multi-voltage threshold sampling digitization device | |
US12057852B2 (en) | Sampling clock phase mismatch error estimation method and apparatus, and storage medium | |
CN108432140B (en) | A calibration device and method | |
CN111064469B (en) | Method for correcting TIADC sampling time mismatch error based on adjacent channel autocorrelation function | |
CN109274372B (en) | A Method for Extracting Sampling Time Mismatch Error Between Channels in TIADC System | |
CN105578480B (en) | Undersampling Spectrum Sensing Pre-decision Method for Wideband Modulators | |
WO2022183842A1 (en) | Clock calibration method, apparatus, and device | |
CN105933007A (en) | Successive approximation type analog to digital converter and switching sequence thereof | |
CN114465622A (en) | Method, device, device and medium for error extraction of pipeline analog-to-digital converter | |
CN117749177A (en) | A TI SAR ADC circuit with digital calibration and its calibration method | |
Gao et al. | An adaptive calibration technique of timing skew mismatch in time-interleaved analog-to-digital converters | |
CN115776299A (en) | A Low Complexity TIADC Time Mismatch Error Calibration Method | |
CN117240427A (en) | TIADC system time skew error calibration method based on AGA algorithm | |
CN117749181A (en) | Clock deviation digital calibration system and method based on pearson correlation coefficient | |
CN107359877B (en) | All-digital blind compensation method for ultra-wideband signal time-interleaved sampling ADC (analog to digital converter) | |
CN113872599A (en) | GA-optimized TIADC system mismatch error calibration system and method | |
CN108183710A (en) | The bearing calibration of time-interleaved analog-digital converter based on FPGA and system | |
CN110912556B (en) | A Sampling Time Mismatch Error Estimation Method for TIADC System Based on Difference Equalization | |
CN106330185A (en) | A Sampling Time Mismatch Correction Method Based on Extremum Function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |