[go: up one dir, main page]

CN117060918A - Clock adjustment circuit and method - Google Patents

Clock adjustment circuit and method Download PDF

Info

Publication number
CN117060918A
CN117060918A CN202310462003.6A CN202310462003A CN117060918A CN 117060918 A CN117060918 A CN 117060918A CN 202310462003 A CN202310462003 A CN 202310462003A CN 117060918 A CN117060918 A CN 117060918A
Authority
CN
China
Prior art keywords
circuit
clock
clock adjustment
pattern
sampling
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
Application number
CN202310462003.6A
Other languages
Chinese (zh)
Inventor
吴柏学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Priority claimed from US18/131,879 external-priority patent/US20230367357A1/en
Application filed by MediaTek Inc filed Critical MediaTek Inc
Publication of CN117060918A publication Critical patent/CN117060918A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/0807Details of the phase-locked loop concerning mainly a recovery circuit for the reference signal
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • H03L7/087Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal using at least two phase detectors or a frequency and phase detector in the loop

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

提供了一种时钟调整电路以及相关的时钟调整方法。时钟调整电路包括样式筛选电路、相位误差检测器(PED)电路和相位误差计算电路。样式筛选电路用于在时钟调整电路的获取模式下从多个连续数据样本中选择第一预定数据样式,其中多个连续数据样本源自第一采样器电路的输出。PED电路用于根据样式筛选电路的输出以及从第二采样器电路的输出得出的误差样本,来检测相位误差。相位误差计算电路用于根据所述PED电路的输出确定采样时钟的定时补偿,其中所述采样时钟由所述第一采样器电路和所述第二采样器电路使用。

A clock adjustment circuit and related clock adjustment method are provided. The clock adjustment circuit includes a pattern filter circuit, a phase error detector (PED) circuit, and a phase error calculation circuit. The pattern screening circuit is configured to select a first predetermined data pattern from a plurality of consecutive data samples originating from an output of the first sampler circuit in an acquisition mode of the clock adjustment circuit. The PED circuit is used to detect the phase error based on the output of the pattern filter circuit and the error samples derived from the output of the second sampler circuit. A phase error calculation circuit is used to determine the timing compensation of a sampling clock used by the first sampler circuit and the second sampler circuit based on the output of the PED circuit.

Description

时钟调整电路和方法Clock adjustment circuit and method

技术领域Technical field

本发明涉及调整时钟信号,更具体地,涉及在获取模式(acquisition mode)和跟踪模式(tracking mode)下使用样式筛选电路(pattern filter circuit)来选择预定数据样式(predetermined data pattern)以进行相位误差检测的时钟调整电路及其相关时钟调整方法。The present invention relates to adjusting a clock signal, and more particularly to using a pattern filter circuit in acquisition mode and tracking mode to select a predetermined data pattern for phase error. Detected clock adjustment circuits and related clock adjustment methods.

背景技术Background technique

串行器/解串器(SerDes)是在高速通信中通常使用的一对功能块,以补偿有限的输入/输出(I/O)。这些块在每个方向上在串行数据和并行接口之间转换数据。术语“SerDes”一般是指在各种技术和应用中使用的接口。SerDes的主要用途是在单个线路或差分线路对上提供数据传输,使得I/O引脚和互连的数量最小化。时钟和数据恢复(Clock anddata recovery,CDR)电路负责在适当的时间对高速SerDes系统的模拟波形进行采样。例如,高速SerDes接收器可以采用Bang-bang CDR或波特率(Baud-rate)CDR。Bang-bang CDR具有良好的性能,但由于需要额外的时钟相位来对符号边缘信息进行采样,因此功耗较高。因此,Bang-bang CDR对于低功率应用而言不是好的选择。与Bang-bang CDR相比,波特率CDR性能较差,但由于每个符号仅采样一次,因此功耗较低。因此,波特率CDR对低功耗应用而言是不错选择。然而,波特率CDR可能会遇到多重锁定相位(multiple lock phase)问题。也就是说,波特率CDR针对不同的初始相位会锁定不同的锁定相位,其中不同的锁定相位中只有一个是合适的,而其他锁定相位可能导致判决错误。A serializer/deserializer (SerDes) is a pair of functional blocks commonly used in high-speed communications to compensate for limited input/output (I/O). These blocks convert data between serial data and parallel interfaces in each direction. The term "SerDes" generally refers to the interface used in a variety of technologies and applications. The primary purpose of SerDes is to provide data transfer over a single line or differential line pair, minimizing the number of I/O pins and interconnects. Clock and data recovery (CDR) circuits are responsible for sampling the analog waveforms of high-speed SerDes systems at the appropriate time. For example, high-speed SerDes receivers can use Bang-bang CDR or Baud-rate CDR. Bang-bang CDR has good performance, but consumes higher power because additional clock phases are required to sample symbol edge information. Therefore, Bang-bang CDR is not a good choice for low power applications. Compared to Bang-bang CDR, baud rate CDR has poorer performance but consumes less power since each symbol is only sampled once. Therefore, baud rate CDR is a good choice for low power applications. However, baud rate CDR may encounter multiple lock phase problems. That is to say, the baud rate CDR will lock different locking phases for different initial phases, and only one of the different locking phases is suitable, while other locking phases may lead to wrong decisions.

因此,需要一种新颖的解决方案能够解决波特率CDR的多重锁定相位问题并且能够与采用多种可能I/O架构其中之一的时钟发生器电路良好地工作,其中多种可能I/O架构包括公共时钟(common clock)架构、正向时钟(forward clock)架构和嵌入式时钟(embedded clock)架构。Therefore, there is a need for a novel solution that can solve the multiple locked phase problem of the baud rate CDR and can work well with the clock generator circuit using one of the many possible I/O architectures. The architecture includes common clock architecture, forward clock architecture and embedded clock architecture.

发明内容Contents of the invention

本发明的其中一个目的在于提供一种时钟调整电路以及相关的时钟调整方法,其在获取模式与追踪模式下,利用样式筛选电路来选择预定数据样式以进行相位误差检测。One object of the present invention is to provide a clock adjustment circuit and a related clock adjustment method, which use a pattern screening circuit to select a predetermined data pattern for phase error detection in acquisition mode and tracking mode.

根据本发明的第一方面,公开了一种示例性时钟调整电路。示例性时钟调整电路包括样式筛选电路、相位误差检测器(PED)电路和相位误差计算电路。样式筛选电路用于在时钟调整电路的获取模式下从多个连续数据样本中选择第一预定数据样式,其中多个连续数据样本源自第一采样器电路的输出。PED电路用于根据样式筛选电路的输出以及从第二采样器电路的输出得出的误差样本,来检测相位误差。相位误差计算电路用于根据所述PED电路的输出确定采样时钟的定时补偿,其中所述采样时钟由所述第一采样器电路和所述第二采样器电路使用。According to a first aspect of the invention, an exemplary clock adjustment circuit is disclosed. Exemplary clock adjustment circuits include pattern screening circuits, phase error detector (PED) circuits, and phase error calculation circuits. The pattern screening circuit is configured to select a first predetermined data pattern from a plurality of consecutive data samples originating from an output of the first sampler circuit in an acquisition mode of the clock adjustment circuit. The PED circuit is used to detect the phase error based on the output of the pattern filter circuit and the error samples derived from the output of the second sampler circuit. A phase error calculation circuit is used to determine the timing compensation of a sampling clock used by the first sampler circuit and the second sampler circuit based on the output of the PED circuit.

根据本发明的第二方面,公开了一种示例性时钟调整方法。示例性时钟调整方法包括:在所述时钟调整方法的获取模式下执行样式过滤操作,以从多个连续数据样本中选择第一预定数据样式,其中所述多个连续数据样本源自第一采样操作的输出;执行相位误差检测,根据所述样式过滤操作的输出以及从第二采样操作的输出得出的误差样本来检测相位误差;以及根据所述相位误差检测的输出,执行相位误差计算操作以确定采样时钟的定时补偿,其中所述采样时钟由所述第一采样操作和所述第二采样操作使用。According to a second aspect of the invention, an exemplary clock adjustment method is disclosed. An exemplary clock adjustment method includes performing a pattern filtering operation in an acquisition mode of the clock adjustment method to select a first predetermined data pattern from a plurality of consecutive data samples, wherein the plurality of consecutive data samples originate from a first sample the output of the operation; performing a phase error detection based on the output of the pattern filtering operation and error samples derived from the output of the second sampling operation; and based on the output of the phase error detection, performing a phase error calculation operation to determine a timing offset for a sampling clock used by the first sampling operation and the second sampling operation.

本发明能够解决波特率CDR的多重锁定相位问题并且能够与采用多种可能I/O架构其中之一的时钟发生器电路良好地工作。The present invention can solve the problem of multiple locked phases of baud rate CDR and can work well with clock generator circuits using one of many possible I/O architectures.

本领域技术人员在阅读了以下各图和附图中所示的优选实施例的详细描述后,本发明的这些和其他目标无疑将变得显而易见。These and other objects of the present invention will undoubtedly become apparent to those skilled in the art upon reading the following figures and the detailed description of the preferred embodiments shown in the accompanying drawings.

附图说明Description of the drawings

图1是根据本发明实施例的使用具有获取(acquisition,ACQ)样式选择(patternselection)和跟踪(tracking,TRK)样式选择的时钟调整电路的第一应用的示意图。1 is a schematic diagram of a first application using a clock adjustment circuit with acquisition (ACQ) pattern selection (pattern selection) and tracking (tracking, TRK) pattern selection according to an embodiment of the present invention.

图2是例示多重锁定相位的根本原因的示例的示意图。Figure 2 is a schematic diagram illustrating an example of a root cause of multiple locked phases.

图3是例示PED函数的S曲线的示意图,其中在PED函数使用的数据样式具有由ISI导致的判决错误的情况下PED函数具有针对波特率CDR的多个锁定相位。Figure 3 is a schematic diagram illustrating an S-curve of a PED function having multiple locked phases for a baud rate CDR in the case where the data pattern used by the PED function has decision errors caused by ISI.

图4是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-3 -3 1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅有具单个锁定相位。4 is a schematic diagram illustrating an S-curve of a PED function selected as an ACQ pattern used by the PED circuit 104 in the data pattern D[n-1:n+1]=[-3-3 1]. Conditionally the CDR has only a single locked phase for the baud rate.

图5是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-3 -3 -1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。5 is a schematic diagram illustrating an S-curve of the PED function, where the S-curve is an ACQ pattern selected as the PED circuit 104 when the data pattern D[n-1:n+1]=[-3-3-1] The CDR has only a single locked phase for the baud rate.

图6是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[33 1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。FIG. 6 is a schematic diagram illustrating an S-curve of the PED function for an ACQ pattern used by the PED circuit 104 under the condition that the data pattern D[n-1:n+1]=[33 1] is selected. Baud rate CDR only has a single locked phase.

图7是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[33 -1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。7 is a schematic diagram illustrating an S-curve of the PED function under the condition that the data pattern D[n-1:n+1]=[33-1] is selected as an ACQ pattern used by the PED circuit 104. CDR only has a single locked phase for baud rate.

图8是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[1-3 -3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。8 is a schematic diagram illustrating an S-curve of a PED function selected as an ACQ pattern used by the PED circuit 104 in the data pattern D[n-1:n+1]=[1-3-3]. Conditional CDR has only a single locked phase for the baud rate.

图9是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-1 -3 -3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。9 is a schematic diagram illustrating an S-curve of the PED function, where the S-curve is an ACQ pattern selected as the PED circuit 104 when the data pattern D[n-1:n+1]=[-1-3-3] The CDR has only a single locked phase for the baud rate.

图10是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[1 3 3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。FIG. 10 is a schematic diagram illustrating an S-curve of the PED function under the condition that the data pattern D[n-1:n+1]=[1 3 3] is selected as an ACQ pattern used by the PED circuit 104. CDR only has a single locked phase for baud rate.

图11是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-1 3 3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。FIG. 11 is a schematic diagram illustrating an S-curve of the PED function under a condition that the data pattern D[n-1:n+1]=[-1 3 3] is selected as an ACQ pattern used by the PED circuit 104 The CDR only has a single locked phase for the baud rate.

图12是例示根据本发明的实施例的CDR样式切换的概念的示意图。FIG. 12 is a schematic diagram illustrating the concept of CDR pattern switching according to an embodiment of the present invention.

图13是例示根据本发明实施例的使用具有ACQ样式选择和TRK样式选择的时钟调整电路的第二应用的示意图。13 is a schematic diagram illustrating a second application using a clock adjustment circuit with ACQ pattern selection and TRK pattern selection according to an embodiment of the present invention.

具体实施方式Detailed ways

贯穿以下描述和权利要求使用某些术语来指代特定的组件。如本领域技术人员应当清楚的,电子设备制造商可以用不同的名称来指代组件。本文档无意在名称不同而非功能不同的组件之间加以区分。在以下描述和权利要求中,术语“包含”和“包括”以开放式的方式使用,并因此应被解释成意指“包括但不限于......”。而且,术语“联接(couple)”旨在意指间接电气连接或直接电气连接。因此,如果将一个装置联接另一装置,则该连接可以通过直接电气连接,或者通过经由其它装置和连接的间接电气连接。Certain terms are used throughout the following description and claims to refer to specific components. As will be apparent to those skilled in the art, electronic device manufacturers may refer to components by different names. This document is not intended to differentiate between components that have different names rather than different functions. In the following description and claims, the terms "including" and "including" are used in an open-ended fashion, and therefore should be interpreted to mean "including, but not limited to...". Furthermore, the term "couple" is intended to mean either an indirect electrical connection or a direct electrical connection. Thus, if one device is coupled to another device, the connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.

图1是根据本发明实施例的使用具有获取(acquisition,ACQ)样式选择(patternselection)和跟踪(tracking,TRK)样式选择的时钟调整电路的第一应用的示意图。例如,但不限于,时钟调整电路100可以是波特率(Baud-rate)时钟和数据恢复(clock and datarecovery,CDR)电路的一部分。例如,高速SerDes接收器10可以采用波特率CDR电路。在该实施例中,高速SerDes接收器10包括多个采样器电路12和14、时钟发生器电路16、接收器子系统18和时钟调整电路100。时钟调整电路100包括样式筛选电路102、相位误差检测器(phaseerror detector,PED)电路104、相位误差计算电路106和样式切换控制电路108。高速SerDes接收器10用于接收数据输入信号(模拟信号)S_IN,并从模拟输入信号S_IN得出传输数据以生成数据输出信号(数字信号)D_OUT。例如,数据输入信号S_IN是从高速SerDes发送器(未示出)发送的n级脉冲幅度调制(n-level pulse amplitude modulation,PAMn)信号,数据输出信号D_OUT包括从数据输入信号S_IN中提取的PAMn编码数据。1 is a schematic diagram of a first application using a clock adjustment circuit with acquisition (ACQ) pattern selection (pattern selection) and tracking (tracking, TRK) pattern selection according to an embodiment of the present invention. For example, but not limited to, the clock adjustment circuit 100 may be part of a baud-rate clock and data recovery (clock and data recovery, CDR) circuit. For example, high-speed SerDes receiver 10 may employ baud rate CDR circuitry. In this embodiment, high-speed SerDes receiver 10 includes multiple sampler circuits 12 and 14, clock generator circuit 16, receiver subsystem 18, and clock adjustment circuit 100. The clock adjustment circuit 100 includes a pattern screening circuit 102, a phase error detector (PED) circuit 104, a phase error calculation circuit 106 and a pattern switching control circuit 108. The high-speed SerDes receiver 10 is used to receive a data input signal (analog signal) S_IN, and derive transmission data from the analog input signal S_IN to generate a data output signal (digital signal) D_OUT. For example, the data input signal S_IN is an n-level pulse amplitude modulation (PAMn) signal transmitted from a high-speed SerDes transmitter (not shown), and the data output signal D_OUT includes the PAMn extracted from the data input signal S_IN Encode data.

采样器电路12可以由限幅器(slicer)或模数转换器来实现。采样器电路12用于根据从时钟发生器电路16所产生的采样时钟CLK_S对模拟输入信号S_IN进行采样,生成并输出多个连续数据样本d[k]。采样器电路14可以由限幅器或模数转换器来实现。采样器电路14用于根据时钟发生器电路16所产生的采样时钟CLK_S对模拟输入信号S_IN进行采样,生成并输出分别对应于连续数据样本d[k]的多个误差样本e[k]。以PAM4信号为例,模拟输入信号S_IN(两比特数据)被编码成以每时钟单位间隔(unit interval,UI)发送的四级(four-level)符号,使得采样器电路12得到的数据样本可以是从{+3,+1,-1,-3}中选择的四级符号。具体地,当数据样本的采样电压高于最高阈值(top threshold)时,数据样本被判定为+3;当数据样本的采样电压在最高阈值和中间阈值(middle threshold)之间时,数据样本被判定为+1。当数据样本的采样电压在中间阈值和最低阈值(bottom threshold)之间时,数据样本被判定为-1。当数据样本的采样电压低于最低阈值时,数据样本被判定为-3。可以通过将实际采样电压与目标参考电压进行比较来得出每个UI中的误差样本。接收器子系统18可以包含均衡器和/或其他信号处理功能。The sampler circuit 12 may be implemented by a slicer or an analog-to-digital converter. The sampler circuit 12 is used to sample the analog input signal S_IN according to the sampling clock CLK_S generated from the clock generator circuit 16, and generate and output a plurality of continuous data samples d[k]. The sampler circuit 14 may be implemented by a limiter or an analog-to-digital converter. The sampler circuit 14 is used to sample the analog input signal S_IN according to the sampling clock CLK_S generated by the clock generator circuit 16, and generate and output a plurality of error samples e[k] respectively corresponding to the continuous data samples d[k]. Taking the PAM4 signal as an example, the analog input signal S_IN (two-bit data) is encoded into four-level symbols sent at every clock unit interval (unit interval, UI), so that the data samples obtained by the sampler circuit 12 can It is a fourth-level symbol selected from {+3,+1,-1,-3}. Specifically, when the sampling voltage of the data sample is higher than the top threshold, the data sample is determined to be +3; when the sampling voltage of the data sample is between the top threshold and the middle threshold, the data sample is determined to be +3. The judgment is +1. When the sampling voltage of the data sample is between the middle threshold and the bottom threshold, the data sample is determined to be -1. When the sampling voltage of the data sample is lower than the minimum threshold, the data sample is judged to be -3. The error samples in each UI can be derived by comparing the actual sampled voltage to the target reference voltage. Receiver subsystem 18 may contain equalizer and/or other signal processing functions.

由于时钟调整电路100是波特率CDR电路的一部分,因此时钟调整电路100被布置为处理定时恢复(timing recovery)。样式筛选电路102被布置为在时钟调整电路100的ACQ模式下从连续数据样本中选择第一预定数据样式,其中连续数据样本是从采样器电路12的输出得出的。在该实施例中,连续数据样本d[k]在通过接收器子系统18之后被样式筛选电路102接收。具体地,样式筛选电路102对连续的数据样本执行ACQ样式选择,使得第一预定数据样式作为由PED电路104在ACQ模式下使用的ACQ样式,并且连续数据样本中包括的其余数据样式被阻止到达PED电路104。PED电路104被布置为根据样式筛选电路102的输出和从采样器电路14的输出导出的误差样本,检测相位误差。具体地,PED电路104采用PED函数(function)进行相位误差检测,其中PED函数的输出取决于数据样本和误差样本。如上所述,典型的波特率CDR存在多重锁定相位问题,其中多重锁定相位的根本原因在于提供错误定时信息的判决错误。Since the clock adjustment circuit 100 is part of a baud rate CDR circuit, the clock adjustment circuit 100 is arranged to handle timing recovery. The pattern screening circuit 102 is arranged to select a first predetermined data pattern from consecutive data samples derived from the output of the sampler circuit 12 in the ACQ mode of the clock adjustment circuit 100 . In this embodiment, consecutive data samples d[k] are received by pattern filtering circuit 102 after passing through receiver subsystem 18 . Specifically, the pattern screening circuit 102 performs ACQ pattern selection on consecutive data samples such that the first predetermined data pattern serves as the ACQ pattern used by the PED circuit 104 in the ACQ mode, and the remaining data patterns included in the consecutive data samples are prevented from reaching PED circuit 104. The PED circuit 104 is arranged to detect phase errors based on the output of the pattern filter circuit 102 and the error samples derived from the output of the sampler circuit 14 . Specifically, the PED circuit 104 uses a PED function for phase error detection, where the output of the PED function depends on the data samples and the error samples. As mentioned above, typical baud rate CDR has multiple lock-phase problems, where the root cause of multiple lock-phases is a decision error that provides wrong timing information.

图2是例示多重锁定相位的根本原因的示例的示意图。假设三个连续的PAM4符号D[n-1:n+1]是[-3 -1 3]。特性曲线202例示了连续PAM4符号[-3 -1 3]的理想转换。符号间干扰(intersymbol interference,ISI)是信号失真的一种形式,其中一个符号干扰后续符号。因此,由于ISI,连续PAM4符号[-3 -1 3]的实际模拟波形偏离连续PAM4符号[-3 -1 3]的理想模拟波形。连续PAM4符号[-3 -1 3]的实际转换由特性曲线204例示。E表示在CDR初始化时D[n]的可能采样范围。C表示没有判决错误的良好采样点。在“A”范围内进行采样的情况下,则采样时间过晚。由于CDR锁定太晚,导致D[n]判决错误,连续的PAM4符号[-3 -13]的采样结果变为[-3 1 3]。此外,由于D[n]的采样电压低于参考电压电平+1(这是PAM4符号“1”的理想电压电平),因此相关的误差样本为负值,表示CDR锁定太早,这与采样时间晚了的实际情况不同因而提供了错误的定时信息。在另一种情况下,在范围“B”内执行采样,则采样时间提前。由于CDR锁定过早,导致D[n]判决错误,连续的PAM4符号[-3 -1 3]的采样结果变为[-3 -3 1]。此外,由于D[n]的采样电压高于参考电压电平-3(这是PAM4符号“-3”的理想电压电平),因此相关的误差样本为正值,表明CDR锁定太晚,这与采样时间早的实际情况不同并且因而提供了错误的定时信息。简而言之,当由连续数据样本(例如PAM4符号)组成的数据样式的模拟波形遭受严重的ISI时,PED函数的输出可以指示不正确的相位误差,并可以使得波特率CDR接近一个偏离正确相位的锁定相位。Figure 2 is a schematic diagram illustrating an example of a root cause of multiple locked phases. Assume that three consecutive PAM4 symbols D[n-1:n+1] are [-3 -1 3]. Characteristic curve 202 illustrates the ideal transition of consecutive PAM4 symbols [-3 -1 3]. Intersymbol interference (ISI) is a form of signal distortion in which one symbol interferes with subsequent symbols. Therefore, the actual simulated waveform of consecutive PAM4 symbols [-3 -1 3] deviates from the ideal simulated waveform of consecutive PAM4 symbols [-3 -1 3] due to ISI. The actual transition of the consecutive PAM4 symbols [-3 -1 3] is illustrated by characteristic curve 204 . E represents the possible sampling range of D[n] during CDR initialization. C represents a good sampling point with no decision errors. In the case of sampling within the "A" range, the sampling time is too late. Because the CDR is locked too late, the D[n] decision is wrong, and the sampling result of the consecutive PAM4 symbols [-3 -13] becomes [-3 1 3]. Furthermore, since the sample voltage of D[n] is lower than the reference voltage level +1 (which is the ideal voltage level for the PAM4 symbol "1"), the associated error samples are negative, indicating that the CDR locked too early, which is consistent with The actual situation is different when the sampling time is later and thus provides erroneous timing information. In the other case, sampling is performed within range "B", the sampling time is advanced. Because the CDR is locked too early, the D[n] decision is wrong, and the sampling result of the consecutive PAM4 symbols [-3 -1 3] becomes [-3 -3 1]. Furthermore, since the sample voltage of D[n] is higher than the reference voltage level -3 (which is the ideal voltage level for the PAM4 symbol "-3"), the associated error samples are positive, indicating that the CDR locked too late, which This differs from the actual case where the sampling time is early and thus provides erroneous timing information. In short, when an analog waveform of a data pattern consisting of consecutive data samples (such as PAM4 symbols) suffers severe ISI, the output of the PED function can indicate an incorrect phase error and can cause the baud rate CDR to approach a deviation Locked phase for correct phase.

图3是例示PED函数的S曲线的示意图,其中在PED函数使用的数据样式具有由ISI导致的判决错误的情况下PED函数具有针对波特率CDR的多个锁定相位。PED函数的输出由s-curve(τ)表示,它是CDR锁定点τ的函数。PED函数的S曲线的负斜率零交叉点(negative-slope zero-crossing point)表示一个可能的CDR锁定相位。当CDR初始相位位于捕获范围(capture range)R0内时,PED函数的输出(即S-curve(τ))表示当前CDR锁定点与CDR锁定相位τ0(其是正确的锁定相位)之间的相位差,并且可以被参考用来调整当前CDR锁定点以使得其接近CDR锁定相位τ0,其中S-curve(τ0)=0。当CDR初始相位位于捕获范围R1内时,PED函数的输出(即S-curve(τ))表示当前CDR锁定点与CDR锁定相位τ1(其是错误的锁定相位)之间的相位差,并且可以被参考用来调整当前CDR锁定点,使其接近CDR锁定相位τ1,其中S-curve(τ1)=0。当CDR初始相位在捕获范围R2内时,PED函数的输出(即S-curve(τ))表示当前CDR锁定点与CDR锁定相位τ2(其是错误的锁定相位)之间的相位差,并且可以被参考用来调整当前CDR锁定点,使其接近CDR锁定相位τ2,其中S-curve(τ2)=0。3 is a schematic diagram illustrating an S-curve of a PED function having multiple locked phases for a baud rate CDR in the case where the PED function uses a data pattern that has decision errors caused by ISI. The output of the PED function is represented by s-curve(τ), which is a function of the CDR locking point τ. The negative-slope zero-crossing point of the S-curve of the PED function represents a possible CDR locking phase. When the CDR initial phase is within the capture range R0, the output of the PED function (ie S-curve(τ)) represents the distance between the current CDR lock point and the CDR lock phase τ 0 (which is the correct lock phase) The phase difference can be referenced to adjust the current CDR locking point so that it is close to the CDR locking phase τ 0 , where S-curve(τ 0 )=0. When the CDR initial phase is within the capture range R1, the output of the PED function (i.e., S-curve(τ)) represents the phase difference between the current CDR lock point and the CDR lock phase τ 1 (which is the wrong lock phase), and It can be used as a reference to adjust the current CDR locking point to make it close to the CDR locking phase τ 1 , where S-curve(τ 1 )=0. When the CDR initial phase is within the capture range R2, the output of the PED function (i.e., S-curve(τ)) represents the phase difference between the current CDR lock point and the CDR lock phase τ 2 (which is the wrong lock phase), and It can be used as a reference to adjust the current CDR locking point to make it close to the CDR locking phase τ 2 , where S-curve(τ 2 )=0.

如上所述,当由连续数据样本(例如,PAM4符号)组成的数据样式的模拟波形遭受严重的ISI时,PED函数的输出可以指示不正确的相位误差,并可以使波特率CDR接近由正确的相位误差导出的锁定相位。为了解决在ACQ模式中遇到的这种多重锁定相位问题,本发明提出ACQ样式选择,以在时钟调整电路100的ACQ模式下从连续的数据样本中选择第一预定数据样式S1,其中第一预定数据样式S1中的每一者能确保PED函数没有多个锁定相位。举例来说,第一预定数据样式(即,ACQ样式)S1中的每一者包含多个数据样本,且这些数据样本中任意两个数据样本之间的信号电平差异被限制在预设范围内。As mentioned above, when an analog waveform of a data pattern consisting of consecutive data samples (e.g., PAM4 symbols) suffers severe ISI, the output of the PED function can indicate incorrect phase error and can cause the baud rate CDR to approach the error by the correct The phase error derives the locked phase. In order to solve this multiple locked phase problem encountered in the ACQ mode, the present invention proposes ACQ pattern selection to select a first predetermined data pattern S1 from consecutive data samples in the ACQ mode of the clock adjustment circuit 100, wherein the first Each of the predetermined data patterns S1 ensures that the PED function does not have multiple locking phases. For example, each of the first predetermined data patterns (i.e., ACQ patterns) S1 includes a plurality of data samples, and the signal level difference between any two of the data samples is limited to a preset range Inside.

以PAM4信号作为模拟输入信号S_IN的示例,两比特数据被编码成在每个UI传输的四级符号(four-level symbol),使得采样器电路12得到的数据样本可以是选自{+3,+1,-1,-3}的四级符号。假设第一预定数据样式(即,ACQ样式)S1中的每一者包括D[n-1]、D[n]和D[n+1]序列。由于D[n-1]、D[n]、D[n+1]均是从{+3、+1、-1、-3}中选择的四级符号,因而D[n-1]、D[n]和D[n+1]序列可以有64种组合。满足D[n-1]≤D[n]<D[n+1]、D[n-1]<D[n]≤D[n+1]、D[n-1]≥D[n]>D[n+1]、以及D[n-1]>D[n]≥D[n+1]之一的任何数据样式可以具有定时信息(timing information)。因此,在64个数据样式中,有32个数据样式可能具有定时信息。然而,具有定时信息的这些数据样式中的一些数据样式可能具有多个锁定相位。样式筛选电路102被设计为选择其中定时信息不具有多个锁定相位的数据样式。Taking the PAM4 signal as an example of the analog input signal S_IN, the two-bit data is encoded into a four-level symbol transmitted in each UI, so that the data samples obtained by the sampler circuit 12 can be selected from {+3, +1,-1,-3} four-level symbols. Assume that each of the first predetermined data patterns (ie, ACQ patterns) S1 includes D[n-1], D[n], and D[n+1] sequences. Since D[n-1], D[n], and D[n+1] are all four-level symbols selected from {+3, +1, -1, -3}, D[n-1], There are 64 possible combinations of D[n] and D[n+1] sequences. Satisfy D[n-1]≤D[n]<D[n+1], D[n-1]<D[n]≤D[n+1], D[n-1]≥D[n] Any data pattern that is one of >D[n+1], and D[n-1]>D[n]≥D[n+1] may have timing information. Therefore, out of 64 data patterns, 32 data patterns may have timing information. However, some of these data patterns with timing information may have multiple locked phases. The pattern screening circuit 102 is designed to select data patterns in which the timing information does not have multiple locking phases.

当D[n-1:n+1]之间的信号电平差越小,D[n]判决错误的错误概率就越低。可以采用以下ACQ样式选择规则中的一个或多个规则来选择第一预定数据样式(即,ACQ样式)S1。根据第一ACQ样式选择规则,D[n]等于+3或-3。原因是最大的符号(例如,PAM4的±3)具有更强的抗ISI能力。根据第二ACQ样式选择规则,D[n]等于D[n-1],D[n+1]等于+1或-1。根据第三种ACQ样式选择规则,D[n]等于D[n+1],D[n-1]等于+1或-1。因此,符合ACQ样式选择规则的第一预定数据样式(即,ACQ样式)S1如下表所示。When the signal level difference between D[n-1:n+1] is smaller, the error probability of D[n] decision error is lower. The first predetermined data pattern (ie, ACQ pattern) S1 may be selected using one or more of the following ACQ pattern selection rules. According to the first ACQ pattern selection rule, D[n] is equal to +3 or -3. The reason is that the largest symbols (e.g., ±3 for PAM4) are more resistant to ISI. According to the second ACQ pattern selection rule, D[n] is equal to D[n-1], and D[n+1] is equal to +1 or -1. According to the third ACQ style selection rule, D[n] is equal to D[n+1], and D[n-1] is equal to +1 or -1. Therefore, the first predetermined data pattern (ie, ACQ pattern) S1 that conforms to the ACQ pattern selection rule is as shown in the following table.

D[n-1]D[n-1] D[n]D[n] D[n+1]D[n+1] -3-3 -3-3 11 -3-3 -3-3 -1-1 33 33 11 33 33 -1-1 11 -3-3 -3-3 -1-1 -3-3 -3-3 11 33 33 -1-1 33 33

根据PED电路104所采用的PED函数的设计,PED函数的S曲线的负斜率零交叉点表示一个可能的CDR锁定相位。图4是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-3 -3 1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅有具单个锁定相位。图5是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-3 -3 -1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。图6是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[3 3 1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。图7是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[3 3 -1]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。图8是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[1 -3 -3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。图9是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-1 -3 -3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。图10是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[1 3 3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。图11是例示PED函数的S曲线的示意图,其中该S曲线是在数据样式D[n-1:n+1]=[-1 3 3]被选择作为PED电路104使用的一个ACQ样式的条件下对于波特率CDR仅具有单个锁定相位。According to the design of the PED function used in the PED circuit 104, the negative slope zero crossing point of the S-curve of the PED function represents a possible CDR locking phase. 4 is a schematic diagram illustrating an S-curve of a PED function selected as an ACQ pattern used by the PED circuit 104 in the data pattern D[n-1:n+1]=[-3-3 1]. Conditionally the CDR has only a single locked phase for the baud rate. 5 is a schematic diagram illustrating an S-curve of the PED function, where the S-curve is an ACQ pattern selected as the PED circuit 104 when the data pattern D[n-1:n+1]=[-3-3-1] The CDR has only a single locked phase for the baud rate. 6 is a schematic diagram illustrating an S-curve of the PED function under the condition that the data pattern D[n-1:n+1]=[3 3 1] is selected as an ACQ pattern used by the PED circuit 104. CDR only has a single locked phase for baud rate. 7 is a schematic diagram illustrating an S-curve of a PED function under a condition that the data pattern D[n-1:n+1]=[3 3 -1] is selected as an ACQ pattern used by the PED circuit 104 The CDR only has a single locked phase for the baud rate. 8 is a schematic diagram illustrating an S-curve of a PED function selected as an ACQ pattern used by the PED circuit 104 in the data pattern D[n-1:n+1]=[1-3-3]. Conditional CDR has only a single locked phase for the baud rate. 9 is a schematic diagram illustrating an S-curve of the PED function, where the S-curve is an ACQ pattern selected as the PED circuit 104 when the data pattern D[n-1:n+1]=[-1-3-3] The CDR has only a single locked phase for the baud rate. FIG. 10 is a schematic diagram illustrating an S-curve of the PED function under the condition that the data pattern D[n-1:n+1]=[1 3 3] is selected as an ACQ pattern used by the PED circuit 104. CDR only has a single locked phase for baud rate. FIG. 11 is a schematic diagram illustrating an S-curve of the PED function under a condition that the data pattern D[n-1:n+1]=[-1 3 3] is selected as an ACQ pattern used by the PED circuit 104 The CDR only has a single locked phase for the baud rate.

由于样式筛选电路102可以滤除掉对波特率CDR具有多个锁定相位的一些数据样式,因此不需要控制CDR初始相位。此外,由于PED函数的S曲线在每个第一预定数据样式(即ACQ样式)S1下只有对于波特率CDR的单个锁定相位,因此可以实现SerDes定时恢复的宽捕获范围,如图4至图11所示。Since the pattern filtering circuit 102 can filter out some data patterns that have multiple locking phases to the baud rate CDR, there is no need to control the CDR initial phase. Furthermore, since the S-curve of the PED function has only a single locked phase for the baud rate CDR at each first predetermined data pattern (i.e., ACQ pattern) S1, a wide capture range of SerDes timing recovery can be achieved, as shown in Figure 4 to Figure Shown in 11.

PED电路104的输出(例如,S-curve(τ))指示当前CDR锁定点和期望的CDR锁定相位之间的相位误差。相位误差计算电路106被布置成根据PED电路104的输出来确定采样时钟CLK_S的定时补偿,并且指示时钟发生器电路16将定时补偿应用到采样器电路(例如,数据限幅器)12和采样器电路(例如,CDR限幅器)14所使用的采样时钟CLK_S。例如,相位误差计算电路106可以收集PED电路104提供的接收到的不同的PAMn符号(例如,PAM4符号)的定时误差,并累加所收集的定时误差以提供定时补偿至时钟发生器电路16。然而,此仅供说明之用,并不用于限制本发明。The output of PED circuit 104 (eg, S-curve(τ)) indicates the phase error between the current CDR lock point and the desired CDR lock phase. The phase error calculation circuit 106 is arranged to determine the timing compensation of the sampling clock CLK_S from the output of the PED circuit 104 and instruct the clock generator circuit 16 to apply the timing compensation to the sampler circuit (eg data slicer) 12 and the sampler The sampling clock CLK_S used by circuit (eg, CDR limiter) 14. For example, phase error calculation circuit 106 may collect timing errors for different received PAMn symbols (eg, PAM4 symbols) provided by PED circuit 104 and accumulate the collected timing errors to provide timing compensation to clock generator circuit 16 . However, this is for illustrative purposes only and is not intended to limit the invention.

时钟调整电路100使得CDR电路(特别是波特率CDR电路)锁定在S曲线负斜率零交叉点。对于上述的每个第一预定数据样式(即,ACQ样式)S1,它可以在期望的锁定相位附近具有小的斜率。因此,第一预定数据样式(即,ACQ样式)S1中的每一者被特别选择为具有宽捕获范围,但在期望的锁定相位附近对采样时间变化不太敏感。为了解决这个问题,在本发明中,选择的ACQ样式具有较低判决错误概率的D[n]以防止多个锁定相位,选择的TRK样式具有围绕D[n]的大S曲线斜率以实现更好的CDR性能。如图1所示,样式切换控制电路108包含在时钟调整电路100中。当时钟调整电路100由于CDR锁定点接近期望的锁定相位而从ACQ模式切换到TRK模式时,样式切换控制电路108用于指示样式筛选电路102在时钟调整电路100的TRK模式下从连续数据样本中选择第二预定数据样式(即TRK样式)S2,其中第二预定数据样式(即TRK样式)S2中每一者都不同于任何第一预定数据样式(即,ACQ样式)S1。The clock adjustment circuit 100 causes the CDR circuit (especially the baud rate CDR circuit) to be locked at the negative slope zero crossing point of the S-curve. For each first predetermined data pattern (ie, ACQ pattern) S1 described above, it may have a small slope near the desired locking phase. Therefore, each of the first predetermined data patterns (i.e., ACQ patterns) S1 is specifically selected to have a wide acquisition range but to be less sensitive to sampling time variations around the desired locking phase. To solve this problem, in the present invention, the ACQ pattern is selected to have D[n] with lower decision error probability to prevent multiple locked phases, and the TRK pattern is selected to have a large S-curve slope around D[n] to achieve more Good CDR performance. As shown in FIG. 1 , the pattern switching control circuit 108 is included in the clock adjustment circuit 100 . When the clock adjustment circuit 100 switches from the ACQ mode to the TRK mode because the CDR locking point is close to the desired locking phase, the pattern switching control circuit 108 is used to instruct the pattern screening circuit 102 to select from consecutive data samples in the TRK mode of the clock adjustment circuit 100 Second predetermined data patterns (ie, TRK patterns) S2 are selected, wherein each of the second predetermined data patterns (ie, TRK patterns) S2 is different from any of the first predetermined data patterns (ie, ACQ patterns) S1.

以PAM4信号作为模拟输入信号S_IN的示例,两比特数据被编码成在每个UI传输的四级符号(four-level symbol),使得采样器电路12得到的数据样本可以是选自{+3,+1,-1,-3}的四级符号。假设第二预定数据样式(即,TRK样式)S2中的每一者包括D[n-1]、D[n]和D[n+1]序列。第二预定数据样式(即,TRK样式)S2中的每一者都需要在期望的锁定相位周围具有大的S曲线斜率。例如,符合TRK样式选择规则的第二预定数据样式(即,TRK样式)S2如下表所示。Taking the PAM4 signal as an example of the analog input signal S_IN, the two-bit data is encoded into a four-level symbol transmitted in each UI, so that the data samples obtained by the sampler circuit 12 can be selected from {+3, +1,-1,-3} four-level symbols. Assume that each of the second predetermined data patterns (ie, TRK patterns) S2 includes D[n-1], D[n], and D[n+1] sequences. Each of the second predetermined data patterns (ie, TRK patterns) S2 requires a large S-curve slope around the desired locking phase. For example, the second predetermined data pattern (ie, TRK pattern) S2 that conforms to the TRK pattern selection rule is shown in the following table.

图12是例示根据本发明的实施例的CDR样式切换的概念的示意图。在锁定相位处(即负斜率零交叉点)具有较大斜率的S曲线将具有更好的CDR质量。因此,在TRK模式下使用TRK样式1204进行相位误差检测的波特率CDR电路可以具有更好的性能。然而,在ACQ模式下使用TRK样式1204进行相位误差检测的波特率CDR电路存在多重锁定相位问题。在本实施例中,在ACQ模式下使用ACQ样式1202进行相位误差检测的波特率CDR电路,可以避免TRK样式1204引起的多重锁定相位问题。简单来说,ACQ模式和TRK模式可以使用不同的CDR方法,来解决不同的问题。此外,ACQ模式CDR和TRK模式CDR共享大部分硬件,仅需要样式筛选电路102来改变被选择用于后续相位误差检测的数据样式。FIG. 12 is a schematic diagram illustrating the concept of CDR pattern switching according to an embodiment of the present invention. An S-curve with a larger slope at the locked phase (i.e., the negative slope zero crossing point) will have better CDR quality. Therefore, the baud rate CDR circuit using TRK style 1204 for phase error detection in TRK mode can have better performance. However, the baud rate CDR circuit using TRK style 1204 for phase error detection in ACQ mode has multiple locked phase issues. In this embodiment, the baud rate CDR circuit using ACQ pattern 1202 for phase error detection in ACQ mode can avoid multiple locking phase problems caused by TRK pattern 1204. Simply put, ACQ mode and TRK mode can use different CDR methods to solve different problems. In addition, the ACQ mode CDR and the TRK mode CDR share most of the hardware and only require the pattern filtering circuit 102 to change the data pattern selected for subsequent phase error detection.

在上述实施例中,所提出的时钟调整电路100应用于使用波特率CDR电路用于定时恢复的高速SerDes接收器。然而,这仅是为了说明的目的,并不意味着对本发明的限制。实际上,任何使用所提出的时钟调整电路100的应用都落在本发明的范围内。In the above embodiment, the proposed clock adjustment circuit 100 is applied to a high-speed SerDes receiver using a baud rate CDR circuit for timing recovery. However, this is for illustrative purposes only and is not meant to be a limitation of the invention. In fact, any application using the proposed clock adjustment circuit 100 falls within the scope of the present invention.

图13是例示根据本发明实施例的使用具有ACQ样式选择和TRK样式选择的时钟调整电路的第二应用的示意图。举例来说,但不限于,时钟调整电路100可以是使用Bang-bangCDR电路的应用的一部分。例如,高速SerDes接收器1300可以采用Bang-bang CDR电路。高速SerDes接收器1300包括多个采样器电路1302、1304和1306、接收器子系统1308、CDR时钟发生器电路1310、数据时钟发生器电路1312、Bang-bang CDR电路1314、组合电路1316以及上述时钟调整电路100。13 is a schematic diagram illustrating a second application using a clock adjustment circuit with ACQ pattern selection and TRK pattern selection according to an embodiment of the present invention. For example, but not limited to, the clock adjustment circuit 100 may be part of an application using a Bang-bangCDR circuit. For example, the high-speed SerDes receiver 1300 may employ Bang-bang CDR circuitry. High-speed SerDes receiver 1300 includes multiple sampler circuits 1302, 1304, and 1306, receiver subsystem 1308, CDR clock generator circuit 1310, data clock generator circuit 1312, Bang-bang CDR circuit 1314, combining circuit 1316, and the clocks described above Adjust circuit 100.

高速SerDes接收器1300被布置为接收数据输入信号(模拟信号)S_IN,并且从模拟输入信号S_IN得出待传输数据以产生数据输出信号(数字信号)D_OUT。例如,数据输入信号S_IN是从高速SerDes发送器(未示出)发送的n级脉冲幅度调制(PAMn)信号,并且数据输出信号D_OUT包括PAMn编码数据。采样器电路1302可以由限幅器或模数转换器来实现。类似于如图1所示的采样器电路12,采样器电路(例如数据限幅器)1302用于依据数据时钟发生器电路1312所产生的采样时钟CLK_S来采样模拟输入信号S_IN,产生并输出多个连续的数据样本d[k]。采样器电路1304可以由限幅器或模数转换器来实现。类似于如图1所示的采样器电路14,采样器电路(例如偏斜限幅器(skew slicer))1304用以依据数据时钟发生器电路1312所产生的采样时钟CLK_S对模拟输入信号S_IN进行采样,产生并输出与多个连续的数据样本d[k]对应的多个误差样本e[k]。采样器电路1306可以由限幅器或模数转换器来实现。采样器电路(例如CDR限幅器)1306用于根据CDR时钟发生器电路1310产生的另一采样时钟CLK_S'对模拟输入信号S_IN进行采样,产生并输出Bang-bang CDR电路1314所需的符号边缘信息。类似于如图1所示的接收器子系统18,接收器子系统1308可以包含均衡器和/或其他信号处理功能。The high speed SerDes receiver 1300 is arranged to receive a data input signal (analog signal) S_IN and to derive the data to be transmitted from the analog input signal S_IN to generate a data output signal (digital signal) D_OUT. For example, the data input signal S_IN is an n-level pulse amplitude modulation (PAMn) signal transmitted from a high-speed SerDes transmitter (not shown), and the data output signal D_OUT includes PAMn encoded data. Sampler circuit 1302 may be implemented by a limiter or an analog-to-digital converter. Similar to the sampler circuit 12 shown in FIG. 1 , the sampler circuit (eg, data slicer) 1302 is used to sample the analog input signal S_IN according to the sampling clock CLK_S generated by the data clock generator circuit 1312 to generate and output a plurality of signals. consecutive data samples d[k]. Sampler circuit 1304 may be implemented by a limiter or an analog-to-digital converter. Similar to the sampler circuit 14 shown in FIG. 1 , the sampler circuit (such as a skew slicer) 1304 is used to perform sampling on the analog input signal S_IN according to the sampling clock CLK_S generated by the data clock generator circuit 1312 . Sampling, generating and outputting multiple error samples e[k] corresponding to multiple consecutive data samples d[k]. Sampler circuit 1306 may be implemented by a limiter or an analog-to-digital converter. The sampler circuit (such as a CDR limiter) 1306 is used to sample the analog input signal S_IN according to another sampling clock CLK_S' generated by the CDR clock generator circuit 1310 to generate and output the symbol edges required by the Bang-bang CDR circuit 1314 information. Similar to receiver subsystem 18 shown in Figure 1, receiver subsystem 1308 may contain an equalizer and/or other signal processing functionality.

为了满足高性能需求,高速SerDes接收器1300可以采用Bang-bang CDR电路1314。为了防止双时钟频率要求,高速SerDes接收器1300使用两个时钟发生器电路,包括数据时钟发生器电路1312和CDR时钟发生器电路1310,以支持半UI相位差。具体地,采样时钟CLK_S的期望采样相位位于在每个UI传输的一个符号的中间,采样时钟CLK_S'的期望采样相位位于在每个UI传输的一个符号的边缘。包括数据时钟发生器电路1312和CDR时钟发生器电路1310的两个时钟发生器电路之间的偏移是不可忽略的。To meet high-performance requirements, the high-speed SerDes receiver 1300 may employ a Bang-bang CDR circuit 1314. To prevent dual clock frequency requirements, the high-speed SerDes receiver 1300 uses two clock generator circuits, including a data clock generator circuit 1312 and a CDR clock generator circuit 1310, to support half UI phase difference. Specifically, the expected sampling phase of the sampling clock CLK_S is located in the middle of one symbol transmitted in each UI, and the expected sampling phase of the sampling clock CLK_S' is located at the edge of one symbol transmitted in each UI. The offset between the two clock generator circuits including the data clock generator circuit 1312 and the CDR clock generator circuit 1310 is not negligible.

在本实施例中,时钟调整电路100被设置为处理数据偏移校准(skewcalibration)。样式筛选电路102被设置为在偏斜校准的ACQ模式下从连续数据样本中选择第一预定数据样式(即,ACQ样式)S1,其中连续数据样本源自采样器电路1302的输出。在此实施例中,连续的数据样本d[k]在经过接收子系统1318后被样式筛选电路102接收。具体地,样式筛选电路102对连续数据样本进行ACQ样式选择,使得第一预定数据样式作为在偏斜校准的ACQ模式下由PED电路104使用的ACQ样式,并且连续数据样本中的其余数据样式被阻止到达PED电路104。PED电路104被布置为根据样式筛选电路102的输出以及从采样器电路1314的输出导出的误差样本,检测相位误差。具体地,PED电路104采用PED函数进行相位误差检测,其中PED函数的输出取决于数据样本和误差样本。In this embodiment, the clock adjustment circuit 100 is configured to handle data skew calibration. Pattern screening circuit 102 is configured to select a first predetermined data pattern (ie, ACQ pattern) S1 from consecutive data samples originating from the output of sampler circuit 1302 in a skew-calibrated ACQ mode. In this embodiment, consecutive data samples d[k] are received by the pattern filtering circuit 102 after passing through the receiving subsystem 1318 . Specifically, the pattern screening circuit 102 performs ACQ pattern selection on consecutive data samples such that the first predetermined data pattern is used as the ACQ pattern by the PED circuit 104 in the skew-calibrated ACQ mode, and the remaining data patterns in the consecutive data samples are Reaching the PED circuit 104 is blocked. The PED circuit 104 is arranged to detect phase errors based on the output of the pattern filter circuit 102 and error samples derived from the output of the sampler circuit 1314 . Specifically, the PED circuit 104 uses a PED function for phase error detection, where the output of the PED function depends on the data samples and the error samples.

相位误差计算电路106被布置为根据PED电路104的输出来确定采样时钟CLK_S的定时补偿。例如,相位误差计算电路106可以收集PED电路104提供的接收到的不同的PAMn符号(例如,PAM4符号)的定时误差(timing error),累加收集到的定时误差以提供定时补偿给数据时钟发生器电路1312。在本实施例中,组合电路1316可由加法器实现,使得相位误差计算电路106的输出和Bang-bang CDR电路1314的输出被组合,以共同控制数据时钟发生器电路1312,用于采样器电路(例如,数据限幅器)和采样器电路(例如,偏斜限幅器)1314所使用的采样时钟CLK_S的定时补偿1312。The phase error calculation circuit 106 is arranged to determine the timing compensation of the sampling clock CLK_S from the output of the PED circuit 104 . For example, the phase error calculation circuit 106 may collect the timing errors (timing errors) of different received PAMn symbols (eg, PAM4 symbols) provided by the PED circuit 104, and accumulate the collected timing errors to provide timing compensation to the data clock generator. Circuit 1312. In this embodiment, the combining circuit 1316 may be implemented by an adder, such that the output of the phase error calculation circuit 106 and the output of the Bang-bang CDR circuit 1314 are combined to jointly control the data clock generator circuit 1312 for the sampler circuit ( Timing compensation 1312 for the sampling clock CLK_S used by, for example, a data slicer) and sampler circuit (eg, a skew slicer) 1314.

当由于偏移校准的锁定点接近期望的锁定相位而时钟调整电路100从ACQ模式切换到TRK模式时,样式切换控制电路108可操作为指示样式筛选电路102在偏斜校准的TRK模式下从连续数据样本中选择第二预定数据样式(即TRK样式)S2,其中每个第二预定数据样式(即,TRK样式)S2不同于任何第一预定数据样式(即ACQ样式)S1。如此,高速SerDes接收器1300受益于时钟调整电路100,从而在偏斜校准的ACQ模式下具有宽的偏斜校准范围以及在偏斜校准的TRK模式下具有高性能。When the clock adjustment circuit 100 switches from the ACQ mode to the TRK mode due to the offset calibrated locking point approaching the desired locking phase, the pattern switching control circuit 108 is operable to instruct the pattern screening circuit 102 to switch from continuous to TRK mode in the offset calibrated TRK mode. Second predetermined data patterns (ie, TRK patterns) S2 are selected from the data samples, wherein each second predetermined data pattern (ie, TRK pattern) S2 is different from any first predetermined data pattern (ie, ACQ pattern) S1. As such, the high-speed SerDes receiver 1300 benefits from the clock adjustment circuit 100 to have a wide skew calibration range in the skew-calibrated ACQ mode and high performance in the skew-calibrated TRK mode.

由于相关领域的技术人员在阅读以上针对图1所示实施例中使用的时钟调整电路100的段落之后,可以容易地理解图13所示实施例中使用的时钟调整电路100的细节,因此在此不赘述。Since those skilled in the relevant art can easily understand the details of the clock adjustment circuit 100 used in the embodiment shown in FIG. 13 after reading the above paragraphs for the clock adjustment circuit 100 used in the embodiment shown in FIG. 1, hereby No need to go into details.

需要说明的是,在本发明的一些实施例中,具有时钟调整电路100提供的定时补偿的时钟发生器电路16和数据时钟发生器电路1312均可以支持任何I/O架构,例如公共时钟架构、正向时钟架构或嵌入式时钟架构。It should be noted that in some embodiments of the present invention, both the clock generator circuit 16 and the data clock generator circuit 1312 with timing compensation provided by the clock adjustment circuit 100 can support any I/O architecture, such as a common clock architecture, Forward clock architecture or embedded clock architecture.

本领域的技术人员将容易地观察到,在保留本发明的教导的同时可以对装置和方法进行许多修改和改变。因此,上述公开内容应被解释为仅受所附权利要求的限制。Those skilled in the art will readily observe that many modifications and variations can be made in the apparatus and methods while retaining the teachings of the present invention. Accordingly, the foregoing disclosure should be construed as limited only by the appended claims.

Claims (20)

1.一种时钟调整电路,包括:1. A clock adjustment circuit, including: 样式筛选电路,用于在所述时钟调整电路的获取模式下从多个连续数据样本中选择第一预定数据样式,其中所述多个连续数据样本源自第一采样器电路的输出;Pattern screening circuitry for selecting a first predetermined data pattern from a plurality of consecutive data samples derived from an output of the first sampler circuit in an acquisition mode of the clock adjustment circuit; 相位误差检测器PED电路,用于根据所述样式筛选电路的输出以及从第二采样器电路的输出得出的误差样本,来检测相位误差;以及a phase error detector PED circuit for detecting a phase error based on the output of the pattern screening circuit and error samples derived from the output of the second sampler circuit; and 相位误差计算电路,用于根据所述PED电路的输出确定采样时钟的定时补偿,其中所述采样时钟由所述第一采样器电路和所述第二采样器电路使用。Phase error calculation circuit for determining timing compensation of a sampling clock used by the first sampler circuit and the second sampler circuit based on the output of the PED circuit. 2.如权利要求1所述的时钟调整电路,其特征在于,所述第一预定数据样式中的每一者均包括多个数据样本,且所述多个数据样本中的任意两个数据样本之间的信号电平差被限制在预定范围内。2. The clock adjustment circuit of claim 1, wherein each of the first predetermined data patterns includes a plurality of data samples, and any two data samples of the plurality of data samples The signal level difference between them is limited to a predetermined range. 3.如权利要求2所述的时钟调整电路,其特征在于,所述多个连续数据样本是根据所述采样时钟对四级脉冲幅度调制(PAM4)信号进行采样而得到的,所述多个数据样本包括序列D[n-1]、D[n]、D[n+1],D[n]等于+3或-3。3. The clock adjustment circuit of claim 2, wherein the plurality of continuous data samples are obtained by sampling a four-level pulse amplitude modulation (PAM4) signal according to the sampling clock, and the plurality of continuous data samples are obtained by sampling a four-level pulse amplitude modulation (PAM4) signal according to the sampling clock. The data samples include the sequence D[n-1], D[n], D[n+1], and D[n] is equal to +3 or -3. 4.如权利要求2所述的时钟调整电路,其特征在于,所述多个连续数据样本是根据所述采样时钟对PAM4信号进行采样得到的,所述多个数据样本包括序列D[n-1]、D[n]、D[n+1],D[n]等于D[n-1],D[n+1]等于+1或-1。4. The clock adjustment circuit of claim 2, wherein the plurality of continuous data samples are obtained by sampling the PAM4 signal according to the sampling clock, and the plurality of data samples include the sequence D[n- 1], D[n], D[n+1], D[n] is equal to D[n-1], and D[n+1] is equal to +1 or -1. 5.如权利要求4所述的时钟调整电路,其特征在于,D[n]等于+3或-3。5. The clock adjustment circuit of claim 4, wherein D[n] is equal to +3 or -3. 6.如权利要求2所述的时钟调整电路,其特征在于,所述多个连续数据样本是根据所述采样时钟对PAM4信号进行采样得到的,所述多个数据样本包括序列D[n-1]、D[n]、D[n+1],D[n]等于D[n+1],D[n-1]等于+1或-1。6. The clock adjustment circuit of claim 2, wherein the plurality of continuous data samples are obtained by sampling the PAM4 signal according to the sampling clock, and the plurality of data samples include the sequence D[n- 1], D[n], D[n+1], D[n] is equal to D[n+1], and D[n-1] is equal to +1 or -1. 7.如权利要求6所述的时钟调整电路,其特征在于,D[n]等于+3或-3。7. The clock adjustment circuit of claim 6, wherein D[n] is equal to +3 or -3. 8.如权利要求1所述的时钟调整电路,其特征在于,还包括:8. The clock adjustment circuit of claim 1, further comprising: 样式切换控制电路,其中响应于所述时钟调整电路从所述获取模式切换到跟踪模式,所述样式切换控制电路被布置为指示所述样式筛选电路在所述时钟调整电路的所述跟踪模式下从所述多个连续数据样本中选择第二预定数据样式;所述第二预定数据样式中的每一者与任何所述第一预定数据样式不同。Pattern switching control circuit, wherein in response to the clock adjustment circuit switching from the acquisition mode to the tracking mode, the pattern switching control circuit is arranged to instruct the pattern screening circuit to be in the tracking mode of the clock adjustment circuit A second predetermined data pattern is selected from the plurality of consecutive data samples; each of the second predetermined data patterns is different from any of the first predetermined data patterns. 9.如权利要求1所述的时钟调整电路,其特征在于,所述时钟调整电路是波特率时钟和数据恢复电路的一部分,用于定时恢复。9. The clock adjustment circuit of claim 1, wherein the clock adjustment circuit is part of a baud rate clock and data recovery circuit for timing recovery. 10.如权利要求1所述的时钟调整电路,其特征在于,所述时钟调整电路是使用Bang-bang时钟和数据恢复电路的应用的一部分,且用于数据偏移校准。10. The clock adjustment circuit of claim 1, wherein the clock adjustment circuit is part of an application using a Bang-bang clock and data recovery circuit and is used for data offset calibration. 11.一种时钟调整方法,包括:11. A clock adjustment method, comprising: 在所述时钟调整方法的获取模式下执行样式过滤操作,以从多个连续数据样本中选择第一预定数据样式,其中所述多个连续数据样本源自第一采样操作的输出;performing a pattern filtering operation in an acquisition mode of the clock adjustment method to select a first predetermined data pattern from a plurality of consecutive data samples, wherein the plurality of consecutive data samples originate from an output of a first sampling operation; 执行相位误差检测,根据所述样式过滤操作的输出以及从第二采样操作的输出得出的误差样本来检测相位误差;以及performing phase error detection based on the output of the pattern filtering operation and error samples derived from the output of the second sampling operation; and 根据所述相位误差检测的输出,执行相位误差计算操作以确定采样时钟的定时补偿,其中所述采样时钟由所述第一采样操作和所述第二采样操作使用。Based on the output of the phase error detection, a phase error calculation operation is performed to determine a timing compensation of a sampling clock used by the first sampling operation and the second sampling operation. 12.如权利要求11所述的时钟调整方法,其特征在于,所述第一预定数据样式中的每一者均包括多个数据样本,且所述多个数据样本中的任意两个数据样本之间的信号电平差被限制在预定范围内。12. The clock adjustment method of claim 11, wherein each of the first predetermined data patterns includes a plurality of data samples, and any two data samples of the plurality of data samples The signal level difference between them is limited to a predetermined range. 13.如权利要求12所述的时钟调整方法,其特征在于,所述多个连续数据样本是根据所述采样时钟对四级脉冲幅度调制PAM4信号进行采样而得到的,所述多个数据样本包括序列D[n-1]、D[n]、D[n+1],D[n]等于+3或-3。13. The clock adjustment method of claim 12, wherein the plurality of continuous data samples are obtained by sampling a four-level pulse amplitude modulated PAM4 signal according to the sampling clock, and the plurality of data samples Including the sequence D[n-1], D[n], D[n+1], D[n] is equal to +3 or -3. 14.如权利要求12所述的时钟调整方法,其特征在于,所述多个连续数据样本是根据所述采样时钟对PAM4信号进行采样得到的,所述多个数据样本包括序列D[n-1]、D[n]、D[n+1],D[n]等于D[n-1],D[n+1]等于+1或-1。14. The clock adjustment method according to claim 12, wherein the plurality of continuous data samples are obtained by sampling the PAM4 signal according to the sampling clock, and the plurality of data samples include the sequence D[n- 1], D[n], D[n+1], D[n] is equal to D[n-1], and D[n+1] is equal to +1 or -1. 15.如权利要求14所述的时钟调整方法,其特征在于,D[n]等于+3或-3。15. The clock adjustment method according to claim 14, wherein D[n] is equal to +3 or -3. 16.如权利要求12所述的时钟调整方法,其特征在于,所述多个连续数据样本是根据所述采样时钟对PAM4信号进行采样得到的,所述多个数据样本包括序列D[n-1]、D[n]、D[n+1],D[n]等于D[n+1],D[n-1]等于+1或-1。16. The clock adjustment method of claim 12, wherein the plurality of continuous data samples are obtained by sampling the PAM4 signal according to the sampling clock, and the plurality of data samples include the sequence D[n- 1], D[n], D[n+1], D[n] is equal to D[n+1], and D[n-1] is equal to +1 or -1. 17.如权利要求16所述的时钟调整方法,其特征在于,D[n]等于+3或-3。17. The clock adjustment method according to claim 16, wherein D[n] is equal to +3 or -3. 18.如权利要求11所述的时钟调整方法,其特征在于,还包括:18. The clock adjustment method according to claim 11, further comprising: 响应于所述时钟调整电路从所述获取模式切换到跟踪模式,指示所述样式过滤操作在所述时钟调整电路的所述跟踪模式下从所述多个连续数据样本中选择第二预定数据样式;Instructing the pattern filtering operation to select a second predetermined data pattern from the plurality of consecutive data samples in the tracking mode of the clock adjustment circuit in response to the clock adjustment circuit switching from the acquisition mode to the tracking mode. ; 其中所述第二预定数据样式中的每一者与任何所述第一预定数据样式不同。wherein each of said second predetermined data patterns is different from any of said first predetermined data patterns. 19.如权利要求11所述的时钟调整方法,其特征在于,所述时钟调整方法是波特率时钟和数据恢复电路的一部分,且用于定时恢复。19. The clock adjustment method of claim 11, wherein the clock adjustment method is part of a baud rate clock and data recovery circuit and is used for timing recovery. 20.如权利要求11所述的时钟调整方法,其特征在于,所述时钟调整方法是使用Bang-bang时钟和数据恢复电路的应用的一部分,且用于数据偏移校准。20. The clock adjustment method of claim 11, wherein the clock adjustment method is part of an application using a Bang-bang clock and data recovery circuit and is used for data offset calibration.
CN202310462003.6A 2022-05-11 2023-04-26 Clock adjustment circuit and method Pending CN117060918A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US63/340,485 2022-05-11
US18/131,879 2023-04-07
US18/131,879 US20230367357A1 (en) 2022-05-11 2023-04-07 Clock adjustment circuit using pattern filter circuit to select predetermined data patterns for phase error detection under acquisition mode and tracking mode and associated clock adjustment method

Publications (1)

Publication Number Publication Date
CN117060918A true CN117060918A (en) 2023-11-14

Family

ID=88652405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310462003.6A Pending CN117060918A (en) 2022-05-11 2023-04-26 Clock adjustment circuit and method

Country Status (1)

Country Link
CN (1) CN117060918A (en)

Similar Documents

Publication Publication Date Title
US11277254B2 (en) Receiver with enhanced clock and data recovery
KR102529936B1 (en) Sampler offset calibration during operation
CN111149308B (en) Method for measuring and correcting multi-line time offset
US20100103999A1 (en) Partial response decision-feedback equalization with adaptation based on edge samples
US11627022B2 (en) Variable gain amplifier and sampler offset calibration without clock recovery
US9882795B1 (en) Signal loss detector
US12074735B2 (en) Horizontal centering of sampling point using multiple vertical voltage
TWI870835B (en) Clock adjustment circuit and associated clock adjustment method
CN117060918A (en) Clock adjustment circuit and method
US11736265B2 (en) Horizontal centering of sampling point using vertical vernier
US11838156B2 (en) Continuous time linear equalization and bandwidth adaptation using asynchronous sampling

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