WO2021036836A1 - 接口时序校准方法及装置 - Google Patents

接口时序校准方法及装置 Download PDF

Info

Publication number
WO2021036836A1
WO2021036836A1 PCT/CN2020/109392 CN2020109392W WO2021036836A1 WO 2021036836 A1 WO2021036836 A1 WO 2021036836A1 CN 2020109392 W CN2020109392 W CN 2020109392W WO 2021036836 A1 WO2021036836 A1 WO 2021036836A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
application layer
clock
physical layer
clock signal
Prior art date
Application number
PCT/CN2020/109392
Other languages
English (en)
French (fr)
Inventor
张西锋
段琪
王卓
邓海东
孙顺清
Original Assignee
晶晨半导体(上海)股份有限公司
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
Application filed by 晶晨半导体(上海)股份有限公司 filed Critical 晶晨半导体(上海)股份有限公司
Publication of WO2021036836A1 publication Critical patent/WO2021036836A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0004Parallel ports, e.g. centronics

Definitions

  • the present invention relates to the field of communication technology, in particular to an interface timing calibration method and device.
  • Chips are greatly affected by chip manufacturing deviations, and large deviations are likely to occur between chip interface data and clock timing. Chips generally use fixed timing parameters, and the effective window margin is relatively small, resulting in product yield. Poor problem.
  • An interface timing calibration method applied to an interface coupled to an application layer and a physical layer, the physical layer adopts a loopback mode, and includes the following steps:
  • the application layer sends a data packet to the physical layer, the application layer receives the data packet sent by the physical layer, and judges the data packet according to the data packet received by the application layer.
  • the validity of the clock signal
  • the effective range of the clock phase of the clock signal is obtained, and the phase of the receiving target clock is obtained according to the effective range.
  • the step of the clock signal received by the application layer is adjusted, the application layer sends a data packet to the physical layer, and the application layer receives the data packet sent by the physical layer based on the data received by the application layer
  • the step of packet judging the validity of the clock signal includes:
  • the application layer sends a data packet to the physical layer, and the physical layer sends the received data packet to the application layer in a loopback manner;
  • the application layer verifies the received data packet, and marks the sending clock of the application layer corresponding to the data packet that has passed the verification;
  • the step of the application layer verifying the received data packet and marking the sending clock of the application layer corresponding to the data packet that has passed the verification includes:
  • the application layer compares the received data packet with the corresponding sent data packet, and if the data packets are the same, the verification is passed, and the sending clock of the application layer corresponding to the received data packet is marked.
  • the step of the application layer verifying the received data packet and marking the sending clock of the application layer corresponding to the data packet that has passed the verification includes:
  • the application layer uses a cyclic redundancy check code to verify the received data packet, and if the verification passes, the application layer sending clock corresponding to the received data packet is marked.
  • the step of acquiring the valid range of the clock phase of the clock signal and acquiring the phase of the receiving target clock according to the valid range includes:
  • the middle phase of the effective range is used as the phase of the reception target clock.
  • the present invention also provides an interface timing calibration device, which is applied in an interface coupled to the application layer and the physical layer, and the physical layer adopts a loopback mode, including:
  • the control unit is configured to adjust the step of the clock signal received by the application layer, the application layer sends a data packet to the physical layer, the application layer receives the data packet sent by the physical layer, and the application layer receives Judging the validity of the clock signal according to the data packet;
  • the processing unit is configured to obtain the valid range of the clock phase of the clock signal, and obtain the phase of the receiving target clock according to the valid range.
  • control unit includes:
  • An adjustment module configured to adjust the clock signal received by the application layer at a preset step within a preset period range
  • a sending module configured to send a data packet to the physical layer, and the physical layer outputs the received data packet in a loopback manner
  • a receiving module for receiving data packets sent by the physical layer
  • the verification module is used to verify the received data packet and mark the sending clock of the application layer corresponding to the data packet that has passed the verification.
  • the verification module is used to compare the received data packet with the corresponding sent data packet, if the data packet is the same, the verification is passed, and the application layer corresponding to the received data packet is sent The clock is marked.
  • the check module is configured to check the received data packet by using a cyclic redundancy check code, and if the check passes, mark the sending clock of the application layer corresponding to the received data packet .
  • the processing unit is configured to generate a valid range of clock phases according to all the marked sending clocks, and use the middle phase of the valid range as the phase of the receiving target clock.
  • the interface timing calibration method is applied to the interface coupled to the application layer and the physical layer.
  • the application layer sends the data packet to the physical layer and obtains the loopback of the physical layer.
  • Data packet in order to judge the validity of the clock signal according to the data packet received by the application layer; obtain the phase of the receiving target clock according to the clock phase valid range of the clock signal, so as to realize the selection of the best clock timing parameters according to different chips to make the interface
  • the effective window margin is maximized.
  • FIG. 1 is a method flowchart of an embodiment of the interface timing calibration method according to the present invention
  • FIG. 2 is a flowchart of an embodiment of the method for adjusting the step by which the application layer receives the clock signal to obtain the validity of the clock signal according to the present invention
  • FIG. 3 is a block diagram of an embodiment of the interface timing calibration device according to the present invention.
  • this embodiment provides an interface timing calibration method, which is applied to an interface coupled to an application layer and a physical layer (Physical Layer, PHY for short).
  • the physical layer adopts a loopback mode, including the following step:
  • the application layer sends a data packet to the physical layer, and the application layer receives the data packet sent by the physical layer according to the data packet received by the application layer Judging the validity of the clock signal;
  • the application layer is the media access control layer (Media Access Control, MAC for short) of the chip.
  • the interface in this embodiment is RGMII (Reduced Gigabit Media Independent Interface), which is a simplified gigabit media independent interface.
  • step S1 may include:
  • the application layer sends a data packet to the physical layer, and the physical layer sends the received data packet to the application layer in a loopback manner;
  • the physical layer loopback has two signal loopback methods, one is loopback at the RGMII interface of the physical layer, and the other is realized by loopback network cable. Both loopback methods need to be configured. Realization of registers at the physical layer.
  • the data packet sent by the application layer is a longer-length data packet (for example: 1514Byte) to ensure correctness, prevent window misjudgment, and ensure the balance between sending time and communication accuracy.
  • the application layer verifies the received data packet, and marks the sending clock of the application layer corresponding to the data packet that passes the verification;
  • the application layer may compare the received data packet with the corresponding sent data packet, and if the data packets are the same, the verification is passed, and the application layer corresponding to the received data packet The send clock is marked.
  • the application layer may use a cyclic redundancy check code to verify the received data packet, and if the verification is passed, the application layer transmission clock corresponding to the received data packet Mark it.
  • each step has a delay of 0.2ns as an example.
  • the adjustable range provided is 0-3ns, and the physical layer interface
  • the delay of the clock signal can be reversed through the internal registers of the chip, which is equivalent to an increase of 4ns delay (clock cycle is 8ns), and the internal clock of the physical layer has a fixed delay of 2ns. Therefore, when performing step adjustment, the delay of the received clock signal can be divided into 4 stages, as follows:
  • the first stage 0 ⁇ 3ns
  • the second stage 2ns ⁇ 5ns, adjust the application layer sending clock step on the basis of the internal clock delay of the outer physical layer 2ns;
  • the third stage 4ns ⁇ 7ns, after setting the register in the chip reversely, adjust the application layer sending clock step;
  • the fourth stage 6ns ⁇ 9ns, on the basis of the internal clock delay of the outer physical layer of 2ns, and after the internal registers of the chip are set in reverse, the application layer sends the clock step to be adjusted.
  • the above four segments are to adjust the timing of the sending clock with 0.2ns as a step.
  • the adjustment range covers one clock cycle.
  • the timing of the received clock signal is adjusted step by step at each stage, and the application layer Send data packets to the physical layer.
  • the physical layer feeds back the received data packets to the application layer through a loopback method; the application layer verifies the received data packets and sends the corresponding application layer to the data packets that pass the verification.
  • the clock is marked and adjusted step by step, and the sending clock of the application layer corresponding to each step is obtained for marking until the adjustment of all stages is completed.
  • step S2 may include:
  • the middle phase of the effective range is used as the phase of the reception target clock.
  • the phase of the receiving target clock can be set to the middle position of the effective range to ensure the stable and reliable data communication of the RGMII interface.
  • 2.5MHz, 25MHz or 125MHz can be used to calibrate the interface timing. Calibrate each data interface in the RGMII interface one by one.
  • the physical layer adopts the loopback mode, so that the application layer can receive the data packet sent by itself, and check the received data packet to determine whether the current RGMII interface clock phase passes the verification, and then Adjust the clock phase and repeat the packet sending and receiving and data packet checking operations in the previous step. After scanning the complete clock phase, find the valid range of the clock phase, and then set the clock phase to the middle position of the valid range of the clock phase to ensure the data of the RGMII interface
  • the communication is stable and reliable, so that the best timing parameters can be selected as the phase of the receiving target clock according to different chips, so as to maximize the effective window margin of the interface.
  • an interface timing calibration device is applied to an interface coupled to the application layer and the physical layer.
  • the physical layer adopts a loopback mode and includes: a control unit 1 and a processing unit 2, wherein:
  • the control unit 1 is configured to adjust the step of the clock signal received by the application layer, the application layer sends data packets to the physical layer, and the application layer receives data packets sent by the physical layer according to the application layer The received data packet judges the validity of the clock signal;
  • the application layer is the media access control layer of the chip.
  • the interface in this embodiment is RGMII, which is a simplified gigabit media independent interface.
  • the control unit 1 may include: an adjustment module 11, a sending module 12, a receiving module 13, and a verification module 14, wherein:
  • the adjustment module 11 is configured to adjust the clock signal received by the application layer at a preset step within a preset period range
  • the sending module 12 is configured to send a data packet to the physical layer, and the physical layer outputs the received data packet in a loopback manner;
  • the data packet sent by the application layer is a longer-length data packet (for example: 1514Byte) to ensure correctness, prevent window misjudgment, and ensure the balance between sending time and communication accuracy.
  • the receiving module 13 is configured to receive data packets sent by the physical layer
  • the verification module 14 is configured to verify the received data packet, and mark the sending clock of the application layer corresponding to the data packet that has passed the verification.
  • the verification module 14 can compare the received data packet with the corresponding sent data packet. If the data packet is the same, the verification is passed, and the application corresponding to the received data packet is checked. The sending clock of the layer is marked.
  • the check module 14 may also use a cyclic redundancy check code to check the received data packet, and if the check passes, then check the application layer corresponding to the received data packet. Send clock to mark.
  • the processing unit 2 is configured to obtain the valid range of the clock phase of the clock signal, and obtain the phase of the receiving target clock according to the valid range.
  • the processing unit 2 may generate the valid range of the clock phase according to all the marked sending clocks, and use the middle phase of the valid range as the phase of the receiving target clock.
  • 2.5MHz, 25MHz or 125MHz can be used to calibrate the interface timing. Calibrate each data interface in the RGMII interface one by one.
  • the interface timing calibration device adopts the loopback mode through the physical layer, so that the application layer can receive the data packet sent by itself, and check the received data packet to determine whether the current RGMII interface clock phase passes the verification, and then adjust the clock Phase and repeat the packet sending and receiving and data packet checking operations in the previous step. After scanning the complete clock phase, find the valid range of the clock phase, and then set the clock phase to the middle position of the valid range of the clock phase to ensure the stable data communication of the RGMII interface Reliable, so as to realize the selection of the best timing parameters according to different chips as the phase of the receiving target clock, so as to maximize the effective window margin of the interface.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种接口时序校准方法及装置,属于通信技术领域。本发明接口时序校准方法应用在耦合于应用层与物理层的接口中,通过调整应用层接收时钟信号的步进,应用层将数据包发送至物理层,并获取物理层环回的数据包,以便于依据应用层接收的数据包判断时钟信号的有效性;根据时钟信号的时钟相位有效范围获取接收目标时钟的相位,从而实现根据不同芯片选择最佳的时钟时序参数,以使接口的有效窗口余量最大化。

Description

接口时序校准方法及装置 技术领域
本发明涉及通信技术领域,尤其涉及一种接口时序校准方法及装置。
背景技术
现有芯片接口随着芯片制造偏差的影响较大,芯片接口的数据与时钟时序之间容易出现较大偏差,芯片普遍采用固定的时序参数,有效窗口余量相对较小,从而造成产品良率较差的问题。
发明内容
针对现有芯片接口窗口余量小的问题,现提供一种旨在可根据不同芯片的选择最佳的时序参数的接口时序校准方法及装置。
一种接口时序校准方法,应用在耦合于应用层与物理层的接口中,所述物理层采用环回模式,包括下述步骤:
调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性;
获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位。
优选的,调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性的步骤,包括:
在预设周期范围内以预设步进调整所述应用层接收时钟信号;
所述应用层发送数据包至所述物理层,所述物理层通过环回的方式将接收到的所述数据包发送至所述应用层;
所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记;
重复调整所述应用层接收时钟信号,直至完成所述预设周期范围内所有步进的调整。
优选的,所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记的步骤,包括:
所述应用层将接收到的所述数据包与相应的发送数据包进行比对,若数据包相同,则校验通过,对接收到的数据包对应的应用层的发送时钟进行标记。
优选的,所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记的步骤,包括:
所述应用层采用循环冗余校验码对接收到的所述数据包进行校验,若校验通过,则对接收到的数据包对应的应用层的发送时钟进行标记。
优选的,获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位的步骤,包括:
根据标记的所有所述发送时钟生成时钟相位的有效范围;
将所述有效范围的中间相位作为所述接收目标时钟的相位。
本发明还提供一种接口时序校准装置,应用在耦合于应用层与物理层的接口中,所述物理层采用环回模式,包括:
控制单元,用于调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性;
处理单元,用于获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位。
优选的,所述控制单元包括:
调整模块,用于在预设周期范围内以预设步进调整所述应用层接收时钟信号;
发送模块,用于发送数据包至所述物理层,所述物理层通过环回的方式将接收到的所述数据包输出;
接收模块,用于对接收所述物理层发送的数据包;
校验模块,用于对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记。
优选的,所述校验模块用于将接收到的所述数据包与相应的发送数据包进行比对,若数据包相同,则校验通过,对接收到的数据包对应的应用层的发送时钟进行标记。
优选的,所述校验模块用于采用循环冗余校验码对接收到的所述数据包进行校验,若校验通过,则对接收到的数据包对应的应用层的发送时钟进行标记。
优选的,所述处理单元用于根据标记的所有所述发送时钟生成时钟相位的有效范围,将所述有效范围的中间相位作为所述接收目标时钟的相位。
上述技术方案的有益效果:
本技术方案中,接口时序校准方法应用在耦合于应用层与物理层的接口中,通过调整应用层接收时钟信号的步进,应用层将数据包发送至物理层,并获取物理层环回的数据包,以便于依据应用层接收的数据包判断时钟信号的有效性;根据时钟信号的时钟相位有效范围获取接收目标时钟的相位,从而实现根据不同芯片选择最佳的时钟时序参数,以使接口的有效窗口余量最大化。
附图说明
图1为本发明所述的接口时序校准方法的一种实施例的方法流程图;
图2为本发明调整应用层接收时钟信号的步进获取时钟信号的有效性的一种实施例的方法流程图;
图3为本发明所述的接口时序校准装置的一种实施例的模块图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。
下面结合附图和具体实施例对本发明作进一步说明,但不作为本发明的限定。
如图1所示,本实施例提供了一种接口时序校准方法,应用在耦合于应用层与物理层(Physical Layer,简称PHY)的接口中,所述物理层采用环回模式,包括下述步骤:
S1.调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性;
需要说明的是:应用层为芯片的媒体访问控制层(Media Access Control,简称MAC)。本实施例中的接口为RGMII(Reduced Gigabit Media Independent Interface)是简化的吉比特媒体独立接口。
参考图2所示,具体地,步骤S1可包括:
S11.在预设周期范围内以预设步进调整所述应用层接收时钟信号;
S12.所述应用层发送数据包至所述物理层,所述物理层通过环回的方式将接收到的所述数据包发送至所述应用层;
在本步骤中,物理层环回有两种信号环回方式,一种是在物理层的RGMII 接口处做环回,另外一种是通过环回网线实现,两种方式环回方式都需要配置物理层的寄存器实现。应用层发送数据包为长度较长的数据包(例如:1514Byte)以保证正确,防止窗口错判,保证发送时间与通信准确性之间的平衡。
S13.所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记;
进一步地,在步骤S13中所述应用层可将接收到的所述数据包与相应的发送数据包进行比对,若数据包相同,则校验通过,对接收到的数据包对应的应用层的发送时钟进行标记。
进一步地,在步骤S13中所述应用层可采用循环冗余校验码对接收到的所述数据包进行校验,若校验通过,则对接收到的数据包对应的应用层的发送时钟进行标记。
S14.判断是否完成对所述预设周期范围内所有步进的调整,若是,执行步骤S2;若否,执行步骤S11。
作为举例而非限定,在实际应用中以芯片的时钟信号内部有15个步进(step),每个步进延迟为0.2ns为例,提供的可调节范围为0~3ns,物理层的接口的时钟信号延迟可通过芯片内部的寄存器设置反向,相当于增加了4ns的延迟(时钟周期为8ns),另外物理层内部时钟有2ns的固定延迟。因此在进行步进调节时可以将接收时钟信号延迟分为4个阶段范围,具体如下:
第一阶段:0~3ns;
第二阶段:2ns~5ns,在外物理层内部时钟延迟2ns的基础上调节应用层发送时钟步进;
第三阶段:4ns~7ns,将芯片内部的寄存器设置反向后,调节应用层发送时钟步进;
第四阶段:6ns~9ns,在外物理层内部时钟延迟2ns的基础上,且将芯片内部的寄存器设置反向后,调节应用层发送时钟步进。
上述四段为以0.2ns为一个步进调整发送时钟的时序,调整范围覆盖了一个时钟周期,在实际应用时,分别在每一阶段逐个步进进行调整接收时钟信号的时序,并由应用层发送数据包至物理层,物理层通过环回的方式将接收到的数据包反馈至应用层;应用层对接收到的数据包进行校验,对校验通过的数据包对应的应用层的发送时钟进行标记,逐个步进进行调节,获取每一步进对应的应用层的发送时钟进行标记,直至完成所有阶段的调节。
S2.获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位。
具体地,步骤S2可包括:
根据标记的所有所述发送时钟生成时钟相位的有效范围;
将所述有效范围的中间相位作为所述接收目标时钟的相位。
在本步骤中,通过获取的时钟相位的有效范围,可将接收目标时钟的相位设置为有效范围的中间位置,以确保RGMII接口的数据通信稳定可靠。
在实际应用中,可采用2.5MHz、25MHz或125MHz对接口时序校准。逐个对RGMII接口中的每一数据接口进行校准。
在本实施例中,通过物理层采用环回模式,使应用层可以收到其本身发送的数据包,并对收到的数据包做检查,判断当前的RGMII接口时钟相位是否通过校验,然后调整时钟相位并重复前一步的发包收包及数据包检查操作,扫描完整个时钟相位之后,找到时钟相位有效范围,然后将时钟相位设置为时钟相位有效范围的中间位置,以确保RGMII接口的数据通信稳定可靠,从而实现根据不同芯片选择最佳的时序参数作为接收目标时钟的相位,以使接口的有效窗口余量最大化。
如图3所示,一种接口时序校准装置,应用在耦合于应用层与物理层的接口中,所述物理层采用环回模式,包括:控制单元1和处理单元2,其中:
控制单元1,用于调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应 用层接收的数据包判断所述时钟信号的有效性;
需要说明的是:应用层为芯片的媒体访问控制层。本实施例中的接口为RGMII是简化的吉比特媒体独立接口。
所述控制单元1可包括:调整模块11、发送模块12、接收模块13和校验模块14,其中:
调整模块11,用于在预设周期范围内以预设步进调整所述应用层接收时钟信号;
发送模块12,用于发送数据包至所述物理层,所述物理层通过环回的方式将接收到的所述数据包输出;
物理层环回有两种信号环回方式,一种是在物理层的RGMII接口处做环回,另外一种是通过环回网线实现,两种方式环回方式都需要配置物理层的寄存器实现。应用层发送数据包为长度较长的数据包(例如:1514Byte)以保证正确,防止窗口错判,保证发送时间与通信准确性之间的平衡。
接收模块13,用于对接收所述物理层发送的数据包;
校验模块14,用于对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记。
在本实施例中,所述校验模块14可将接收到的所述数据包与相应的发送数据包进行比对,若数据包相同,则校验通过,对接收到的数据包对应的应用层的发送时钟进行标记。
在本实施例中,所述校验模块14还可采用循环冗余校验码对接收到的所述数据包进行校验,若校验通过,则对接收到的数据包对应的应用层的发送时钟进行标记。
处理单元2,用于获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位。
在本实施例中,所述处理单元2可根据标记的所有所述发送时钟生成时钟相位的有效范围,将所述有效范围的中间相位作为所述接收目标时钟的相位。
在实际应用中,可采用2.5MHz、25MHz或125MHz对接口时序校准。逐个对RGMII接口中的每一数据接口进行校准。
接口时序校准装置通过物理层采用环回模式,使应用层可以收到其本身发送的数据包,并对收到的数据包做检查,判断当前的RGMII接口时钟相位是否通过校验,然后调整时钟相位并重复前一步的发包收包及数据包检查操作,扫描完整个时钟相位之后,找到时钟相位有效范围,然后将时钟相位设置为时钟相位有效范围的中间位置,以确保RGMII接口的数据通信稳定可靠,从而实现根据不同芯片选择最佳的时序参数作为接收目标时钟的相位,以使接口的有效窗口余量最大化。
以上所述仅为本发明较佳的实施例,并非因此限制本发明的实施方式及保护范围,对于本领域技术人员而言,应当能够意识到凡运用本发明说明书及图示内容所作出的等同替换和显而易见的变化所得到的方案,均应当包含在本发明的保护范围内。

Claims (10)

  1. 一种接口时序校准方法,应用在耦合于应用层与物理层的接口中,所述物理层采用环回模式,其特征在于,包括下述步骤:
    调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性;
    获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位。
  2. 根据权利要求1所述的接口时序校准方法,其特征在于,调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性的步骤,包括:
    在预设周期范围内以预设步进调整所述应用层接收时钟信号;
    所述应用层发送数据包至所述物理层,所述物理层通过环回的方式将接收到的所述数据包发送至所述应用层;
    所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记;
    重复调整所述应用层接收时钟信号,直至完成所述预设周期范围内所有步进的调整。
  3. 根据权利要求2所述的接口时序校准方法,其特征在于,所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记的步骤,包括:
    所述应用层将接收到的所述数据包与相应的发送数据包进行比对,若数据包相同,则校验通过,对接收到的数据包对应的应用层的发送时钟进行标记。
  4. 根据权利要求2所述的接口时序校准方法,其特征在于,所述应用层对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记的步骤,包括:
    所述应用层采用循环冗余校验码对接收到的所述数据包进行校验,若校验通过,则对接收到的数据包对应的应用层的发送时钟进行标记。
  5. 根据权利要求2所述的接口时序校准方法,其特征在于,获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位的步骤,包括:
    根据标记的所有所述发送时钟生成时钟相位的有效范围;
    将所述有效范围的中间相位作为所述接收目标时钟的相位。
  6. 一种接口时序校准装置,应用在耦合于应用层与物理层的接口中,所述物理层采用环回模式,其特征在于,包括:
    控制单元,用于调整所述应用层接收时钟信号的步进,所述应用层向所述物理层发送数据包,所述应用层接收所述物理层发送的数据包,依据所述应用层接收的数据包判断所述时钟信号的有效性;
    处理单元,用于获取所述时钟信号的时钟相位有效范围,根据所述有效范围获取接收目标时钟的相位。
  7. 根据权利要求1所述的接口时序校准装置,其特征在于,所述控制单元包括:
    调整模块,用于在预设周期范围内以预设步进调整所述应用层接收时钟信号;
    发送模块,用于发送数据包至所述物理层,所述物理层通过环回的方式将接收到的所述数据包输出;
    接收模块,用于对接收所述物理层发送的数据包;
    校验模块,用于对接收到的所述数据包进行校验,对校验通过的所述数据包对应的应用层的发送时钟进行标记。
  8. 根据权利要求7所述的接口时序校准装置,其特征在于,所述校验模块用于将接收到的所述数据包与相应的发送数据包进行比对,若数据包相同,则校验通过,对接收到的数据包对应的应用层的发送时钟进行标记。
  9. 根据权利要求7所述的接口时序校准装置,其特征在于,所述校验模块用于采用循环冗余校验码对接收到的所述数据包进行校验,若校验通过,则对接收到的数据包对应的应用层的发送时钟进行标记。
  10. 根据权利要求7所述的接口时序校准装置,其特征在于,所述处理单元用于根据标记的所有所述发送时钟生成时钟相位的有效范围,将所述有效范围的中间相位作为所述接收目标时钟的相位。
PCT/CN2020/109392 2019-08-30 2020-08-14 接口时序校准方法及装置 WO2021036836A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910817416.5A CN110618957B (zh) 2019-08-30 2019-08-30 接口时序校准方法及装置
CN201910817416.5 2019-08-30

Publications (1)

Publication Number Publication Date
WO2021036836A1 true WO2021036836A1 (zh) 2021-03-04

Family

ID=68922857

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/109392 WO2021036836A1 (zh) 2019-08-30 2020-08-14 接口时序校准方法及装置

Country Status (2)

Country Link
CN (1) CN110618957B (zh)
WO (1) WO2021036836A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666029A (zh) * 2022-03-24 2022-06-24 维沃移动通信有限公司 校准控制方法、装置及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618957B (zh) * 2019-08-30 2023-07-28 晶晨半导体(上海)股份有限公司 接口时序校准方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118244A (zh) * 2010-01-06 2011-07-06 Lsi公司 具有步进延迟预补偿的自适应时钟恢复
US20140133613A1 (en) * 2012-11-12 2014-05-15 Texas Instruments Incorporated Apparatus and methods for clock alignment for high speed interfaces
CN103984809A (zh) * 2014-04-30 2014-08-13 浙江大学 一种星间时差补偿方法和装置
CN104616697A (zh) * 2014-12-17 2015-05-13 曙光信息产业(北京)有限公司 Qdr-sram的时钟相位调整方法和装置
CN110618957A (zh) * 2019-08-30 2019-12-27 晶晨半导体(上海)股份有限公司 接口时序校准方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2509234B2 (ja) * 1987-07-31 1996-06-19 富士通株式会社 通信システムの位相同期回路
JP4506295B2 (ja) * 2004-06-11 2010-07-21 ソニー株式会社 無線通信装置及び無線通信方法、並びにコンピュータ・プログラム
CN101150316B (zh) * 2007-09-14 2011-05-11 电子科技大学 一种多通道时钟同步方法及系统
CN104113517A (zh) * 2013-04-22 2014-10-22 华为技术有限公司 时间戳生成方法、装置及系统
KR101746203B1 (ko) * 2014-11-03 2017-06-21 (주)에프씨아이 멀티 칩 시스템에서 칩들 간의 클럭 신호의 위상차 보상방법 및 장치
JP2017015597A (ja) * 2015-07-02 2017-01-19 株式会社リコー 集積回路におけるセルフテスト回路およびデータ処理回路

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118244A (zh) * 2010-01-06 2011-07-06 Lsi公司 具有步进延迟预补偿的自适应时钟恢复
US20140133613A1 (en) * 2012-11-12 2014-05-15 Texas Instruments Incorporated Apparatus and methods for clock alignment for high speed interfaces
CN103984809A (zh) * 2014-04-30 2014-08-13 浙江大学 一种星间时差补偿方法和装置
CN104616697A (zh) * 2014-12-17 2015-05-13 曙光信息产业(北京)有限公司 Qdr-sram的时钟相位调整方法和装置
CN110618957A (zh) * 2019-08-30 2019-12-27 晶晨半导体(上海)股份有限公司 接口时序校准方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666029A (zh) * 2022-03-24 2022-06-24 维沃移动通信有限公司 校准控制方法、装置及电子设备
CN114666029B (zh) * 2022-03-24 2024-05-31 维沃移动通信有限公司 校准控制方法、装置及电子设备

Also Published As

Publication number Publication date
CN110618957B (zh) 2023-07-28
CN110618957A (zh) 2019-12-27

Similar Documents

Publication Publication Date Title
US7773531B2 (en) Method for testing data packet transceiver using loop back packet generation
WO2021036836A1 (zh) 接口时序校准方法及装置
US8023976B2 (en) Method and system for accurate clock synchronization for communication networks
CA2767499C (en) A method of time synchronization of free running nodes in an avionics network
WO2014173267A1 (zh) 时间戳生成方法、装置及系统
US9882716B2 (en) Method and apparatus for generating and processing quantum signal in regular frame unit for quantum encryption key distribution
US9042411B1 (en) System and method for accurate time sampling in presence of output delay
WO2020029023A1 (zh) 波特率校准电路及串口芯片
US20180041330A1 (en) Method and apparatus for automatic skew compensation
CN114567926B (zh) 一种用于无线分布式测试系统的时钟同步和触发装置
WO2021063303A1 (zh) 获取数据流的时间戳的方法、装置、存储介质和电子装置
JP2008527894A (ja) 受信装置のクロックを100ナノ秒未満で送信装置のクロックに同期させる方法
WO2015018354A1 (zh) 天线校准方法和设备
CN101826903A (zh) 多通道通信系统的幅相特性校准方法及其装置
CN112187556B (zh) 一种拥塞测量方法、网络节点
CA2757499A1 (en) Water-base acrylic premanufactured waterproofing material and process for obtaining the same
US20110016232A1 (en) Time stamping apparatus and method for network timing synchronization
WO2021018407A1 (en) Clock synchronization in packet communications networks
CN113032320A (zh) 一种异步串口通信波特率自适应方法
US9455824B1 (en) Distributed network synchronization methods and architectures
US20120243419A1 (en) Method for testing the communication performance of a plurality of wireless signal access devices
CN106506134A (zh) 一种分组传送网的线路差动保护数据同步方法和系统
CN102821457B (zh) 基于软件无线电的时钟同步方法和软件无线电系统
WO2012068982A1 (zh) 终端校准的实现方法和装置、以及终端
US20050197082A1 (en) Method and apparatus for fine tuning a memory interface

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20856627

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20856627

Country of ref document: EP

Kind code of ref document: A1