[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118869175A - Differential link calibration method, system, electronic device and storage medium - Google Patents

Differential link calibration method, system, electronic device and storage medium Download PDF

Info

Publication number
CN118869175A
CN118869175A CN202411276708.XA CN202411276708A CN118869175A CN 118869175 A CN118869175 A CN 118869175A CN 202411276708 A CN202411276708 A CN 202411276708A CN 118869175 A CN118869175 A CN 118869175A
Authority
CN
China
Prior art keywords
signal
data
differential
polarity signal
negative polarity
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.)
Granted
Application number
CN202411276708.XA
Other languages
Chinese (zh)
Other versions
CN118869175B (en
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.)
Hefei Eko Photoelectric Technology Co ltd
Original Assignee
Hefei Eko Photoelectric Technology Co ltd
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 Hefei Eko Photoelectric Technology Co ltd filed Critical Hefei Eko Photoelectric Technology Co ltd
Priority to CN202411276708.XA priority Critical patent/CN118869175B/en
Publication of CN118869175A publication Critical patent/CN118869175A/en
Application granted granted Critical
Publication of CN118869175B publication Critical patent/CN118869175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/0264Arrangements for coupling to transmission lines
    • H04L25/0272Arrangements for coupling to multiple lines, e.g. for differential transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/08Modifications for reducing interference; Modifications for reducing effects due to line faults ; Receiver end arrangements for detecting or overcoming line faults
    • H04L25/085Arrangements for reducing interference in line transmission systems, e.g. by differential transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • H04L25/4906Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using binary codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/0033Correction by delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/0045Correction by a latch cascade

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Dc Digital Transmission (AREA)

Abstract

本申请公开了一种差分链路的校准方法、系统、电子设备和存储介质,涉及数据处理领域。该方法包括:拆分差分链路中的差分信号为正极性信号和负极性信号;选取正极性信号或负极性信号作为参考信号,剩余信号作为传输差分链路中数据的工作信号;判断工作信号的信号数据和第一待比对信号的信号相反值是否相同,若是,则保持正极性信号和负极性信号原始时间位置不变;若否,则反向移动正极性信号和负极性信号至相对原始时间位置的预设时间段处。基于上述处理,能够预判差分链路中可能出现的采样点失效问题,并通过反向移动正极性信号和负极性信号的操作提前进行锁存窗口校准,从而避免了因锁存窗口转移可能导致的误码问题。

The present application discloses a calibration method, system, electronic device and storage medium for a differential link, and relates to the field of data processing. The method includes: splitting the differential signal in the differential link into a positive polarity signal and a negative polarity signal; selecting the positive polarity signal or the negative polarity signal as a reference signal, and the remaining signal as a working signal for transmitting data in the differential link; judging whether the signal data of the working signal and the opposite value of the signal of the first signal to be compared are the same, if so, keeping the original time position of the positive polarity signal and the negative polarity signal unchanged; if not, moving the positive polarity signal and the negative polarity signal in reverse to a preset time period relative to the original time position. Based on the above processing, it is possible to predict the sampling point failure problem that may occur in the differential link, and perform latch window calibration in advance by moving the positive polarity signal and the negative polarity signal in reverse, thereby avoiding the bit error problem that may be caused by latch window transfer.

Description

Calibration method, system, electronic device and storage medium for differential link
Technical Field
The invention belongs to the field of data processing, and particularly relates to a differential link calibration method, a differential link calibration system, electronic equipment and a storage medium.
Background
Differential links are common in various systems for data acquisition, transmission, etc. For example, in the field of machine vision, image sensors utilize differential links for image data acquisition, long-distance transmission, and the like. Window detection and signal calibration in differential links is often done at power-up initialization of the signal output and is not re-performed during operation of the differential link. For example, for differential links used for image transmission, window detection and signal calibration is typically done at power-up initialization of the image sensor, which is no longer re-performed once it enters a normal operating state, where the image sensor continues to output a data stream.
If the working temperature of the sensor changes greatly (for example, from about 25 degrees to 60-70 degrees under full-speed operation when the sensor is powered on in cold start), and the link speed is higher (more than 1 Gbps) at the same time, and the ripple control of the power supply source of the data interface of the sensor is not good, the offset relationship between the clock signal and the differential signal in the differential link may change greatly compared with the offset relationship detected when the sensor is powered on and initialized. For example, if the original latch window of the differential signal in the differential link is smaller, the sampling point position based on the clock signal is likely to be invalid, and then the data acquisition is wrong, and many pixels similar to noise points appear in the image data. The latch window represents a time window in which logic levels can be stably acquired based on an effective clock edge of a clock signal.
Therefore, a calibration method for the latch window of the differential signal in the differential link is needed to avoid the error problem caused by the latch window transition.
Disclosure of Invention
The application provides a calibration method, a calibration system, electronic equipment and a storage medium of a differential link, which are used for avoiding the problem of error codes possibly caused by latch window transfer.
In order to achieve the above purpose, the present application proposes the following technical solutions:
In a first aspect of the present application, there is provided a method of calibrating a differential link, comprising:
Splitting differential signals in the differential link into positive polarity signals and negative polarity signals;
selecting the positive polarity signal or the negative polarity signal as a reference signal, and using the residual signal as a working signal for transmitting data in the differential link;
Judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same, if so, keeping the original time positions of the positive polarity signal and the negative polarity signal unchanged; if not, reversely moving the positive polarity signal and the negative polarity signal to a preset time period relative to the original time position;
The first signal to be compared is a signal after the reference signal is moved forward for a preset time period; the forward movement is represented as a time delay or a time advance, and the reverse movement represents an opposite time operation relative to the forward movement; the signal data of the working signal and the signal opposite value of the first signal to be compared are acquired from the same moment; the signal opposite value of the signal to be compared represents the signal data of the acquired signal to be compared after the signal data are subjected to inverse processing.
Optionally, the signal receiving end of the differential link is set as a fully differential circuit.
Optionally, the differential link includes a clock signal for collecting the signal data.
Optionally, the method further comprises:
Executing a data judging step, wherein the data judging step comprises judging whether signal data of the working signal and a signal opposite value of a first signal to be compared are the same;
if not, reversely moving the positive polarity signal and the negative polarity signal to a preset time period corresponding to the original time position, and transferring to a data judging step;
If yes, judging whether the signal data of the working signal and the signal opposite value of the second signal to be compared are the same; the second comparison signal is obtained after the reference signal is reversely moved for a preset time period;
If yes, keeping original time positions of the positive polarity signal and the negative polarity signal unchanged, and transferring to a data judging step; if not, the positive polarity signal and the negative polarity signal are positively moved to a preset time period corresponding to the original time position, and the data judgment step is carried out.
Optionally, the method further comprises:
judging whether the shifted positive polarity signal and the shifted negative polarity signal are matched; if yes, completing one-time calibration, and turning to a step of judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same; if not, the step of moving the positive polarity signal and the negative polarity signal to a preset time period corresponding to the original time position is canceled, the length of the preset time period is shortened, and the step of judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same is performed;
wherein the movement includes forward movement and reverse movement; the judging mode of whether the two are matched is as follows: it is determined whether or not the signal data of the shifted positive polarity signal and the signal inverse value of the shifted negative polarity signal are identical.
Optionally, the preset time period is within half of the latch window time length of the differential signal.
Optionally, the detection mode of the latch window includes:
splitting differential signals in the differential link into positive polarity signals and negative polarity signals;
Continuously delaying the clock signals in the differential link for a plurality of times, and collecting signal data of the positive polarity signal and the negative polarity signal under different delay time after each delay, wherein the signal data are respectively used as a first data sequence and a second data sequence;
performing inverse processing on the signal data in the second data sequence to obtain a third data sequence;
And selecting the delay time interval with the same data in the first data sequence and the third data sequence as a latch window of the differential signal.
In a second aspect of the application, there is provided a calibration system for a differential link comprising:
The signal splitting module is used for splitting differential signals in the differential link into positive polarity signals and negative polarity signals;
The signal selection module is used for selecting the positive polarity signal or the negative polarity signal as a reference signal, and the residual signal is used as a working signal for transmitting data in the differential link;
the data judging module is used for judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same or not, and if yes, the original time positions of the positive polarity signal and the negative polarity signal are kept unchanged; if not, reversely moving the positive polarity signal and the negative polarity signal to a preset time period relative to the original time position;
The first signal to be compared is obtained after the reference signal is moved forward for a preset time period; the forward movement is represented as a time delay or a time advance, and the reverse movement represents an opposite time operation relative to the forward movement; the signal data of the working signal and the signal opposite value of the first signal to be compared are acquired from the same moment; the signal opposite value of the signal to be compared represents the signal data of the acquired signal to be compared after the signal data are subjected to inverse processing.
In a third aspect of the present application, there is provided an electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any calibration method when executing the program stored in the memory.
In a fourth aspect of the application, a computer readable storage medium is provided, in which a computer program is stored which, when executed by a processor, implements the steps of any of the calibration methods.
The beneficial effects of the application are as follows:
The application provides a calibration method of a differential link, which comprises the following steps: splitting differential signals in the differential link into positive polarity signals and negative polarity signals; selecting a positive polarity signal or a negative polarity signal as a reference signal, and using the residual signal as a working signal for transmitting data in a differential link; judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same, if so, keeping the original time positions of the positive polarity signal and the negative polarity signal unchanged; if not, the positive polarity signal and the negative polarity signal are reversely moved to a preset time period relative to the original time position.
Based on the processing, the application transmits the data in the differential link through the working signal, is used for guaranteeing the normal operation of the differential link, and simultaneously, can pre-judge the problem of sampling point failure possibly occurring in the differential link by adjusting the reference signal and comparing the reference signal with the working signal, and can calibrate the latch window in advance through the operation of reversely moving the positive polarity signal and the negative polarity signal, thereby avoiding the problem of error codes possibly caused by the transfer of the latch window.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of a latch window movement provided by the present application;
FIG. 2 is a flow chart of a calibration method provided by the present application;
FIG. 3 is a schematic diagram of a latch window calibration process according to the present application;
FIG. 4 is a schematic flow chart of another latch window calibration provided by the present application;
FIG. 5 is a flow diagram of an improvement in an effective latch window;
FIG. 6 is a flow chart of window detection according to the present application
FIG. 7 is a schematic flow chart of signal acquisition provided by the application;
FIG. 8 is a schematic illustration of one practical workflow provided by the present application;
FIG. 9 is a block diagram of a differential link window detection system provided by the present application;
Fig. 10 is a block diagram of an electronic device provided by the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application.
Transmitting a digital signal can be understood as transmitting a series of digital sequences consisting of 0's or 1's. When communicating with different devices, the timing information is associated with the transmitted bits, so that the clock signal is required to provide the timing signals to various portions of the digital circuitry, so that each signal data transmission process can be triggered at a precise point in time. The clock signal is used to synchronize the digital signal transmitter and the signal receiver during data transmission. Wherein the determined edges of the clock are also referred to as valid clock edges. The digital signal transmitter triggers a new data transmission at each active clock edge, while the signal receiver performs data sampling at each active clock edge.
In order to improve the anti-interference capability of signal transmission and inhibit electromagnetic interference, the prior art generally adopts a differential signal form to transmit a required digital signal. In the actual transmission process, a certain time is required for the voltage change process on two lines for transmitting the differential signal, so that a voltage change area exists at two ends of the differential signal for a period of time and a voltage constant area exists in the middle of the differential signal. Correspondingly, at the effective clock edge moment of the clock signal, the signal receiving end can stably collect logic '1' and logic '0' states from the voltage constant region. Wherein, the voltage constant area in the differential signal is defined as a latch window of the differential signal in the application. Or the latch window can also be understood as: when the signal receiving end samples the data on the digital line, the setup time and the hold time form a stable window near the effective clock edge of the signal receiving end so that the signal receiving end can reliably collect the data.
Taking the field of machine vision as an example, the vast majority of occasions such as image sensor data acquisition, long-distance transmission of image data and the like adopt differential links, the level standard is changed from LVDS to sub-LVDS to SLVS and the like, and the interface type is changed from the common CameraLink interface of an industrial camera, the common MIPI interface of a mobile phone, the common PCIE interface of a computer and the like. Basically, all data acquisition systems are composed of a front-end image sensor and a back-end processor, and considering implementation complexity and cost, at present, most of image sensor data output adopts an LVDS differential interface, adopts a non-protocol (pure data mode) or MIPI protocol to output data, and in order to be compatible with drive-end design (generally an FPGA or other embedded processors), the interface rate is generally below 1.6Gbps, and adopts a double-edge (DDR) data latch mode.
With increasing image sensor resolution and output frame rates, image sensor data interfaces typically consist of a single clock and a large number of data channels (e.g., 144 data channels). Due to the effects of routing delay, chip package parasitic parameters and the like, various delay differences exist between clock signals and data (namely differential signals in the application) and between data and data channels, and finally, the data acquisition mode of delaying the clock signals by 90 degrees, which is originally fixed, gradually fails. Especially when the number of data channels is large, it is common to cause the effective latch window of the differential signal to become smaller. In the technical scheme provided by the application, the data channel represents a channel for transmitting differential signals, and the effective latch window represents a common interval of different latch windows in a plurality of data channels.
However, for a differential link after delay alignment is completed or for a differential link that does not need to be subjected to delay alignment, the delay alignment is often performed only once when a signal output end (such as an image sensor) is powered on and initialized, and is not adjusted in subsequent normal operation, when the working environments of the image sensor and a signal receiving end (FPGA) are greatly changed, such as temperature change, a change of some working voltages may cause an original latch window to shift when the link rate is high, so that an originally set sampling point is not valid any more, and an error code phenomenon is caused.
Specifically, the latch window detection and calibration process is usually completed during the power-up initialization of the sensor, once the sensor enters a normal working state, the sensor continuously outputs a data stream, and window detection and calibration will not be performed again during the working period, so if the working temperature of the sensor changes greatly (for example, from about 25 degrees to 60-70 degrees under full-speed working during cold start power-up), the differential link speed is higher (more than 1 Gbps) at the same time, and when factors such as poor ripple control of the power supply of the data interface at the sensor end are superimposed, the offset relationship between the clock signal and the data channel compared with the detection during the power-up initialization may change greatly, as shown in fig. 1. If the interval of the original latch window is smaller, the original sampling point position is likely to be invalid, and then data acquisition errors occur, and at the moment, a plurality of pixels similar to noise points appear in the image data.
In order to solve the problem, the application provides a calibration method of a differential link, which is used for solving the problem of latch window transfer caused by the change of working environment so as to avoid the problem of error codes possibly caused by latch window transfer. As shown in fig. 2, the calibration method of the differential link provided by the application comprises the following steps:
s201, splitting differential signals in a differential link into positive-polarity signals and negative-polarity signals.
S202, selecting a positive polarity signal or a negative polarity signal as a reference signal, and using the remaining signal as a working signal for transmitting data in a differential link.
S203, judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same, if so, keeping the original time positions of the positive polarity signal and the negative polarity signal unchanged; if not, the positive polarity signal and the negative polarity signal are reversely moved to a preset time period relative to the original time position.
The first signal to be compared is a signal after the reference signal is moved forward for a preset time period. Forward movement is denoted as time delay or time advance, and reverse movement denotes reverse time operation relative to forward movement. Specifically, if the forward movement is time-delayed, the reverse movement is time-advanced.
And the signal data of the working signal and the signal opposite value of the first signal to be compared are acquired from the same moment. The signal opposite value of the signal to be compared represents the signal data of the acquired signal to be compared after the signal data are subjected to inverse processing.
Based on the processing, the application transmits the data in the differential link through the working signal, is used for guaranteeing the normal operation of the differential link, and simultaneously, can pre-judge the problem of sampling point failure possibly occurring in the differential link by adjusting the reference signal and comparing the reference signal with the working signal, and can calibrate the latch window in advance through the operation of reversely moving the positive polarity signal and the negative polarity signal, thereby avoiding the problem of error codes possibly caused by the transfer of the latch window.
For step S201, a fully differential circuit is provided at the signal receiving end of the differential link, and then the differential signal in the differential link is split into a positive polarity signal and a negative polarity signal based on the fully differential circuit. For the characteristic that the differential signal has positive and negative signals, the signal receiving end adopts a circuit (for example, a fully differential amplifier) with differential input and differential output to still convert the differential signal into differential processing after receiving the differential signal. Each data channel is virtually divided into two sub-data channels at the signal receiving end according to differential positive and negative signals, including a positive sub-data channel and a negative sub-data channel. Wherein the positive sub-data path is used to transmit a positive side signal (i.e., positive polarity signal) and the negative sub-data path is used to transmit a negative side signal (i.e., negative polarity signal). The scheme is effectively different from the traditional mode that the signal receiving end adopts differential input, and the single-ended output amplifier converts a differential signal into a single-ended post-processing process.
Due to the effects of asymmetry in circuit parameters of the signal transmitting end, slight differences in wiring delays (differential signal wiring generally requires equal lengths, but delay differences are introduced), load differences of the signal receiving end, and the like, the two sub-data channels have slight delay differences. But this delay difference is typically within 100ps, which is substantially negligible for bit widths on the order of 10 ns. The adverse effect of this scheme can be equivalently understood as essentially losing only a portion of the latch window.
For step S202, the working signal is used to transmit valid data of the differential signal in the differential link. Specifically, the working signal is used as a carrier for data transmission and is used for signal acquisition, and the acquired signal data is always in a latch window of the working signal, so that the normal operation of the data transmission is ensured.
In one implementation, the differential link includes a clock signal for collecting the signal data. The clock signal based effective clock edge completes the collection work of signal data, and ensures that the signal data collected in different signals are at the same collection time.
In some embodiments, the length of the preset time period may be determined by an interval of a latch window of the differential signal. Specifically, the preset time period is within half of the latch window time length. That is, the range of the preset time period is: t is more than 0S, S. Wherein T represents a preset time period, and S represents a time length of a latch section of the differential signal.
Specifically, after the detection and calibration of the power-on initialization window are completed, sampling points of positive polarity signals and negative polarity signals obtained by splitting each differential signal are all at an optimal position (i.e., the center of an effective window), that is, the corresponding relationship between the clock signal and the data positive sub-channel and between the clock signal and the data negative sub-channel shown in fig. 3 at the original position. Thus, the length of the preset time period is set to not more than one half of the latch window size. Typically, the window is cut into N aliquots according to the effective window size, with each aliquot representing a delay time of TN. As shown in fig. 3, the preset time period is set to one quarter of the latch window size by periodically phase shifting the negative polarity signal in the data negative sub-channel by 90 degrees with respect to the effective window, i.e., setting N to 4.
In some embodiments, the present application also provides a dynamic calibration method of a latch link, as shown in fig. 4, after step S202, the dynamic calibration method includes the steps of:
S401, executing a data judging step, and if not, turning to S402; if yes, go to S403. The data judging step comprises judging whether signal data of the working signal and a signal opposite value of the first signal to be compared are the same or not.
S402, the positive polarity signal and the negative polarity signal are reversely moved to a preset time period corresponding to the original time position, and the process goes to S401.
S403, judging whether signal data of the working signal and signal opposite values of the second comparison signal are the same; if yes, go to S404, if no, go to S405. The second comparison signal is obtained after the reference signal is reversely moved for a preset time period.
S404, the original time positions of the positive polarity signal and the negative polarity signal are kept unchanged, and the process goes to S401.
S405, the positive polarity signal and the negative polarity signal are moved forward to a preset time period corresponding to the original time position, and the process goes to S401.
Based on the processing, the dynamic calibration of the differential link is realized, so that the accuracy of data acquisition in the whole data transmission process is ensured.
After moving the positive polarity signal and the negative polarity signal forward or backward to a preset time period relative to the original time position, the moved signals need to be checked to confirm whether the calibration is completed. That is, in the foregoing steps S402 and S405, the above-described verification process is performed before proceeding to step S401.
Specifically, in step S402 or S405, the following are included:
And step A, judging whether the shifted positive polarity signal and the shifted negative polarity signal are matched. If yes, finish the calibration once, and go to S401; if not, go to step B. Wherein the movement includes a forward movement and a reverse movement. The judging mode of whether the two are matched is as follows: it is determined whether or not the signal data of the shifted positive polarity signal and the signal inverse value of the shifted negative polarity signal are identical.
Step B, cancel the operation of moving the positive polarity signal and the negative polarity signal to the preset time period with respect to the original time position, and reduce the length of the preset time period, and go to S401.
Based on the above processing, after canceling the operation of shifting the positive polarity signal and the negative polarity signal to the preset time period with respect to the original time position, the time length of the preset time period is reduced, and the differential signal is dynamically calibrated again. It is noted that by reducing the length of the preset time period, the time length of the reference time delay or the reference time advance can be reduced, so that not only the detection precision of the latch window movement is improved, but also the dynamic calibration under the condition that the latch window interval is reduced can be realized.
In actual operation, after step S202, the calibration method further includes the following steps:
S204, comparing whether signal data of the signal to be compared and signal opposite values of the working signal are the same or not at the same acquisition time; if not, go to step S205; the left shift signal to be compared represents a signal obtained by advancing a reference signal by a preset time period.
S205, delaying the positive polarity signal and the negative polarity signal for a preset period of time.
Based on the above processing, under the condition of advancing the reference signal for a preset period of time, by comparing the left shift comparison signal with the working signal, if the comparison result is the same, the original latch window is known to have a certain margin in the time advance direction, and then the differential signal does not need to be delayed or advanced. If the comparison results are different, the margin of the latch window in the time advance direction is lower, so that the positive polarity signal and the negative polarity signal are delayed for a preset time period relative to the original positions later, and the margin of the latch window in the time advance direction is improved. As shown in fig. 1, based on the above-described processing, the problem of the latch window moving leftward (i.e., the time advance direction) margin being low is solved.
In one implementation, after step S205, the calibration method further includes the steps of:
S206, if yes, comparing whether the signal data of the signal to be compared and the signal opposite value of the working signal are the same, and if not, turning to S207. If yes, go to S204. The right shift comparison signal is represented as a signal obtained by delaying the reference signal for a preset time period.
S207 advances the positive polarity signal and the negative polarity signal for a preset period of time.
Based on the above processing, if the comparison result of the right shift comparison signal and the working signal is different, it can be known that the margin of the latch window in the time delay direction is lower, so that the positive polarity signal and the negative polarity signal are both advanced for a preset time period relative to the original position subsequently, so as to improve the margin of the latch window in the time delay direction, thereby solving the problem that the margin of the latch window in the right shift direction (i.e., the time delay direction) is lower.
In the actual working process, as shown in fig. 3, after the power-on calibration is completed, the positive polarity signal in the data positive sub-channel is set as the working signal, and the following operations are performed on the negative polarity signal in the data negative sub-channel:
Step one, shift TN left with respect to the original position (i.e., forward shift in the present application) as a first signal to be compared. Detecting the data matching condition of the positive sub-channel and the negative sub-channel of the data in t0 time, if the data are completely matched, indicating that the margin of a latch window on the right side of the sampling point is enough, and jumping to the second step, otherwise jumping to the third step.
Detecting that the data of the positive sub-channel and the negative sub-channel are matched in the time t0 indicates that the data of the positive signal and the negative signal are completely sampled in the time range with the time period length of t0, and comparing whether the sampled signal data are the same or not. Wherein the data sampling is also done based on the active clock edge of the clock signal.
And step two, right shifting TN relative to the original position (namely, reverse shifting in the application) is used as a second comparison signal. And (3) testing the data matching condition of the positive sub-channel and the negative sub-channel of the data in the t0 time, if the data are completely matched, indicating that the margin of the latch window at the left side of the sampling point is enough, and jumping to the first step, otherwise jumping to the fourth step.
Step three, entering the step, namely that the left latch window allowance of the right side of the current sampling point is not enough under the influence of environmental change, the whole data channel needs to be moved to the right side by TN, note that the positive and negative data sub-channels need to be moved to the right side simultaneously at the same time, and the step five is skipped.
Step four, entering the step, namely that the left latch window margin of the current sampling point is not enough under the influence of environmental change, the whole data channel needs to be moved to the left side by TN, note that the positive and negative data sub-channels need to be simultaneously moved to the left side by TN, and the step five is skipped.
Step five, entering the step indicates that the position of the original latch window is just adjusted, the validity of the adjusted position needs to be detected, the data matching condition of the positive and negative sub-channels of the data is detected in the time t0, and if the data is completely matched, the position of the adjusted window is indicated to be free of problems; if not, canceling window movement in the third and fourth steps, and re-entering the first step.
In the fifth step, under the condition that data mismatch (error code) still exists after the dynamic adjustment calibration is performed on the window, the current strategy is to cancel the previous adjustment operation and to re-perform the latch window calibration. Before window calibration is performed again, the time length of TN needs to be reduced to reduce the time length of reference time delay or advance, so that the calibration accuracy of latch window movement is improved, and dynamic calibration under the condition that the latch window interval is reduced can be realized.
In addition, the phenomenon that the data of the adjustment window is not matched in an extreme case exists, namely the original latch window is smaller and is further compressed until no effective latch window exists after being influenced by environmental factors such as temperature and the like, otherwise, the sampling precision of sampling points can be improved after the latch window is dynamically adjusted and calibrated.
It should be noted that, in the above-mentioned moving process (i.e. delay or advance), the original position of the positive polarity signal or the negative polarity signal is taken as the reference point. Wherein the home position represents a time position before the calibration method is performed. Specifically, if the latch window is calibrated only once during the transmission of the differential signal, the original position can be understood as a time position after the delay compensation is completed for the differential signal. If the latch window is dynamically calibrated multiple times in the differential signal transmission process, the original position corresponds to the time position after the last calibration is completed.
In the third step, the process of simultaneously moving the TN to the right side for the positive and negative data subchannels may be: after the end of the first step, the negative polarity signal in the data negative sub-channel is restored to the original position, and in the third step, both the positive polarity signal and the negative polarity signal are shifted to the right side by TN. Or the process may be: after the end of the first step, the negative polarity signal in the data negative sub-channel is not restored to the original position, but the positive polarity signal is shifted to the right by TN and the negative polarity signal is shifted to the right by TN by 2 times in the third step.
Note that the window calibration method is at the cost of not sacrificing the data integrity, namely, the data negative sub-channel is dynamically adjusted one time or a plurality of times, the problem of possible sampling point failure is prejudged in advance, window calibration is performed in advance, at this time, the data is always acquired by taking the data positive sub-channel as a sample, and the acquired data is always in an effective window, namely, the data acquisition process is always accurate.
In addition, the granularity and the step length of window calibration can be adjusted by setting TN size, and the frequency of window calibration can be set by t 0. The calibration frequency in dynamic calibration can be increased by reducing the value of t 0. According to the time of the effective delay amount setting in the prior FPGA, the technical scheme provided by the application can support the calibration frequency of millisecond level, and can cope with all factors which can influence the change of the external environment condition of the change of the effective data latch window, such as the most dominant temperature change.
In addition, before dynamically adjusting the latch window of the differential link, it is also generally necessary to detect the latch window of each data channel in the differential link, and then delay-align each data channel. Referring to fig. 5, fig. 5 is a schematic flow chart of an effective latch window improvement according to the present application. Before delay alignment is performed on each data channel, as shown in fig. 5, each channel has a delay time relative to a reference time, and the difference of the delay times is a result of the output delay of a data transmitting end (for example, an image sensor), the wiring delay, the packaging of a device, parasitic parameters in the device and other factors being integrated, so that an effective data latching window is small under a unified latching signal, and error codes are extremely easy to cause. By calculating the delay of each channel, such as t1-t4 in fig. 5, and compensating by the delay chain, each aligned data channel can be obtained, and at this time, the effective latch window in the differential link can be greatly improved, so that the data integrity is ensured, and the occurrence of error code phenomenon is avoided.
Before solving the problem that the effective latch window in the differential link becomes smaller, the respective latch window positions and sizes of different data channels need to be detected first to calculate the delay amount (e.g. t1-t4 in fig. 5) of each data channel, and then the aligned data channels can be obtained by compensating the delay chain.
In order to detect the latch window of the differential signal in the data channel, the application also provides a window detection method of the differential link, after splitting the differential signal in the differential link into a positive polarity signal and a negative polarity signal, the method comprises the following steps:
S301, collecting signal data of the positive polarity signal and the negative polarity signal under different delay time to respectively serve as a first data sequence and a second data sequence.
S302, performing inversion processing on the signal data in the second data sequence to obtain a third data sequence.
S303, selecting a delay time interval with the same data in the first data sequence and the third data sequence as a latch window of a differential signal.
Based on the processing, the stable intervals of the positive polarity signal and the negative polarity signal are screened out by comparing the first data sequence with the third data sequence, so that the intervals with the same data are used as latch windows, and the quick detection of the position and the size of the latch windows is effectively realized. In addition, the technical scheme provided by the application can directly detect the position and the size of the latch window by processing the differential signals continuously working in the differential link, belongs to a delay detection method of a data channel without training a data set, has extremely high universality and can effectively improve the stability of data acquisition and transmission in the differential link.
In some embodiments, the clock signal is included in the differential link. Accordingly, step S301 may include the steps of:
S30101, delaying the clock signal in the differential link for a plurality of times based on the fixed delay step.
S30102, after each delay, signal data of the positive polarity signal and the negative polarity signal are acquired based on the delayed clock signal.
In actual operation, the clock signal may be delayed by the delay chain to scan the data channel to acquire a plurality of signal data of the positive polarity signal and the negative polarity signal. That is, each time the clock signal is shifted by a fixed value step, the positive polarity signal and the negative polarity signal are data-collected. Specifically, step S301 includes the steps of:
S30103, sequentially delaying the clock signal in the differential link a plurality of times by using the delay chain. Wherein the step sizes between different delays are the same.
S30104, after each delay, signal data of the positive polarity signal and the negative polarity signal are acquired based on the clock signal.
For step S30103, the delay chain delays the clock signal by one step length each time during the scanning process of the data channel, and performs data acquisition on the positive polarity signal and the negative polarity signal. The signal data of the positive polarity signal acquired after the first delay is set to be D1, and the signal data of the negative polarity signal is set to be B1. If the clock signal is delayed and shifted n times, the data sequences D1-Dn of the positive polarity signal data and the data sequences B1-Bn of the negative polarity signal data can be obtained.
Based on the above processing, the data sequences D1 to Dn of the positive polarity signal data are taken as the first data sequences, and the data sequences B1 to Bn of the negative polarity signal data are taken as the second data sequences. And then, carrying out inverting operation on each sampled data in the second data sequence to obtain inverted data sequences C1-Cn as a third data sequence.
Then, D1-Dn and C1-Cn are compared, and when the acquisition interval is in an unstable interval (such as the interval where D1 or C1 is in FIG. 6). At this time, D1 is not always equal to C1 (i.e., an unstable section in the differential signal) because the differential signal has not stabilized while superimposing a slight delay difference of the positive and negative terminal signals and a sampling clock wiring delay difference. By detecting the change of data over a period of time at a certain clock step, dx is always available for the unsteady areas-! Comparison result of Cx. For the stable interval, a comparison of dx=cx is always obtained. Wherein Dx represents signal data of the positive polarity signal after the xth delay, cx represents signal data of the negative polarity signal after the xth delay. Thus, by comparing the data sequence results, the effective latch window for the data channel can be obtained, as shown in FIG. 6 for the Dj-Dk or Cj-Ck intervals.
In actual operation, the signal data (e.g., D1, C1, etc.) sampled after each delay may be a binary value of 1 bit or more. Wherein the total number of bits in the signal data is related to the number of samples after each delay. Specifically, after each time the clock signal is delayed, based on the effective clock edge of the clock signal, logic level collection may be performed on the positive polarity signal and the negative polarity signal for one or more times, so as to obtain a binary value of 1 bit or more bits as signal data. For example, if the sampling number is 5, the corresponding sampling data D1 is "01110", B1 is "10001", and C1, which is the inverse of B1, is "01110". At this time, D1 is identical to the data in C1, indicating that D1 matches C1, i.e., d1=c1.
In addition, the window detection method provided by the application does not require that the complete data sequences (for example, D1-Dn and C1-Cn) are stored and then the data comparison is performed in actual operation. Instead, data comparison can be performed simultaneously in the sampling process of the signal data, so as to improve the efficiency of latch window detection.
The application divides the original data channel into positive and negative sub-channels (namely, divides the differential signal into positive polarity signal and negative polarity signal) by adopting the full differential circuit at the signal receiving end, and simultaneously scans and collects the data of the two sub-channels, and then the latch window position and size in the data channel (namely, the differential signal in the application) can be obtained by comparing the collected data of the two sub-channels. It is noted that the above process removes the need for the data channel to have to output a training data set, and is applicable to all differential link based data signal acquisitions.
It is noted that the collection of the signal data of the positive polarity signal and the negative polarity signal is completed in different signal periods under different delay times. Wherein signal data is typically collected only once per signal period. In the technical scheme provided by the application, the positions of the latch windows of the differential signals are basically fixed in different signal periods. The window detection method provided by the application can be understood as follows: and respectively acquiring data sequences of the positive polarity signal and the negative polarity signal under different delay time in a plurality of signal periods, comparing data in the two data sequences (the data sequences of the negative polarity signal are subjected to inverse operation before comparison), and taking the delay time interval corresponding to the same comparison result as a latch window of the differential signal.
In addition, the application provides that the cost of the fully differential (i.e. differential input differential output) receiving circuit is basically negligible compared with the cost of the differential-to-single-ended (i.e. differential input single-ended output) circuit, and the traditional FPGA mostly supports the fully differential input circuit, so that the window detection method of the differential link can be realized based on the FPGA.
In some embodiments, the latch window may also be detected by a link training data set and delay chain scanning implementation. That is, a signal output terminal (e.g., an image sensor) is set to output data of a fixed pattern as a training data set (TRAINING PATTERN), and a signal receiving terminal (typically FPGA) calculates delays of the respective data channels by detecting the training data.
The amount of delay per channel can be calculated by a delay chain scan in conjunction with the image sensor outputting a fixed training data set, as t1-t4 in fig. 5. Specifically, the clock channel is delayed by the delay chain (at this time, the data channel is not delayed, or the clock channel is not delayed under another operation mode, the principle is the same when the data channel moves one step length each time), the data channel is scanned, one step length is moved each time, data acquisition is performed, so that the data acquired by the first acquisition is D1, and after n times of movement, the data sequence from D1 to Dn can be obtained. Because the data channel outputs the training data set in the fixed mode at this time, only the data sequence conforming to the training data set needs to be found out from D1-Dn, and the corresponding interval (e.g., interval shown by Dj-Dk in fig. 7) is the latch window position and size of the data channel. The effective latch window position for the data channel is shown in fig. 7 as j, the window size is k-j, and the unit is the number of delay chain steps. According to the method, window positions and sizes of all data channels can be obtained, and preparation is made for aligning all data channels through delay compensation in the next step.
Based on the above processing, the window positions and sizes of all data channels can be obtained, thereby increasing the size of the effective latch window. However, the training data set is dependent on the data channel, and if the signal transmitting end (such as the image sensor or the data transmitting module) does not support the output mode of the training data set, the method will be directly disabled.
After completion of the detection of the latch window in the differential link, the individual channels may be delay aligned by a delay chain to maximize the data latch window, comprising the steps of:
And a step a, obtaining a latch window of each data channel in the differential link. Each data channel is used for transmitting a differential signal.
And b, determining the delay step value of each data channel based on the time value of the center of the latch window.
And c, performing delay compensation on each data channel in the differential link based on the delay step value and the delay chain of each data channel so as to make the moment value of the center of the latch window in each data channel identical.
The steps a-c can be completed through a delay chain integrated in the FPGA. Specifically, after the differential signals are scanned by the delay chain delay clock signals, delay step intervals corresponding to latch window intervals of different differential signals are obtained. For example, the delay step number included in a certain delay step number section is "3, 4,5,6, and 7", respectively. The latch window of the differential signal can be obtained by using the delay step interval, and the delay step number 5 is used as the center point of the latch window. Then, the differential signal is delay-compensated by using a delay chain, so that the sampling point of the differential signal is set at the center of the latch window, that is, the effective clock edge of the clock signal corresponds to the center point of the latch window.
In addition, the window detection method and the dynamic calibration method can be separately or simultaneously applied to the FPGA. The window detection method can be combined with an FPGA internal delay chain to obtain the position and the size of an effective latch window of each data channel and perform delay compensation, so that the data latch window can be maximized, and the data integrity is ensured. Meanwhile, the calibration method of the latch window can be used for solving the problem of error codes possibly caused by data latch window transfer. The method does not depend on a training data set, has extremely high universality, can greatly increase the stability of differential signal data acquisition and transmission, and provides powerful guarantee for a plurality of image acquisition and transmission occasions in the field of machine vision.
Referring to fig. 8, the window detection and calibration method provided by the present application can be applied to an FPGA. The specific workflow is shown in fig. 8, and at the initial time, the transmission system of the differential link performs power-up processing, and the respective internal initialization of the signal transmitting end and the signal receiving end is completed. Wherein link (i.e., latch window) dynamic detection and calibration may be a configuration option. When enabled, after the detection and calibration of the power-on initialization window are completed, in the working process, the dynamic detection and calibration module carries out real-time calibration on the latch window, if not enabled, the detection and calibration of the power-on initialization window are completed, namely the position of a sampling point in the subsequent work is always fixed, and the detection and calibration of the power-on single time can be adopted under the conditions that the differential link rate is not high or the window is large and the link is relatively stable.
In some embodiments, the present application also provides a calibration system for a differential link, as shown in fig. 9, the calibration system comprising:
the signal splitting module 901 is configured to split a differential signal in the differential link into a positive polarity signal and a negative polarity signal.
The signal selection module 902 is configured to select a positive polarity signal or a negative polarity signal as a reference signal, and the remaining signal is used as a working signal for transmitting data in the differential link.
The data judging module 903 is configured to judge whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same, if yes, keep the original time positions of the positive polarity signal and the negative polarity signal unchanged; if not, the positive polarity signal and the negative polarity signal are reversely moved to a preset time period relative to the original time position.
The first signal to be compared is obtained after the reference signal is moved forward for a preset time period; the forward movement is represented as a time delay or a time advance, and the reverse movement represents an opposite time operation relative to the forward movement; the signal data of the working signal and the signal opposite value of the first signal to be compared are acquired from the same moment; the signal opposite value of the signal to be compared represents the signal data of the acquired signal to be compared after the signal data are subjected to inverse processing.
The embodiment of the application also provides an electronic device, as shown in fig. 10, which comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004,
A memory 1003 for storing a computer program;
The processor 1001 is configured to implement any of the above-described differential link calibration methods when executing the program stored in the memory 1003.
The communication bus mentioned above for the electronic device may be a Peripheral component interconnect standard (Peripheral ComponentInterconnect, PCI) bus or an extended industry standard architecture (Extended Ind ustry StandardArchitecture, EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In a further embodiment of the present application, a computer readable storage medium is also provided, in which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the calibration method of any of the differential links described above.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the calibration method of any of the differential links of the above embodiments.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1.一种差分链路的校准方法,其特征在于,包括:1. A differential link calibration method, comprising: 拆分所述差分链路中的差分信号为正极性信号和负极性信号;Splitting the differential signal in the differential link into a positive polarity signal and a negative polarity signal; 选取所述正极性信号或所述负极性信号作为参考信号,剩余信号作为传输所述差分链路中数据的工作信号;Selecting the positive polarity signal or the negative polarity signal as a reference signal, and the remaining signal as a working signal for transmitting data in the differential link; 判断所述工作信号的信号数据和第一待比对信号的信号相反值是否相同,若是,则保持所述正极性信号和所述负极性信号原始时间位置不变;若否,则反向移动所述正极性信号和所述负极性信号至相对原始时间位置的预设时间段处;Determine whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same, if so, keep the original time positions of the positive polarity signal and the negative polarity signal unchanged; if not, move the positive polarity signal and the negative polarity signal in the opposite direction to a preset time period relative to the original time position; 其中,所述第一待比对信号为正向移动所述参考信号预设时间段后的信号;所述正向移动表示为时间延迟或时间提前,且所述反向移动表示相对于所述正向移动的相反时间操作;所述工作信号的信号数据和所述第一待比对信号的信号相反值采集自相同时刻下;所述待比对信号的信号相反值表示对采集到的待比对信号的信号数据取反处理后得到的。Among them, the first signal to be compared is a signal after the reference signal is moved forward for a preset time period; the forward movement is represented by time delay or time advance, and the reverse movement represents the opposite time operation relative to the forward movement; the signal data of the working signal and the opposite signal value of the first signal to be compared are collected at the same time; the opposite signal value of the signal to be compared represents the value obtained after inverting the collected signal data of the signal to be compared. 2.根据权利要求1所述的方法,其特征在于,所述差分链路的信号接收端设置为全差分电路。2. The method according to claim 1 is characterized in that the signal receiving end of the differential link is set as a fully differential circuit. 3.根据权利要求1所述的方法,其特征在于,所述差分链路中包含用于采集所述信号数据的时钟信号。3 . The method according to claim 1 , wherein the differential link comprises a clock signal for collecting the signal data. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, characterized in that the method further comprises: 执行数据判断步骤,所述数据判断步骤包括判断工作信号的信号数据和第一待比对信号的信号相反值是否相同;Executing a data determination step, the data determination step comprising determining whether the signal data of the working signal and the opposite signal value of the first signal to be compared are the same; 若否,则反向移动所述正极性信号和所述负极性信号至相对原始时间位置的预设时间段处,并转至数据判断步骤;If not, the positive polarity signal and the negative polarity signal are reversely moved to a preset time period relative to the original time position, and the process goes to the data determination step; 若是,则判断所述工作信号的信号数据和第二待比对信号的信号相反值是否相同;其中,所述第二待比对信号为反向移动所述参考信号预设时间段后得到的;If yes, then determine whether the signal data of the working signal and the opposite signal value of the second signal to be compared are the same; wherein the second signal to be compared is obtained after the reference signal is moved in the reverse direction for a preset time period; 若是,则保持所述正极性信号和所述负极性信号原始时间位置不变,并转至数据判断步骤;若否,则正向移动所述正极性信号和所述负极性信号至相对原始时间位置的预设时间段处,并转至数据判断步骤。If so, keep the original time positions of the positive polarity signal and the negative polarity signal unchanged and proceed to the data judgment step; if not, move the positive polarity signal and the negative polarity signal in the positive direction to a preset time period relative to the original time position and proceed to the data judgment step. 5.根据权利要求1或4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1 or 4, characterized in that the method further comprises: 判断移动后的正极性信号和负极性信号是否匹配;若是,则完成一次校准,并转至判断工作信号的信号数据和第一待比对信号的信号相反值是否相同的步骤;若否,则取消移动正极性信号和负极性信号至相对原始时间位置的预设时间段处的步骤,并缩减所述预设时间段的长度,转至判断工作信号的信号数据和第一待比对信号的信号相反值是否相同的步骤;Determine whether the positive polarity signal and the negative polarity signal after the movement match; if so, complete a calibration, and proceed to the step of determining whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same; if not, cancel the step of moving the positive polarity signal and the negative polarity signal to a preset time period relative to the original time position, and shorten the length of the preset time period, and proceed to the step of determining whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same; 其中,所述移动包括正向移动和反向移动;是否匹配的判断方式为:判断移动后的正极性信号的信号数据和移动后的负极性信号的信号相反值是否相同。The movement includes forward movement and reverse movement; the matching determination method is: determining whether the signal data of the positive polarity signal after the movement is the same as the opposite value of the signal of the negative polarity signal after the movement. 6.根据权利要求1所述的方法,其特征在于,预设时间段在差分信号的锁存窗口时间长度的一半以内。6 . The method according to claim 1 , wherein the preset time period is within half of the latch window time length of the differential signal. 7.根据权利要求6所述的方法,其特征在于,所述锁存窗口的检测方式包括:7. The method according to claim 6, characterized in that the detection method of the latch window comprises: 拆分差分链路中的差分信号为正极性信号和负极性信号;The differential signal in the split differential link is a positive polarity signal and a negative polarity signal; 连续多次延迟所述差分链路中的时钟信号,并在每一次延迟后,采集不同延迟时间下所述正极性信号和所述负极性信号的信号数据,分别作为第一数据序列和第二数据序列;Delaying the clock signal in the differential link for multiple times in a row, and after each delay, collecting signal data of the positive polarity signal and the negative polarity signal at different delay times as a first data sequence and a second data sequence, respectively; 对所述第二数据序列中的信号数据进行取反处理,得到第三数据序列;performing inversion processing on the signal data in the second data sequence to obtain a third data sequence; 选择所述第一数据序列和所述第三数据序列中数据相同的延迟时间区间,作为所述差分信号的锁存窗口。A delay time interval having the same data in the first data sequence and the third data sequence is selected as a latch window for the differential signal. 8.一种差分链路的校准系统,其特征在于,包括:8. A differential link calibration system, comprising: 信号拆分模块,用于拆分所述差分链路中的差分信号为正极性信号和负极性信号;A signal splitting module, used for splitting the differential signal in the differential link into a positive polarity signal and a negative polarity signal; 信号选取模块,用于选取所述正极性信号或所述负极性信号作为参考信号,剩余信号作为传输所述差分链路中数据的工作信号;A signal selection module, used to select the positive polarity signal or the negative polarity signal as a reference signal, and the remaining signal as a working signal for transmitting data in the differential link; 数据判断模块,用于判断所述工作信号的信号数据和第一待比对信号的信号相反值是否相同,若是,则保持所述正极性信号和所述负极性信号原始时间位置不变;若否,则反向移动所述正极性信号和所述负极性信号至相对原始时间位置的预设时间段处;A data judgment module, used to judge whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same, if so, keep the original time position of the positive polarity signal and the negative polarity signal unchanged; if not, reversely move the positive polarity signal and the negative polarity signal to a preset time period relative to the original time position; 其中,所述第一待比对信号为正向移动所述参考信号预设时间段后得到的;所述正向移动表示为时间延迟或时间提前,且所述反向移动表示相对于所述正向移动的相反时间操作;所述工作信号的信号数据和所述第一待比对信号的信号相反值采集自相同时刻下;所述待比对信号的信号相反值表示对采集到的待比对信号的信号数据取反处理后得到的。Among them, the first signal to be compared is obtained after the reference signal is moved forward for a preset time period; the forward movement is represented by time delay or time advance, and the reverse movement represents the opposite time operation relative to the forward movement; the signal data of the working signal and the opposite signal value of the first signal to be compared are collected at the same time; the opposite signal value of the signal to be compared represents the value obtained after the collected signal data of the signal to be compared is inverted. 9.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;9. An electronic device, characterized in that it comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; 存储器,用于存放计算机程序;Memory, used to store computer programs; 处理器,用于执行存储器上所存放的程序时,实现权利要求1-7任一项所述的校准方法。The processor is used to implement the calibration method described in any one of claims 1 to 7 when executing the program stored in the memory. 10.一种计算机可读存储介质,其特征在于,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现权利要求1-7任一项所述的校准方法。10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the calibration method according to any one of claims 1 to 7 is implemented.
CN202411276708.XA 2024-09-12 2024-09-12 Differential link calibration method, system, electronic device and storage medium Active CN118869175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411276708.XA CN118869175B (en) 2024-09-12 2024-09-12 Differential link calibration method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411276708.XA CN118869175B (en) 2024-09-12 2024-09-12 Differential link calibration method, system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN118869175A true CN118869175A (en) 2024-10-29
CN118869175B CN118869175B (en) 2024-12-10

Family

ID=93159091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411276708.XA Active CN118869175B (en) 2024-09-12 2024-09-12 Differential link calibration method, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN118869175B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007058011A1 (en) * 2005-11-21 2007-05-24 Matsushita Electric Industrial Co., Ltd. Fully differential comparator and fully differential amplifier
CN101166081A (en) * 2007-08-30 2008-04-23 杭州华三通信技术有限公司 A method, system and device for detecting link polarity
US20090296859A1 (en) * 2008-05-29 2009-12-03 Faulhaber Steven F Automatic correction of data polarity on a differential serial bus
US20150293231A1 (en) * 2014-04-15 2015-10-15 Honeywell International Inc. Ground-based system and method to extend the detection of excessive delay gradients using parity corrections
CN106230438A (en) * 2016-08-04 2016-12-14 成都博思微科技有限公司 A kind of capacitance mismatch for production line analog-digital converter tests System and method for
CN115903998A (en) * 2022-11-11 2023-04-04 深圳天德钰科技股份有限公司 Calibration method, calibration circuit, storage medium, clock recovery circuit, and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007058011A1 (en) * 2005-11-21 2007-05-24 Matsushita Electric Industrial Co., Ltd. Fully differential comparator and fully differential amplifier
CN101166081A (en) * 2007-08-30 2008-04-23 杭州华三通信技术有限公司 A method, system and device for detecting link polarity
US20090296859A1 (en) * 2008-05-29 2009-12-03 Faulhaber Steven F Automatic correction of data polarity on a differential serial bus
US20150293231A1 (en) * 2014-04-15 2015-10-15 Honeywell International Inc. Ground-based system and method to extend the detection of excessive delay gradients using parity corrections
CN106230438A (en) * 2016-08-04 2016-12-14 成都博思微科技有限公司 A kind of capacitance mismatch for production line analog-digital converter tests System and method for
CN115903998A (en) * 2022-11-11 2023-04-04 深圳天德钰科技股份有限公司 Calibration method, calibration circuit, storage medium, clock recovery circuit, and electronic device
US20240163072A1 (en) * 2022-11-11 2024-05-16 Jadard Technology Inc. Calibration method, storage medium and electronic apparatus

Also Published As

Publication number Publication date
CN118869175B (en) 2024-12-10

Similar Documents

Publication Publication Date Title
US8451674B2 (en) Clock synchronization in a memory system
US9059816B1 (en) Control loop management and differential delay correction for vector signaling code communications links
US7307461B2 (en) System and method for adaptive duty cycle optimization
EP2384474B1 (en) Active calibration for high-speed memory devices
US6978403B2 (en) Deskew circuit and disk array control device using the deskew circuit, and deskew method
US8249207B1 (en) Clock and data recovery sampler calibration
KR101617374B1 (en) Adjustment of memory write timing based on error detection techniques
CN110418060A (en) A kind of method for correcting image and system of high speed camera
CN110995241B (en) LVDS delay circuit with self-adaptive phase adjustment
CN113886315A (en) Clock data recovery system, chip and clock data recovery method
US11561923B2 (en) Method for training multichannel data receiver timing
US20060274874A1 (en) Clock and data timing compensation for receiver
CN118869175B (en) Differential link calibration method, system, electronic device and storage medium
CN118784196B (en) Window detection method, system, electronic device and storage medium for differential link
US8711996B2 (en) Methods and apparatus for determining a phase error in signals
CN118784197B (en) Window calibration method, system, electronic device and storage medium for differential link
CN114756499A (en) Phase calibration method and system
JP2020046800A (en) Semiconductor device
CN116827473A (en) Clock synchronization circuit and clock synchronization method
US20240310414A1 (en) Eye margin test method and electronic apparatus performing test operation based on the same
CN118860061B (en) A chip clock correction method, circuit, system, device and storage medium
CN117490838B (en) High-reliability flat panel detector data acquisition method, system and computer
JP2011056883A (en) Data transfer device, data transfer control method, data transfer control program and recording medium
JP2023139897A (en) Receiving device and receiving method
JP4929742B2 (en) Simultaneous bidirectional circuit, large-scale integrated circuit including the circuit, and signal simultaneous transmission method

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
GR01 Patent grant
GR01 Patent grant