Window calibration method, system, electronic device and storage medium for differential link
By obtaining the temperature-power window table and delaying the signal sampling point of the differential link to the center point of the window intersection, the code error problem caused by the latch window transfer in the differential link is solved, the calibration efficiency and stability are improved, and the differential signal is ensured. accurate transmission.
Patent Information
- Application Number
- CN202411276713.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-09-12
AI Technical Summary
During signal transmission, the differential link is transferred due to environmental changes, resulting in code errors. The existing technology requires a long time to recalibrate, affecting the normal working state.
A window calibration method for differential links is proposed. By obtaining the temperature and power window table, it is determined whether there is intersection between the latched windows, delay the compensation signal sampling point to the intersection center point, and continuously calibrates the temperature and voltage values in the subsequent monitoring to ensure that The signal sampling point is in the latch window.
It improves the efficiency of latch window calibration, ensures the accuracy of differential signals and the stability of differential links, avoids the need for recalibration, and ensures the normal transmission of data channels.
Smart Images

Figure CN118784197B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of data processing, and in particular relates to a window calibration method, system, electronic equipment and storage medium for a differential link. Background Art
[0002] Differential links are commonly used in various scenarios such as data acquisition and transmission. For example, in the field of machine vision, image sensors collect image data and transmit it over long distances based on differential links. However, for differential links after delay alignment, when the working environment of the signal generating end or the signal receiving end in the differential link changes significantly, the latch window of the differential link may shift when the link rate is high, so that the original sampling point of the differential signal is not located in the latch window after the shift, resulting in bit errors. The latch window refers to the time window in which the logic level can be stably acquired based on the effective clock edge of the clock signal.
[0003] In order to solve the above-mentioned bit error phenomenon, it is usually necessary to re-scan the data channel in the differential link to recalibrate the latch window. However, the above-mentioned process not only causes the calibration process to take a long time, but also affects the normal working state of the differential link.
[0004] Therefore, a differential link window calibration method is urgently needed to improve the efficiency of latch window calibration. Summary of the invention
[0005] The present application proposes a differential link window calibration method, system, electronic device and storage medium, which are used to improve the efficiency of latch window calibration.
[0006] To achieve the above objectives, this application proposes the following technical solutions:
[0007] In a first aspect of the present application, a window calibration method for a differential link is provided, the method comprising:
[0008] Obtaining a temperature-electric window table of the differential link; wherein the temperature-electric window table is a reference table containing corresponding latch windows under different temperature values and different voltage values;
[0009] Determine whether there is a window intersection between all latch windows in the thermoelectric window table;
[0010] If so, when the differential link is initially powered on, delay compensation is performed to move the signal sampling point of the differential signal in the differential link to the center point of the window intersection.
[0011] Optionally, after determining whether there is a window intersection between all latch windows in the thermoelectric window table, the method further includes:
[0012] If not, then when the differential link is initially powered on, the signal sampling point is delayed and compensated to the center value of the initial window, and the temperature value and voltage value of the differential link are monitored, and the latch window is continuously calibrated according to the temperature-electric window table; wherein the initial window represents the latch window corresponding to the temperature value and voltage value at the initial power-on.
[0013] Optionally, the process of obtaining the thermoelectric window table includes:
[0014] Continuously detecting a latch window of the differential link within a preset temperature range and voltage range;
[0015] The latch window at each temperature value and voltage value is recorded as the temperature-electricity window table.
[0016] Optionally, the process of acquiring the latch window in the differential link includes:
[0017] Splitting the differential signal in the differential link into a positive polarity signal and a negative polarity signal;
[0018] 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;
[0019] A delay time interval in which the data in the first data sequence and the third data sequence are the same is selected as the latch window; wherein the third data sequence is obtained by inverting the signal data in the second data sequence.
[0020] Optionally, when the differential link is initially powered on, delay compensation from a signal sampling point of a differential signal in the differential link to a center point of the window intersection includes:
[0021] Determining an initial window based on a temperature value and a voltage value when the differential link is initially powered on;
[0022] The delay time difference between the initial window and the window intersection is compared, and a delay chain is used to compensate the signal sampling point delay to the center point of the window intersection.
[0023] Optionally, after the delay compensation signal sampling point to the center point of the window intersection, the method further includes:
[0024] The temperature value and the voltage value of the differential link are monitored, and the latch window is continuously calibrated according to the temperature-electricity window table so that the signal sampling point is kept within the latch window.
[0025] Optionally, if the differential link cannot be calibrated according to the temperature-electric window table, the method further includes:
[0026] Splitting the differential signal in the differential link into a reference signal and a working signal;
[0027] 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 position of the differential signal unchanged; if not, move the differential signal in the reverse direction to a preset time period relative to the original time position; wherein, the first signal to be compared is the signal after the reference signal is moved forward for a preset time period; the signal opposite value represents the signal obtained by inverting the signal data.
[0028] In a second aspect of the present application, a window calibration system for a differential link is provided, the system comprising:
[0029] A window table acquisition module, used to acquire a temperature-electric window table of the differential link; wherein the temperature-electric window table is a reference table containing corresponding latch windows under different temperature values and different voltage values;
[0030] An intersection determination module, used to determine whether there is a window intersection between all latch windows in the thermoelectric window table;
[0031] If so, when the differential link is initially powered on, delay compensation is performed to move the signal sampling point of the differential signal in the differential link to the center point of the window intersection.
[0032] In a third aspect of the present application, an electronic device is provided, 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;
[0033] Memory, used to store computer programs;
[0034] The processor is used to implement the steps of any window calibration method when executing the program stored in the memory.
[0035] In a fourth aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any window calibration method are implemented.
[0036] The beneficial effects of this application are as follows:
[0037] The present application provides a window calibration method for a differential link, the method comprising: obtaining a temperature-electric window table of the differential link; determining whether there is a window intersection between all latch windows in the temperature-electric window table; and if so, delaying compensation from a signal sampling point of a differential signal in the differential link to a center point of the window intersection when the differential link is initially powered on.
[0038] Based on the above processing, the present application obtains the corresponding relationship between the temperature value, voltage value and latch window in advance, and delays the signal sampling point to the center point of the window intersection when powered on. Since the window intersection is the common interval of all latch windows, the window calibration scheme provided by the present application not only ensures the accuracy of differential signal sampling in the differential link, but also does not need to recalibrate the latch window in subsequent differential link operations, does not affect the normal transmission of differential signals in the data channel, and ensures the stability of differential link operations. In addition, during the calibration phase of the present application, there are no special requirements for the type of differential signal, and this method can be used to calibrate constant or jump differential signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0040] Figure 1 It is a flow chart of improving the effective latch window provided by the present application;
[0041] Figure 2 is a flow chart of a window calibration method provided by the present application;
[0042] Figure 3 is a flow chart of a window detection method provided by the present application;
[0043] Figure 4 It is a flowchart of a window detection provided by this application;
[0044] Figure 5 is a flow chart of another window calibration method provided by the present application;
[0045] Figure 6 It is a flow chart of a window calibration method provided by the present application;
[0046] Figure 7 It is a structural schematic diagram of a window calibration system provided by the present application;
[0047] Figure 8 It is a structural diagram of an electronic device provided by this application. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0049] Sending a digital signal can be understood as sending a sequence of 0s or 1s. When different devices communicate, the timing information needs to be associated with the bits sent, and a clock signal is needed to provide timing signals for each part of the digital circuit system so that each signal data transmission process can be triggered at a precise time point. The clock signal is used to synchronize the digital signal transmitter and the signal receiver during the data transmission process. Among them, the determined edge of the clock is also called the effective clock edge. The digital signal transmitter triggers new data transmission on each effective clock edge, and the signal receiver samples data on each effective clock edge.
[0050] In order to improve the anti-interference ability of signal transmission and suppress electromagnetic interference, the prior art usually constructs a differential link and transmits the required digital signal in the form of a differential signal. In the actual transmission process of the differential signal, the voltage change process on the two lines transmitting the differential signal takes a certain amount of time, resulting in a voltage change region for a period of time at both ends and a voltage constant region in the middle within a cycle of the differential signal. Accordingly, at the effective clock edge of the clock signal, the signal receiving end can stably collect the logic "1" and logic "0" states from the voltage constant region. Among them, the voltage constant region in the above differential signal is defined as the latch window of the differential signal in this application. Alternatively, 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 data.
[0051] As the amount of data and transmission efficiency requirements continue to increase, the number of data channels in the differential link also increases. For example, the data interface of an image sensor usually consists of a single clock and many data channels (for example, 144 data channels). When the number of data channels is large, the effective latch window formed between the differential signals in different data channels becomes smaller, affecting the data transmission efficiency of the differential link. Therefore, for a differential link, the latch window of the differential signal needs to be delayed and aligned at the beginning of power-on. Among them, in the technical solution provided by the present application, the data channel represents a channel for transmitting differential signals, and the effective latch window represents the common interval of different latch windows in multiple data channels.
[0052] See also Figure 1 , Figure 1 A schematic diagram of a process for improving the effective latch window provided by the present application. Figure 1 As shown in the figure, before the delay alignment of the differential signals in each data channel is performed, each data channel has a different delay time relative to the reference time. Under the unified latch signal, the effective latch window is very small, which is very easy to cause bit errors. By calculating the delay amount of each data channel, as shown in the figure, Figure 1t1-t4 in the delay chain, and then the delay compensation can be performed through the delay chain to obtain the aligned data channels. At this time, the effective latch window in the differential link will be greatly improved, thereby ensuring data integrity and avoiding the occurrence of bit errors. Among them, in the technical solution provided by the present application, the delay amount of the data channel is calculated by using the delay chain, so as to obtain the position and size of the latch window in the corresponding data channel.
[0053] In the technical solution provided in this application, a differential link refers to a communication system that uses differential signals for data transmission, including a signal transmitter that generates differential signals, a transmission line that transmits differential signals, and a signal receiver that receives differential signals and performs subsequent processing. For example, in the field of machine vision, the signal transmitter can be an image sensor, a camera or other image acquisition device, the transmission line is usually a PCB (Printed Circuit Board), and the signal receiver is usually a processor for processing image information.
[0054] The scanning and calibration of the latch window in the differential link can be completed through the delay chain integrated inside the FPGA. Specifically, after the differential signal is scanned by delaying the clock signal through the delay chain, the delay step interval corresponding to the latch window interval of different differential signals is obtained. For example, the delay step numbers contained in a certain delay step number interval are "3, 4, 5, 6, 7" respectively. Among them, the latch window of the differential signal can be obtained using the above delay step interval, and the delay step number 5 is used as the center point of the latch window. Then, the delay chain is used to delay compensate the differential signal so that the sampling point of the differential signal is set at the center of the latch window, and the calibration of the latch window is completed, that is, the effective clock edge of the clock signal corresponds to the center point of the latch window.
[0055] In a differential link, each data channel that transmits a differential signal has a different delay time relative to a reference time, which makes the position and size of the latch window in different data channels different. Among them, the difference in delay time is the result of the combined influence of factors such as output delay at the signal transmitter, routing delay, device packaging, parasitic parameters in the device, and reception delay at the signal receiver. Combined with the relevant concepts of PVT parameters in the semiconductor field, it can be seen that for a certain integrated circuit, the remaining factors affecting the delay time are temperature and voltage. It can be seen that for a certain differential transmission system (that is, the differential link in this application), the factors that cause the shift of its latch window are the voltage and temperature of the differential transmission system, and other factors can be ignored.
[0056] For a certain differential link, when the working environment of the signal transmitter or the signal receiver changes significantly, the latch window may shift when the link rate is high, resulting in bit errors.
[0057] In order to solve the above-mentioned bit error phenomenon, the existing technology usually needs to suspend the working transmission of the differential link, and re-detect and calibrate the latch window through the link training data set and the implementation of delay chain scanning. That is, the signal output end (such as the image sensor) in the differential link is set to output fixed pattern data as the training data set (TrainingPattern), and the signal receiving end (usually FPGA) calculates the delay of each data channel by detecting the training data to recalibrate the latch window of the differential link.
[0058] The delay of each channel can be calculated by scanning the delay chain and outputting a fixed training data set from the image sensor, such as Figure 1 t1-t4 in the figure. That is, the clock channel is delayed by the delay chain (the data channel is not delayed at this time, or another operation mode is: the clock channel is not delayed, and the data channel is moved one step each time, the principle is the same) to scan the data channel, move one step each time and collect data, let the data collected for the first time be D1, then after moving n times, the data sequence from D1 to Dn can be obtained. At this time, the data channel output is a training data set with a fixed pattern, then it is only necessary to find the data sequence that conforms to the training data set from D1-Dn, and the corresponding interval is the latch window position and size of the data channel. However, the above calibration method not only takes a long time for the calibration process, but also affects the normal working state of the differential link.
[0059] In order to solve the above problems, the present application provides a window calibration method for a differential link, such as Figure 2 As shown, the method comprises the following steps:
[0060] S201. Obtain a temperature-electricity window table of a differential link.
[0061] The temperature-electric window table is a reference table containing corresponding latch windows under different temperature values and different voltage values.
[0062] S202, determine whether there is a window intersection between all latch windows in the temperature-electricity window table, if so, go to step S203.
[0063] S203 . When the differential link is initially powered on, delay compensate a signal sampling point of a differential signal in the differential link to a center point of the window intersection.
[0064] Based on the above processing, the present application obtains the corresponding relationship between the temperature value, voltage value and latch window in advance, and delays the signal sampling point to the center point of the window intersection when powered on. Since the window intersection is the common interval of all latch windows, the window calibration scheme provided by the present application not only ensures the accuracy of differential signal sampling in the differential link, but also does not need to recalibrate the latch window in subsequent differential link operations, does not affect the normal transmission of differential signals in the data channel, and ensures the stability of differential link operations. In addition, during the calibration phase of the present application, there are no special requirements for the type of differential signal, and this method can be used to calibrate constant or jump differential signals.
[0065] For step S201, the temperature value includes the temperature values of the signal output end and the signal receiving end in the differential link, and the voltage value includes the voltage of the signal output end and the signal receiving end and the voltage value of the signal receiving end. Among them, the temperature sensor can be used to detect the temperature values of the signal generating end (such as an image sensor) and the signal receiving end (such as an FPGA) respectively. To obtain the voltage value, it is necessary to pre-build a voltage monitoring circuit to monitor the power supply voltage of the differential driving circuit (that is, the signal sending end of the present application) and the differential receiving circuit (that is, the signal receiving end of the present application). In addition, the delay time in the transmission line is negligibly affected by temperature and voltage, and there is no need to detect the temperature and voltage of the transmission line.
[0066] In some embodiments, the process of obtaining the thermoelectric window table includes the following steps:
[0067] S20101. Within a preset temperature range and voltage range, continuously detect the latch window of the differential link at different temperature values and different voltage values.
[0068] S20102, recording the latch window at each temperature value and voltage value as the thermoelectric window table. After recording the latch window at each temperature value and voltage value, a reference table including temperature value, voltage value and latch window is constructed to obtain the thermoelectric window table.
[0069] For step S20101, within the preset temperature range and voltage range, the latch window of the differential link at different temperature values and different voltage values is continuously detected. The preset temperature range and voltage range are respectively expressed as the temperature range and voltage range when the differential link works normally. For example, taking the image transmission system in the field of machine vision as an example, the specified temperature range is usually 0-60°C and the voltage range is 1.75-1.85V.
[0070] According to PVT parameters and relevant knowledge in the field of communications, in electronic circuits, such as when using transistors or integrated circuits, temperature will affect their performance parameters, such as threshold voltage, carrier mobility, etc. As the temperature rises, it is generally believed that the mobility of electrons will decrease, resulting in a slower response speed of the circuit, thereby increasing the delay time. However, in some advanced semiconductor processes, a temperature reversal effect may occur, especially at low temperatures, the delay time of the circuit will increase. At the same time, in communication networks, response delays are related to the processing power of network equipment. Changes in temperature may affect the performance of network equipment, such as the transmission rate of the interface card, the processing speed of the server, etc., and thus affect the delay time. In addition, as the voltage value increases, the delay time in the integrated circuit usually decreases. Taking the RC delay circuit as an example, when the voltage increases, the capacitor charging rate increases, resulting in a shorter delay time.
[0071] Since the signal transmitter and signal receiver devices in different differential links are not the same, and the number and types of electronic components contained in the devices are also inconsistent, combined with the above analysis, it can be seen that in the face of a variety of differential links, it is very difficult to build a clear fitting model between four variables (i.e., temperature and voltage at the signal transmitter, temperature and voltage at the signal receiver) and one dependent variable (i.e., latch window). In the actual experimental process, for various forms of differential links, it is also difficult to achieve experimental conditions where one end is constant temperature and the other end is adjustable temperature (for example, the temperature of the transmitter is constant and the temperature of the signal receiver is adjustable), especially when the overall structure of the differential link is small.
[0072] In combination with the above practical factors, in the window calibration scheme provided in the present application, a thermoelectric window table can be constructed by a data recording method. That is, for a certain differential link, before it is put into use, a time period is used in advance to construct a thermoelectric window table. Specifically, within the specified temperature range and voltage range, the temperature value and voltage value of the differential link are continuously adjusted, and the latch window at different temperature values and voltage values is scanned, and the latch window at each temperature value and voltage value is recorded one by one, thereby constructing a reference table of temperature values, voltage values and latch windows as a thermoelectric window table, as shown in Table 1 below.
[0073] Table 1 Thermoelectric window table
[0074]
[0075] In some application scenarios, if the voltages at both ends of the differential link (i.e., the signal output end and the signal receiving end) are relatively stable, or the voltage variation range is small, the impact on the latch window is low. In the above case, it is not necessary to monitor the voltage value changes at both ends, but only monitor the temperature value changes at both ends. In addition, in some application scenarios, the environments at both ends of the differential link are close, and the temperature changes are basically the same. In this case, only the temperature value changes at one end can be monitored.
[0076] In one implementation, the latch window may be acquired by scanning a link training data set and adding a delay chain.
[0077] In another implementation, the present application also provides a latch window detection method for constructing a thermoelectric window table. Figure 3 As shown, the method comprises the following steps:
[0078] S301 . Split a differential signal in a differential link into a positive polarity signal and a negative polarity signal.
[0079] S302 , collecting signal data of positive polarity signals and negative polarity signals at different delay times as a first data sequence and a second data sequence, respectively.
[0080] S303: Select a delay time interval with the same data in the first data sequence and the third data sequence as a latch window of the differential link, wherein the third data sequence is obtained by inverting the signal data in the second data sequence.
[0081] Based on the above processing, the present application screens out the stable intervals of the positive polarity signal and the negative polarity signal by comparing the first data sequence and the third data sequence, and then uses the interval with the same data as the latch window, effectively realizing the rapid detection of the latch window position and size. In addition, the technical solution provided by the present application can directly detect the latch window position and size by processing the differential signal that continuously works in the differential link, which is a delay detection method for data channels that does not require a training data set and has great universality.
[0082] For step S301, a full differential circuit is set 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 full differential circuit. In view of the characteristics of the existence of positive and negative end signals in the differential signal, the signal receiving end adopts a circuit with differential input and differential output (for example, a full differential amplifier) to receive the differential signal and still convert it to differential processing. Each data channel is actually divided into two sub-data channels at the signal receiving end according to the differential positive and negative end signals, including a positive sub-data channel and a negative sub-data channel. Among them, the positive sub-data channel is used to transmit the positive end signal (that is, the positive polarity signal), and the negative sub-data channel is used to transmit the negative end signal (that is, the negative polarity signal). Among them, the above-mentioned differential signal can be a test signal when the differential link is not working, or it can be a working signal during the transmission process. The above scheme is effectively different from the process in which the signal receiving end adopts differential input and the single-ended output amplifier converts the differential signal to a single-ended post-processing in the traditional way.
[0083] In some embodiments, the differential link includes a clock signal. Accordingly, step S302 may include the following steps:
[0084] S30201. Based on a fixed delay step, delay the clock signal in the differential link multiple times.
[0085] S30202. After each delay, collect signal data of the positive polarity signal and the negative polarity signal based on the delayed clock signal.
[0086] In actual work, the clock signal can be delayed by a delay chain to scan the data channel to collect multiple signal data of positive polarity signals and negative polarity signals. That is, each time the clock signal moves a fixed value step, data of positive polarity signals and negative polarity signals are collected. Specifically, step S302 includes the following steps:
[0087] S30203: Use a delay chain to continuously delay the clock signal in the differential link for multiple times, wherein the step lengths between different delays are the same.
[0088] S30204. After each delay, signal data of the positive polarity signal and the negative polarity signal are collected based on the clock signal.
[0089] With respect to step S30203, in the process of delaying the clock signal of the delay chain to scan the data channel, the clock signal can be moved by one step each time, and the data of the positive polarity signal and the negative polarity signal can be collected. The signal data of the positive polarity signal collected after the first delay is set as D1, and the signal data of the negative polarity signal is set as B1. If it is assumed that the clock signal is delayed and moved n times, the data sequence D1-Dn of the positive polarity signal data and the data sequence B1-Bn of the negative polarity signal data can be obtained.
[0090] Based on the above processing, the data sequence D1-Dn of the positive polarity signal data is used as the first data sequence, and the data sequence B1-Bn of the negative polarity signal data is used as the second data sequence. Then, each sampled data in the second data sequence is inverted to obtain the inverted data sequence C1-Cn as the third data sequence.
[0091] Then, D1-Dn and C1-Cn are compared. When the acquisition interval is in the unstable interval (such as Figure 4 The interval where D1 or C1 is located). At this time, since the differential signal has not yet stabilized and the slight delay difference of the positive and negative signals and the delay difference of the sampling clock routing are superimposed, D1 is not always equal to C1 (that is, the unstable interval in the differential signal). At a certain clock step, by detecting the data changes over a period of time, the comparison result of Dx! = Cx can always be obtained for the unstable area. For the stable interval, the comparison result of Dx=Cx can always be obtained. Among them, Dx represents the signal data of the positive polarity signal collected after the xth delay, and Cx represents the signal data of the negative polarity signal collected after the xth delay. Therefore, the effective latch window of the data channel can be obtained by comparing the data sequence results, such as Figure 4 The Dj-Dk or Cj-Ck interval is shown in .
[0092] In the actual working process, the signal data (such as D1, C1, etc.) sampled after each delay can be a 1-bit or multi-bit binary value. Among them, the total number of bits in the signal data is related to the number of samplings after each delay. Specifically, after each delay of the clock signal, based on the effective clock edge of the clock signal, the above-mentioned positive polarity signal and negative polarity signal can be sampled once or multiple times for logic level, thereby obtaining a 1-bit or multi-bit binary value as the signal data. For example, if the number of samplings is 5, the corresponding sampling data D1 is "01110", B1 is "10001", and C1 after inverting B1 is "01110". At this time, the data in D1 and C1 are exactly the same, indicating that D1 matches C1, that is, D1=C1.
[0093] In actual operation, the window detection method provided in the present application does not require storing the complete data sequence (for example, D1-Dn and C1-Cn) before performing data comparison. Instead, data comparison can be performed simultaneously during the sampling process of the signal data to improve the efficiency of latch window detection.
[0094] This application uses a fully differential circuit at the signal receiving end to split the original data channel into two positive and negative sub-channels (i.e., split the differential signal into a positive polarity signal and a negative polarity signal), and simultaneously scans and collects data on the two sub-channels, and then compares the data collected by the two sub-channels to obtain the latch window position and size in the data channel (i.e., the differential signal in this application). The above processing eliminates the requirement that the data channel must output a training data set, and can be applied to the collection of all data signals based on differential links.
[0095] It is worth noting that the signal data of the positive polarity signal and the negative polarity signal are collected in different signal cycles under different delay times. Among them, signal data is usually collected only once in each signal cycle. In the technical solution provided in the present application, the position of the latch window of the differential signal is basically fixed in different signal cycles. The window detection method provided in the present application can be understood as: in multiple signal cycles, the data sequences of the positive polarity signal and the negative polarity signal under different delay times are collected respectively, and the data in the above two data sequences are compared (before comparison, the data sequence of the negative polarity signal has been inverted), and the delay time interval corresponding to the same comparison result is used as the latch window of the differential signal.
[0096] In one implementation, the thermoelectric window table can be stored in a processor of the differential link to adjust the latch window according to the thermoelectric window table. At the same time, the thermoelectric window table can also be updated in real time according to the latch window detected during the operation of the differential link.
[0097] For step S202, by comparing all latch windows in the temperature-electricity window table, it is determined whether there is a window intersection with the same delay time. The window intersection represents the common interval of the latch windows at different temperature values and voltage values for the same differential link.
[0098] With respect to step S203, the sampling point of the compensation signal can be directly delayed to the center point of the window intersection through the temperature-electric window table, including the following steps:
[0099] S20301. Determine an initial window based on the temperature value and voltage value when the differential link is initially powered on and with reference to a temperature-electricity window table.
[0100] S20302. Compare the delay time difference between the initial window and the window intersection, and use the delay chain to directly delay and compensate the signal sampling point of the differential signal to the center point of the window intersection.
[0101] In some embodiments, Figure 2 As shown, after step S202, if there is no window intersection between all latch windows in the thermoelectric window table, the process proceeds to step S204.
[0102] S204: When the differential link is initially powered on, delay the compensation signal sampling point to the center value of the initial window, monitor the temperature value and voltage value of the differential link, and continuously calibrate the latch window according to the temperature-electricity window table to keep the signal sampling point within the latch window. The initial window refers to the latch window corresponding to the temperature value and voltage value at the initial power-on.
[0103] Based on the above processing, the present application monitors the changes in temperature and voltage values, and directly performs delay compensation on the data channel in combination with the temperature-electric window table, which not only realizes the real-time calibration of the latch window, but also eliminates the need to re-detect the latch window of the differential signal, thereby improving the calibration efficiency. Among them, the present application completes the calibration of the latch window by delay chain delay compensation.
[0104] In some embodiments, after step S203, the window calibration method provided by the present application may further include the following steps:
[0105] S205 , monitoring the temperature value and voltage value of the differential link, and continuously calibrating the latch window according to the temperature-electricity window table, so that the signal sampling point remains within the latch window.
[0106] Based on the above processing, real-time calibration of the latch window is achieved through the temperature-electric window table, which effectively ensures the accuracy of signal transmission during the operation of the differential link.
[0107] In actual work, the differential link may face the situation that the temperature value or voltage value exceeds the working range, or some temperature values or voltage values are not recorded in the temperature-electric window table, so that the latch window cannot be calibrated according to the temperature-electric window table. In order to solve the above problems without affecting the normal working state of the differential link, this application also proposes another latch window calibration method, including the following steps:
[0108] Step a: split the differential signal in the differential link into a reference signal and a working signal.
[0109] Step b, 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 position of the differential signal unchanged; if not, move the differential signal in the opposite direction to a preset time period relative to the original time position.
[0110] Specifically, the calibration method comprises the following steps:
[0111] S401 . Split a differential signal in a differential link into a positive polarity signal and a negative polarity signal.
[0112] S402: Select a positive polarity signal or a negative polarity signal as a reference signal, and use the remaining signal as a working signal for transmitting data in a differential link.
[0113] S403, 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 position 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.
[0114] The first signal to be compared is a signal after the reference signal is forward moved by a preset time period. Forward movement is represented by time delay or time advance, and reverse movement represents the opposite time operation relative to forward movement. Specifically, if forward movement is time delay, reverse movement is time advance.
[0115] The signal data of the working signal and the signal opposite value of the first signal to be compared are collected at the same time. The signal opposite value of the signal to be compared is obtained by inverting the collected signal data of the signal to be compared.
[0116] Based on the above processing, the present application transmits the data in the differential link through the working signal to ensure the normal operation of the differential link. At the same time, by adjusting the reference signal and comparing it with the working signal, it can 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 the latch window transfer.
[0117] In addition, compared with the method of using a temperature-electric window table to calibrate the latch window, this method requires continuous monitoring of the differential link and occupies certain logic resources. In addition, this method requires that the differential signal in the differential link must transition between 0 and 1. For differential links that always remain in the 0 or 1 state, calibration cannot be performed.
[0118] With respect to step S401 , a full 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 full differential circuit.
[0119] For step S402, 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 signal acquisition is performed, and the acquired signal data is always within the latch window of the working signal, thereby ensuring normal data transmission.
[0120] In one implementation, the differential link includes a clock signal for collecting the signal data, wherein the signal data is collected based on the effective clock edge of the clock signal, ensuring that the signal data collected from different signals are at the same collection time.
[0121] In some embodiments, the length of the preset time period can be determined by the latch window interval 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: 0<T< S. Wherein, T represents a preset time period, and S represents the time length of the latching interval of the differential signal.
[0122] Specifically, after completing the power-on initialization window detection and calibration, the sampling points of the positive polarity signal and the negative polarity signal obtained by splitting each differential signal are at the optimal position (that is, the center of the effective window), that is, Figure 5 The corresponding relationship between the clock signal and the data positive sub-channel and the data negative sub-channel at the original position is shown in . Therefore, the length of the preset time period is set to not more than half of the latch window size. Usually, the window is cut into N equal parts according to the effective window size, and the delay time represented by each equal part is TN. By performing a 90-degree periodic phase shift on the negative polarity signal in the data negative sub-channel relative to the effective window, that is, setting N to 4, the preset time period is set to one-fourth of the latch window size.
[0123] In some embodiments, the present application also provides a dynamic calibration method for a latch link, such as Figure 6 As shown, after step S402, the dynamic calibration method includes the following steps:
[0124] S501, execute the data judgment step, if not, go to S502; if yes, go to S503. The data judgment step includes judging whether the signal data of the working signal and the signal opposite value of the first signal to be compared are the same.
[0125] S502 , reversely move the positive polarity signal and the negative polarity signal to a preset time period relative to the original time position, and go to S501 .
[0126] S503, determine whether the signal data of the working signal and the signal opposite value of the second signal to be compared are the same; if so, go to S504, if not, go to S505. The second signal to be compared is obtained after the reference signal is moved in the reverse direction for a preset period of time.
[0127] S504: Keep the original time positions of the positive polarity signal and the negative polarity signal unchanged, and go to S501.
[0128] S505 , positively move the positive polarity signal and the negative polarity signal to a preset time period relative to the original time position, and go to S501 .
[0129] Based on the above processing, dynamic calibration of the differential link is achieved, ensuring the accuracy of data collection during the overall data transmission process.
[0130] After the positive polarity signal and the negative polarity signal are moved forward or reversely to a preset time period relative to the original time position, the moved signal needs to be checked to confirm whether a calibration is completed. That is, in the aforementioned steps S502 and S505, the above-mentioned checking process is performed before going to step S501.
[0131] Specifically, in step S502 or S505, the following contents are included:
[0132] Step A, determine whether the positive polarity signal and the negative polarity signal after the movement match. If so, complete a calibration and go to S501; if not, go to step B. Wherein, the movement includes forward movement and reverse movement. The matching determination method is: determine whether the signal data of the positive polarity signal after the movement and the signal opposite value of the negative polarity signal after the movement are the same.
[0133] Step B: cancel the operation of moving the positive polarity signal and the negative polarity signal to the preset time period relative to the original time position, and reduce the length of the preset time period, and go to S501.
[0134] Based on the above processing, after canceling the operation of moving the positive polarity signal and the negative polarity signal to the preset time period relative to the original time position, the time length of the preset time period is shortened, and the differential signal is dynamically calibrated again. It is worth noting that by shortening the length of the preset time period, the time length of the reference time delay or advance can be reduced, which not only improves the detection accuracy of the latch window movement, but also can realize dynamic calibration when the latch window interval becomes smaller.
[0135] In actual work, after step S402, the calibration method further includes the following steps:
[0136] S404, comparing whether the signal data of the left-shifted signal to be compared and the signal opposite value of the working signal at the same acquisition time are the same; if not, go to step S405; wherein the left-shifted signal to be compared represents a signal obtained by a preset time period in advance of the reference signal.
[0137] S405 , delaying the positive polarity signal and the negative polarity signal for a preset time period.
[0138] Based on the above processing, in the case of a preset time period in advance of the reference signal, by comparing the left-shifted signal to be compared and the working signal, if the comparison results are the same, it can be known that the original latch window has a certain margin in the time advance direction, and there is no need to delay or advance the differential signal. If the comparison results are different, it can be known that the margin of the latch window in the time advance direction is low, so the positive polarity signal and the negative polarity signal are subsequently delayed by a preset time period relative to the original position to increase the margin of the latch window in the time advance direction. Based on the above processing, the problem of low margin in the leftward moving direction of the latch window (i.e., the time advance direction) is solved.
[0139] In one implementation, after step S405, the calibration method further includes the following steps:
[0140] S406: If yes, compare the signal data of the right-shifted signal to be compared and the signal opposite value of the working signal at the same acquisition time to see if they are the same. If not, go to S407. If yes, go to S404. The right-shifted signal to be compared is a signal obtained by delaying the reference signal by a preset time period.
[0141] S407 , advance the positive polarity signal and the negative polarity signal by a preset time period.
[0142] Based on the above processing, if the comparison results of the right-shifted signal to be compared and the working signal are different, it can be seen that the margin of the latch window in the time delay direction is low. Therefore, the positive polarity signal and the negative polarity signal are subsequently advanced by a preset time period relative to the original position to increase the margin of the latch window in the time delay direction, thereby solving the problem of low margin of the latch window in the rightward moving direction (i.e., the time delay direction).
[0143] In actual operation, after power-on calibration is completed, the positive polarity signal in the data positive sub-channel is set as the working signal of the differential link, and the negative polarity signal in the data negative sub-channel is operated as follows:
[0144] Step 1: Shift the data to the left by TN (i.e., the positive shift in this application) relative to the original position as the first signal to be compared. Detect the data matching of the positive and negative sub-channels within the time t0. If the data matches completely, it means that the latch window margin on the right side of the sampling point is sufficient, and jump to step 2, otherwise jump to step 3.
[0145] The detection of data matching between the positive and negative sub-channels within the time period t0 indicates that the data sampling of the positive polarity signal and the negative polarity signal is completed within the time period t0, and the sampled signal data are compared to see whether they are the same. The data sampling is also completed based on the effective clock edge of the clock signal.
[0146] Step 2: Shift right TN relative to the original position (i.e., reverse shift in this application) as the second signal to be compared. Measure the data matching of the positive and negative sub-channels within time t0. If the data matches completely, it means that the latch window margin on the left side of the sampling point is sufficient, and jump to step 1, otherwise jump to step 4.
[0147] Step 3: Entering this step means that due to environmental changes, the latch window margin on the right side of the current sampling point is insufficient, and the entire data channel needs to be moved to the right by TN. Note that the positive and negative sub-channels of the data need to be moved to the right by TN at the same time, and jump to step 5.
[0148] Step 4: Entering this step means that due to environmental changes, the latch window margin on the left side of the current sampling point is insufficient, and the entire data channel needs to be moved to the left by TN. Note that the positive and negative sub-channels of the data need to be moved to the left by TN at the same time, and jump to step 5.
[0149] Step 5. Entering this step means that the position of the original latch window has just been adjusted, and the validity of the adjusted position needs to be tested. The data matching of the positive and negative sub-channels is tested within the t0 time. If the data matches completely, it means that there is no problem with the adjusted window position; if not, cancel the window movement in steps 3 and 4 and re-enter step 1.
[0150] For step 5, if there is still data mismatch (bit error) after dynamic adjustment and calibration of the window, the current strategy is to cancel the previous adjustment operation and re-calibrate the latch window. Before re-calibrating the window, the time length of TN needs to be shortened to reduce the time length of the reference time delay or advance, which not only improves the calibration accuracy of the latch window movement, but also enables dynamic calibration when the latch window interval becomes smaller.
[0151] It is worth noting that in the above-mentioned movement process (i.e., delay or advance), the original position of the positive polarity signal or the negative polarity signal is used as the reference point. Among them, the original position represents the time position before the calibration method is executed. Specifically, if the latch window is only calibrated once during the differential signal transmission process, the original position can be understood as the time position after the delay compensation of the differential signal is completed. If the latch window is dynamically calibrated multiple times during the differential signal transmission process, the original position corresponds to the time position after the last calibration is completed.
[0152] The process of simultaneously moving the data positive and negative sub-channels to the right by TN in the above step 3 may be: after step 1 is completed, the negative polarity signal in the data negative sub-channel is restored to the original position, and both the positive polarity signal and the negative polarity signal are moved to the right by TN in step 3. Alternatively, the process may also be: after step 1 is completed, the negative polarity signal in the data negative sub-channel is not restored to the original position, but in step 3, the positive polarity signal is moved to the right by TN, and the negative polarity signal is moved to the right by 2 times TN.
[0153] Note that the above window calibration method does not sacrifice data integrity, that is, by dynamically adjusting the data negative sub-channel once or multiple times, the possible sampling point failure problem is predicted in advance and the window calibration is performed in advance. At this time, the data is always collected using the data positive sub-channel as the sample and the collected data is always within the valid window, that is, the data collection process is always accurate.
[0154] In addition, the granularity and step size of the window calibration can be adjusted by setting the TN size, and the frequency of the window calibration can be set by t0. Among them, the calibration frequency in the dynamic calibration can be increased by reducing the value of t0. According to the time when the delay amount setting inside the existing FPGA takes effect, the technical solution provided by the present application can support a calibration frequency of milliseconds, and can cope with all factors of changes in external environmental conditions that can affect the change of the effective data latch window, such as the most important temperature change.
[0155] In some embodiments, the present application also provides a differential link window detection system, such as Figure 7 As shown, the window calibration system includes:
[0156] The window table acquisition module 701 is used to acquire the temperature-electric window table of the differential link; wherein the temperature-electric window table is a reference table containing corresponding latch windows under different temperature values and different voltage values.
[0157] The intersection determination module 702 is used to determine whether there is a window intersection between all latch windows in the temperature-electricity window table.
[0158] If so, when the differential link is initially powered on, delay compensation is performed to move the signal sampling point of the differential signal in the differential link to the center point of the window intersection.
[0159] The present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.
[0160] Memory 803, used for storing computer programs;
[0161] The processor 801 is configured to implement any of the above-mentioned window calibration methods for the differential link when executing the program stored in the memory 803 .
[0162] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industrial Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0163] The communication interface is used for communication between the above electronic device and other devices.
[0164] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0165] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0166] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the window calibration method for any differential link described above are implemented.
[0167] In another embodiment provided by the present application, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer executes the steps of the window calibration method for a differential link in any of the above embodiments.
[0168] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A window calibration method for a differential link, It is characterized in that The method comprises: Obtaining a temperature-electric window table of the differential link; wherein the temperature-electric window table is a reference table containing corresponding latch windows under different temperature values and different voltage values; Determine whether there is a window intersection between all latch windows in the thermoelectric window table; If so, when the differential link is initially powered on, delay compensation is performed to move the signal sampling point of the differential signal in the differential link to the center point of the window intersection.
2. The method according to claim 1, It is characterized in that After determining whether there is a window intersection between all latch windows in the thermoelectric window table, the method further includes: If not, then when the differential link is initially powered on, the signal sampling point is delayed and compensated to the center value of the initial window, and the temperature value and voltage value of the differential link are monitored, and the latch window is continuously calibrated according to the temperature-electric window table; wherein the initial window represents the latch window corresponding to the temperature value and voltage value at the initial power-on.
3. The method according to claim 1, It is characterized in that The process of obtaining the thermoelectric window table includes: Continuously detecting a latch window of the differential link within a preset temperature range and voltage range; The latch window at each temperature value and voltage value is recorded as the temperature-electricity window table.
4. The method according to claim 3, It is characterized in that The acquisition process of the latch window in the differential link includes: Splitting the differential signal in the differential link into a positive polarity signal and a negative polarity signal; 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; A delay time interval in which the data in the first data sequence and the third data sequence are the same is selected as the latch window; wherein the third data sequence is obtained by inverting the signal data in the second data sequence.
5. The method according to claim 1, It is characterized in that When the differential link is initially powered on, delay compensation is performed from a signal sampling point of a differential signal in the differential link to a center point of the window intersection, including: Determining an initial window based on a temperature value and a voltage value when the differential link is initially powered on; The delay time difference between the initial window and the window intersection is compared, and a delay chain is used to compensate the signal sampling point delay to the center point of the window intersection.
6. The method according to claim 1, It is characterized in that After delaying the compensation signal sampling point to the center point of the window intersection, the method further includes: The temperature value and the voltage value of the differential link are monitored, and the latch window is continuously calibrated according to the temperature-electricity window table so that the signal sampling point is kept within the latch window.
7. The method according to any one of claims 1 to 6, It is characterized in that If the differential link cannot be calibrated according to the temperature-electric window table, the method further includes: Splitting the differential signal in the differential link into a reference signal and a working signal; 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 position of the differential signal unchanged; if not, move the differential signal in the reverse direction to a preset time period relative to the original time position; wherein, the first signal to be compared is the signal after the reference signal is moved forward for a preset time period; the signal opposite value represents the signal obtained by inverting the signal data.
8. A window calibration system for a differential link, It is characterized in that The system comprises: A window table acquisition module, used to acquire a temperature-electric window table of the differential link; wherein the temperature-electric window table is a reference table containing corresponding latch windows under different temperature values and different voltage values; The intersection judgment module is used to judge whether there is a window intersection between all the latch windows in the temperature-electric window table; if so, when the differential link is initially powered on, the signal sampling point of the differential signal in the differential link is delayed and compensated to the center point of the window intersection.
9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the window calibration method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, It is characterized in that A computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the window calibration method according to any one of claims 1 to 7 is implemented.
